diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0824ade..e5709d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,51 +11,35 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - run: pnpm install --frozen-lockfile - - run: pnpm lint - - run: pnpm fmt:check + - uses: oven-sh/setup-bun@v2 + - run: bun install --frozen-lockfile + - run: bun lint + - run: bun fmt:check typecheck: name: Typecheck runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - run: pnpm install --frozen-lockfile - - run: pnpm typecheck:ci + - uses: oven-sh/setup-bun@v2 + - run: bun install --frozen-lockfile + - run: bun typecheck:ci test-unit: name: Unit Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - run: pnpm install --frozen-lockfile - - run: pnpm test:unit:ci + - uses: oven-sh/setup-bun@v2 + - run: bun install --frozen-lockfile + - run: bun test:unit:ci test-browser: name: Browser Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - run: pnpm install --frozen-lockfile - - run: pnpm dlx playwright@1.58.2 install chromium --with-deps - - run: pnpm test:browser:ci + - uses: oven-sh/setup-bun@v2 + - run: bun install --frozen-lockfile + - run: bunx playwright@1.58.2 install chromium --with-deps + - run: bun test:browser:ci diff --git a/.gitignore b/.gitignore index 5d817de..1510d06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules/ +node_modules/.vite/ +node_modules/.bin/ visualiser/dist/ *.tsbuildinfo diff --git a/AGENTS.md b/AGENTS.md index 6d62f28..1c4280f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -5,16 +5,16 @@ TypeScript call graph slicer and HTML visualiser. ## Commands ```bash -pnpm install # Install deps -pnpm test # All tests, watch mode -pnpm test:unit # Unit tests only, watch mode -pnpm test:browser # Browser tests only, watch mode -pnpm test:ci # All tests, single run (CI) -pnpm test:unit:ci # Unit tests only, single run -pnpm test:browser:ci # Browser tests only, single run -pnpm typecheck # Type-check, watch mode -pnpm typecheck:ci # Type-check, single run -pnpm build:visualiser # Bundle the visualiser +bun install # Install deps +bun test # All tests, watch mode +bun test:unit # Unit tests only, watch mode +bun test:browser # Browser tests only, watch mode +bun test:ci # All tests, single run (CI) +bun test:unit:ci # Unit tests only, single run +bun test:browser:ci # Browser tests only, single run +bun typecheck # Type-check, watch mode +bun typecheck:ci # Type-check, single run +bun build:visualiser # Bundle the visualiser ``` ## Module Structure diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..214f70a --- /dev/null +++ b/bun.lock @@ -0,0 +1,387 @@ +{ + "lockfileVersion": 1, + "configVersion": 1, + "workspaces": { + "": { + "name": "ts-callpath", + "dependencies": { + "commander": "^12.0.0", + "highlight.js": "^11.11.1", + "typescript": "^5.9.0", + }, + "devDependencies": { + "@types/node": "^20.0.0", + "@vitest/browser": "^4.0.0", + "@vitest/browser-playwright": "^4.0.0", + "esbuild": "^0.24.2", + "oxfmt": "^0.28.0", + "oxlint": "^1.43.0", + "tsx": "^4.7.0", + "vitest": "^4.0.0", + }, + }, + }, + "packages": { + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.24.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA=="], + + "@esbuild/android-arm": ["@esbuild/android-arm@0.24.2", "", { "os": "android", "cpu": "arm" }, "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q=="], + + "@esbuild/android-arm64": ["@esbuild/android-arm64@0.24.2", "", { "os": "android", "cpu": "arm64" }, "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg=="], + + "@esbuild/android-x64": ["@esbuild/android-x64@0.24.2", "", { "os": "android", "cpu": "x64" }, "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw=="], + + "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.24.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA=="], + + "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.24.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA=="], + + "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.24.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg=="], + + "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.24.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q=="], + + "@esbuild/linux-arm": ["@esbuild/linux-arm@0.24.2", "", { "os": "linux", "cpu": "arm" }, "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA=="], + + "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.24.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg=="], + + "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.24.2", "", { "os": "linux", "cpu": "ia32" }, "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw=="], + + "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.24.2", "", { "os": "linux", "cpu": "none" }, "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ=="], + + "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.24.2", "", { "os": "linux", "cpu": "none" }, "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw=="], + + "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.24.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw=="], + + "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.24.2", "", { "os": "linux", "cpu": "none" }, "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q=="], + + "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.24.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw=="], + + "@esbuild/linux-x64": ["@esbuild/linux-x64@0.24.2", "", { "os": "linux", "cpu": "x64" }, "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q=="], + + "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.24.2", "", { "os": "none", "cpu": "arm64" }, "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw=="], + + "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.24.2", "", { "os": "none", "cpu": "x64" }, "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw=="], + + "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.24.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A=="], + + "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.24.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA=="], + + "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.27.3", "", { "os": "none", "cpu": "arm64" }, "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g=="], + + "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.24.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig=="], + + "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.24.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ=="], + + "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.24.2", "", { "os": "win32", "cpu": "ia32" }, "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA=="], + + "@esbuild/win32-x64": ["@esbuild/win32-x64@0.24.2", "", { "os": "win32", "cpu": "x64" }, "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], + + "@oxfmt/darwin-arm64": ["@oxfmt/darwin-arm64@0.28.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-jmUfF7cNJPw57bEK7sMIqrYRgn4LH428tSgtgLTCtjuGuu1ShREyrkeB7y8HtkXRfhBs4lVY+HMLhqElJvZ6ww=="], + + "@oxfmt/darwin-x64": ["@oxfmt/darwin-x64@0.28.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-S6vlV8S7jbjzJOSjfVg2CimUC0r7/aHDLdUm/3+/B/SU/s1jV7ivqWkMv1/8EB43d1BBwT9JQ60ZMTkBqeXSFA=="], + + "@oxfmt/linux-arm64-gnu": ["@oxfmt/linux-arm64-gnu@0.28.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-TfJkMZjePbLiskmxFXVAbGI/OZtD+y+fwS0wyW8O6DWG0ARTf0AipY9zGwGoOdpFuXOJceXvN4SHGLbYNDMY4Q=="], + + "@oxfmt/linux-arm64-musl": ["@oxfmt/linux-arm64-musl@0.28.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-7fyQUdW203v4WWGr1T3jwTz4L7KX9y5DeATryQ6fLT6QQp9GEuct8/k0lYhd+ys42iTV/IkJF20e3YkfSOOILg=="], + + "@oxfmt/linux-x64-gnu": ["@oxfmt/linux-x64-gnu@0.28.0", "", { "os": "linux", "cpu": "x64" }, "sha512-sRKqAvEonuz0qr1X1ncUZceOBJerKzkO2gZIZmosvy/JmqyffpIFL3OE2tqacFkeDhrC+dNYQpusO8zsfHo3pw=="], + + "@oxfmt/linux-x64-musl": ["@oxfmt/linux-x64-musl@0.28.0", "", { "os": "linux", "cpu": "x64" }, "sha512-fW6czbXutX/tdQe8j4nSIgkUox9RXqjyxwyWXUDItpoDkoXllq17qbD7GVc0whrEhYQC6hFE1UEAcDypLJoSzw=="], + + "@oxfmt/win32-arm64": ["@oxfmt/win32-arm64@0.28.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-D/HDeQBAQRjTbD9OLV6kRDcStrIfO+JsUODDCdGmhRfNX8LPCx95GpfyybpZfn3wVF8Jq/yjPXV1xLkQ+s7RcA=="], + + "@oxfmt/win32-x64": ["@oxfmt/win32-x64@0.28.0", "", { "os": "win32", "cpu": "x64" }, "sha512-4+S2j4OxOIyo8dz5osm5dZuL0yVmxXvtmNdHB5xyGwAWVvyWNvf7tCaQD7w2fdSsAXQLOvK7KFQrHFe33nJUCA=="], + + "@oxlint/darwin-arm64": ["@oxlint/darwin-arm64@1.43.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-C/GhObv/pQZg34NOzB6Mk8x0wc9AKj8fXzJF8ZRKTsBPyHusC6AZ6bba0QG0TUufw1KWuD0j++oebQfWeiFXNw=="], + + "@oxlint/darwin-x64": ["@oxlint/darwin-x64@1.43.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-4NjfUtEEH8ewRQ2KlZGmm6DyrvypMdHwBnQT92vD0dLScNOQzr0V9O8Ua4IWXdeCNl/XMVhAV3h4/3YEYern5A=="], + + "@oxlint/linux-arm64-gnu": ["@oxlint/linux-arm64-gnu@1.43.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-75tf1HvwdZ3ebk83yMbSB+moAEWK98mYqpXiaFAi6Zshie7r+Cx5PLXZFUEqkscenoZ+fcNXakHxfn94V6nf1g=="], + + "@oxlint/linux-arm64-musl": ["@oxlint/linux-arm64-musl@1.43.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-BHV4fb36T2p/7bpA9fiJ5ayt7oJbiYX10nklW5arYp4l9/9yG/FQC5J4G1evzbJ/YbipF9UH0vYBAm5xbqGrvw=="], + + "@oxlint/linux-x64-gnu": ["@oxlint/linux-x64-gnu@1.43.0", "", { "os": "linux", "cpu": "x64" }, "sha512-1l3nvnzWWse1YHibzZ4HQXdF/ibfbKZhp9IguElni3bBqEyPEyurzZ0ikWynDxKGXqZa+UNXTFuU1NRVX1RJ3g=="], + + "@oxlint/linux-x64-musl": ["@oxlint/linux-x64-musl@1.43.0", "", { "os": "linux", "cpu": "x64" }, "sha512-+jNYgLGRFTJxJuaSOZJBwlYo5M0TWRw0+3y5MHOL4ArrIdHyCthg6r4RbVWrsR1qUfUE1VSSHQ2bfbC99RXqMg=="], + + "@oxlint/win32-arm64": ["@oxlint/win32-arm64@1.43.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-dvs1C/HCjCyGTURMagiHprsOvVTT3omDiSzi5Qw0D4QFJ1pEaNlfBhVnOUYgUfS6O7Mcmj4+G+sidRsQcWQ/kA=="], + + "@oxlint/win32-x64": ["@oxlint/win32-x64@1.43.0", "", { "os": "win32", "cpu": "x64" }, "sha512-bSuItSU8mTSDsvmmLTepTdCL2FkJI6dwt9tot/k0EmiYF+ArRzmsl4lXVLssJNRV5lJEc5IViyTrh7oiwrjUqA=="], + + "@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="], + + "@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.57.1", "", { "os": "android", "cpu": "arm" }, "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg=="], + + "@rollup/rollup-android-arm64": ["@rollup/rollup-android-arm64@4.57.1", "", { "os": "android", "cpu": "arm64" }, "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w=="], + + "@rollup/rollup-darwin-arm64": ["@rollup/rollup-darwin-arm64@4.57.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg=="], + + "@rollup/rollup-darwin-x64": ["@rollup/rollup-darwin-x64@4.57.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w=="], + + "@rollup/rollup-freebsd-arm64": ["@rollup/rollup-freebsd-arm64@4.57.1", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug=="], + + "@rollup/rollup-freebsd-x64": ["@rollup/rollup-freebsd-x64@4.57.1", "", { "os": "freebsd", "cpu": "x64" }, "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q=="], + + "@rollup/rollup-linux-arm-gnueabihf": ["@rollup/rollup-linux-arm-gnueabihf@4.57.1", "", { "os": "linux", "cpu": "arm" }, "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw=="], + + "@rollup/rollup-linux-arm-musleabihf": ["@rollup/rollup-linux-arm-musleabihf@4.57.1", "", { "os": "linux", "cpu": "arm" }, "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw=="], + + "@rollup/rollup-linux-arm64-gnu": ["@rollup/rollup-linux-arm64-gnu@4.57.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g=="], + + "@rollup/rollup-linux-arm64-musl": ["@rollup/rollup-linux-arm64-musl@4.57.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q=="], + + "@rollup/rollup-linux-loong64-gnu": ["@rollup/rollup-linux-loong64-gnu@4.57.1", "", { "os": "linux", "cpu": "none" }, "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA=="], + + "@rollup/rollup-linux-loong64-musl": ["@rollup/rollup-linux-loong64-musl@4.57.1", "", { "os": "linux", "cpu": "none" }, "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw=="], + + "@rollup/rollup-linux-ppc64-gnu": ["@rollup/rollup-linux-ppc64-gnu@4.57.1", "", { "os": "linux", "cpu": "ppc64" }, "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w=="], + + "@rollup/rollup-linux-ppc64-musl": ["@rollup/rollup-linux-ppc64-musl@4.57.1", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw=="], + + "@rollup/rollup-linux-riscv64-gnu": ["@rollup/rollup-linux-riscv64-gnu@4.57.1", "", { "os": "linux", "cpu": "none" }, "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A=="], + + "@rollup/rollup-linux-riscv64-musl": ["@rollup/rollup-linux-riscv64-musl@4.57.1", "", { "os": "linux", "cpu": "none" }, "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw=="], + + "@rollup/rollup-linux-s390x-gnu": ["@rollup/rollup-linux-s390x-gnu@4.57.1", "", { "os": "linux", "cpu": "s390x" }, "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg=="], + + "@rollup/rollup-linux-x64-gnu": ["@rollup/rollup-linux-x64-gnu@4.57.1", "", { "os": "linux", "cpu": "x64" }, "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg=="], + + "@rollup/rollup-linux-x64-musl": ["@rollup/rollup-linux-x64-musl@4.57.1", "", { "os": "linux", "cpu": "x64" }, "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw=="], + + "@rollup/rollup-openbsd-x64": ["@rollup/rollup-openbsd-x64@4.57.1", "", { "os": "openbsd", "cpu": "x64" }, "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw=="], + + "@rollup/rollup-openharmony-arm64": ["@rollup/rollup-openharmony-arm64@4.57.1", "", { "os": "none", "cpu": "arm64" }, "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ=="], + + "@rollup/rollup-win32-arm64-msvc": ["@rollup/rollup-win32-arm64-msvc@4.57.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ=="], + + "@rollup/rollup-win32-ia32-msvc": ["@rollup/rollup-win32-ia32-msvc@4.57.1", "", { "os": "win32", "cpu": "ia32" }, "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew=="], + + "@rollup/rollup-win32-x64-gnu": ["@rollup/rollup-win32-x64-gnu@4.57.1", "", { "os": "win32", "cpu": "x64" }, "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ=="], + + "@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.57.1", "", { "os": "win32", "cpu": "x64" }, "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA=="], + + "@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="], + + "@types/deep-eql": ["@types/deep-eql@4.0.2", "", {}, "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw=="], + + "@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="], + + "@types/node": ["@types/node@20.19.33", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-Rs1bVAIdBs5gbTIKza/tgpMuG1k3U/UMJLWecIMxNdJFDMzcM5LOiLVRYh3PilWEYDIeUDv7bpiHPLPsbydGcw=="], + + "@vitest/browser": ["@vitest/browser@4.0.18", "", { "dependencies": { "@vitest/mocker": "4.0.18", "@vitest/utils": "4.0.18", "magic-string": "^0.30.21", "pixelmatch": "7.1.0", "pngjs": "^7.0.0", "sirv": "^3.0.2", "tinyrainbow": "^3.0.3", "ws": "^8.18.3" }, "peerDependencies": { "vitest": "4.0.18" } }, "sha512-gVQqh7paBz3gC+ZdcCmNSWJMk70IUjDeVqi+5m5vYpEHsIwRgw3Y545jljtajhkekIpIp5Gg8oK7bctgY0E2Ng=="], + + "@vitest/browser-playwright": ["@vitest/browser-playwright@4.0.18", "", { "dependencies": { "@vitest/browser": "4.0.18", "@vitest/mocker": "4.0.18", "tinyrainbow": "^3.0.3" }, "peerDependencies": { "playwright": "*", "vitest": "4.0.18" } }, "sha512-gfajTHVCiwpxRj1qh0Sh/5bbGLG4F/ZH/V9xvFVoFddpITfMta9YGow0W6ZpTTORv2vdJuz9TnrNSmjKvpOf4g=="], + + "@vitest/expect": ["@vitest/expect@4.0.18", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@types/chai": "^5.2.2", "@vitest/spy": "4.0.18", "@vitest/utils": "4.0.18", "chai": "^6.2.1", "tinyrainbow": "^3.0.3" } }, "sha512-8sCWUyckXXYvx4opfzVY03EOiYVxyNrHS5QxX3DAIi5dpJAAkyJezHCP77VMX4HKA2LDT/Jpfo8i2r5BE3GnQQ=="], + + "@vitest/mocker": ["@vitest/mocker@4.0.18", "", { "dependencies": { "@vitest/spy": "4.0.18", "estree-walker": "^3.0.3", "magic-string": "^0.30.21" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^6.0.0 || ^7.0.0-0" }, "optionalPeers": ["msw", "vite"] }, "sha512-HhVd0MDnzzsgevnOWCBj5Otnzobjy5wLBe4EdeeFGv8luMsGcYqDuFRMcttKWZA5vVO8RFjexVovXvAM4JoJDQ=="], + + "@vitest/pretty-format": ["@vitest/pretty-format@4.0.18", "", { "dependencies": { "tinyrainbow": "^3.0.3" } }, "sha512-P24GK3GulZWC5tz87ux0m8OADrQIUVDPIjjj65vBXYG17ZeU3qD7r+MNZ1RNv4l8CGU2vtTRqixrOi9fYk/yKw=="], + + "@vitest/runner": ["@vitest/runner@4.0.18", "", { "dependencies": { "@vitest/utils": "4.0.18", "pathe": "^2.0.3" } }, "sha512-rpk9y12PGa22Jg6g5M3UVVnTS7+zycIGk9ZNGN+m6tZHKQb7jrP7/77WfZy13Y/EUDd52NDsLRQhYKtv7XfPQw=="], + + "@vitest/snapshot": ["@vitest/snapshot@4.0.18", "", { "dependencies": { "@vitest/pretty-format": "4.0.18", "magic-string": "^0.30.21", "pathe": "^2.0.3" } }, "sha512-PCiV0rcl7jKQjbgYqjtakly6T1uwv/5BQ9SwBLekVg/EaYeQFPiXcgrC2Y7vDMA8dM1SUEAEV82kgSQIlXNMvA=="], + + "@vitest/spy": ["@vitest/spy@4.0.18", "", {}, "sha512-cbQt3PTSD7P2OARdVW3qWER5EGq7PHlvE+QfzSC0lbwO+xnt7+XH06ZzFjFRgzUX//JmpxrCu92VdwvEPlWSNw=="], + + "@vitest/utils": ["@vitest/utils@4.0.18", "", { "dependencies": { "@vitest/pretty-format": "4.0.18", "tinyrainbow": "^3.0.3" } }, "sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA=="], + + "assertion-error": ["assertion-error@2.0.1", "", {}, "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA=="], + + "chai": ["chai@6.2.2", "", {}, "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg=="], + + "commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="], + + "es-module-lexer": ["es-module-lexer@1.7.0", "", {}, "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA=="], + + "esbuild": ["esbuild@0.24.2", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.24.2", "@esbuild/android-arm": "0.24.2", "@esbuild/android-arm64": "0.24.2", "@esbuild/android-x64": "0.24.2", "@esbuild/darwin-arm64": "0.24.2", "@esbuild/darwin-x64": "0.24.2", "@esbuild/freebsd-arm64": "0.24.2", "@esbuild/freebsd-x64": "0.24.2", "@esbuild/linux-arm": "0.24.2", "@esbuild/linux-arm64": "0.24.2", "@esbuild/linux-ia32": "0.24.2", "@esbuild/linux-loong64": "0.24.2", "@esbuild/linux-mips64el": "0.24.2", "@esbuild/linux-ppc64": "0.24.2", "@esbuild/linux-riscv64": "0.24.2", "@esbuild/linux-s390x": "0.24.2", "@esbuild/linux-x64": "0.24.2", "@esbuild/netbsd-arm64": "0.24.2", "@esbuild/netbsd-x64": "0.24.2", "@esbuild/openbsd-arm64": "0.24.2", "@esbuild/openbsd-x64": "0.24.2", "@esbuild/sunos-x64": "0.24.2", "@esbuild/win32-arm64": "0.24.2", "@esbuild/win32-ia32": "0.24.2", "@esbuild/win32-x64": "0.24.2" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA=="], + + "estree-walker": ["estree-walker@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.0" } }, "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g=="], + + "expect-type": ["expect-type@1.3.0", "", {}, "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA=="], + + "fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], + + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + + "get-tsconfig": ["get-tsconfig@4.13.6", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw=="], + + "highlight.js": ["highlight.js@11.11.1", "", {}, "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w=="], + + "magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="], + + "mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="], + + "nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], + + "obug": ["obug@2.1.1", "", {}, "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ=="], + + "oxfmt": ["oxfmt@0.28.0", "", { "dependencies": { "tinypool": "2.1.0" }, "optionalDependencies": { "@oxfmt/darwin-arm64": "0.28.0", "@oxfmt/darwin-x64": "0.28.0", "@oxfmt/linux-arm64-gnu": "0.28.0", "@oxfmt/linux-arm64-musl": "0.28.0", "@oxfmt/linux-x64-gnu": "0.28.0", "@oxfmt/linux-x64-musl": "0.28.0", "@oxfmt/win32-arm64": "0.28.0", "@oxfmt/win32-x64": "0.28.0" }, "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-3+hhBqPE6Kp22KfJmnstrZbl+KdOVSEu1V0ABaFIg1rYLtrMgrupx9znnHgHLqKxAVHebjTdiCJDk30CXOt6cw=="], + + "oxlint": ["oxlint@1.43.0", "", { "optionalDependencies": { "@oxlint/darwin-arm64": "1.43.0", "@oxlint/darwin-x64": "1.43.0", "@oxlint/linux-arm64-gnu": "1.43.0", "@oxlint/linux-arm64-musl": "1.43.0", "@oxlint/linux-x64-gnu": "1.43.0", "@oxlint/linux-x64-musl": "1.43.0", "@oxlint/win32-arm64": "1.43.0", "@oxlint/win32-x64": "1.43.0" }, "peerDependencies": { "oxlint-tsgolint": ">=0.11.2" }, "optionalPeers": ["oxlint-tsgolint"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-xiqTCsKZch+R61DPCjyqUVP2MhkQlRRYxLRBeBDi+dtQJ90MOgdcjIktvDCgXz0bgtx94EQzHEndsizZjMX2OA=="], + + "pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="], + + "pixelmatch": ["pixelmatch@7.1.0", "", { "dependencies": { "pngjs": "^7.0.0" }, "bin": { "pixelmatch": "bin/pixelmatch" } }, "sha512-1wrVzJ2STrpmONHKBy228LM1b84msXDUoAzVEl0R8Mz4Ce6EPr+IVtxm8+yvrqLYMHswREkjYFaMxnyGnaY3Ng=="], + + "playwright": ["playwright@1.58.2", "", { "dependencies": { "playwright-core": "1.58.2" }, "optionalDependencies": { "fsevents": "2.3.2" }, "bin": { "playwright": "cli.js" } }, "sha512-vA30H8Nvkq/cPBnNw4Q8TWz1EJyqgpuinBcHET0YVJVFldr8JDNiU9LaWAE1KqSkRYazuaBhTpB5ZzShOezQ6A=="], + + "playwright-core": ["playwright-core@1.58.2", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg=="], + + "pngjs": ["pngjs@7.0.0", "", {}, "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow=="], + + "postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="], + + "resolve-pkg-maps": ["resolve-pkg-maps@1.0.0", "", {}, "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw=="], + + "rollup": ["rollup@4.57.1", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.57.1", "@rollup/rollup-android-arm64": "4.57.1", "@rollup/rollup-darwin-arm64": "4.57.1", "@rollup/rollup-darwin-x64": "4.57.1", "@rollup/rollup-freebsd-arm64": "4.57.1", "@rollup/rollup-freebsd-x64": "4.57.1", "@rollup/rollup-linux-arm-gnueabihf": "4.57.1", "@rollup/rollup-linux-arm-musleabihf": "4.57.1", "@rollup/rollup-linux-arm64-gnu": "4.57.1", "@rollup/rollup-linux-arm64-musl": "4.57.1", "@rollup/rollup-linux-loong64-gnu": "4.57.1", "@rollup/rollup-linux-loong64-musl": "4.57.1", "@rollup/rollup-linux-ppc64-gnu": "4.57.1", "@rollup/rollup-linux-ppc64-musl": "4.57.1", "@rollup/rollup-linux-riscv64-gnu": "4.57.1", "@rollup/rollup-linux-riscv64-musl": "4.57.1", "@rollup/rollup-linux-s390x-gnu": "4.57.1", "@rollup/rollup-linux-x64-gnu": "4.57.1", "@rollup/rollup-linux-x64-musl": "4.57.1", "@rollup/rollup-openbsd-x64": "4.57.1", "@rollup/rollup-openharmony-arm64": "4.57.1", "@rollup/rollup-win32-arm64-msvc": "4.57.1", "@rollup/rollup-win32-ia32-msvc": "4.57.1", "@rollup/rollup-win32-x64-gnu": "4.57.1", "@rollup/rollup-win32-x64-msvc": "4.57.1", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A=="], + + "siginfo": ["siginfo@2.0.0", "", {}, "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="], + + "sirv": ["sirv@3.0.2", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g=="], + + "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], + + "stackback": ["stackback@0.0.2", "", {}, "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw=="], + + "std-env": ["std-env@3.10.0", "", {}, "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg=="], + + "tinybench": ["tinybench@2.9.0", "", {}, "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg=="], + + "tinyexec": ["tinyexec@1.0.2", "", {}, "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg=="], + + "tinyglobby": ["tinyglobby@0.2.15", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="], + + "tinypool": ["tinypool@2.1.0", "", {}, "sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw=="], + + "tinyrainbow": ["tinyrainbow@3.0.3", "", {}, "sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q=="], + + "totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="], + + "tsx": ["tsx@4.21.0", "", { "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw=="], + + "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], + + "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], + + "vite": ["vite@7.3.1", "", { "dependencies": { "esbuild": "^0.27.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA=="], + + "vitest": ["vitest@4.0.18", "", { "dependencies": { "@vitest/expect": "4.0.18", "@vitest/mocker": "4.0.18", "@vitest/pretty-format": "4.0.18", "@vitest/runner": "4.0.18", "@vitest/snapshot": "4.0.18", "@vitest/spy": "4.0.18", "@vitest/utils": "4.0.18", "es-module-lexer": "^1.7.0", "expect-type": "^1.2.2", "magic-string": "^0.30.21", "obug": "^2.1.1", "pathe": "^2.0.3", "picomatch": "^4.0.3", "std-env": "^3.10.0", "tinybench": "^2.9.0", "tinyexec": "^1.0.2", "tinyglobby": "^0.2.15", "tinyrainbow": "^3.0.3", "vite": "^6.0.0 || ^7.0.0", "why-is-node-running": "^2.3.0" }, "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", "@vitest/browser-playwright": "4.0.18", "@vitest/browser-preview": "4.0.18", "@vitest/browser-webdriverio": "4.0.18", "@vitest/ui": "4.0.18", "happy-dom": "*", "jsdom": "*" }, "optionalPeers": ["@edge-runtime/vm", "@opentelemetry/api", "@types/node", "@vitest/browser-playwright", "@vitest/browser-preview", "@vitest/browser-webdriverio", "@vitest/ui", "happy-dom", "jsdom"], "bin": { "vitest": "vitest.mjs" } }, "sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ=="], + + "why-is-node-running": ["why-is-node-running@2.3.0", "", { "dependencies": { "siginfo": "^2.0.0", "stackback": "0.0.2" }, "bin": { "why-is-node-running": "cli.js" } }, "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w=="], + + "ws": ["ws@8.19.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg=="], + + "playwright/fsevents": ["fsevents@2.3.2", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="], + + "tsx/esbuild": ["esbuild@0.27.3", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.3", "@esbuild/android-arm": "0.27.3", "@esbuild/android-arm64": "0.27.3", "@esbuild/android-x64": "0.27.3", "@esbuild/darwin-arm64": "0.27.3", "@esbuild/darwin-x64": "0.27.3", "@esbuild/freebsd-arm64": "0.27.3", "@esbuild/freebsd-x64": "0.27.3", "@esbuild/linux-arm": "0.27.3", "@esbuild/linux-arm64": "0.27.3", "@esbuild/linux-ia32": "0.27.3", "@esbuild/linux-loong64": "0.27.3", "@esbuild/linux-mips64el": "0.27.3", "@esbuild/linux-ppc64": "0.27.3", "@esbuild/linux-riscv64": "0.27.3", "@esbuild/linux-s390x": "0.27.3", "@esbuild/linux-x64": "0.27.3", "@esbuild/netbsd-arm64": "0.27.3", "@esbuild/netbsd-x64": "0.27.3", "@esbuild/openbsd-arm64": "0.27.3", "@esbuild/openbsd-x64": "0.27.3", "@esbuild/openharmony-arm64": "0.27.3", "@esbuild/sunos-x64": "0.27.3", "@esbuild/win32-arm64": "0.27.3", "@esbuild/win32-ia32": "0.27.3", "@esbuild/win32-x64": "0.27.3" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg=="], + + "vite/esbuild": ["esbuild@0.27.3", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.3", "@esbuild/android-arm": "0.27.3", "@esbuild/android-arm64": "0.27.3", "@esbuild/android-x64": "0.27.3", "@esbuild/darwin-arm64": "0.27.3", "@esbuild/darwin-x64": "0.27.3", "@esbuild/freebsd-arm64": "0.27.3", "@esbuild/freebsd-x64": "0.27.3", "@esbuild/linux-arm": "0.27.3", "@esbuild/linux-arm64": "0.27.3", "@esbuild/linux-ia32": "0.27.3", "@esbuild/linux-loong64": "0.27.3", "@esbuild/linux-mips64el": "0.27.3", "@esbuild/linux-ppc64": "0.27.3", "@esbuild/linux-riscv64": "0.27.3", "@esbuild/linux-s390x": "0.27.3", "@esbuild/linux-x64": "0.27.3", "@esbuild/netbsd-arm64": "0.27.3", "@esbuild/netbsd-x64": "0.27.3", "@esbuild/openbsd-arm64": "0.27.3", "@esbuild/openbsd-x64": "0.27.3", "@esbuild/openharmony-arm64": "0.27.3", "@esbuild/sunos-x64": "0.27.3", "@esbuild/win32-arm64": "0.27.3", "@esbuild/win32-ia32": "0.27.3", "@esbuild/win32-x64": "0.27.3" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg=="], + + "tsx/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.27.3", "", { "os": "aix", "cpu": "ppc64" }, "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg=="], + + "tsx/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.27.3", "", { "os": "android", "cpu": "arm" }, "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA=="], + + "tsx/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.27.3", "", { "os": "android", "cpu": "arm64" }, "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg=="], + + "tsx/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.27.3", "", { "os": "android", "cpu": "x64" }, "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ=="], + + "tsx/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.27.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg=="], + + "tsx/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.27.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg=="], + + "tsx/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.27.3", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w=="], + + "tsx/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.27.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA=="], + + "tsx/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.27.3", "", { "os": "linux", "cpu": "arm" }, "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw=="], + + "tsx/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.27.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg=="], + + "tsx/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.27.3", "", { "os": "linux", "cpu": "ia32" }, "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg=="], + + "tsx/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA=="], + + "tsx/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw=="], + + "tsx/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.27.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA=="], + + "tsx/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ=="], + + "tsx/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.27.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw=="], + + "tsx/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.27.3", "", { "os": "linux", "cpu": "x64" }, "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA=="], + + "tsx/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.27.3", "", { "os": "none", "cpu": "arm64" }, "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA=="], + + "tsx/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.27.3", "", { "os": "none", "cpu": "x64" }, "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA=="], + + "tsx/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.27.3", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw=="], + + "tsx/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.27.3", "", { "os": "openbsd", "cpu": "x64" }, "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ=="], + + "tsx/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.27.3", "", { "os": "sunos", "cpu": "x64" }, "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA=="], + + "tsx/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.27.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA=="], + + "tsx/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.27.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q=="], + + "tsx/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.27.3", "", { "os": "win32", "cpu": "x64" }, "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA=="], + + "vite/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.27.3", "", { "os": "aix", "cpu": "ppc64" }, "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg=="], + + "vite/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.27.3", "", { "os": "android", "cpu": "arm" }, "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA=="], + + "vite/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.27.3", "", { "os": "android", "cpu": "arm64" }, "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg=="], + + "vite/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.27.3", "", { "os": "android", "cpu": "x64" }, "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ=="], + + "vite/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.27.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg=="], + + "vite/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.27.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg=="], + + "vite/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.27.3", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w=="], + + "vite/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.27.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA=="], + + "vite/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.27.3", "", { "os": "linux", "cpu": "arm" }, "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw=="], + + "vite/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.27.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg=="], + + "vite/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.27.3", "", { "os": "linux", "cpu": "ia32" }, "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg=="], + + "vite/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA=="], + + "vite/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw=="], + + "vite/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.27.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA=="], + + "vite/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ=="], + + "vite/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.27.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw=="], + + "vite/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.27.3", "", { "os": "linux", "cpu": "x64" }, "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA=="], + + "vite/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.27.3", "", { "os": "none", "cpu": "arm64" }, "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA=="], + + "vite/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.27.3", "", { "os": "none", "cpu": "x64" }, "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA=="], + + "vite/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.27.3", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw=="], + + "vite/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.27.3", "", { "os": "openbsd", "cpu": "x64" }, "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ=="], + + "vite/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.27.3", "", { "os": "sunos", "cpu": "x64" }, "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA=="], + + "vite/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.27.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA=="], + + "vite/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.27.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q=="], + + "vite/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.27.3", "", { "os": "win32", "cpu": "x64" }, "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA=="], + } +} diff --git a/node_modules/.modules.yaml b/node_modules/.modules.yaml deleted file mode 100644 index dd7b3d8..0000000 --- a/node_modules/.modules.yaml +++ /dev/null @@ -1,314 +0,0 @@ -hoistPattern: - - '*' -hoistedDependencies: - '@esbuild/aix-ppc64@0.24.2': - '@esbuild/aix-ppc64': private - '@esbuild/android-arm64@0.24.2': - '@esbuild/android-arm64': private - '@esbuild/android-arm@0.24.2': - '@esbuild/android-arm': private - '@esbuild/android-x64@0.24.2': - '@esbuild/android-x64': private - '@esbuild/darwin-arm64@0.24.2': - '@esbuild/darwin-arm64': private - '@esbuild/darwin-x64@0.24.2': - '@esbuild/darwin-x64': private - '@esbuild/freebsd-arm64@0.24.2': - '@esbuild/freebsd-arm64': private - '@esbuild/freebsd-x64@0.24.2': - '@esbuild/freebsd-x64': private - '@esbuild/linux-arm64@0.24.2': - '@esbuild/linux-arm64': private - '@esbuild/linux-arm@0.24.2': - '@esbuild/linux-arm': private - '@esbuild/linux-ia32@0.24.2': - '@esbuild/linux-ia32': private - '@esbuild/linux-loong64@0.24.2': - '@esbuild/linux-loong64': private - '@esbuild/linux-mips64el@0.24.2': - '@esbuild/linux-mips64el': private - '@esbuild/linux-ppc64@0.24.2': - '@esbuild/linux-ppc64': private - '@esbuild/linux-riscv64@0.24.2': - '@esbuild/linux-riscv64': private - '@esbuild/linux-s390x@0.24.2': - '@esbuild/linux-s390x': private - '@esbuild/linux-x64@0.24.2': - '@esbuild/linux-x64': private - '@esbuild/netbsd-arm64@0.24.2': - '@esbuild/netbsd-arm64': private - '@esbuild/netbsd-x64@0.24.2': - '@esbuild/netbsd-x64': private - '@esbuild/openbsd-arm64@0.24.2': - '@esbuild/openbsd-arm64': private - '@esbuild/openbsd-x64@0.24.2': - '@esbuild/openbsd-x64': private - '@esbuild/openharmony-arm64@0.27.3': - '@esbuild/openharmony-arm64': private - '@esbuild/sunos-x64@0.24.2': - '@esbuild/sunos-x64': private - '@esbuild/win32-arm64@0.24.2': - '@esbuild/win32-arm64': private - '@esbuild/win32-ia32@0.24.2': - '@esbuild/win32-ia32': private - '@esbuild/win32-x64@0.24.2': - '@esbuild/win32-x64': private - '@jridgewell/sourcemap-codec@1.5.5': - '@jridgewell/sourcemap-codec': private - '@oxfmt/darwin-arm64@0.28.0': - '@oxfmt/darwin-arm64': private - '@oxlint/darwin-arm64@1.43.0': - '@oxlint/darwin-arm64': private - '@polka/url@1.0.0-next.29': - '@polka/url': private - '@rollup/rollup-android-arm-eabi@4.57.1': - '@rollup/rollup-android-arm-eabi': private - '@rollup/rollup-android-arm64@4.57.1': - '@rollup/rollup-android-arm64': private - '@rollup/rollup-darwin-arm64@4.57.1': - '@rollup/rollup-darwin-arm64': private - '@rollup/rollup-darwin-x64@4.57.1': - '@rollup/rollup-darwin-x64': private - '@rollup/rollup-freebsd-arm64@4.57.1': - '@rollup/rollup-freebsd-arm64': private - '@rollup/rollup-freebsd-x64@4.57.1': - '@rollup/rollup-freebsd-x64': private - '@rollup/rollup-linux-arm-gnueabihf@4.57.1': - '@rollup/rollup-linux-arm-gnueabihf': private - '@rollup/rollup-linux-arm-musleabihf@4.57.1': - '@rollup/rollup-linux-arm-musleabihf': private - '@rollup/rollup-linux-arm64-gnu@4.57.1': - '@rollup/rollup-linux-arm64-gnu': private - '@rollup/rollup-linux-arm64-musl@4.57.1': - '@rollup/rollup-linux-arm64-musl': private - '@rollup/rollup-linux-loong64-gnu@4.57.1': - '@rollup/rollup-linux-loong64-gnu': private - '@rollup/rollup-linux-loong64-musl@4.57.1': - '@rollup/rollup-linux-loong64-musl': private - '@rollup/rollup-linux-ppc64-gnu@4.57.1': - '@rollup/rollup-linux-ppc64-gnu': private - '@rollup/rollup-linux-ppc64-musl@4.57.1': - '@rollup/rollup-linux-ppc64-musl': private - '@rollup/rollup-linux-riscv64-gnu@4.57.1': - '@rollup/rollup-linux-riscv64-gnu': private - '@rollup/rollup-linux-riscv64-musl@4.57.1': - '@rollup/rollup-linux-riscv64-musl': private - '@rollup/rollup-linux-s390x-gnu@4.57.1': - '@rollup/rollup-linux-s390x-gnu': private - '@rollup/rollup-linux-x64-gnu@4.57.1': - '@rollup/rollup-linux-x64-gnu': private - '@rollup/rollup-linux-x64-musl@4.57.1': - '@rollup/rollup-linux-x64-musl': private - '@rollup/rollup-openbsd-x64@4.57.1': - '@rollup/rollup-openbsd-x64': private - '@rollup/rollup-openharmony-arm64@4.57.1': - '@rollup/rollup-openharmony-arm64': private - '@rollup/rollup-win32-arm64-msvc@4.57.1': - '@rollup/rollup-win32-arm64-msvc': private - '@rollup/rollup-win32-ia32-msvc@4.57.1': - '@rollup/rollup-win32-ia32-msvc': private - '@rollup/rollup-win32-x64-gnu@4.57.1': - '@rollup/rollup-win32-x64-gnu': private - '@rollup/rollup-win32-x64-msvc@4.57.1': - '@rollup/rollup-win32-x64-msvc': private - '@standard-schema/spec@1.1.0': - '@standard-schema/spec': private - '@types/chai@5.2.3': - '@types/chai': private - '@types/deep-eql@4.0.2': - '@types/deep-eql': private - '@types/estree@1.0.8': - '@types/estree': private - '@vitest/expect@4.0.18': - '@vitest/expect': private - '@vitest/mocker@4.0.18(vite@7.3.1(@types/node@20.19.33)(tsx@4.21.0))': - '@vitest/mocker': private - '@vitest/pretty-format@4.0.18': - '@vitest/pretty-format': private - '@vitest/runner@4.0.18': - '@vitest/runner': private - '@vitest/snapshot@4.0.18': - '@vitest/snapshot': private - '@vitest/spy@4.0.18': - '@vitest/spy': private - '@vitest/utils@4.0.18': - '@vitest/utils': private - assertion-error@2.0.1: - assertion-error: private - chai@6.2.2: - chai: private - es-module-lexer@1.7.0: - es-module-lexer: private - estree-walker@3.0.3: - estree-walker: private - expect-type@1.3.0: - expect-type: private - fdir@6.5.0(picomatch@4.0.3): - fdir: private - fsevents@2.3.3: - fsevents: private - get-tsconfig@4.13.6: - get-tsconfig: private - magic-string@0.30.21: - magic-string: private - mrmime@2.0.1: - mrmime: private - nanoid@3.3.11: - nanoid: private - obug@2.1.1: - obug: private - pathe@2.0.3: - pathe: private - picocolors@1.1.1: - picocolors: private - picomatch@4.0.3: - picomatch: private - pixelmatch@7.1.0: - pixelmatch: private - playwright-core@1.58.2: - playwright-core: private - playwright@1.58.2: - playwright: private - pngjs@7.0.0: - pngjs: private - postcss@8.5.6: - postcss: private - resolve-pkg-maps@1.0.0: - resolve-pkg-maps: private - rollup@4.57.1: - rollup: private - siginfo@2.0.0: - siginfo: private - sirv@3.0.2: - sirv: private - source-map-js@1.2.1: - source-map-js: private - stackback@0.0.2: - stackback: private - std-env@3.10.0: - std-env: private - tinybench@2.9.0: - tinybench: private - tinyexec@1.0.2: - tinyexec: private - tinyglobby@0.2.15: - tinyglobby: private - tinypool@2.1.0: - tinypool: private - tinyrainbow@3.0.3: - tinyrainbow: private - totalist@3.0.1: - totalist: private - undici-types@6.21.0: - undici-types: private - vite@7.3.1(@types/node@20.19.33)(tsx@4.21.0): - vite: private - why-is-node-running@2.3.0: - why-is-node-running: private - ws@8.19.0: - ws: private -included: - dependencies: true - devDependencies: true - optionalDependencies: true -injectedDeps: {} -layoutVersion: 5 -nodeLinker: isolated -packageManager: pnpm@10.15.0 -pendingBuilds: [] -prunedAt: Sun, 08 Feb 2026 16:46:22 GMT -publicHoistPattern: [] -registries: - '@jsr': https://npm.jsr.io/ - default: https://registry.npmjs.org/ -skipped: - - '@esbuild/aix-ppc64@0.24.2' - - '@esbuild/aix-ppc64@0.27.3' - - '@esbuild/android-arm64@0.24.2' - - '@esbuild/android-arm64@0.27.3' - - '@esbuild/android-arm@0.24.2' - - '@esbuild/android-arm@0.27.3' - - '@esbuild/android-x64@0.24.2' - - '@esbuild/android-x64@0.27.3' - - '@esbuild/darwin-x64@0.24.2' - - '@esbuild/darwin-x64@0.27.3' - - '@esbuild/freebsd-arm64@0.24.2' - - '@esbuild/freebsd-arm64@0.27.3' - - '@esbuild/freebsd-x64@0.24.2' - - '@esbuild/freebsd-x64@0.27.3' - - '@esbuild/linux-arm64@0.24.2' - - '@esbuild/linux-arm64@0.27.3' - - '@esbuild/linux-arm@0.24.2' - - '@esbuild/linux-arm@0.27.3' - - '@esbuild/linux-ia32@0.24.2' - - '@esbuild/linux-ia32@0.27.3' - - '@esbuild/linux-loong64@0.24.2' - - '@esbuild/linux-loong64@0.27.3' - - '@esbuild/linux-mips64el@0.24.2' - - '@esbuild/linux-mips64el@0.27.3' - - '@esbuild/linux-ppc64@0.24.2' - - '@esbuild/linux-ppc64@0.27.3' - - '@esbuild/linux-riscv64@0.24.2' - - '@esbuild/linux-riscv64@0.27.3' - - '@esbuild/linux-s390x@0.24.2' - - '@esbuild/linux-s390x@0.27.3' - - '@esbuild/linux-x64@0.24.2' - - '@esbuild/linux-x64@0.27.3' - - '@esbuild/netbsd-arm64@0.24.2' - - '@esbuild/netbsd-arm64@0.27.3' - - '@esbuild/netbsd-x64@0.24.2' - - '@esbuild/netbsd-x64@0.27.3' - - '@esbuild/openbsd-arm64@0.24.2' - - '@esbuild/openbsd-arm64@0.27.3' - - '@esbuild/openbsd-x64@0.24.2' - - '@esbuild/openbsd-x64@0.27.3' - - '@esbuild/openharmony-arm64@0.27.3' - - '@esbuild/sunos-x64@0.24.2' - - '@esbuild/sunos-x64@0.27.3' - - '@esbuild/win32-arm64@0.24.2' - - '@esbuild/win32-arm64@0.27.3' - - '@esbuild/win32-ia32@0.24.2' - - '@esbuild/win32-ia32@0.27.3' - - '@esbuild/win32-x64@0.24.2' - - '@esbuild/win32-x64@0.27.3' - - '@oxfmt/darwin-x64@0.28.0' - - '@oxfmt/linux-arm64-gnu@0.28.0' - - '@oxfmt/linux-arm64-musl@0.28.0' - - '@oxfmt/linux-x64-gnu@0.28.0' - - '@oxfmt/linux-x64-musl@0.28.0' - - '@oxfmt/win32-arm64@0.28.0' - - '@oxfmt/win32-x64@0.28.0' - - '@oxlint/darwin-x64@1.43.0' - - '@oxlint/linux-arm64-gnu@1.43.0' - - '@oxlint/linux-arm64-musl@1.43.0' - - '@oxlint/linux-x64-gnu@1.43.0' - - '@oxlint/linux-x64-musl@1.43.0' - - '@oxlint/win32-arm64@1.43.0' - - '@oxlint/win32-x64@1.43.0' - - '@rollup/rollup-android-arm-eabi@4.57.1' - - '@rollup/rollup-android-arm64@4.57.1' - - '@rollup/rollup-darwin-x64@4.57.1' - - '@rollup/rollup-freebsd-arm64@4.57.1' - - '@rollup/rollup-freebsd-x64@4.57.1' - - '@rollup/rollup-linux-arm-gnueabihf@4.57.1' - - '@rollup/rollup-linux-arm-musleabihf@4.57.1' - - '@rollup/rollup-linux-arm64-gnu@4.57.1' - - '@rollup/rollup-linux-arm64-musl@4.57.1' - - '@rollup/rollup-linux-loong64-gnu@4.57.1' - - '@rollup/rollup-linux-loong64-musl@4.57.1' - - '@rollup/rollup-linux-ppc64-gnu@4.57.1' - - '@rollup/rollup-linux-ppc64-musl@4.57.1' - - '@rollup/rollup-linux-riscv64-gnu@4.57.1' - - '@rollup/rollup-linux-riscv64-musl@4.57.1' - - '@rollup/rollup-linux-s390x-gnu@4.57.1' - - '@rollup/rollup-linux-x64-gnu@4.57.1' - - '@rollup/rollup-linux-x64-musl@4.57.1' - - '@rollup/rollup-openbsd-x64@4.57.1' - - '@rollup/rollup-openharmony-arm64@4.57.1' - - '@rollup/rollup-win32-arm64-msvc@4.57.1' - - '@rollup/rollup-win32-ia32-msvc@4.57.1' - - '@rollup/rollup-win32-x64-gnu@4.57.1' - - '@rollup/rollup-win32-x64-msvc@4.57.1' -storeDir: /Users/drpz/Library/pnpm/store/v10 -virtualStoreDir: .pnpm -virtualStoreDirMaxLength: 120 diff --git a/node_modules/.pnpm-workspace-state-v1.json b/node_modules/.pnpm-workspace-state-v1.json deleted file mode 100644 index 66b553e..0000000 --- a/node_modules/.pnpm-workspace-state-v1.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "lastValidatedTimestamp": 1770633200227, - "projects": {}, - "pnpmfiles": [], - "settings": { - "autoInstallPeers": true, - "dedupeDirectDeps": false, - "dedupeInjectedDeps": true, - "dedupePeerDependents": true, - "dev": true, - "excludeLinksFromLockfile": false, - "hoistPattern": [ - "*" - ], - "hoistWorkspacePackages": true, - "injectWorkspacePackages": false, - "linkWorkspacePackages": false, - "nodeLinker": "isolated", - "optional": true, - "preferWorkspacePackages": false, - "production": true, - "publicHoistPattern": [] - }, - "filteredInstall": false -} diff --git a/node_modules/.pnpm/@esbuild+darwin-arm64@0.24.2/node_modules/@esbuild/darwin-arm64/README.md b/node_modules/.pnpm/@esbuild+darwin-arm64@0.24.2/node_modules/@esbuild/darwin-arm64/README.md deleted file mode 100644 index c2c0398..0000000 --- a/node_modules/.pnpm/@esbuild+darwin-arm64@0.24.2/node_modules/@esbuild/darwin-arm64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# esbuild - -This is the macOS ARM 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details. diff --git a/node_modules/.pnpm/@esbuild+darwin-arm64@0.24.2/node_modules/@esbuild/darwin-arm64/package.json b/node_modules/.pnpm/@esbuild+darwin-arm64@0.24.2/node_modules/@esbuild/darwin-arm64/package.json deleted file mode 100644 index fe5d745..0000000 --- a/node_modules/.pnpm/@esbuild+darwin-arm64@0.24.2/node_modules/@esbuild/darwin-arm64/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@esbuild/darwin-arm64", - "version": "0.24.2", - "description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.", - "repository": { - "type": "git", - "url": "git+https://github.com/evanw/esbuild.git" - }, - "license": "MIT", - "preferUnplugged": true, - "engines": { - "node": ">=18" - }, - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ] -} diff --git a/node_modules/.pnpm/@esbuild+darwin-arm64@0.27.3/node_modules/@esbuild/darwin-arm64/README.md b/node_modules/.pnpm/@esbuild+darwin-arm64@0.27.3/node_modules/@esbuild/darwin-arm64/README.md deleted file mode 100644 index c2c0398..0000000 --- a/node_modules/.pnpm/@esbuild+darwin-arm64@0.27.3/node_modules/@esbuild/darwin-arm64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# esbuild - -This is the macOS ARM 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details. diff --git a/node_modules/.pnpm/@esbuild+darwin-arm64@0.27.3/node_modules/@esbuild/darwin-arm64/package.json b/node_modules/.pnpm/@esbuild+darwin-arm64@0.27.3/node_modules/@esbuild/darwin-arm64/package.json deleted file mode 100644 index 2c15be1..0000000 --- a/node_modules/.pnpm/@esbuild+darwin-arm64@0.27.3/node_modules/@esbuild/darwin-arm64/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@esbuild/darwin-arm64", - "version": "0.27.3", - "description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.", - "repository": { - "type": "git", - "url": "git+https://github.com/evanw/esbuild.git" - }, - "license": "MIT", - "preferUnplugged": true, - "engines": { - "node": ">=18" - }, - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ] -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/LICENSE b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/LICENSE deleted file mode 100644 index 1f6ce94..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2024 Justin Ridgewell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/README.md b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/README.md deleted file mode 100644 index b3e0708..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/README.md +++ /dev/null @@ -1,264 +0,0 @@ -# @jridgewell/sourcemap-codec - -Encode/decode the `mappings` property of a [sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit). - - -## Why? - -Sourcemaps are difficult to generate and manipulate, because the `mappings` property – the part that actually links the generated code back to the original source – is encoded using an obscure method called [Variable-length quantity](https://en.wikipedia.org/wiki/Variable-length_quantity). On top of that, each segment in the mapping contains offsets rather than absolute indices, which means that you can't look at a segment in isolation – you have to understand the whole sourcemap. - -This package makes the process slightly easier. - - -## Installation - -```bash -npm install @jridgewell/sourcemap-codec -``` - - -## Usage - -```js -import { encode, decode } from '@jridgewell/sourcemap-codec'; - -var decoded = decode( ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); - -assert.deepEqual( decoded, [ - // the first line (of the generated code) has no mappings, - // as shown by the starting semi-colon (which separates lines) - [], - - // the second line contains four (comma-separated) segments - [ - // segments are encoded as you'd expect: - // [ generatedCodeColumn, sourceIndex, sourceCodeLine, sourceCodeColumn, nameIndex ] - - // i.e. the first segment begins at column 2, and maps back to the second column - // of the second line (both zero-based) of the 0th source, and uses the 0th - // name in the `map.names` array - [ 2, 0, 2, 2, 0 ], - - // the remaining segments are 4-length rather than 5-length, - // because they don't map a name - [ 4, 0, 2, 4 ], - [ 6, 0, 2, 5 ], - [ 7, 0, 2, 7 ] - ], - - // the final line contains two segments - [ - [ 2, 1, 10, 19 ], - [ 12, 1, 11, 20 ] - ] -]); - -var encoded = encode( decoded ); -assert.equal( encoded, ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); -``` - -## Benchmarks - -``` -node v20.10.0 - -amp.js.map - 45120 segments - -Decode Memory Usage: -local code 5815135 bytes -@jridgewell/sourcemap-codec 1.4.15 5868160 bytes -sourcemap-codec 5492584 bytes -source-map-0.6.1 13569984 bytes -source-map-0.8.0 6390584 bytes -chrome dev tools 8011136 bytes -Smallest memory usage is sourcemap-codec - -Decode speed: -decode: local code x 492 ops/sec ±1.22% (90 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 499 ops/sec ±1.16% (89 runs sampled) -decode: sourcemap-codec x 376 ops/sec ±1.66% (89 runs sampled) -decode: source-map-0.6.1 x 34.99 ops/sec ±0.94% (48 runs sampled) -decode: source-map-0.8.0 x 351 ops/sec ±0.07% (95 runs sampled) -chrome dev tools x 165 ops/sec ±0.91% (86 runs sampled) -Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 - -Encode Memory Usage: -local code 444248 bytes -@jridgewell/sourcemap-codec 1.4.15 623024 bytes -sourcemap-codec 8696280 bytes -source-map-0.6.1 8745176 bytes -source-map-0.8.0 8736624 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 796 ops/sec ±0.11% (97 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 795 ops/sec ±0.25% (98 runs sampled) -encode: sourcemap-codec x 231 ops/sec ±0.83% (86 runs sampled) -encode: source-map-0.6.1 x 166 ops/sec ±0.57% (86 runs sampled) -encode: source-map-0.8.0 x 203 ops/sec ±0.45% (88 runs sampled) -Fastest is encode: local code,encode: @jridgewell/sourcemap-codec 1.4.15 - - -*** - - -babel.min.js.map - 347793 segments - -Decode Memory Usage: -local code 35424960 bytes -@jridgewell/sourcemap-codec 1.4.15 35424696 bytes -sourcemap-codec 36033464 bytes -source-map-0.6.1 62253704 bytes -source-map-0.8.0 43843920 bytes -chrome dev tools 45111400 bytes -Smallest memory usage is @jridgewell/sourcemap-codec 1.4.15 - -Decode speed: -decode: local code x 38.18 ops/sec ±5.44% (52 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 38.36 ops/sec ±5.02% (52 runs sampled) -decode: sourcemap-codec x 34.05 ops/sec ±4.45% (47 runs sampled) -decode: source-map-0.6.1 x 4.31 ops/sec ±2.76% (15 runs sampled) -decode: source-map-0.8.0 x 55.60 ops/sec ±0.13% (73 runs sampled) -chrome dev tools x 16.94 ops/sec ±3.78% (46 runs sampled) -Fastest is decode: source-map-0.8.0 - -Encode Memory Usage: -local code 2606016 bytes -@jridgewell/sourcemap-codec 1.4.15 2626440 bytes -sourcemap-codec 21152576 bytes -source-map-0.6.1 25023928 bytes -source-map-0.8.0 25256448 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 127 ops/sec ±0.18% (83 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 128 ops/sec ±0.26% (83 runs sampled) -encode: sourcemap-codec x 29.31 ops/sec ±2.55% (53 runs sampled) -encode: source-map-0.6.1 x 18.85 ops/sec ±3.19% (36 runs sampled) -encode: source-map-0.8.0 x 19.34 ops/sec ±1.97% (36 runs sampled) -Fastest is encode: @jridgewell/sourcemap-codec 1.4.15 - - -*** - - -preact.js.map - 1992 segments - -Decode Memory Usage: -local code 261696 bytes -@jridgewell/sourcemap-codec 1.4.15 244296 bytes -sourcemap-codec 302816 bytes -source-map-0.6.1 939176 bytes -source-map-0.8.0 336 bytes -chrome dev tools 587368 bytes -Smallest memory usage is source-map-0.8.0 - -Decode speed: -decode: local code x 17,782 ops/sec ±0.32% (97 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 17,863 ops/sec ±0.40% (100 runs sampled) -decode: sourcemap-codec x 12,453 ops/sec ±0.27% (101 runs sampled) -decode: source-map-0.6.1 x 1,288 ops/sec ±1.05% (96 runs sampled) -decode: source-map-0.8.0 x 9,289 ops/sec ±0.27% (101 runs sampled) -chrome dev tools x 4,769 ops/sec ±0.18% (100 runs sampled) -Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 - -Encode Memory Usage: -local code 262944 bytes -@jridgewell/sourcemap-codec 1.4.15 25544 bytes -sourcemap-codec 323048 bytes -source-map-0.6.1 507808 bytes -source-map-0.8.0 507480 bytes -Smallest memory usage is @jridgewell/sourcemap-codec 1.4.15 - -Encode speed: -encode: local code x 24,207 ops/sec ±0.79% (95 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 24,288 ops/sec ±0.48% (96 runs sampled) -encode: sourcemap-codec x 6,761 ops/sec ±0.21% (100 runs sampled) -encode: source-map-0.6.1 x 5,374 ops/sec ±0.17% (99 runs sampled) -encode: source-map-0.8.0 x 5,633 ops/sec ±0.32% (99 runs sampled) -Fastest is encode: @jridgewell/sourcemap-codec 1.4.15,encode: local code - - -*** - - -react.js.map - 5726 segments - -Decode Memory Usage: -local code 678816 bytes -@jridgewell/sourcemap-codec 1.4.15 678816 bytes -sourcemap-codec 816400 bytes -source-map-0.6.1 2288864 bytes -source-map-0.8.0 721360 bytes -chrome dev tools 1012512 bytes -Smallest memory usage is local code - -Decode speed: -decode: local code x 6,178 ops/sec ±0.19% (98 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 6,261 ops/sec ±0.22% (100 runs sampled) -decode: sourcemap-codec x 4,472 ops/sec ±0.90% (99 runs sampled) -decode: source-map-0.6.1 x 449 ops/sec ±0.31% (95 runs sampled) -decode: source-map-0.8.0 x 3,219 ops/sec ±0.13% (100 runs sampled) -chrome dev tools x 1,743 ops/sec ±0.20% (99 runs sampled) -Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 - -Encode Memory Usage: -local code 140960 bytes -@jridgewell/sourcemap-codec 1.4.15 159808 bytes -sourcemap-codec 969304 bytes -source-map-0.6.1 930520 bytes -source-map-0.8.0 930248 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 8,013 ops/sec ±0.19% (100 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 7,989 ops/sec ±0.20% (101 runs sampled) -encode: sourcemap-codec x 2,472 ops/sec ±0.21% (99 runs sampled) -encode: source-map-0.6.1 x 2,200 ops/sec ±0.17% (99 runs sampled) -encode: source-map-0.8.0 x 2,220 ops/sec ±0.37% (99 runs sampled) -Fastest is encode: local code - - -*** - - -vscode.map - 2141001 segments - -Decode Memory Usage: -local code 198955264 bytes -@jridgewell/sourcemap-codec 1.4.15 199175352 bytes -sourcemap-codec 199102688 bytes -source-map-0.6.1 386323432 bytes -source-map-0.8.0 244116432 bytes -chrome dev tools 293734280 bytes -Smallest memory usage is local code - -Decode speed: -decode: local code x 3.90 ops/sec ±22.21% (15 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 3.95 ops/sec ±23.53% (15 runs sampled) -decode: sourcemap-codec x 3.82 ops/sec ±17.94% (14 runs sampled) -decode: source-map-0.6.1 x 0.61 ops/sec ±7.81% (6 runs sampled) -decode: source-map-0.8.0 x 9.54 ops/sec ±0.28% (28 runs sampled) -chrome dev tools x 2.18 ops/sec ±10.58% (10 runs sampled) -Fastest is decode: source-map-0.8.0 - -Encode Memory Usage: -local code 13509880 bytes -@jridgewell/sourcemap-codec 1.4.15 13537648 bytes -sourcemap-codec 32540104 bytes -source-map-0.6.1 127531040 bytes -source-map-0.8.0 127535312 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 20.10 ops/sec ±0.19% (38 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 20.26 ops/sec ±0.32% (38 runs sampled) -encode: sourcemap-codec x 5.44 ops/sec ±1.64% (18 runs sampled) -encode: source-map-0.6.1 x 2.30 ops/sec ±4.79% (10 runs sampled) -encode: source-map-0.8.0 x 2.46 ops/sec ±6.53% (10 runs sampled) -Fastest is encode: @jridgewell/sourcemap-codec 1.4.15 -``` - -# License - -MIT diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs deleted file mode 100644 index 532bab3..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +++ /dev/null @@ -1,423 +0,0 @@ -// src/vlq.ts -var comma = ",".charCodeAt(0); -var semicolon = ";".charCodeAt(0); -var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -var intToChar = new Uint8Array(64); -var charToInt = new Uint8Array(128); -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function decodeInteger(reader, relative) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = reader.next(); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -2147483648 | -value; - } - return relative + value; -} -function encodeInteger(builder, num, relative) { - let delta = num - relative; - delta = delta < 0 ? -delta << 1 | 1 : delta << 1; - do { - let clamped = delta & 31; - delta >>>= 5; - if (delta > 0) clamped |= 32; - builder.write(intToChar[clamped]); - } while (delta > 0); - return num; -} -function hasMoreVlq(reader, max) { - if (reader.pos >= max) return false; - return reader.peek() !== comma; -} - -// src/strings.ts -var bufLength = 1024 * 16; -var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { - decode(buf) { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - } -} : { - decode(buf) { - let out = ""; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - } -}; -var StringWriter = class { - constructor() { - this.pos = 0; - this.out = ""; - this.buffer = new Uint8Array(bufLength); - } - write(v) { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - flush() { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } -}; -var StringReader = class { - constructor(buffer) { - this.pos = 0; - this.buffer = buffer; - } - next() { - return this.buffer.charCodeAt(this.pos++); - } - peek() { - return this.buffer.charCodeAt(this.pos); - } - indexOf(char) { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } -}; - -// src/scopes.ts -var EMPTY = []; -function decodeOriginalScopes(input) { - const { length } = input; - const reader = new StringReader(input); - const scopes = []; - const stack = []; - let line = 0; - for (; reader.pos < length; reader.pos++) { - line = decodeInteger(reader, line); - const column = decodeInteger(reader, 0); - if (!hasMoreVlq(reader, length)) { - const last = stack.pop(); - last[2] = line; - last[3] = column; - continue; - } - const kind = decodeInteger(reader, 0); - const fields = decodeInteger(reader, 0); - const hasName = fields & 1; - const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]; - let vars = EMPTY; - if (hasMoreVlq(reader, length)) { - vars = []; - do { - const varsIndex = decodeInteger(reader, 0); - vars.push(varsIndex); - } while (hasMoreVlq(reader, length)); - } - scope.vars = vars; - scopes.push(scope); - stack.push(scope); - } - return scopes; -} -function encodeOriginalScopes(scopes) { - const writer = new StringWriter(); - for (let i = 0; i < scopes.length; ) { - i = _encodeOriginalScopes(scopes, i, writer, [0]); - } - return writer.flush(); -} -function _encodeOriginalScopes(scopes, index, writer, state) { - const scope = scopes[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope; - if (index > 0) writer.write(comma); - state[0] = encodeInteger(writer, startLine, state[0]); - encodeInteger(writer, startColumn, 0); - encodeInteger(writer, kind, 0); - const fields = scope.length === 6 ? 1 : 0; - encodeInteger(writer, fields, 0); - if (scope.length === 6) encodeInteger(writer, scope[5], 0); - for (const v of vars) { - encodeInteger(writer, v, 0); - } - for (index++; index < scopes.length; ) { - const next = scopes[index]; - const { 0: l, 1: c } = next; - if (l > endLine || l === endLine && c >= endColumn) { - break; - } - index = _encodeOriginalScopes(scopes, index, writer, state); - } - writer.write(comma); - state[0] = encodeInteger(writer, endLine, state[0]); - encodeInteger(writer, endColumn, 0); - return index; -} -function decodeGeneratedRanges(input) { - const { length } = input; - const reader = new StringReader(input); - const ranges = []; - const stack = []; - let genLine = 0; - let definitionSourcesIndex = 0; - let definitionScopeIndex = 0; - let callsiteSourcesIndex = 0; - let callsiteLine = 0; - let callsiteColumn = 0; - let bindingLine = 0; - let bindingColumn = 0; - do { - const semi = reader.indexOf(";"); - let genColumn = 0; - for (; reader.pos < semi; reader.pos++) { - genColumn = decodeInteger(reader, genColumn); - if (!hasMoreVlq(reader, semi)) { - const last = stack.pop(); - last[2] = genLine; - last[3] = genColumn; - continue; - } - const fields = decodeInteger(reader, 0); - const hasDefinition = fields & 1; - const hasCallsite = fields & 2; - const hasScope = fields & 4; - let callsite = null; - let bindings = EMPTY; - let range; - if (hasDefinition) { - const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex); - definitionScopeIndex = decodeInteger( - reader, - definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0 - ); - definitionSourcesIndex = defSourcesIndex; - range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex]; - } else { - range = [genLine, genColumn, 0, 0]; - } - range.isScope = !!hasScope; - if (hasCallsite) { - const prevCsi = callsiteSourcesIndex; - const prevLine = callsiteLine; - callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex); - const sameSource = prevCsi === callsiteSourcesIndex; - callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0); - callsiteColumn = decodeInteger( - reader, - sameSource && prevLine === callsiteLine ? callsiteColumn : 0 - ); - callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn]; - } - range.callsite = callsite; - if (hasMoreVlq(reader, semi)) { - bindings = []; - do { - bindingLine = genLine; - bindingColumn = genColumn; - const expressionsCount = decodeInteger(reader, 0); - let expressionRanges; - if (expressionsCount < -1) { - expressionRanges = [[decodeInteger(reader, 0)]]; - for (let i = -1; i > expressionsCount; i--) { - const prevBl = bindingLine; - bindingLine = decodeInteger(reader, bindingLine); - bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0); - const expression = decodeInteger(reader, 0); - expressionRanges.push([expression, bindingLine, bindingColumn]); - } - } else { - expressionRanges = [[expressionsCount]]; - } - bindings.push(expressionRanges); - } while (hasMoreVlq(reader, semi)); - } - range.bindings = bindings; - ranges.push(range); - stack.push(range); - } - genLine++; - reader.pos = semi + 1; - } while (reader.pos < length); - return ranges; -} -function encodeGeneratedRanges(ranges) { - if (ranges.length === 0) return ""; - const writer = new StringWriter(); - for (let i = 0; i < ranges.length; ) { - i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]); - } - return writer.flush(); -} -function _encodeGeneratedRanges(ranges, index, writer, state) { - const range = ranges[index]; - const { - 0: startLine, - 1: startColumn, - 2: endLine, - 3: endColumn, - isScope, - callsite, - bindings - } = range; - if (state[0] < startLine) { - catchupLine(writer, state[0], startLine); - state[0] = startLine; - state[1] = 0; - } else if (index > 0) { - writer.write(comma); - } - state[1] = encodeInteger(writer, range[1], state[1]); - const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0); - encodeInteger(writer, fields, 0); - if (range.length === 6) { - const { 4: sourcesIndex, 5: scopesIndex } = range; - if (sourcesIndex !== state[2]) { - state[3] = 0; - } - state[2] = encodeInteger(writer, sourcesIndex, state[2]); - state[3] = encodeInteger(writer, scopesIndex, state[3]); - } - if (callsite) { - const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite; - if (sourcesIndex !== state[4]) { - state[5] = 0; - state[6] = 0; - } else if (callLine !== state[5]) { - state[6] = 0; - } - state[4] = encodeInteger(writer, sourcesIndex, state[4]); - state[5] = encodeInteger(writer, callLine, state[5]); - state[6] = encodeInteger(writer, callColumn, state[6]); - } - if (bindings) { - for (const binding of bindings) { - if (binding.length > 1) encodeInteger(writer, -binding.length, 0); - const expression = binding[0][0]; - encodeInteger(writer, expression, 0); - let bindingStartLine = startLine; - let bindingStartColumn = startColumn; - for (let i = 1; i < binding.length; i++) { - const expRange = binding[i]; - bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine); - bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn); - encodeInteger(writer, expRange[0], 0); - } - } - } - for (index++; index < ranges.length; ) { - const next = ranges[index]; - const { 0: l, 1: c } = next; - if (l > endLine || l === endLine && c >= endColumn) { - break; - } - index = _encodeGeneratedRanges(ranges, index, writer, state); - } - if (state[0] < endLine) { - catchupLine(writer, state[0], endLine); - state[0] = endLine; - state[1] = 0; - } else { - writer.write(comma); - } - state[1] = encodeInteger(writer, endColumn, state[1]); - return index; -} -function catchupLine(writer, lastLine, line) { - do { - writer.write(semicolon); - } while (++lastLine < line); -} - -// src/sourcemap-codec.ts -function decode(mappings) { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - do { - const semi = reader.indexOf(";"); - const line = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - while (reader.pos < semi) { - let seg; - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) sorted = false; - lastCol = genColumn; - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]; - } else { - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]; - } - } else { - seg = [genColumn]; - } - line.push(seg); - reader.pos++; - } - if (!sorted) sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - return decoded; -} -function sort(line) { - line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[0] - b[0]; -} -function encode(decoded) { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) writer.write(semicolon); - if (line.length === 0) continue; - let genColumn = 0; - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) writer.write(comma); - genColumn = encodeInteger(writer, segment[0], genColumn); - if (segment.length === 1) continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - if (segment.length === 4) continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - return writer.flush(); -} -export { - decode, - decodeGeneratedRanges, - decodeOriginalScopes, - encode, - encodeGeneratedRanges, - encodeOriginalScopes -}; -//# sourceMappingURL=sourcemap-codec.mjs.map diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map deleted file mode 100644 index c276844..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 3, - "sources": ["../src/vlq.ts", "../src/strings.ts", "../src/scopes.ts", "../src/sourcemap-codec.ts"], - "mappings": ";AAEO,IAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,IAAM,YAAY,IAAI,WAAW,CAAC;AAEzC,IAAM,QAAQ;AACd,IAAM,YAAY,IAAI,WAAW,EAAE;AACnC,IAAM,YAAY,IAAI,WAAW,GAAG;AAEpC,SAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,QAAM,IAAI,MAAM,WAAW,CAAC;AAC5B,YAAU,CAAC,IAAI;AACf,YAAU,CAAC,IAAI;AACjB;AAEO,SAAS,cAAc,QAAsB,UAA0B;AAC5E,MAAI,QAAQ;AACZ,MAAI,QAAQ;AACZ,MAAI,UAAU;AAEd,KAAG;AACD,UAAM,IAAI,OAAO,KAAK;AACtB,cAAU,UAAU,CAAC;AACrB,cAAU,UAAU,OAAO;AAC3B,aAAS;AAAA,EACX,SAAS,UAAU;AAEnB,QAAM,eAAe,QAAQ;AAC7B,aAAW;AAEX,MAAI,cAAc;AAChB,YAAQ,cAAc,CAAC;AAAA,EACzB;AAEA,SAAO,WAAW;AACpB;AAEO,SAAS,cAAc,SAAuB,KAAa,UAA0B;AAC1F,MAAI,QAAQ,MAAM;AAElB,UAAQ,QAAQ,IAAK,CAAC,SAAS,IAAK,IAAI,SAAS;AACjD,KAAG;AACD,QAAI,UAAU,QAAQ;AACtB,eAAW;AACX,QAAI,QAAQ,EAAG,YAAW;AAC1B,YAAQ,MAAM,UAAU,OAAO,CAAC;AAAA,EAClC,SAAS,QAAQ;AAEjB,SAAO;AACT;AAEO,SAAS,WAAW,QAAsB,KAAa;AAC5D,MAAI,OAAO,OAAO,IAAK,QAAO;AAC9B,SAAO,OAAO,KAAK,MAAM;AAC3B;;;ACtDA,IAAM,YAAY,OAAO;AAGzB,IAAM,KACJ,OAAO,gBAAgB,cACH,oBAAI,YAAY,IAChC,OAAO,WAAW,cAChB;AAAA,EACE,OAAO,KAAyB;AAC9B,UAAM,MAAM,OAAO,KAAK,IAAI,QAAQ,IAAI,YAAY,IAAI,UAAU;AAClE,WAAO,IAAI,SAAS;AAAA,EACtB;AACF,IACA;AAAA,EACE,OAAO,KAAyB;AAC9B,QAAI,MAAM;AACV,aAAS,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;AACnC,aAAO,OAAO,aAAa,IAAI,CAAC,CAAC;AAAA,IACnC;AACA,WAAO;AAAA,EACT;AACF;AAED,IAAM,eAAN,MAAmB;AAAA,EAAnB;AACL,eAAM;AACN,SAAQ,MAAM;AACd,SAAQ,SAAS,IAAI,WAAW,SAAS;AAAA;AAAA,EAEzC,MAAM,GAAiB;AACrB,UAAM,EAAE,OAAO,IAAI;AACnB,WAAO,KAAK,KAAK,IAAI;AACrB,QAAI,KAAK,QAAQ,WAAW;AAC1B,WAAK,OAAO,GAAG,OAAO,MAAM;AAC5B,WAAK,MAAM;AAAA,IACb;AAAA,EACF;AAAA,EAEA,QAAgB;AACd,UAAM,EAAE,QAAQ,KAAK,IAAI,IAAI;AAC7B,WAAO,MAAM,IAAI,MAAM,GAAG,OAAO,OAAO,SAAS,GAAG,GAAG,CAAC,IAAI;AAAA,EAC9D;AACF;AAEO,IAAM,eAAN,MAAmB;AAAA,EAIxB,YAAY,QAAgB;AAH5B,eAAM;AAIJ,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA,OAAe;AACb,WAAO,KAAK,OAAO,WAAW,KAAK,KAAK;AAAA,EAC1C;AAAA,EAEA,OAAe;AACb,WAAO,KAAK,OAAO,WAAW,KAAK,GAAG;AAAA,EACxC;AAAA,EAEA,QAAQ,MAAsB;AAC5B,UAAM,EAAE,QAAQ,IAAI,IAAI;AACxB,UAAM,MAAM,OAAO,QAAQ,MAAM,GAAG;AACpC,WAAO,QAAQ,KAAK,OAAO,SAAS;AAAA,EACtC;AACF;;;AC7DA,IAAM,QAAe,CAAC;AA+Bf,SAAS,qBAAqB,OAAgC;AACnE,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM,SAAS,IAAI,aAAa,KAAK;AACrC,QAAM,SAA0B,CAAC;AACjC,QAAM,QAAyB,CAAC;AAChC,MAAI,OAAO;AAEX,SAAO,OAAO,MAAM,QAAQ,OAAO,OAAO;AACxC,WAAO,cAAc,QAAQ,IAAI;AACjC,UAAM,SAAS,cAAc,QAAQ,CAAC;AAEtC,QAAI,CAAC,WAAW,QAAQ,MAAM,GAAG;AAC/B,YAAM,OAAO,MAAM,IAAI;AACvB,WAAK,CAAC,IAAI;AACV,WAAK,CAAC,IAAI;AACV;AAAA,IACF;AAEA,UAAM,OAAO,cAAc,QAAQ,CAAC;AACpC,UAAM,SAAS,cAAc,QAAQ,CAAC;AACtC,UAAM,UAAU,SAAS;AAEzB,UAAM,QACJ,UAAU,CAAC,MAAM,QAAQ,GAAG,GAAG,MAAM,cAAc,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,QAAQ,GAAG,GAAG,IAAI;AAG5F,QAAI,OAAc;AAClB,QAAI,WAAW,QAAQ,MAAM,GAAG;AAC9B,aAAO,CAAC;AACR,SAAG;AACD,cAAM,YAAY,cAAc,QAAQ,CAAC;AACzC,aAAK,KAAK,SAAS;AAAA,MACrB,SAAS,WAAW,QAAQ,MAAM;AAAA,IACpC;AACA,UAAM,OAAO;AAEb,WAAO,KAAK,KAAK;AACjB,UAAM,KAAK,KAAK;AAAA,EAClB;AAEA,SAAO;AACT;AAEO,SAAS,qBAAqB,QAAiC;AACpE,QAAM,SAAS,IAAI,aAAa;AAEhC,WAAS,IAAI,GAAG,IAAI,OAAO,UAAU;AACnC,QAAI,sBAAsB,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC;AAAA,EAClD;AAEA,SAAO,OAAO,MAAM;AACtB;AAEA,SAAS,sBACP,QACA,OACA,QACA,OAGQ;AACR,QAAM,QAAQ,OAAO,KAAK;AAC1B,QAAM,EAAE,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,KAAK,IAAI;AAElF,MAAI,QAAQ,EAAG,QAAO,MAAM,KAAK;AAEjC,QAAM,CAAC,IAAI,cAAc,QAAQ,WAAW,MAAM,CAAC,CAAC;AACpD,gBAAc,QAAQ,aAAa,CAAC;AACpC,gBAAc,QAAQ,MAAM,CAAC;AAE7B,QAAM,SAAS,MAAM,WAAW,IAAI,IAAS;AAC7C,gBAAc,QAAQ,QAAQ,CAAC;AAC/B,MAAI,MAAM,WAAW,EAAG,eAAc,QAAQ,MAAM,CAAC,GAAG,CAAC;AAEzD,aAAW,KAAK,MAAM;AACpB,kBAAc,QAAQ,GAAG,CAAC;AAAA,EAC5B;AAEA,OAAK,SAAS,QAAQ,OAAO,UAAU;AACrC,UAAM,OAAO,OAAO,KAAK;AACzB,UAAM,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI;AACvB,QAAI,IAAI,WAAY,MAAM,WAAW,KAAK,WAAY;AACpD;AAAA,IACF;AACA,YAAQ,sBAAsB,QAAQ,OAAO,QAAQ,KAAK;AAAA,EAC5D;AAEA,SAAO,MAAM,KAAK;AAClB,QAAM,CAAC,IAAI,cAAc,QAAQ,SAAS,MAAM,CAAC,CAAC;AAClD,gBAAc,QAAQ,WAAW,CAAC;AAElC,SAAO;AACT;AAEO,SAAS,sBAAsB,OAAiC;AACrE,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM,SAAS,IAAI,aAAa,KAAK;AACrC,QAAM,SAA2B,CAAC;AAClC,QAAM,QAA0B,CAAC;AAEjC,MAAI,UAAU;AACd,MAAI,yBAAyB;AAC7B,MAAI,uBAAuB;AAC3B,MAAI,uBAAuB;AAC3B,MAAI,eAAe;AACnB,MAAI,iBAAiB;AACrB,MAAI,cAAc;AAClB,MAAI,gBAAgB;AAEpB,KAAG;AACD,UAAM,OAAO,OAAO,QAAQ,GAAG;AAC/B,QAAI,YAAY;AAEhB,WAAO,OAAO,MAAM,MAAM,OAAO,OAAO;AACtC,kBAAY,cAAc,QAAQ,SAAS;AAE3C,UAAI,CAAC,WAAW,QAAQ,IAAI,GAAG;AAC7B,cAAM,OAAO,MAAM,IAAI;AACvB,aAAK,CAAC,IAAI;AACV,aAAK,CAAC,IAAI;AACV;AAAA,MACF;AAEA,YAAM,SAAS,cAAc,QAAQ,CAAC;AACtC,YAAM,gBAAgB,SAAS;AAC/B,YAAM,cAAc,SAAS;AAC7B,YAAM,WAAW,SAAS;AAE1B,UAAI,WAA4B;AAChC,UAAI,WAAsB;AAC1B,UAAI;AACJ,UAAI,eAAe;AACjB,cAAM,kBAAkB,cAAc,QAAQ,sBAAsB;AACpE,+BAAuB;AAAA,UACrB;AAAA,UACA,2BAA2B,kBAAkB,uBAAuB;AAAA,QACtE;AAEA,iCAAyB;AACzB,gBAAQ,CAAC,SAAS,WAAW,GAAG,GAAG,iBAAiB,oBAAoB;AAAA,MAC1E,OAAO;AACL,gBAAQ,CAAC,SAAS,WAAW,GAAG,CAAC;AAAA,MACnC;AAEA,YAAM,UAAU,CAAC,CAAC;AAElB,UAAI,aAAa;AACf,cAAM,UAAU;AAChB,cAAM,WAAW;AACjB,+BAAuB,cAAc,QAAQ,oBAAoB;AACjE,cAAM,aAAa,YAAY;AAC/B,uBAAe,cAAc,QAAQ,aAAa,eAAe,CAAC;AAClE,yBAAiB;AAAA,UACf;AAAA,UACA,cAAc,aAAa,eAAe,iBAAiB;AAAA,QAC7D;AAEA,mBAAW,CAAC,sBAAsB,cAAc,cAAc;AAAA,MAChE;AACA,YAAM,WAAW;AAEjB,UAAI,WAAW,QAAQ,IAAI,GAAG;AAC5B,mBAAW,CAAC;AACZ,WAAG;AACD,wBAAc;AACd,0BAAgB;AAChB,gBAAM,mBAAmB,cAAc,QAAQ,CAAC;AAChD,cAAI;AACJ,cAAI,mBAAmB,IAAI;AACzB,+BAAmB,CAAC,CAAC,cAAc,QAAQ,CAAC,CAAC,CAAC;AAC9C,qBAAS,IAAI,IAAI,IAAI,kBAAkB,KAAK;AAC1C,oBAAM,SAAS;AACf,4BAAc,cAAc,QAAQ,WAAW;AAC/C,8BAAgB,cAAc,QAAQ,gBAAgB,SAAS,gBAAgB,CAAC;AAChF,oBAAM,aAAa,cAAc,QAAQ,CAAC;AAC1C,+BAAiB,KAAK,CAAC,YAAY,aAAa,aAAa,CAAC;AAAA,YAChE;AAAA,UACF,OAAO;AACL,+BAAmB,CAAC,CAAC,gBAAgB,CAAC;AAAA,UACxC;AACA,mBAAS,KAAK,gBAAgB;AAAA,QAChC,SAAS,WAAW,QAAQ,IAAI;AAAA,MAClC;AACA,YAAM,WAAW;AAEjB,aAAO,KAAK,KAAK;AACjB,YAAM,KAAK,KAAK;AAAA,IAClB;AAEA;AACA,WAAO,MAAM,OAAO;AAAA,EACtB,SAAS,OAAO,MAAM;AAEtB,SAAO;AACT;AAEO,SAAS,sBAAsB,QAAkC;AACtE,MAAI,OAAO,WAAW,EAAG,QAAO;AAEhC,QAAM,SAAS,IAAI,aAAa;AAEhC,WAAS,IAAI,GAAG,IAAI,OAAO,UAAU;AACnC,QAAI,uBAAuB,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;AAAA,EACrE;AAEA,SAAO,OAAO,MAAM;AACtB;AAEA,SAAS,uBACP,QACA,OACA,QACA,OASQ;AACR,QAAM,QAAQ,OAAO,KAAK;AAC1B,QAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,MAAM,CAAC,IAAI,WAAW;AACxB,gBAAY,QAAQ,MAAM,CAAC,GAAG,SAAS;AACvC,UAAM,CAAC,IAAI;AACX,UAAM,CAAC,IAAI;AAAA,EACb,WAAW,QAAQ,GAAG;AACpB,WAAO,MAAM,KAAK;AAAA,EACpB;AAEA,QAAM,CAAC,IAAI,cAAc,QAAQ,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAEnD,QAAM,UACH,MAAM,WAAW,IAAI,IAAS,MAAM,WAAW,IAAS,MAAM,UAAU,IAAS;AACpF,gBAAc,QAAQ,QAAQ,CAAC;AAE/B,MAAI,MAAM,WAAW,GAAG;AACtB,UAAM,EAAE,GAAG,cAAc,GAAG,YAAY,IAAI;AAC5C,QAAI,iBAAiB,MAAM,CAAC,GAAG;AAC7B,YAAM,CAAC,IAAI;AAAA,IACb;AACA,UAAM,CAAC,IAAI,cAAc,QAAQ,cAAc,MAAM,CAAC,CAAC;AACvD,UAAM,CAAC,IAAI,cAAc,QAAQ,aAAa,MAAM,CAAC,CAAC;AAAA,EACxD;AAEA,MAAI,UAAU;AACZ,UAAM,EAAE,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,IAAI,MAAM;AAC9D,QAAI,iBAAiB,MAAM,CAAC,GAAG;AAC7B,YAAM,CAAC,IAAI;AACX,YAAM,CAAC,IAAI;AAAA,IACb,WAAW,aAAa,MAAM,CAAC,GAAG;AAChC,YAAM,CAAC,IAAI;AAAA,IACb;AACA,UAAM,CAAC,IAAI,cAAc,QAAQ,cAAc,MAAM,CAAC,CAAC;AACvD,UAAM,CAAC,IAAI,cAAc,QAAQ,UAAU,MAAM,CAAC,CAAC;AACnD,UAAM,CAAC,IAAI,cAAc,QAAQ,YAAY,MAAM,CAAC,CAAC;AAAA,EACvD;AAEA,MAAI,UAAU;AACZ,eAAW,WAAW,UAAU;AAC9B,UAAI,QAAQ,SAAS,EAAG,eAAc,QAAQ,CAAC,QAAQ,QAAQ,CAAC;AAChE,YAAM,aAAa,QAAQ,CAAC,EAAE,CAAC;AAC/B,oBAAc,QAAQ,YAAY,CAAC;AACnC,UAAI,mBAAmB;AACvB,UAAI,qBAAqB;AACzB,eAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;AACvC,cAAM,WAAW,QAAQ,CAAC;AAC1B,2BAAmB,cAAc,QAAQ,SAAS,CAAC,GAAI,gBAAgB;AACvE,6BAAqB,cAAc,QAAQ,SAAS,CAAC,GAAI,kBAAkB;AAC3E,sBAAc,QAAQ,SAAS,CAAC,GAAI,CAAC;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AAEA,OAAK,SAAS,QAAQ,OAAO,UAAU;AACrC,UAAM,OAAO,OAAO,KAAK;AACzB,UAAM,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI;AACvB,QAAI,IAAI,WAAY,MAAM,WAAW,KAAK,WAAY;AACpD;AAAA,IACF;AACA,YAAQ,uBAAuB,QAAQ,OAAO,QAAQ,KAAK;AAAA,EAC7D;AAEA,MAAI,MAAM,CAAC,IAAI,SAAS;AACtB,gBAAY,QAAQ,MAAM,CAAC,GAAG,OAAO;AACrC,UAAM,CAAC,IAAI;AACX,UAAM,CAAC,IAAI;AAAA,EACb,OAAO;AACL,WAAO,MAAM,KAAK;AAAA,EACpB;AACA,QAAM,CAAC,IAAI,cAAc,QAAQ,WAAW,MAAM,CAAC,CAAC;AAEpD,SAAO;AACT;AAEA,SAAS,YAAY,QAAsB,UAAkB,MAAc;AACzE,KAAG;AACD,WAAO,MAAM,SAAS;AAAA,EACxB,SAAS,EAAE,WAAW;AACxB;;;ACtUO,SAAS,OAAO,UAAqC;AAC1D,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM,SAAS,IAAI,aAAa,QAAQ;AACxC,QAAM,UAA6B,CAAC;AACpC,MAAI,YAAY;AAChB,MAAI,eAAe;AACnB,MAAI,aAAa;AACjB,MAAI,eAAe;AACnB,MAAI,aAAa;AAEjB,KAAG;AACD,UAAM,OAAO,OAAO,QAAQ,GAAG;AAC/B,UAAM,OAAsB,CAAC;AAC7B,QAAI,SAAS;AACb,QAAI,UAAU;AACd,gBAAY;AAEZ,WAAO,OAAO,MAAM,MAAM;AACxB,UAAI;AAEJ,kBAAY,cAAc,QAAQ,SAAS;AAC3C,UAAI,YAAY,QAAS,UAAS;AAClC,gBAAU;AAEV,UAAI,WAAW,QAAQ,IAAI,GAAG;AAC5B,uBAAe,cAAc,QAAQ,YAAY;AACjD,qBAAa,cAAc,QAAQ,UAAU;AAC7C,uBAAe,cAAc,QAAQ,YAAY;AAEjD,YAAI,WAAW,QAAQ,IAAI,GAAG;AAC5B,uBAAa,cAAc,QAAQ,UAAU;AAC7C,gBAAM,CAAC,WAAW,cAAc,YAAY,cAAc,UAAU;AAAA,QACtE,OAAO;AACL,gBAAM,CAAC,WAAW,cAAc,YAAY,YAAY;AAAA,QAC1D;AAAA,MACF,OAAO;AACL,cAAM,CAAC,SAAS;AAAA,MAClB;AAEA,WAAK,KAAK,GAAG;AACb,aAAO;AAAA,IACT;AAEA,QAAI,CAAC,OAAQ,MAAK,IAAI;AACtB,YAAQ,KAAK,IAAI;AACjB,WAAO,MAAM,OAAO;AAAA,EACtB,SAAS,OAAO,OAAO;AAEvB,SAAO;AACT;AAEA,SAAS,KAAK,MAA0B;AACtC,OAAK,KAAK,cAAc;AAC1B;AAEA,SAAS,eAAe,GAAqB,GAA6B;AACxE,SAAO,EAAE,CAAC,IAAI,EAAE,CAAC;AACnB;AAIO,SAAS,OAAO,SAA8C;AACnE,QAAM,SAAS,IAAI,aAAa;AAChC,MAAI,eAAe;AACnB,MAAI,aAAa;AACjB,MAAI,eAAe;AACnB,MAAI,aAAa;AAEjB,WAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;AACvC,UAAM,OAAO,QAAQ,CAAC;AACtB,QAAI,IAAI,EAAG,QAAO,MAAM,SAAS;AACjC,QAAI,KAAK,WAAW,EAAG;AAEvB,QAAI,YAAY;AAEhB,aAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,YAAM,UAAU,KAAK,CAAC;AACtB,UAAI,IAAI,EAAG,QAAO,MAAM,KAAK;AAE7B,kBAAY,cAAc,QAAQ,QAAQ,CAAC,GAAG,SAAS;AAEvD,UAAI,QAAQ,WAAW,EAAG;AAC1B,qBAAe,cAAc,QAAQ,QAAQ,CAAC,GAAG,YAAY;AAC7D,mBAAa,cAAc,QAAQ,QAAQ,CAAC,GAAG,UAAU;AACzD,qBAAe,cAAc,QAAQ,QAAQ,CAAC,GAAG,YAAY;AAE7D,UAAI,QAAQ,WAAW,EAAG;AAC1B,mBAAa,cAAc,QAAQ,QAAQ,CAAC,GAAG,UAAU;AAAA,IAC3D;AAAA,EACF;AAEA,SAAO,OAAO,MAAM;AACtB;", - "names": [] -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js deleted file mode 100644 index 2d8e459..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +++ /dev/null @@ -1,464 +0,0 @@ -(function (global, factory) { - if (typeof exports === 'object' && typeof module !== 'undefined') { - factory(module); - module.exports = def(module); - } else if (typeof define === 'function' && define.amd) { - define(['module'], function(mod) { - factory.apply(this, arguments); - mod.exports = def(mod); - }); - } else { - const mod = { exports: {} }; - factory(mod); - global = typeof globalThis !== 'undefined' ? globalThis : global || self; - global.sourcemapCodec = def(mod); - } - function def(m) { return 'default' in m.exports ? m.exports.default : m.exports; } -})(this, (function (module) { -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/sourcemap-codec.ts -var sourcemap_codec_exports = {}; -__export(sourcemap_codec_exports, { - decode: () => decode, - decodeGeneratedRanges: () => decodeGeneratedRanges, - decodeOriginalScopes: () => decodeOriginalScopes, - encode: () => encode, - encodeGeneratedRanges: () => encodeGeneratedRanges, - encodeOriginalScopes: () => encodeOriginalScopes -}); -module.exports = __toCommonJS(sourcemap_codec_exports); - -// src/vlq.ts -var comma = ",".charCodeAt(0); -var semicolon = ";".charCodeAt(0); -var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -var intToChar = new Uint8Array(64); -var charToInt = new Uint8Array(128); -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function decodeInteger(reader, relative) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = reader.next(); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -2147483648 | -value; - } - return relative + value; -} -function encodeInteger(builder, num, relative) { - let delta = num - relative; - delta = delta < 0 ? -delta << 1 | 1 : delta << 1; - do { - let clamped = delta & 31; - delta >>>= 5; - if (delta > 0) clamped |= 32; - builder.write(intToChar[clamped]); - } while (delta > 0); - return num; -} -function hasMoreVlq(reader, max) { - if (reader.pos >= max) return false; - return reader.peek() !== comma; -} - -// src/strings.ts -var bufLength = 1024 * 16; -var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? { - decode(buf) { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - } -} : { - decode(buf) { - let out = ""; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - } -}; -var StringWriter = class { - constructor() { - this.pos = 0; - this.out = ""; - this.buffer = new Uint8Array(bufLength); - } - write(v) { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - flush() { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } -}; -var StringReader = class { - constructor(buffer) { - this.pos = 0; - this.buffer = buffer; - } - next() { - return this.buffer.charCodeAt(this.pos++); - } - peek() { - return this.buffer.charCodeAt(this.pos); - } - indexOf(char) { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } -}; - -// src/scopes.ts -var EMPTY = []; -function decodeOriginalScopes(input) { - const { length } = input; - const reader = new StringReader(input); - const scopes = []; - const stack = []; - let line = 0; - for (; reader.pos < length; reader.pos++) { - line = decodeInteger(reader, line); - const column = decodeInteger(reader, 0); - if (!hasMoreVlq(reader, length)) { - const last = stack.pop(); - last[2] = line; - last[3] = column; - continue; - } - const kind = decodeInteger(reader, 0); - const fields = decodeInteger(reader, 0); - const hasName = fields & 1; - const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]; - let vars = EMPTY; - if (hasMoreVlq(reader, length)) { - vars = []; - do { - const varsIndex = decodeInteger(reader, 0); - vars.push(varsIndex); - } while (hasMoreVlq(reader, length)); - } - scope.vars = vars; - scopes.push(scope); - stack.push(scope); - } - return scopes; -} -function encodeOriginalScopes(scopes) { - const writer = new StringWriter(); - for (let i = 0; i < scopes.length; ) { - i = _encodeOriginalScopes(scopes, i, writer, [0]); - } - return writer.flush(); -} -function _encodeOriginalScopes(scopes, index, writer, state) { - const scope = scopes[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope; - if (index > 0) writer.write(comma); - state[0] = encodeInteger(writer, startLine, state[0]); - encodeInteger(writer, startColumn, 0); - encodeInteger(writer, kind, 0); - const fields = scope.length === 6 ? 1 : 0; - encodeInteger(writer, fields, 0); - if (scope.length === 6) encodeInteger(writer, scope[5], 0); - for (const v of vars) { - encodeInteger(writer, v, 0); - } - for (index++; index < scopes.length; ) { - const next = scopes[index]; - const { 0: l, 1: c } = next; - if (l > endLine || l === endLine && c >= endColumn) { - break; - } - index = _encodeOriginalScopes(scopes, index, writer, state); - } - writer.write(comma); - state[0] = encodeInteger(writer, endLine, state[0]); - encodeInteger(writer, endColumn, 0); - return index; -} -function decodeGeneratedRanges(input) { - const { length } = input; - const reader = new StringReader(input); - const ranges = []; - const stack = []; - let genLine = 0; - let definitionSourcesIndex = 0; - let definitionScopeIndex = 0; - let callsiteSourcesIndex = 0; - let callsiteLine = 0; - let callsiteColumn = 0; - let bindingLine = 0; - let bindingColumn = 0; - do { - const semi = reader.indexOf(";"); - let genColumn = 0; - for (; reader.pos < semi; reader.pos++) { - genColumn = decodeInteger(reader, genColumn); - if (!hasMoreVlq(reader, semi)) { - const last = stack.pop(); - last[2] = genLine; - last[3] = genColumn; - continue; - } - const fields = decodeInteger(reader, 0); - const hasDefinition = fields & 1; - const hasCallsite = fields & 2; - const hasScope = fields & 4; - let callsite = null; - let bindings = EMPTY; - let range; - if (hasDefinition) { - const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex); - definitionScopeIndex = decodeInteger( - reader, - definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0 - ); - definitionSourcesIndex = defSourcesIndex; - range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex]; - } else { - range = [genLine, genColumn, 0, 0]; - } - range.isScope = !!hasScope; - if (hasCallsite) { - const prevCsi = callsiteSourcesIndex; - const prevLine = callsiteLine; - callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex); - const sameSource = prevCsi === callsiteSourcesIndex; - callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0); - callsiteColumn = decodeInteger( - reader, - sameSource && prevLine === callsiteLine ? callsiteColumn : 0 - ); - callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn]; - } - range.callsite = callsite; - if (hasMoreVlq(reader, semi)) { - bindings = []; - do { - bindingLine = genLine; - bindingColumn = genColumn; - const expressionsCount = decodeInteger(reader, 0); - let expressionRanges; - if (expressionsCount < -1) { - expressionRanges = [[decodeInteger(reader, 0)]]; - for (let i = -1; i > expressionsCount; i--) { - const prevBl = bindingLine; - bindingLine = decodeInteger(reader, bindingLine); - bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0); - const expression = decodeInteger(reader, 0); - expressionRanges.push([expression, bindingLine, bindingColumn]); - } - } else { - expressionRanges = [[expressionsCount]]; - } - bindings.push(expressionRanges); - } while (hasMoreVlq(reader, semi)); - } - range.bindings = bindings; - ranges.push(range); - stack.push(range); - } - genLine++; - reader.pos = semi + 1; - } while (reader.pos < length); - return ranges; -} -function encodeGeneratedRanges(ranges) { - if (ranges.length === 0) return ""; - const writer = new StringWriter(); - for (let i = 0; i < ranges.length; ) { - i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]); - } - return writer.flush(); -} -function _encodeGeneratedRanges(ranges, index, writer, state) { - const range = ranges[index]; - const { - 0: startLine, - 1: startColumn, - 2: endLine, - 3: endColumn, - isScope, - callsite, - bindings - } = range; - if (state[0] < startLine) { - catchupLine(writer, state[0], startLine); - state[0] = startLine; - state[1] = 0; - } else if (index > 0) { - writer.write(comma); - } - state[1] = encodeInteger(writer, range[1], state[1]); - const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0); - encodeInteger(writer, fields, 0); - if (range.length === 6) { - const { 4: sourcesIndex, 5: scopesIndex } = range; - if (sourcesIndex !== state[2]) { - state[3] = 0; - } - state[2] = encodeInteger(writer, sourcesIndex, state[2]); - state[3] = encodeInteger(writer, scopesIndex, state[3]); - } - if (callsite) { - const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite; - if (sourcesIndex !== state[4]) { - state[5] = 0; - state[6] = 0; - } else if (callLine !== state[5]) { - state[6] = 0; - } - state[4] = encodeInteger(writer, sourcesIndex, state[4]); - state[5] = encodeInteger(writer, callLine, state[5]); - state[6] = encodeInteger(writer, callColumn, state[6]); - } - if (bindings) { - for (const binding of bindings) { - if (binding.length > 1) encodeInteger(writer, -binding.length, 0); - const expression = binding[0][0]; - encodeInteger(writer, expression, 0); - let bindingStartLine = startLine; - let bindingStartColumn = startColumn; - for (let i = 1; i < binding.length; i++) { - const expRange = binding[i]; - bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine); - bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn); - encodeInteger(writer, expRange[0], 0); - } - } - } - for (index++; index < ranges.length; ) { - const next = ranges[index]; - const { 0: l, 1: c } = next; - if (l > endLine || l === endLine && c >= endColumn) { - break; - } - index = _encodeGeneratedRanges(ranges, index, writer, state); - } - if (state[0] < endLine) { - catchupLine(writer, state[0], endLine); - state[0] = endLine; - state[1] = 0; - } else { - writer.write(comma); - } - state[1] = encodeInteger(writer, endColumn, state[1]); - return index; -} -function catchupLine(writer, lastLine, line) { - do { - writer.write(semicolon); - } while (++lastLine < line); -} - -// src/sourcemap-codec.ts -function decode(mappings) { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - do { - const semi = reader.indexOf(";"); - const line = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - while (reader.pos < semi) { - let seg; - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) sorted = false; - lastCol = genColumn; - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]; - } else { - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]; - } - } else { - seg = [genColumn]; - } - line.push(seg); - reader.pos++; - } - if (!sorted) sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - return decoded; -} -function sort(line) { - line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[0] - b[0]; -} -function encode(decoded) { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) writer.write(semicolon); - if (line.length === 0) continue; - let genColumn = 0; - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) writer.write(comma); - genColumn = encodeInteger(writer, segment[0], genColumn); - if (segment.length === 1) continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - if (segment.length === 4) continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - return writer.flush(); -} -})); -//# sourceMappingURL=sourcemap-codec.umd.js.map diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map deleted file mode 100644 index abc18d2..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 3, - "sources": ["../src/sourcemap-codec.ts", "../src/vlq.ts", "../src/strings.ts", "../src/scopes.ts"], - "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAM,QAAQ,IAAI,WAAW,CAAC;AAC9B,IAAM,YAAY,IAAI,WAAW,CAAC;AAEzC,IAAM,QAAQ;AACd,IAAM,YAAY,IAAI,WAAW,EAAE;AACnC,IAAM,YAAY,IAAI,WAAW,GAAG;AAEpC,SAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,QAAM,IAAI,MAAM,WAAW,CAAC;AAC5B,YAAU,CAAC,IAAI;AACf,YAAU,CAAC,IAAI;AACjB;AAEO,SAAS,cAAc,QAAsB,UAA0B;AAC5E,MAAI,QAAQ;AACZ,MAAI,QAAQ;AACZ,MAAI,UAAU;AAEd,KAAG;AACD,UAAM,IAAI,OAAO,KAAK;AACtB,cAAU,UAAU,CAAC;AACrB,cAAU,UAAU,OAAO;AAC3B,aAAS;AAAA,EACX,SAAS,UAAU;AAEnB,QAAM,eAAe,QAAQ;AAC7B,aAAW;AAEX,MAAI,cAAc;AAChB,YAAQ,cAAc,CAAC;AAAA,EACzB;AAEA,SAAO,WAAW;AACpB;AAEO,SAAS,cAAc,SAAuB,KAAa,UAA0B;AAC1F,MAAI,QAAQ,MAAM;AAElB,UAAQ,QAAQ,IAAK,CAAC,SAAS,IAAK,IAAI,SAAS;AACjD,KAAG;AACD,QAAI,UAAU,QAAQ;AACtB,eAAW;AACX,QAAI,QAAQ,EAAG,YAAW;AAC1B,YAAQ,MAAM,UAAU,OAAO,CAAC;AAAA,EAClC,SAAS,QAAQ;AAEjB,SAAO;AACT;AAEO,SAAS,WAAW,QAAsB,KAAa;AAC5D,MAAI,OAAO,OAAO,IAAK,QAAO;AAC9B,SAAO,OAAO,KAAK,MAAM;AAC3B;;;ACtDA,IAAM,YAAY,OAAO;AAGzB,IAAM,KACJ,OAAO,gBAAgB,cACH,oBAAI,YAAY,IAChC,OAAO,WAAW,cAChB;AAAA,EACE,OAAO,KAAyB;AAC9B,UAAM,MAAM,OAAO,KAAK,IAAI,QAAQ,IAAI,YAAY,IAAI,UAAU;AAClE,WAAO,IAAI,SAAS;AAAA,EACtB;AACF,IACA;AAAA,EACE,OAAO,KAAyB;AAC9B,QAAI,MAAM;AACV,aAAS,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;AACnC,aAAO,OAAO,aAAa,IAAI,CAAC,CAAC;AAAA,IACnC;AACA,WAAO;AAAA,EACT;AACF;AAED,IAAM,eAAN,MAAmB;AAAA,EAAnB;AACL,eAAM;AACN,SAAQ,MAAM;AACd,SAAQ,SAAS,IAAI,WAAW,SAAS;AAAA;AAAA,EAEzC,MAAM,GAAiB;AACrB,UAAM,EAAE,OAAO,IAAI;AACnB,WAAO,KAAK,KAAK,IAAI;AACrB,QAAI,KAAK,QAAQ,WAAW;AAC1B,WAAK,OAAO,GAAG,OAAO,MAAM;AAC5B,WAAK,MAAM;AAAA,IACb;AAAA,EACF;AAAA,EAEA,QAAgB;AACd,UAAM,EAAE,QAAQ,KAAK,IAAI,IAAI;AAC7B,WAAO,MAAM,IAAI,MAAM,GAAG,OAAO,OAAO,SAAS,GAAG,GAAG,CAAC,IAAI;AAAA,EAC9D;AACF;AAEO,IAAM,eAAN,MAAmB;AAAA,EAIxB,YAAY,QAAgB;AAH5B,eAAM;AAIJ,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA,OAAe;AACb,WAAO,KAAK,OAAO,WAAW,KAAK,KAAK;AAAA,EAC1C;AAAA,EAEA,OAAe;AACb,WAAO,KAAK,OAAO,WAAW,KAAK,GAAG;AAAA,EACxC;AAAA,EAEA,QAAQ,MAAsB;AAC5B,UAAM,EAAE,QAAQ,IAAI,IAAI;AACxB,UAAM,MAAM,OAAO,QAAQ,MAAM,GAAG;AACpC,WAAO,QAAQ,KAAK,OAAO,SAAS;AAAA,EACtC;AACF;;;AC7DA,IAAM,QAAe,CAAC;AA+Bf,SAAS,qBAAqB,OAAgC;AACnE,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM,SAAS,IAAI,aAAa,KAAK;AACrC,QAAM,SAA0B,CAAC;AACjC,QAAM,QAAyB,CAAC;AAChC,MAAI,OAAO;AAEX,SAAO,OAAO,MAAM,QAAQ,OAAO,OAAO;AACxC,WAAO,cAAc,QAAQ,IAAI;AACjC,UAAM,SAAS,cAAc,QAAQ,CAAC;AAEtC,QAAI,CAAC,WAAW,QAAQ,MAAM,GAAG;AAC/B,YAAM,OAAO,MAAM,IAAI;AACvB,WAAK,CAAC,IAAI;AACV,WAAK,CAAC,IAAI;AACV;AAAA,IACF;AAEA,UAAM,OAAO,cAAc,QAAQ,CAAC;AACpC,UAAM,SAAS,cAAc,QAAQ,CAAC;AACtC,UAAM,UAAU,SAAS;AAEzB,UAAM,QACJ,UAAU,CAAC,MAAM,QAAQ,GAAG,GAAG,MAAM,cAAc,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,QAAQ,GAAG,GAAG,IAAI;AAG5F,QAAI,OAAc;AAClB,QAAI,WAAW,QAAQ,MAAM,GAAG;AAC9B,aAAO,CAAC;AACR,SAAG;AACD,cAAM,YAAY,cAAc,QAAQ,CAAC;AACzC,aAAK,KAAK,SAAS;AAAA,MACrB,SAAS,WAAW,QAAQ,MAAM;AAAA,IACpC;AACA,UAAM,OAAO;AAEb,WAAO,KAAK,KAAK;AACjB,UAAM,KAAK,KAAK;AAAA,EAClB;AAEA,SAAO;AACT;AAEO,SAAS,qBAAqB,QAAiC;AACpE,QAAM,SAAS,IAAI,aAAa;AAEhC,WAAS,IAAI,GAAG,IAAI,OAAO,UAAU;AACnC,QAAI,sBAAsB,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC;AAAA,EAClD;AAEA,SAAO,OAAO,MAAM;AACtB;AAEA,SAAS,sBACP,QACA,OACA,QACA,OAGQ;AACR,QAAM,QAAQ,OAAO,KAAK;AAC1B,QAAM,EAAE,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,KAAK,IAAI;AAElF,MAAI,QAAQ,EAAG,QAAO,MAAM,KAAK;AAEjC,QAAM,CAAC,IAAI,cAAc,QAAQ,WAAW,MAAM,CAAC,CAAC;AACpD,gBAAc,QAAQ,aAAa,CAAC;AACpC,gBAAc,QAAQ,MAAM,CAAC;AAE7B,QAAM,SAAS,MAAM,WAAW,IAAI,IAAS;AAC7C,gBAAc,QAAQ,QAAQ,CAAC;AAC/B,MAAI,MAAM,WAAW,EAAG,eAAc,QAAQ,MAAM,CAAC,GAAG,CAAC;AAEzD,aAAW,KAAK,MAAM;AACpB,kBAAc,QAAQ,GAAG,CAAC;AAAA,EAC5B;AAEA,OAAK,SAAS,QAAQ,OAAO,UAAU;AACrC,UAAM,OAAO,OAAO,KAAK;AACzB,UAAM,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI;AACvB,QAAI,IAAI,WAAY,MAAM,WAAW,KAAK,WAAY;AACpD;AAAA,IACF;AACA,YAAQ,sBAAsB,QAAQ,OAAO,QAAQ,KAAK;AAAA,EAC5D;AAEA,SAAO,MAAM,KAAK;AAClB,QAAM,CAAC,IAAI,cAAc,QAAQ,SAAS,MAAM,CAAC,CAAC;AAClD,gBAAc,QAAQ,WAAW,CAAC;AAElC,SAAO;AACT;AAEO,SAAS,sBAAsB,OAAiC;AACrE,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM,SAAS,IAAI,aAAa,KAAK;AACrC,QAAM,SAA2B,CAAC;AAClC,QAAM,QAA0B,CAAC;AAEjC,MAAI,UAAU;AACd,MAAI,yBAAyB;AAC7B,MAAI,uBAAuB;AAC3B,MAAI,uBAAuB;AAC3B,MAAI,eAAe;AACnB,MAAI,iBAAiB;AACrB,MAAI,cAAc;AAClB,MAAI,gBAAgB;AAEpB,KAAG;AACD,UAAM,OAAO,OAAO,QAAQ,GAAG;AAC/B,QAAI,YAAY;AAEhB,WAAO,OAAO,MAAM,MAAM,OAAO,OAAO;AACtC,kBAAY,cAAc,QAAQ,SAAS;AAE3C,UAAI,CAAC,WAAW,QAAQ,IAAI,GAAG;AAC7B,cAAM,OAAO,MAAM,IAAI;AACvB,aAAK,CAAC,IAAI;AACV,aAAK,CAAC,IAAI;AACV;AAAA,MACF;AAEA,YAAM,SAAS,cAAc,QAAQ,CAAC;AACtC,YAAM,gBAAgB,SAAS;AAC/B,YAAM,cAAc,SAAS;AAC7B,YAAM,WAAW,SAAS;AAE1B,UAAI,WAA4B;AAChC,UAAI,WAAsB;AAC1B,UAAI;AACJ,UAAI,eAAe;AACjB,cAAM,kBAAkB,cAAc,QAAQ,sBAAsB;AACpE,+BAAuB;AAAA,UACrB;AAAA,UACA,2BAA2B,kBAAkB,uBAAuB;AAAA,QACtE;AAEA,iCAAyB;AACzB,gBAAQ,CAAC,SAAS,WAAW,GAAG,GAAG,iBAAiB,oBAAoB;AAAA,MAC1E,OAAO;AACL,gBAAQ,CAAC,SAAS,WAAW,GAAG,CAAC;AAAA,MACnC;AAEA,YAAM,UAAU,CAAC,CAAC;AAElB,UAAI,aAAa;AACf,cAAM,UAAU;AAChB,cAAM,WAAW;AACjB,+BAAuB,cAAc,QAAQ,oBAAoB;AACjE,cAAM,aAAa,YAAY;AAC/B,uBAAe,cAAc,QAAQ,aAAa,eAAe,CAAC;AAClE,yBAAiB;AAAA,UACf;AAAA,UACA,cAAc,aAAa,eAAe,iBAAiB;AAAA,QAC7D;AAEA,mBAAW,CAAC,sBAAsB,cAAc,cAAc;AAAA,MAChE;AACA,YAAM,WAAW;AAEjB,UAAI,WAAW,QAAQ,IAAI,GAAG;AAC5B,mBAAW,CAAC;AACZ,WAAG;AACD,wBAAc;AACd,0BAAgB;AAChB,gBAAM,mBAAmB,cAAc,QAAQ,CAAC;AAChD,cAAI;AACJ,cAAI,mBAAmB,IAAI;AACzB,+BAAmB,CAAC,CAAC,cAAc,QAAQ,CAAC,CAAC,CAAC;AAC9C,qBAAS,IAAI,IAAI,IAAI,kBAAkB,KAAK;AAC1C,oBAAM,SAAS;AACf,4BAAc,cAAc,QAAQ,WAAW;AAC/C,8BAAgB,cAAc,QAAQ,gBAAgB,SAAS,gBAAgB,CAAC;AAChF,oBAAM,aAAa,cAAc,QAAQ,CAAC;AAC1C,+BAAiB,KAAK,CAAC,YAAY,aAAa,aAAa,CAAC;AAAA,YAChE;AAAA,UACF,OAAO;AACL,+BAAmB,CAAC,CAAC,gBAAgB,CAAC;AAAA,UACxC;AACA,mBAAS,KAAK,gBAAgB;AAAA,QAChC,SAAS,WAAW,QAAQ,IAAI;AAAA,MAClC;AACA,YAAM,WAAW;AAEjB,aAAO,KAAK,KAAK;AACjB,YAAM,KAAK,KAAK;AAAA,IAClB;AAEA;AACA,WAAO,MAAM,OAAO;AAAA,EACtB,SAAS,OAAO,MAAM;AAEtB,SAAO;AACT;AAEO,SAAS,sBAAsB,QAAkC;AACtE,MAAI,OAAO,WAAW,EAAG,QAAO;AAEhC,QAAM,SAAS,IAAI,aAAa;AAEhC,WAAS,IAAI,GAAG,IAAI,OAAO,UAAU;AACnC,QAAI,uBAAuB,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;AAAA,EACrE;AAEA,SAAO,OAAO,MAAM;AACtB;AAEA,SAAS,uBACP,QACA,OACA,QACA,OASQ;AACR,QAAM,QAAQ,OAAO,KAAK;AAC1B,QAAM;AAAA,IACJ,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,MAAI,MAAM,CAAC,IAAI,WAAW;AACxB,gBAAY,QAAQ,MAAM,CAAC,GAAG,SAAS;AACvC,UAAM,CAAC,IAAI;AACX,UAAM,CAAC,IAAI;AAAA,EACb,WAAW,QAAQ,GAAG;AACpB,WAAO,MAAM,KAAK;AAAA,EACpB;AAEA,QAAM,CAAC,IAAI,cAAc,QAAQ,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC;AAEnD,QAAM,UACH,MAAM,WAAW,IAAI,IAAS,MAAM,WAAW,IAAS,MAAM,UAAU,IAAS;AACpF,gBAAc,QAAQ,QAAQ,CAAC;AAE/B,MAAI,MAAM,WAAW,GAAG;AACtB,UAAM,EAAE,GAAG,cAAc,GAAG,YAAY,IAAI;AAC5C,QAAI,iBAAiB,MAAM,CAAC,GAAG;AAC7B,YAAM,CAAC,IAAI;AAAA,IACb;AACA,UAAM,CAAC,IAAI,cAAc,QAAQ,cAAc,MAAM,CAAC,CAAC;AACvD,UAAM,CAAC,IAAI,cAAc,QAAQ,aAAa,MAAM,CAAC,CAAC;AAAA,EACxD;AAEA,MAAI,UAAU;AACZ,UAAM,EAAE,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,IAAI,MAAM;AAC9D,QAAI,iBAAiB,MAAM,CAAC,GAAG;AAC7B,YAAM,CAAC,IAAI;AACX,YAAM,CAAC,IAAI;AAAA,IACb,WAAW,aAAa,MAAM,CAAC,GAAG;AAChC,YAAM,CAAC,IAAI;AAAA,IACb;AACA,UAAM,CAAC,IAAI,cAAc,QAAQ,cAAc,MAAM,CAAC,CAAC;AACvD,UAAM,CAAC,IAAI,cAAc,QAAQ,UAAU,MAAM,CAAC,CAAC;AACnD,UAAM,CAAC,IAAI,cAAc,QAAQ,YAAY,MAAM,CAAC,CAAC;AAAA,EACvD;AAEA,MAAI,UAAU;AACZ,eAAW,WAAW,UAAU;AAC9B,UAAI,QAAQ,SAAS,EAAG,eAAc,QAAQ,CAAC,QAAQ,QAAQ,CAAC;AAChE,YAAM,aAAa,QAAQ,CAAC,EAAE,CAAC;AAC/B,oBAAc,QAAQ,YAAY,CAAC;AACnC,UAAI,mBAAmB;AACvB,UAAI,qBAAqB;AACzB,eAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;AACvC,cAAM,WAAW,QAAQ,CAAC;AAC1B,2BAAmB,cAAc,QAAQ,SAAS,CAAC,GAAI,gBAAgB;AACvE,6BAAqB,cAAc,QAAQ,SAAS,CAAC,GAAI,kBAAkB;AAC3E,sBAAc,QAAQ,SAAS,CAAC,GAAI,CAAC;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AAEA,OAAK,SAAS,QAAQ,OAAO,UAAU;AACrC,UAAM,OAAO,OAAO,KAAK;AACzB,UAAM,EAAE,GAAG,GAAG,GAAG,EAAE,IAAI;AACvB,QAAI,IAAI,WAAY,MAAM,WAAW,KAAK,WAAY;AACpD;AAAA,IACF;AACA,YAAQ,uBAAuB,QAAQ,OAAO,QAAQ,KAAK;AAAA,EAC7D;AAEA,MAAI,MAAM,CAAC,IAAI,SAAS;AACtB,gBAAY,QAAQ,MAAM,CAAC,GAAG,OAAO;AACrC,UAAM,CAAC,IAAI;AACX,UAAM,CAAC,IAAI;AAAA,EACb,OAAO;AACL,WAAO,MAAM,KAAK;AAAA,EACpB;AACA,QAAM,CAAC,IAAI,cAAc,QAAQ,WAAW,MAAM,CAAC,CAAC;AAEpD,SAAO;AACT;AAEA,SAAS,YAAY,QAAsB,UAAkB,MAAc;AACzE,KAAG;AACD,WAAO,MAAM,SAAS;AAAA,EACxB,SAAS,EAAE,WAAW;AACxB;;;AHtUO,SAAS,OAAO,UAAqC;AAC1D,QAAM,EAAE,OAAO,IAAI;AACnB,QAAM,SAAS,IAAI,aAAa,QAAQ;AACxC,QAAM,UAA6B,CAAC;AACpC,MAAI,YAAY;AAChB,MAAI,eAAe;AACnB,MAAI,aAAa;AACjB,MAAI,eAAe;AACnB,MAAI,aAAa;AAEjB,KAAG;AACD,UAAM,OAAO,OAAO,QAAQ,GAAG;AAC/B,UAAM,OAAsB,CAAC;AAC7B,QAAI,SAAS;AACb,QAAI,UAAU;AACd,gBAAY;AAEZ,WAAO,OAAO,MAAM,MAAM;AACxB,UAAI;AAEJ,kBAAY,cAAc,QAAQ,SAAS;AAC3C,UAAI,YAAY,QAAS,UAAS;AAClC,gBAAU;AAEV,UAAI,WAAW,QAAQ,IAAI,GAAG;AAC5B,uBAAe,cAAc,QAAQ,YAAY;AACjD,qBAAa,cAAc,QAAQ,UAAU;AAC7C,uBAAe,cAAc,QAAQ,YAAY;AAEjD,YAAI,WAAW,QAAQ,IAAI,GAAG;AAC5B,uBAAa,cAAc,QAAQ,UAAU;AAC7C,gBAAM,CAAC,WAAW,cAAc,YAAY,cAAc,UAAU;AAAA,QACtE,OAAO;AACL,gBAAM,CAAC,WAAW,cAAc,YAAY,YAAY;AAAA,QAC1D;AAAA,MACF,OAAO;AACL,cAAM,CAAC,SAAS;AAAA,MAClB;AAEA,WAAK,KAAK,GAAG;AACb,aAAO;AAAA,IACT;AAEA,QAAI,CAAC,OAAQ,MAAK,IAAI;AACtB,YAAQ,KAAK,IAAI;AACjB,WAAO,MAAM,OAAO;AAAA,EACtB,SAAS,OAAO,OAAO;AAEvB,SAAO;AACT;AAEA,SAAS,KAAK,MAA0B;AACtC,OAAK,KAAK,cAAc;AAC1B;AAEA,SAAS,eAAe,GAAqB,GAA6B;AACxE,SAAO,EAAE,CAAC,IAAI,EAAE,CAAC;AACnB;AAIO,SAAS,OAAO,SAA8C;AACnE,QAAM,SAAS,IAAI,aAAa;AAChC,MAAI,eAAe;AACnB,MAAI,aAAa;AACjB,MAAI,eAAe;AACnB,MAAI,aAAa;AAEjB,WAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;AACvC,UAAM,OAAO,QAAQ,CAAC;AACtB,QAAI,IAAI,EAAG,QAAO,MAAM,SAAS;AACjC,QAAI,KAAK,WAAW,EAAG;AAEvB,QAAI,YAAY;AAEhB,aAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,YAAM,UAAU,KAAK,CAAC;AACtB,UAAI,IAAI,EAAG,QAAO,MAAM,KAAK;AAE7B,kBAAY,cAAc,QAAQ,QAAQ,CAAC,GAAG,SAAS;AAEvD,UAAI,QAAQ,WAAW,EAAG;AAC1B,qBAAe,cAAc,QAAQ,QAAQ,CAAC,GAAG,YAAY;AAC7D,mBAAa,cAAc,QAAQ,QAAQ,CAAC,GAAG,UAAU;AACzD,qBAAe,cAAc,QAAQ,QAAQ,CAAC,GAAG,YAAY;AAE7D,UAAI,QAAQ,WAAW,EAAG;AAC1B,mBAAa,cAAc,QAAQ,QAAQ,CAAC,GAAG,UAAU;AAAA,IAC3D;AAAA,EACF;AAEA,SAAO,OAAO,MAAM;AACtB;", - "names": [] -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/package.json b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/package.json deleted file mode 100644 index da55137..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@jridgewell/sourcemap-codec", - "version": "1.5.5", - "description": "Encode/decode sourcemap mappings", - "keywords": [ - "sourcemap", - "vlq" - ], - "main": "dist/sourcemap-codec.umd.js", - "module": "dist/sourcemap-codec.mjs", - "types": "types/sourcemap-codec.d.cts", - "files": [ - "dist", - "src", - "types" - ], - "exports": { - ".": [ - { - "import": { - "types": "./types/sourcemap-codec.d.mts", - "default": "./dist/sourcemap-codec.mjs" - }, - "default": { - "types": "./types/sourcemap-codec.d.cts", - "default": "./dist/sourcemap-codec.umd.js" - } - }, - "./dist/sourcemap-codec.umd.js" - ], - "./package.json": "./package.json" - }, - "scripts": { - "benchmark": "run-s build:code benchmark:*", - "benchmark:install": "cd benchmark && npm install", - "benchmark:only": "node --expose-gc benchmark/index.js", - "build": "run-s -n build:code build:types", - "build:code": "node ../../esbuild.mjs sourcemap-codec.ts", - "build:types": "run-s build:types:force build:types:emit build:types:mts", - "build:types:force": "rimraf tsconfig.build.tsbuildinfo", - "build:types:emit": "tsc --project tsconfig.build.json", - "build:types:mts": "node ../../mts-types.mjs", - "clean": "run-s -n clean:code clean:types", - "clean:code": "tsc --build --clean tsconfig.build.json", - "clean:types": "rimraf dist types", - "test": "run-s -n test:types test:only test:format", - "test:format": "prettier --check '{src,test}/**/*.ts'", - "test:only": "mocha", - "test:types": "eslint '{src,test}/**/*.ts'", - "lint": "run-s -n lint:types lint:format", - "lint:format": "npm run test:format -- --write", - "lint:types": "npm run test:types -- --fix", - "prepublishOnly": "npm run-s -n build test" - }, - "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/sourcemap-codec", - "repository": { - "type": "git", - "url": "git+https://github.com/jridgewell/sourcemaps.git", - "directory": "packages/sourcemap-codec" - }, - "author": "Justin Ridgewell ", - "license": "MIT" -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts deleted file mode 100644 index d194c2f..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +++ /dev/null @@ -1,345 +0,0 @@ -import { StringReader, StringWriter } from './strings'; -import { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq'; - -const EMPTY: any[] = []; - -type Line = number; -type Column = number; -type Kind = number; -type Name = number; -type Var = number; -type SourcesIndex = number; -type ScopesIndex = number; - -type Mix = (A & O) | (B & O); - -export type OriginalScope = Mix< - [Line, Column, Line, Column, Kind], - [Line, Column, Line, Column, Kind, Name], - { vars: Var[] } ->; - -export type GeneratedRange = Mix< - [Line, Column, Line, Column], - [Line, Column, Line, Column, SourcesIndex, ScopesIndex], - { - callsite: CallSite | null; - bindings: Binding[]; - isScope: boolean; - } ->; -export type CallSite = [SourcesIndex, Line, Column]; -type Binding = BindingExpressionRange[]; -export type BindingExpressionRange = [Name] | [Name, Line, Column]; - -export function decodeOriginalScopes(input: string): OriginalScope[] { - const { length } = input; - const reader = new StringReader(input); - const scopes: OriginalScope[] = []; - const stack: OriginalScope[] = []; - let line = 0; - - for (; reader.pos < length; reader.pos++) { - line = decodeInteger(reader, line); - const column = decodeInteger(reader, 0); - - if (!hasMoreVlq(reader, length)) { - const last = stack.pop()!; - last[2] = line; - last[3] = column; - continue; - } - - const kind = decodeInteger(reader, 0); - const fields = decodeInteger(reader, 0); - const hasName = fields & 0b0001; - - const scope: OriginalScope = ( - hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind] - ) as OriginalScope; - - let vars: Var[] = EMPTY; - if (hasMoreVlq(reader, length)) { - vars = []; - do { - const varsIndex = decodeInteger(reader, 0); - vars.push(varsIndex); - } while (hasMoreVlq(reader, length)); - } - scope.vars = vars; - - scopes.push(scope); - stack.push(scope); - } - - return scopes; -} - -export function encodeOriginalScopes(scopes: OriginalScope[]): string { - const writer = new StringWriter(); - - for (let i = 0; i < scopes.length; ) { - i = _encodeOriginalScopes(scopes, i, writer, [0]); - } - - return writer.flush(); -} - -function _encodeOriginalScopes( - scopes: OriginalScope[], - index: number, - writer: StringWriter, - state: [ - number, // GenColumn - ], -): number { - const scope = scopes[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope; - - if (index > 0) writer.write(comma); - - state[0] = encodeInteger(writer, startLine, state[0]); - encodeInteger(writer, startColumn, 0); - encodeInteger(writer, kind, 0); - - const fields = scope.length === 6 ? 0b0001 : 0; - encodeInteger(writer, fields, 0); - if (scope.length === 6) encodeInteger(writer, scope[5], 0); - - for (const v of vars) { - encodeInteger(writer, v, 0); - } - - for (index++; index < scopes.length; ) { - const next = scopes[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeOriginalScopes(scopes, index, writer, state); - } - - writer.write(comma); - state[0] = encodeInteger(writer, endLine, state[0]); - encodeInteger(writer, endColumn, 0); - - return index; -} - -export function decodeGeneratedRanges(input: string): GeneratedRange[] { - const { length } = input; - const reader = new StringReader(input); - const ranges: GeneratedRange[] = []; - const stack: GeneratedRange[] = []; - - let genLine = 0; - let definitionSourcesIndex = 0; - let definitionScopeIndex = 0; - let callsiteSourcesIndex = 0; - let callsiteLine = 0; - let callsiteColumn = 0; - let bindingLine = 0; - let bindingColumn = 0; - - do { - const semi = reader.indexOf(';'); - let genColumn = 0; - - for (; reader.pos < semi; reader.pos++) { - genColumn = decodeInteger(reader, genColumn); - - if (!hasMoreVlq(reader, semi)) { - const last = stack.pop()!; - last[2] = genLine; - last[3] = genColumn; - continue; - } - - const fields = decodeInteger(reader, 0); - const hasDefinition = fields & 0b0001; - const hasCallsite = fields & 0b0010; - const hasScope = fields & 0b0100; - - let callsite: CallSite | null = null; - let bindings: Binding[] = EMPTY; - let range: GeneratedRange; - if (hasDefinition) { - const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex); - definitionScopeIndex = decodeInteger( - reader, - definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0, - ); - - definitionSourcesIndex = defSourcesIndex; - range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex] as GeneratedRange; - } else { - range = [genLine, genColumn, 0, 0] as GeneratedRange; - } - - range.isScope = !!hasScope; - - if (hasCallsite) { - const prevCsi = callsiteSourcesIndex; - const prevLine = callsiteLine; - callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex); - const sameSource = prevCsi === callsiteSourcesIndex; - callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0); - callsiteColumn = decodeInteger( - reader, - sameSource && prevLine === callsiteLine ? callsiteColumn : 0, - ); - - callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn]; - } - range.callsite = callsite; - - if (hasMoreVlq(reader, semi)) { - bindings = []; - do { - bindingLine = genLine; - bindingColumn = genColumn; - const expressionsCount = decodeInteger(reader, 0); - let expressionRanges: BindingExpressionRange[]; - if (expressionsCount < -1) { - expressionRanges = [[decodeInteger(reader, 0)]]; - for (let i = -1; i > expressionsCount; i--) { - const prevBl = bindingLine; - bindingLine = decodeInteger(reader, bindingLine); - bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0); - const expression = decodeInteger(reader, 0); - expressionRanges.push([expression, bindingLine, bindingColumn]); - } - } else { - expressionRanges = [[expressionsCount]]; - } - bindings.push(expressionRanges); - } while (hasMoreVlq(reader, semi)); - } - range.bindings = bindings; - - ranges.push(range); - stack.push(range); - } - - genLine++; - reader.pos = semi + 1; - } while (reader.pos < length); - - return ranges; -} - -export function encodeGeneratedRanges(ranges: GeneratedRange[]): string { - if (ranges.length === 0) return ''; - - const writer = new StringWriter(); - - for (let i = 0; i < ranges.length; ) { - i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]); - } - - return writer.flush(); -} - -function _encodeGeneratedRanges( - ranges: GeneratedRange[], - index: number, - writer: StringWriter, - state: [ - number, // GenLine - number, // GenColumn - number, // DefSourcesIndex - number, // DefScopesIndex - number, // CallSourcesIndex - number, // CallLine - number, // CallColumn - ], -): number { - const range = ranges[index]; - const { - 0: startLine, - 1: startColumn, - 2: endLine, - 3: endColumn, - isScope, - callsite, - bindings, - } = range; - - if (state[0] < startLine) { - catchupLine(writer, state[0], startLine); - state[0] = startLine; - state[1] = 0; - } else if (index > 0) { - writer.write(comma); - } - - state[1] = encodeInteger(writer, range[1], state[1]); - - const fields = - (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0); - encodeInteger(writer, fields, 0); - - if (range.length === 6) { - const { 4: sourcesIndex, 5: scopesIndex } = range; - if (sourcesIndex !== state[2]) { - state[3] = 0; - } - state[2] = encodeInteger(writer, sourcesIndex, state[2]); - state[3] = encodeInteger(writer, scopesIndex, state[3]); - } - - if (callsite) { - const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite!; - if (sourcesIndex !== state[4]) { - state[5] = 0; - state[6] = 0; - } else if (callLine !== state[5]) { - state[6] = 0; - } - state[4] = encodeInteger(writer, sourcesIndex, state[4]); - state[5] = encodeInteger(writer, callLine, state[5]); - state[6] = encodeInteger(writer, callColumn, state[6]); - } - - if (bindings) { - for (const binding of bindings) { - if (binding.length > 1) encodeInteger(writer, -binding.length, 0); - const expression = binding[0][0]; - encodeInteger(writer, expression, 0); - let bindingStartLine = startLine; - let bindingStartColumn = startColumn; - for (let i = 1; i < binding.length; i++) { - const expRange = binding[i]; - bindingStartLine = encodeInteger(writer, expRange[1]!, bindingStartLine); - bindingStartColumn = encodeInteger(writer, expRange[2]!, bindingStartColumn); - encodeInteger(writer, expRange[0]!, 0); - } - } - } - - for (index++; index < ranges.length; ) { - const next = ranges[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeGeneratedRanges(ranges, index, writer, state); - } - - if (state[0] < endLine) { - catchupLine(writer, state[0], endLine); - state[0] = endLine; - state[1] = 0; - } else { - writer.write(comma); - } - state[1] = encodeInteger(writer, endColumn, state[1]); - - return index; -} - -function catchupLine(writer: StringWriter, lastLine: number, line: number) { - do { - writer.write(semicolon); - } while (++lastLine < line); -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts deleted file mode 100644 index a81f894..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq'; -import { StringWriter, StringReader } from './strings'; - -export { - decodeOriginalScopes, - encodeOriginalScopes, - decodeGeneratedRanges, - encodeGeneratedRanges, -} from './scopes'; -export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes'; - -export type SourceMapSegment = - | [number] - | [number, number, number, number] - | [number, number, number, number, number]; -export type SourceMapLine = SourceMapSegment[]; -export type SourceMapMappings = SourceMapLine[]; - -export function decode(mappings: string): SourceMapMappings { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded: SourceMapMappings = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - - do { - const semi = reader.indexOf(';'); - const line: SourceMapLine = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - - while (reader.pos < semi) { - let seg: SourceMapSegment; - - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) sorted = false; - lastCol = genColumn; - - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]; - } else { - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]; - } - } else { - seg = [genColumn]; - } - - line.push(seg); - reader.pos++; - } - - if (!sorted) sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - - return decoded; -} - -function sort(line: SourceMapSegment[]) { - line.sort(sortComparator); -} - -function sortComparator(a: SourceMapSegment, b: SourceMapSegment): number { - return a[0] - b[0]; -} - -export function encode(decoded: SourceMapMappings): string; -export function encode(decoded: Readonly): string; -export function encode(decoded: Readonly): string { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) writer.write(semicolon); - if (line.length === 0) continue; - - let genColumn = 0; - - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) writer.write(comma); - - genColumn = encodeInteger(writer, segment[0], genColumn); - - if (segment.length === 1) continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - - if (segment.length === 4) continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - - return writer.flush(); -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/strings.ts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/strings.ts deleted file mode 100644 index d161965..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +++ /dev/null @@ -1,65 +0,0 @@ -const bufLength = 1024 * 16; - -// Provide a fallback for older environments. -const td = - typeof TextDecoder !== 'undefined' - ? /* #__PURE__ */ new TextDecoder() - : typeof Buffer !== 'undefined' - ? { - decode(buf: Uint8Array): string { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - }, - } - : { - decode(buf: Uint8Array): string { - let out = ''; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - }, - }; - -export class StringWriter { - pos = 0; - private out = ''; - private buffer = new Uint8Array(bufLength); - - write(v: number): void { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - - flush(): string { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } -} - -export class StringReader { - pos = 0; - declare private buffer: string; - - constructor(buffer: string) { - this.buffer = buffer; - } - - next(): number { - return this.buffer.charCodeAt(this.pos++); - } - - peek(): number { - return this.buffer.charCodeAt(this.pos); - } - - indexOf(char: string): number { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts deleted file mode 100644 index a42c681..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type { StringReader, StringWriter } from './strings'; - -export const comma = ','.charCodeAt(0); -export const semicolon = ';'.charCodeAt(0); - -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII - -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} - -export function decodeInteger(reader: StringReader, relative: number): number { - let value = 0; - let shift = 0; - let integer = 0; - - do { - const c = reader.next(); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - - const shouldNegate = value & 1; - value >>>= 1; - - if (shouldNegate) { - value = -0x80000000 | -value; - } - - return relative + value; -} - -export function encodeInteger(builder: StringWriter, num: number, relative: number): number { - let delta = num - relative; - - delta = delta < 0 ? (-delta << 1) | 1 : delta << 1; - do { - let clamped = delta & 0b011111; - delta >>>= 5; - if (delta > 0) clamped |= 0b100000; - builder.write(intToChar[clamped]); - } while (delta > 0); - - return num; -} - -export function hasMoreVlq(reader: StringReader, max: number) { - if (reader.pos >= max) return false; - return reader.peek() !== comma; -} diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts deleted file mode 100644 index c583c75..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +++ /dev/null @@ -1,50 +0,0 @@ -type Line = number; -type Column = number; -type Kind = number; -type Name = number; -type Var = number; -type SourcesIndex = number; -type ScopesIndex = number; -type Mix = (A & O) | (B & O); -export type OriginalScope = Mix<[ - Line, - Column, - Line, - Column, - Kind -], [ - Line, - Column, - Line, - Column, - Kind, - Name -], { - vars: Var[]; -}>; -export type GeneratedRange = Mix<[ - Line, - Column, - Line, - Column -], [ - Line, - Column, - Line, - Column, - SourcesIndex, - ScopesIndex -], { - callsite: CallSite | null; - bindings: Binding[]; - isScope: boolean; -}>; -export type CallSite = [SourcesIndex, Line, Column]; -type Binding = BindingExpressionRange[]; -export type BindingExpressionRange = [Name] | [Name, Line, Column]; -export declare function decodeOriginalScopes(input: string): OriginalScope[]; -export declare function encodeOriginalScopes(scopes: OriginalScope[]): string; -export declare function decodeGeneratedRanges(input: string): GeneratedRange[]; -export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string; -export {}; -//# sourceMappingURL=scopes.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map deleted file mode 100644 index 630e647..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAKA,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,GAAG,GAAG,MAAM,CAAC;AAClB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,GAAG,CAC7B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;CAAC,EAClC;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,IAAI;CAAC,EACxC;IAAE,IAAI,EAAE,GAAG,EAAE,CAAA;CAAE,CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;CAAC,EAC5B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,YAAY;IAAE,WAAW;CAAC,EACvD;IACE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CACF,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,KAAK,OAAO,GAAG,sBAAsB,EAAE,CAAC;AACxC,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAyCnE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAQpE;AA2CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAoGrE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAUtE"} \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts deleted file mode 100644 index c583c75..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +++ /dev/null @@ -1,50 +0,0 @@ -type Line = number; -type Column = number; -type Kind = number; -type Name = number; -type Var = number; -type SourcesIndex = number; -type ScopesIndex = number; -type Mix = (A & O) | (B & O); -export type OriginalScope = Mix<[ - Line, - Column, - Line, - Column, - Kind -], [ - Line, - Column, - Line, - Column, - Kind, - Name -], { - vars: Var[]; -}>; -export type GeneratedRange = Mix<[ - Line, - Column, - Line, - Column -], [ - Line, - Column, - Line, - Column, - SourcesIndex, - ScopesIndex -], { - callsite: CallSite | null; - bindings: Binding[]; - isScope: boolean; -}>; -export type CallSite = [SourcesIndex, Line, Column]; -type Binding = BindingExpressionRange[]; -export type BindingExpressionRange = [Name] | [Name, Line, Column]; -export declare function decodeOriginalScopes(input: string): OriginalScope[]; -export declare function encodeOriginalScopes(scopes: OriginalScope[]): string; -export declare function decodeGeneratedRanges(input: string): GeneratedRange[]; -export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string; -export {}; -//# sourceMappingURL=scopes.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map deleted file mode 100644 index 630e647..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAKA,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,GAAG,GAAG,MAAM,CAAC;AAClB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,GAAG,CAC7B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;CAAC,EAClC;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,IAAI;CAAC,EACxC;IAAE,IAAI,EAAE,GAAG,EAAE,CAAA;CAAE,CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;CAAC,EAC5B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,YAAY;IAAE,WAAW;CAAC,EACvD;IACE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CACF,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,KAAK,OAAO,GAAG,sBAAsB,EAAE,CAAC;AACxC,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAyCnE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAQpE;AA2CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAoGrE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAUtE"} \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts deleted file mode 100644 index 5f35e22..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +++ /dev/null @@ -1,9 +0,0 @@ -export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes.cts'; -export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes.cts'; -export type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; -export type SourceMapLine = SourceMapSegment[]; -export type SourceMapMappings = SourceMapLine[]; -export declare function decode(mappings: string): SourceMapMappings; -export declare function encode(decoded: SourceMapMappings): string; -export declare function encode(decoded: Readonly): string; -//# sourceMappingURL=sourcemap-codec.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map deleted file mode 100644 index 7123d52..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhG,MAAM,MAAM,gBAAgB,GACxB,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEhD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAiD1D;AAUD,wBAAgB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC;AAC3D,wBAAgB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts deleted file mode 100644 index 199fb9f..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +++ /dev/null @@ -1,9 +0,0 @@ -export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes.mts'; -export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes.mts'; -export type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; -export type SourceMapLine = SourceMapSegment[]; -export type SourceMapMappings = SourceMapLine[]; -export declare function decode(mappings: string): SourceMapMappings; -export declare function encode(decoded: SourceMapMappings): string; -export declare function encode(decoded: Readonly): string; -//# sourceMappingURL=sourcemap-codec.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map deleted file mode 100644 index 7123d52..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhG,MAAM,MAAM,gBAAgB,GACxB,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEhD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAiD1D;AAUD,wBAAgB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC;AAC3D,wBAAgB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts deleted file mode 100644 index 62faceb..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +++ /dev/null @@ -1,16 +0,0 @@ -export declare class StringWriter { - pos: number; - private out; - private buffer; - write(v: number): void; - flush(): string; -} -export declare class StringReader { - pos: number; - private buffer; - constructor(buffer: string); - next(): number; - peek(): number; - indexOf(char: string): number; -} -//# sourceMappingURL=strings.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map deleted file mode 100644 index d3602da..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":"AAuBA,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,MAAM,CAA6B;IAE3C,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAStB,KAAK,IAAI,MAAM;CAIhB;AAED,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,QAAgB,MAAM,CAAS;gBAEnB,MAAM,EAAE,MAAM;IAI1B,IAAI,IAAI,MAAM;IAId,IAAI,IAAI,MAAM;IAId,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAK9B"} \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts deleted file mode 100644 index 62faceb..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +++ /dev/null @@ -1,16 +0,0 @@ -export declare class StringWriter { - pos: number; - private out; - private buffer; - write(v: number): void; - flush(): string; -} -export declare class StringReader { - pos: number; - private buffer; - constructor(buffer: string); - next(): number; - peek(): number; - indexOf(char: string): number; -} -//# sourceMappingURL=strings.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map deleted file mode 100644 index d3602da..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":"AAuBA,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,MAAM,CAA6B;IAE3C,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAStB,KAAK,IAAI,MAAM;CAIhB;AAED,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,QAAgB,MAAM,CAAS;gBAEnB,MAAM,EAAE,MAAM;IAI1B,IAAI,IAAI,MAAM;IAId,IAAI,IAAI,MAAM;IAId,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAK9B"} \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts deleted file mode 100644 index dbd6602..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +++ /dev/null @@ -1,7 +0,0 @@ -import type { StringReader, StringWriter } from './strings.cts'; -export declare const comma: number; -export declare const semicolon: number; -export declare function decodeInteger(reader: StringReader, relative: number): number; -export declare function encodeInteger(builder: StringWriter, num: number, relative: number): number; -export declare function hasMoreVlq(reader: StringReader, max: number): boolean; -//# sourceMappingURL=vlq.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map deleted file mode 100644 index 6fdc356..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAoB5E;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAY1F;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,WAG3D"} \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts deleted file mode 100644 index 2c739bc..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +++ /dev/null @@ -1,7 +0,0 @@ -import type { StringReader, StringWriter } from './strings.mts'; -export declare const comma: number; -export declare const semicolon: number; -export declare function decodeInteger(reader: StringReader, relative: number): number; -export declare function encodeInteger(builder: StringWriter, num: number, relative: number): number; -export declare function hasMoreVlq(reader: StringReader, max: number): boolean; -//# sourceMappingURL=vlq.d.ts.map \ No newline at end of file diff --git a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map b/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map deleted file mode 100644 index 6fdc356..0000000 --- a/node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAoB5E;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAY1F;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,WAG3D"} \ No newline at end of file diff --git a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.js b/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.js deleted file mode 100644 index a945343..0000000 --- a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.js +++ /dev/null @@ -1,49 +0,0 @@ -const qs = require('querystring'); - -/** - * @typedef ParsedURL - * @type {import('.').ParsedURL} - */ - -/** - * @typedef Request - * @property {string} url - * @property {ParsedURL} _parsedUrl - */ - -/** - * @param {Request} req - * @returns {ParsedURL|void} - */ -function parse(req) { - let raw = req.url; - if (raw == null) return; - - let prev = req._parsedUrl; - if (prev && prev.raw === raw) return prev; - - let pathname=raw, search='', query, hash; - - if (raw.length > 1) { - let idx = raw.indexOf('#', 1); - - if (idx !== -1) { - hash = raw.substring(idx); - pathname = raw.substring(0, idx); - } - - idx = pathname.indexOf('?', 1); - - if (idx !== -1) { - search = pathname.substring(idx); - pathname = pathname.substring(0, idx); - if (search.length > 1) { - query = qs.parse(search.substring(1)); - } - } - } - - return req._parsedUrl = { pathname, search, query, hash, raw }; -} - -exports.parse = parse; \ No newline at end of file diff --git a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.mjs b/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.mjs deleted file mode 100644 index 48ccfaa..0000000 --- a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.mjs +++ /dev/null @@ -1,47 +0,0 @@ -import * as qs from 'node:querystring'; - -/** - * @typedef ParsedURL - * @type {import('.').ParsedURL} - */ - -/** - * @typedef Request - * @property {string} url - * @property {ParsedURL} _parsedUrl - */ - -/** - * @param {Request} req - * @returns {ParsedURL|void} - */ -export function parse(req) { - let raw = req.url; - if (raw == null) return; - - let prev = req._parsedUrl; - if (prev && prev.raw === raw) return prev; - - let pathname=raw, search='', query, hash; - - if (raw.length > 1) { - let idx = raw.indexOf('#', 1); - - if (idx !== -1) { - hash = raw.substring(idx); - pathname = raw.substring(0, idx); - } - - idx = pathname.indexOf('?', 1); - - if (idx !== -1) { - search = pathname.substring(idx); - pathname = pathname.substring(0, idx); - if (search.length > 1) { - query = qs.parse(search.substring(1)); - } - } - } - - return req._parsedUrl = { pathname, search, query, hash, raw }; -} diff --git a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/index.d.ts b/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/index.d.ts deleted file mode 100644 index 46ecac2..0000000 --- a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { IncomingMessage } from 'http'; - -export interface ParsedURL { - pathname: string; - search: string; - query: Record | undefined; - hash: string | undefined; - raw: string; -} - -export function parse(req: IncomingMessage): ParsedURL; diff --git a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/package.json b/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/package.json deleted file mode 100644 index d594ee7..0000000 --- a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "version": "1.0.0-next.29", - "name": "@polka/url", - "repository": "lukeed/polka", - "description": "Super fast, memoized `req.url` parser", - "module": "build.mjs", - "types": "index.d.ts", - "main": "build.js", - "license": "MIT", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./build.mjs", - "require": "./build.js" - }, - "./package.json": "./package.json" - }, - "files": [ - "build.*", - "index.d.*" - ], - "author": { - "name": "Luke Edwards", - "email": "luke@lukeed.com", - "url": "https://lukeed.com" - }, - "publishConfig": { - "access": "public" - } -} \ No newline at end of file diff --git a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/readme.md b/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/readme.md deleted file mode 100644 index e47645c..0000000 --- a/node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/readme.md +++ /dev/null @@ -1,68 +0,0 @@ -# @polka/url [![npm](https://badgen.now.sh/npm/v/@polka/url)](https://npmjs.org/package/@polka/url) [![licenses](https://licenses.dev/b/npm/%40polka%2Furl)](https://licenses.dev/npm/%40polka%2Furl) - -> Super fast, memoized `req.url` parser; _not_ limited to [Polka][polka]! - -Parses the `url` from a [`IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) request. The returned object will always only contain the following keys: `search`, `query`, `pathname`, and `raw`. - -> **Note:** This library does not process `protocol`, `hostname`, `port`, etc.
This is because the incoming `req.url` value only begins with the path information. - -Parsed requests will be mutated with a `_parsedUrl` key, containing the returned output. This is used for future memoization, avoiding the need to fully parse the same `url` value multiple times. - -## Install - -``` -$ npm install --save @polka/url -``` - -## Usage - -```js -const parse = require('@polka/url'); - -let req = { - url: '/foo/bar?fizz=buzz' -}; -let output = parse(req); -//=> { -//=> pathname: '/foo/bar', -//=> raw: '/foo/bar?fizz=buzz', -//=> search: '?fizz=buzz', -//=> query: { -//=> fizz: 'buzz' -//=> }, -//=> } - -// Attaches result for future memoization -assert.deepEqual(output, req._parsedUrl); //=> true -``` - -## API - -### url(req) -Returns: `Object` or `undefined` - -> **Important:** The `req` must have a `url` key, otherwise `undefined` will be returned.
If no input is provided at all, a `TypeError` will be thrown. - -#### req -Type: `IncomingMessage` or `{ url: string }` - -The incoming HTTP request (`req`) or a plain `Object` with a `url` key. - -> **Note:** In Node.js servers, the [`req.url`](https://nodejs.org/api/http.html#http_message_url) begins with a pathname & does not include a `hash`. - - -## Benchmarks - -Check out the [`bench`](/bench) directory for in-depth benchmark results and comparisons. - - -## Support - -Any issues or questions can be sent to the [Polka][polka] repository.
However, please specify that your inquiry is about `@polka/url` specifically. - - -## License - -MIT © [Luke Edwards](https://lukeed.com) - -[polka]: https://github.com/lukeed/polka diff --git a/node_modules/.pnpm/@rollup+rollup-darwin-arm64@4.57.1/node_modules/@rollup/rollup-darwin-arm64/README.md b/node_modules/.pnpm/@rollup+rollup-darwin-arm64@4.57.1/node_modules/@rollup/rollup-darwin-arm64/README.md deleted file mode 100644 index c29619c..0000000 --- a/node_modules/.pnpm/@rollup+rollup-darwin-arm64@4.57.1/node_modules/@rollup/rollup-darwin-arm64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@rollup/rollup-darwin-arm64` - -This is the **aarch64-apple-darwin** binary for `rollup` diff --git a/node_modules/.pnpm/@rollup+rollup-darwin-arm64@4.57.1/node_modules/@rollup/rollup-darwin-arm64/package.json b/node_modules/.pnpm/@rollup+rollup-darwin-arm64@4.57.1/node_modules/@rollup/rollup-darwin-arm64/package.json deleted file mode 100644 index a289e87..0000000 --- a/node_modules/.pnpm/@rollup+rollup-darwin-arm64@4.57.1/node_modules/@rollup/rollup-darwin-arm64/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@rollup/rollup-darwin-arm64", - "version": "4.57.1", - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ], - "files": [ - "rollup.darwin-arm64.node" - ], - "description": "Native bindings for Rollup", - "author": "Lukas Taegert-Atkinson", - "homepage": "https://rollupjs.org/", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/rollup/rollup.git" - }, - "main": "./rollup.darwin-arm64.node" -} \ No newline at end of file diff --git a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/LICENSE b/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/LICENSE deleted file mode 100644 index ea54e0d..0000000 --- a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Colin McDonnell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/README.md b/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/README.md deleted file mode 100644 index f9813ff..0000000 --- a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/README.md +++ /dev/null @@ -1,198 +0,0 @@ -

- Standard Schema fire logo -
- Standard Schema

-

- A family of specs for interoperable TypeScript -
- standardschema.dev -

-
- - - -The Standard Schema project is a set of interfaces that standardize the provision and consumption of shared functionality in the TypeScript ecosystem. - -Its goal is to allow tools to accept a single input that includes all the types and capabilities they need— no library-specific adapters, no extra dependencies. The result is an ecosystem that's fair for implementers, friendly for consumers, and open for end users. - -## The specifications - -The specifications can be found below in their entirety. Libraries wishing to implement a spec can copy/paste the code block below into their codebase. They're also available at `@standard-schema/spec` on [npm](https://www.npmjs.com/package/@standard-schema/spec) and [JSR](https://jsr.io/@standard-schema/spec). - -```ts -// ######################### -// ### Standard Typed ### -// ######################### - -/** The Standard Typed interface. This is a base type extended by other specs. */ -export interface StandardTypedV1 { - /** The Standard properties. */ - readonly "~standard": StandardTypedV1.Props; -} - -export declare namespace StandardTypedV1 { - /** The Standard Typed properties interface. */ - export interface Props { - /** The version number of the standard. */ - readonly version: 1; - /** The vendor name of the schema library. */ - readonly vendor: string; - /** Inferred types associated with the schema. */ - readonly types?: Types | undefined; - } - - /** The Standard Typed types interface. */ - export interface Types { - /** The input type of the schema. */ - readonly input: Input; - /** The output type of the schema. */ - readonly output: Output; - } - - /** Infers the input type of a Standard Typed. */ - export type InferInput = NonNullable< - Schema["~standard"]["types"] - >["input"]; - - /** Infers the output type of a Standard Typed. */ - export type InferOutput = NonNullable< - Schema["~standard"]["types"] - >["output"]; -} - -// ########################## -// ### Standard Schema ### -// ########################## - -/** The Standard Schema interface. */ -export interface StandardSchemaV1 { - /** The Standard Schema properties. */ - readonly "~standard": StandardSchemaV1.Props; -} - -export declare namespace StandardSchemaV1 { - /** The Standard Schema properties interface. */ - export interface Props - extends StandardTypedV1.Props { - /** Validates unknown input values. */ - readonly validate: ( - value: unknown, - options?: StandardSchemaV1.Options | undefined - ) => Result | Promise>; - } - - /** The result interface of the validate function. */ - export type Result = SuccessResult | FailureResult; - - /** The result interface if validation succeeds. */ - export interface SuccessResult { - /** The typed output value. */ - readonly value: Output; - /** A falsy value for `issues` indicates success. */ - readonly issues?: undefined; - } - - export interface Options { - /** Explicit support for additional vendor-specific parameters, if needed. */ - readonly libraryOptions?: Record | undefined; - } - - /** The result interface if validation fails. */ - export interface FailureResult { - /** The issues of failed validation. */ - readonly issues: ReadonlyArray; - } - - /** The issue interface of the failure output. */ - export interface Issue { - /** The error message of the issue. */ - readonly message: string; - /** The path of the issue, if any. */ - readonly path?: ReadonlyArray | undefined; - } - - /** The path segment interface of the issue. */ - export interface PathSegment { - /** The key representing a path segment. */ - readonly key: PropertyKey; - } - - /** The Standard types interface. */ - export interface Types - extends StandardTypedV1.Types {} - - /** Infers the input type of a Standard. */ - export type InferInput = - StandardTypedV1.InferInput; - - /** Infers the output type of a Standard. */ - export type InferOutput = - StandardTypedV1.InferOutput; -} - -// ############################### -// ### Standard JSON Schema ### -// ############################### - -/** The Standard JSON Schema interface. */ -export interface StandardJSONSchemaV1 { - /** The Standard JSON Schema properties. */ - readonly "~standard": StandardJSONSchemaV1.Props; -} - -export declare namespace StandardJSONSchemaV1 { - /** The Standard JSON Schema properties interface. */ - export interface Props - extends StandardTypedV1.Props { - /** Methods for generating the input/output JSON Schema. */ - readonly jsonSchema: StandardJSONSchemaV1.Converter; - } - - /** The Standard JSON Schema converter interface. */ - export interface Converter { - /** Converts the input type to JSON Schema. May throw if conversion is not supported. */ - readonly input: ( - options: StandardJSONSchemaV1.Options - ) => Record; - /** Converts the output type to JSON Schema. May throw if conversion is not supported. */ - readonly output: ( - options: StandardJSONSchemaV1.Options - ) => Record; - } - - /** - * The target version of the generated JSON Schema. - * - * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target. - * - * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`. - */ - export type Target = - | "draft-2020-12" - | "draft-07" - | "openapi-3.0" - // Accepts any string for future targets while preserving autocomplete - | ({} & string); - - /** The options for the input/output methods. */ - export interface Options { - /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */ - readonly target: Target; - - /** Explicit support for additional vendor-specific parameters, if needed. */ - readonly libraryOptions?: Record | undefined; - } - - /** The Standard types interface. */ - export interface Types - extends StandardTypedV1.Types {} - - /** Infers the input type of a Standard. */ - export type InferInput = - StandardTypedV1.InferInput; - - /** Infers the output type of a Standard. */ - export type InferOutput = - StandardTypedV1.InferOutput; -} -``` diff --git a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.cjs b/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.cjs deleted file mode 100644 index 321666e..0000000 --- a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.cjs +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// src/index.ts -var src_exports = {}; -module.exports = __toCommonJS(src_exports); diff --git a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts b/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts deleted file mode 100644 index 5e4acaa..0000000 --- a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.cts +++ /dev/null @@ -1,119 +0,0 @@ -/** The Standard Typed interface. This is a base type extended by other specs. */ -interface StandardTypedV1 { - /** The Standard properties. */ - readonly "~standard": StandardTypedV1.Props; -} -declare namespace StandardTypedV1 { - /** The Standard Typed properties interface. */ - interface Props { - /** The version number of the standard. */ - readonly version: 1; - /** The vendor name of the schema library. */ - readonly vendor: string; - /** Inferred types associated with the schema. */ - readonly types?: Types | undefined; - } - /** The Standard Typed types interface. */ - interface Types { - /** The input type of the schema. */ - readonly input: Input; - /** The output type of the schema. */ - readonly output: Output; - } - /** Infers the input type of a Standard Typed. */ - type InferInput = NonNullable["input"]; - /** Infers the output type of a Standard Typed. */ - type InferOutput = NonNullable["output"]; -} -/** The Standard Schema interface. */ -interface StandardSchemaV1 { - /** The Standard Schema properties. */ - readonly "~standard": StandardSchemaV1.Props; -} -declare namespace StandardSchemaV1 { - /** The Standard Schema properties interface. */ - interface Props extends StandardTypedV1.Props { - /** Validates unknown input values. */ - readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result | Promise>; - } - /** The result interface of the validate function. */ - type Result = SuccessResult | FailureResult; - /** The result interface if validation succeeds. */ - interface SuccessResult { - /** The typed output value. */ - readonly value: Output; - /** A falsy value for `issues` indicates success. */ - readonly issues?: undefined; - } - interface Options { - /** Explicit support for additional vendor-specific parameters, if needed. */ - readonly libraryOptions?: Record | undefined; - } - /** The result interface if validation fails. */ - interface FailureResult { - /** The issues of failed validation. */ - readonly issues: ReadonlyArray; - } - /** The issue interface of the failure output. */ - interface Issue { - /** The error message of the issue. */ - readonly message: string; - /** The path of the issue, if any. */ - readonly path?: ReadonlyArray | undefined; - } - /** The path segment interface of the issue. */ - interface PathSegment { - /** The key representing a path segment. */ - readonly key: PropertyKey; - } - /** The Standard types interface. */ - interface Types extends StandardTypedV1.Types { - } - /** Infers the input type of a Standard. */ - type InferInput = StandardTypedV1.InferInput; - /** Infers the output type of a Standard. */ - type InferOutput = StandardTypedV1.InferOutput; -} -/** The Standard JSON Schema interface. */ -interface StandardJSONSchemaV1 { - /** The Standard JSON Schema properties. */ - readonly "~standard": StandardJSONSchemaV1.Props; -} -declare namespace StandardJSONSchemaV1 { - /** The Standard JSON Schema properties interface. */ - interface Props extends StandardTypedV1.Props { - /** Methods for generating the input/output JSON Schema. */ - readonly jsonSchema: StandardJSONSchemaV1.Converter; - } - /** The Standard JSON Schema converter interface. */ - interface Converter { - /** Converts the input type to JSON Schema. May throw if conversion is not supported. */ - readonly input: (options: StandardJSONSchemaV1.Options) => Record; - /** Converts the output type to JSON Schema. May throw if conversion is not supported. */ - readonly output: (options: StandardJSONSchemaV1.Options) => Record; - } - /** - * The target version of the generated JSON Schema. - * - * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target. - * - * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`. - */ - type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string); - /** The options for the input/output methods. */ - interface Options { - /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */ - readonly target: Target; - /** Explicit support for additional vendor-specific parameters, if needed. */ - readonly libraryOptions?: Record | undefined; - } - /** The Standard types interface. */ - interface Types extends StandardTypedV1.Types { - } - /** Infers the input type of a Standard. */ - type InferInput = StandardTypedV1.InferInput; - /** Infers the output type of a Standard. */ - type InferOutput = StandardTypedV1.InferOutput; -} - -export { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 }; diff --git a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts b/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts deleted file mode 100644 index 5e4acaa..0000000 --- a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -/** The Standard Typed interface. This is a base type extended by other specs. */ -interface StandardTypedV1 { - /** The Standard properties. */ - readonly "~standard": StandardTypedV1.Props; -} -declare namespace StandardTypedV1 { - /** The Standard Typed properties interface. */ - interface Props { - /** The version number of the standard. */ - readonly version: 1; - /** The vendor name of the schema library. */ - readonly vendor: string; - /** Inferred types associated with the schema. */ - readonly types?: Types | undefined; - } - /** The Standard Typed types interface. */ - interface Types { - /** The input type of the schema. */ - readonly input: Input; - /** The output type of the schema. */ - readonly output: Output; - } - /** Infers the input type of a Standard Typed. */ - type InferInput = NonNullable["input"]; - /** Infers the output type of a Standard Typed. */ - type InferOutput = NonNullable["output"]; -} -/** The Standard Schema interface. */ -interface StandardSchemaV1 { - /** The Standard Schema properties. */ - readonly "~standard": StandardSchemaV1.Props; -} -declare namespace StandardSchemaV1 { - /** The Standard Schema properties interface. */ - interface Props extends StandardTypedV1.Props { - /** Validates unknown input values. */ - readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result | Promise>; - } - /** The result interface of the validate function. */ - type Result = SuccessResult | FailureResult; - /** The result interface if validation succeeds. */ - interface SuccessResult { - /** The typed output value. */ - readonly value: Output; - /** A falsy value for `issues` indicates success. */ - readonly issues?: undefined; - } - interface Options { - /** Explicit support for additional vendor-specific parameters, if needed. */ - readonly libraryOptions?: Record | undefined; - } - /** The result interface if validation fails. */ - interface FailureResult { - /** The issues of failed validation. */ - readonly issues: ReadonlyArray; - } - /** The issue interface of the failure output. */ - interface Issue { - /** The error message of the issue. */ - readonly message: string; - /** The path of the issue, if any. */ - readonly path?: ReadonlyArray | undefined; - } - /** The path segment interface of the issue. */ - interface PathSegment { - /** The key representing a path segment. */ - readonly key: PropertyKey; - } - /** The Standard types interface. */ - interface Types extends StandardTypedV1.Types { - } - /** Infers the input type of a Standard. */ - type InferInput = StandardTypedV1.InferInput; - /** Infers the output type of a Standard. */ - type InferOutput = StandardTypedV1.InferOutput; -} -/** The Standard JSON Schema interface. */ -interface StandardJSONSchemaV1 { - /** The Standard JSON Schema properties. */ - readonly "~standard": StandardJSONSchemaV1.Props; -} -declare namespace StandardJSONSchemaV1 { - /** The Standard JSON Schema properties interface. */ - interface Props extends StandardTypedV1.Props { - /** Methods for generating the input/output JSON Schema. */ - readonly jsonSchema: StandardJSONSchemaV1.Converter; - } - /** The Standard JSON Schema converter interface. */ - interface Converter { - /** Converts the input type to JSON Schema. May throw if conversion is not supported. */ - readonly input: (options: StandardJSONSchemaV1.Options) => Record; - /** Converts the output type to JSON Schema. May throw if conversion is not supported. */ - readonly output: (options: StandardJSONSchemaV1.Options) => Record; - } - /** - * The target version of the generated JSON Schema. - * - * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target. - * - * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`. - */ - type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string); - /** The options for the input/output methods. */ - interface Options { - /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */ - readonly target: Target; - /** Explicit support for additional vendor-specific parameters, if needed. */ - readonly libraryOptions?: Record | undefined; - } - /** The Standard types interface. */ - interface Types extends StandardTypedV1.Types { - } - /** Infers the input type of a Standard. */ - type InferInput = StandardTypedV1.InferInput; - /** Infers the output type of a Standard. */ - type InferOutput = StandardTypedV1.InferOutput; -} - -export { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 }; diff --git a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.js b/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.js deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/package.json b/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/package.json deleted file mode 100644 index 62bb551..0000000 --- a/node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "@standard-schema/spec", - "description": "A family of specs for interoperable TypeScript", - "version": "1.1.0", - "license": "MIT", - "author": "Colin McDonnell", - "homepage": "https://standardschema.dev", - "repository": { - "type": "git", - "url": "https://github.com/standard-schema/standard-schema" - }, - "keywords": [ - "typescript", - "schema", - "validation", - "standard", - "interface" - ], - "type": "module", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "exports": { - ".": { - "standard-schema-spec": "./src/index.ts", - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "require": { - "types": "./dist/index.d.cts", - "default": "./dist/index.cjs" - } - } - }, - "sideEffects": false, - "files": [ - "dist" - ], - "publishConfig": { - "access": "public" - }, - "devDependencies": { - "tsup": "^8.3.0", - "typescript": "^5.6.2" - }, - "scripts": { - "lint": "pnpm biome lint ./src", - "format": "pnpm biome format --write ./src", - "check": "pnpm biome check ./src", - "build": "tsup" - } -} \ No newline at end of file diff --git a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/LICENSE b/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/LICENSE deleted file mode 100644 index 9e841e7..0000000 --- a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/README.md b/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/README.md deleted file mode 100644 index 27c1356..0000000 --- a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/chai` - -# Summary -This package contains type definitions for chai (http://chaijs.com/). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai. - -### Additional Details - * Last updated: Mon, 20 Oct 2025 23:32:35 GMT - * Dependencies: [@types/deep-eql](https://npmjs.com/package/@types/deep-eql), [assertion-error](https://npmjs.com/package/assertion-error) - -# Credits -These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), [Andrew Brown](https://github.com/AGBrown), [Olivier Chevet](https://github.com/olivr70), [Matt Wistrand](https://github.com/mwistrand), [Shaun Luttin](https://github.com/shaunluttin), [Satana Charuwichitratana](https://github.com/micksatana), [Erik Schierboom](https://github.com/ErikSchierboom), [Bogdan Paranytsia](https://github.com/bparan), [CXuesong](https://github.com/CXuesong), and [Joey Kilpatrick](https://github.com/joeykilpatrick). diff --git a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/index.d.ts b/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/index.d.ts deleted file mode 100644 index 4fed6b9..0000000 --- a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/index.d.ts +++ /dev/null @@ -1,2145 +0,0 @@ -import deepEqual = require("deep-eql"); -import { AssertionError as ImportedAssertionError } from "assertion-error"; - -declare global { - namespace Chai { - export type Message = string | (() => string); - export type ObjectProperty = string | symbol | number; - - export interface PathInfo { - parent: object; - name: string; - value?: any; - exists: boolean; - } - - export interface Constructor { - new(...args: any[]): T; - } - - export interface ErrorConstructor { - new(...args: any[]): Error; - } - - export interface ChaiUtils { - addChainableMethod( - // object to define the method on, e.g. chai.Assertion.prototype - ctx: object, - // method name - name: string, - // method itself; any arguments - method: (...args: any[]) => void, - // called when property is accessed - chainingBehavior?: () => void, - ): void; - overwriteChainableMethod( - ctx: object, - name: string, - method: (...args: any[]) => void, - chainingBehavior?: () => void, - ): void; - addLengthGuard( - fn: Function, - assertionName: string, - isChainable: boolean, - ): void; - addMethod(ctx: object, name: string, method: Function): void; - addProperty(ctx: object, name: string, getter: () => any): void; - overwriteMethod(ctx: object, name: string, method: Function): void; - overwriteProperty(ctx: object, name: string, getter: (this: AssertionStatic, _super: any) => any): void; - compareByInspect(a: object, b: object): -1 | 1; - expectTypes(obj: object, types: string[]): void; - flag(obj: object, key: string, value?: any): any; - getActual(obj: object, args: AssertionArgs): any; - getProperties(obj: object): string[]; - getEnumerableProperties(obj: object): string[]; - getOwnEnumerablePropertySymbols(obj: object): symbol[]; - getOwnEnumerableProperties(obj: object): Array; - getMessage(errorLike: Error | string): string; - getMessage(obj: any, args: AssertionArgs): string; - inspect(obj: any, showHidden?: boolean, depth?: number, colors?: boolean): string; - isProxyEnabled(): boolean; - objDisplay(obj: object): void; - proxify(obj: object, nonChainableMethodName: string): object; - test(obj: object, args: AssertionArgs): boolean; - transferFlags(assertion: Assertion, obj: object, includeAll?: boolean): void; - compatibleInstance(thrown: Error, errorLike: Error | ErrorConstructor): boolean; - compatibleConstructor(thrown: Error, errorLike: Error | ErrorConstructor): boolean; - compatibleMessage(thrown: Error, errMatcher: string | RegExp): boolean; - getConstructorName(constructorFn: Function): string; - getFuncName(constructorFn: Function): string | null; - - // Reexports from pathval: - hasProperty(obj: object | undefined | null, name: ObjectProperty): boolean; - getPathInfo(obj: object, path: string): PathInfo; - getPathValue(obj: object, path: string): object | undefined; - - eql: typeof deepEqual; - } - - export type ChaiPlugin = (chai: ChaiStatic, utils: ChaiUtils) => void; - - export interface ChaiStatic { - expect: ExpectStatic; - should(): Should; - /** - * Provides a way to extend the internals of Chai - */ - use(fn: ChaiPlugin): ChaiStatic; - util: ChaiUtils; - assert: AssertStatic; - config: Config; - Assertion: AssertionStatic; - AssertionError: typeof AssertionError; - version: string; - } - - export interface ExpectStatic { - (val: any, message?: string): Assertion; - fail(message?: string): never; - fail(actual: any, expected: any, message?: string, operator?: Operator): never; - } - - export interface AssertStatic extends Assert { - } - - // chai.Assertion.prototype.assert arguments - export type AssertionArgs = [ - any, // expression to be tested - Message, // message or function that returns message to display if expression fails - Message, // negatedMessage or function that returns negatedMessage to display if expression fails - any?, // expected value - any?, // actual value - boolean?, // showDiff, when set to `true`, assert will display a diff in addition to the message if expression fails - ]; - - export interface AssertionPrototype { - assert(...args: AssertionArgs): void; - _obj: any; - } - - export interface AssertionStatic extends AssertionPrototype { - prototype: AssertionPrototype; - - new(target: any, message?: string, ssfi?: Function, lockSsfi?: boolean): Assertion; - - // Deprecated properties: - includeStack: boolean; - showDiff: boolean; - - // Partials of functions on ChaiUtils: - addProperty(name: string, getter: (this: AssertionStatic) => any): void; - addMethod(name: string, method: (this: AssertionStatic, ...args: any[]) => any): void; - addChainableMethod( - name: string, - method: (this: AssertionStatic, ...args: any[]) => void, - chainingBehavior?: () => void, - ): void; - overwriteProperty(name: string, getter: (this: AssertionStatic, _super: any) => any): void; - overwriteMethod(name: string, method: (this: AssertionStatic, ...args: any[]) => any): void; - overwriteChainableMethod( - name: string, - method: (this: AssertionStatic, ...args: any[]) => void, - chainingBehavior?: () => void, - ): void; - } - - export type Operator = string; // "==" | "===" | ">" | ">=" | "<" | "<=" | "!=" | "!=="; - - export type OperatorComparable = boolean | null | number | string | undefined | Date; - - export interface ShouldAssertion { - equal(value1: any, value2: any, message?: string): void; - Throw: ShouldThrow; - throw: ShouldThrow; - exist(value: any, message?: string): void; - } - - export interface Should extends ShouldAssertion { - not: ShouldAssertion; - fail(message?: string): never; - fail(actual: any, expected: any, message?: string, operator?: Operator): never; - } - - export interface ShouldThrow { - (actual: Function, expected?: string | RegExp, message?: string): void; - (actual: Function, constructor: Error | Function, expected?: string | RegExp, message?: string): void; - } - - export interface Assertion extends LanguageChains, NumericComparison, TypeComparison { - not: Assertion; - deep: Deep; - ordered: Ordered; - nested: Nested; - own: Own; - any: KeyFilter; - all: KeyFilter; - a: Assertion; - an: Assertion; - include: Include; - includes: Include; - contain: Include; - contains: Include; - ok: Assertion; - true: Assertion; - false: Assertion; - null: Assertion; - undefined: Assertion; - NaN: Assertion; - exist: Assertion; - empty: Assertion; - arguments: Assertion; - Arguments: Assertion; - finite: Assertion; - equal: Equal; - equals: Equal; - eq: Equal; - eql: Equal; - eqls: Equal; - containSubset: ContainSubset; - property: Property; - ownProperty: Property; - haveOwnProperty: Property; - ownPropertyDescriptor: OwnPropertyDescriptor; - haveOwnPropertyDescriptor: OwnPropertyDescriptor; - length: Length; - lengthOf: Length; - match: Match; - matches: Match; - string(string: string, message?: string): Assertion; - keys: Keys; - key(string: string): Assertion; - throw: Throw; - throws: Throw; - Throw: Throw; - respondTo: RespondTo; - respondsTo: RespondTo; - itself: Assertion; - satisfy: Satisfy; - satisfies: Satisfy; - closeTo: CloseTo; - approximately: CloseTo; - members: Members; - increase: PropertyChange; - increases: PropertyChange; - decrease: PropertyChange; - decreases: PropertyChange; - change: PropertyChange; - changes: PropertyChange; - extensible: Assertion; - sealed: Assertion; - frozen: Assertion; - oneOf: OneOf; - } - - export interface LanguageChains { - to: Assertion; - be: Assertion; - been: Assertion; - is: Assertion; - that: Assertion; - which: Assertion; - and: Assertion; - has: Assertion; - have: Assertion; - with: Assertion; - at: Assertion; - of: Assertion; - same: Assertion; - but: Assertion; - does: Assertion; - } - - export interface NumericComparison { - above: NumberComparer; - gt: NumberComparer; - greaterThan: NumberComparer; - least: NumberComparer; - gte: NumberComparer; - greaterThanOrEqual: NumberComparer; - below: NumberComparer; - lt: NumberComparer; - lessThan: NumberComparer; - most: NumberComparer; - lte: NumberComparer; - lessThanOrEqual: NumberComparer; - within(start: number, finish: number, message?: string): Assertion; - within(start: Date, finish: Date, message?: string): Assertion; - } - - export interface NumberComparer { - (value: number | Date, message?: string): Assertion; - } - - export interface TypeComparison { - (type: string, message?: string): Assertion; - instanceof: InstanceOf; - instanceOf: InstanceOf; - } - - export interface InstanceOf { - (constructor: any, message?: string): Assertion; - } - - export interface CloseTo { - (expected: number, delta: number, message?: string): Assertion; - } - - export interface Nested { - include: Include; - includes: Include; - contain: Include; - contains: Include; - property: Property; - members: Members; - } - - export interface Own { - include: Include; - includes: Include; - contain: Include; - contains: Include; - property: Property; - } - - export interface Deep extends KeyFilter { - be: Assertion; - equal: Equal; - equals: Equal; - eq: Equal; - include: Include; - includes: Include; - contain: Include; - contains: Include; - property: Property; - ordered: Ordered; - nested: Nested; - oneOf: OneOf; - own: Own; - } - - export interface Ordered { - members: Members; - } - - export interface KeyFilter { - keys: Keys; - members: Members; - } - - export interface Equal { - (value: any, message?: string): Assertion; - } - - export interface ContainSubset { - (expected: any): Assertion; - } - - export interface Property { - (name: string | symbol, value: any, message?: string): Assertion; - (name: string | symbol, message?: string): Assertion; - } - - export interface OwnPropertyDescriptor { - (name: string | symbol, descriptor: PropertyDescriptor, message?: string): Assertion; - (name: string | symbol, message?: string): Assertion; - } - - export interface Length extends LanguageChains, NumericComparison { - (length: number, message?: string): Assertion; - } - - export interface Include { - (value: any, message?: string): Assertion; - keys: Keys; - deep: Deep; - ordered: Ordered; - members: Members; - any: KeyFilter; - all: KeyFilter; - oneOf: OneOf; - } - - export interface OneOf { - (list: readonly unknown[], message?: string): Assertion; - } - - export interface Match { - (regexp: RegExp, message?: string): Assertion; - } - - export interface Keys { - (...keys: string[]): Assertion; - (keys: readonly any[] | Object): Assertion; - } - - export interface Throw { - (expected?: string | RegExp, message?: string): Assertion; - (constructor: Error | Function, expected?: string | RegExp, message?: string): Assertion; - } - - export interface RespondTo { - (method: string, message?: string): Assertion; - } - - export interface Satisfy { - (matcher: Function, message?: string): Assertion; - } - - export interface Members { - (set: readonly any[], message?: string): Assertion; - } - - export interface PropertyChange { - (object: Object, property?: string, message?: string): DeltaAssertion; - } - - export interface DeltaAssertion extends Assertion { - by(delta: number, msg?: string): Assertion; - } - - export interface Assert { - /** - * @param expression Expression to test for truthiness. - * @param message Message to display on error. - */ - (expression: any, message?: string): asserts expression; - - /** - * Throws a failure. - * - * @param message Message to display on error. - * @remarks Node.js assert module-compatible. - */ - fail(message?: string): never; - - /** - * Throws a failure. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - * @param operator Comparison operator, if not strict equality. - * @remarks Node.js assert module-compatible. - */ - fail(actual: T, expected: T, message?: string, operator?: Operator): never; - - /** - * Asserts that object is truthy. - * - * @param object Object to test. - * @param message Message to display on error. - */ - isOk(value: unknown, message?: string): asserts value; - - /** - * Asserts that object is truthy. - * - * @param object Object to test. - * @param message Message to display on error. - */ - ok(value: unknown, message?: string): asserts value; - - /** - * Asserts that object is falsy. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - isNotOk(value: T, message?: string): void; - - /** - * Asserts that object is falsy. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - notOk(value: T, message?: string): void; - - /** - * Asserts non-strict equality (==) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - equal(actual: T, expected: T, message?: string): void; - - /** - * Asserts non-strict inequality (!=) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - notEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts strict equality (===) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - strictEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts strict inequality (!==) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - notStrictEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts that actual is deeply equal to expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - deepEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts that actual is not deeply equal to expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - notDeepEqual(actual: T, expected: T, message?: string): void; - - /** - * Alias to deepEqual - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - deepStrictEqual(actual: T, expected: T, message?: string): void; - - /** - * Partially matches actual and expected. - * - * @param actual Actual value. - * @param expected Potential subset of the value. - * @param message Message to display on error. - */ - containSubset(val: any, exp: any, msg?: string): void; - - /** - * Partially matches actual and expected. - * - * @param actual Actual value. - * @param expected Potential subset of the value. - * @param message Message to display on error. - */ - containsSubset(val: any, exp: any, msg?: string): void; - - /** - * No partial match between actual and expected exists. - * - * @param actual Actual value. - * @param expected Potential subset of the value. - * @param message Message to display on error. - */ - doesNotContainSubset(val: any, exp: any, msg?: string): void; - - /** - * Asserts valueToCheck is strictly greater than (>) valueToBeAbove. - * - * @param valueToCheck Actual value. - * @param valueToBeAbove Minimum Potential expected value. - * @param message Message to display on error. - */ - isAbove(valueToCheck: number, valueToBeAbove: number, message?: string): void; - - /** - * Asserts valueToCheck is greater than or equal to (>=) valueToBeAtLeast. - * - * @param valueToCheck Actual value. - * @param valueToBeAtLeast Minimum Potential expected value. - * @param message Message to display on error. - */ - isAtLeast(valueToCheck: number, valueToBeAtLeast: number, message?: string): void; - - /** - * Asserts valueToCheck is strictly less than (<) valueToBeBelow. - * - * @param valueToCheck Actual value. - * @param valueToBeBelow Minimum Potential expected value. - * @param message Message to display on error. - */ - isBelow(valueToCheck: number, valueToBeBelow: number, message?: string): void; - - /** - * Asserts valueToCheck is less than or equal to (<=) valueToBeAtMost. - * - * @param valueToCheck Actual value. - * @param valueToBeAtMost Minimum Potential expected value. - * @param message Message to display on error. - */ - isAtMost(valueToCheck: number, valueToBeAtMost: number, message?: string): void; - - /** - * Asserts that value is true. - * - * @param value Actual value. - * @param message Message to display on error. - */ - isTrue(value: unknown, message?: string): asserts value is true; - - /** - * Asserts that value is false. - * - * @param value Actual value. - * @param message Message to display on error. - */ - isFalse(value: unknown, message?: string): asserts value is false; - - /** - * Asserts that value is not true. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotTrue(value: T, message?: string): asserts value is Exclude; - - /** - * Asserts that value is not false. - * - * @param value Actual value. - * @param message Message to display on error. - */ - isNotFalse(value: T, message?: string): asserts value is Exclude; - - /** - * Asserts that value is null. - * - * @param value Actual value. - * @param message Message to display on error. - */ - isNull(value: unknown, message?: string): asserts value is null; - - /** - * Asserts that value is not null. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotNull(value: T, message?: string): asserts value is Exclude; - - /** - * Asserts that value is NaN. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNaN(value: T, message?: string): void; - - /** - * Asserts that value is not NaN. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotNaN(value: T, message?: string): void; - - /** - * Asserts that the target is neither null nor undefined. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - exists(value: T, message?: string): asserts value is NonNullable; - - /** - * Asserts that the target is either null or undefined. - * - * @param value Actual value. - * @param message Message to display on error. - */ - notExists(value: unknown, message?: string): asserts value is - | null - | undefined; - - /** - * Asserts that value is undefined. - * - * @param value Actual value. - * @param message Message to display on error. - */ - isUndefined(value: unknown, message?: string): asserts value is undefined; - - /** - * Asserts that value is not undefined. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isDefined(value: T, message?: string): asserts value is Exclude; - - /** - * Asserts that value is a function. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isFunction(value: T, message?: string): void; - - /** - * Asserts that value is not a function. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotFunction(value: T, message?: string): void; - - /** - * Asserts that value is an object of type 'Object' - * (as revealed by Object.prototype.toString). - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - * @remarks The assertion does not match subclassed objects. - */ - isObject(value: T, message?: string): void; - - /** - * Asserts that value is not an object of type 'Object' - * (as revealed by Object.prototype.toString). - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotObject(value: T, message?: string): void; - - /** - * Asserts that value is an array. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isArray(value: T, message?: string): void; - - /** - * Asserts that value is not an array. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotArray(value: T, message?: string): void; - - /** - * Asserts that value is a string. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isString(value: T, message?: string): void; - - /** - * Asserts that value is not a string. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotString(value: T, message?: string): void; - - /** - * Asserts that value is a number. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNumber(value: T, message?: string): void; - - /** - * Asserts that value is not a number. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotNumber(value: T, message?: string): void; - - /** - * Asserts that value is a finite number. - * Unlike `.isNumber`, this will fail for `NaN` and `Infinity`. - * - * T Type of value - * @param value Actual value - * @param message Message to display on error. - */ - isFinite(value: T, message?: string): void; - - /** - * Asserts that value is a boolean. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isBoolean(value: T, message?: string): void; - - /** - * Asserts that value is not a boolean. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotBoolean(value: T, message?: string): void; - - /** - * Asserts that value's type is name, as determined by Object.prototype.toString. - * - * T Type of value. - * @param value Actual value. - * @param name Potential expected type name of value. - * @param message Message to display on error. - */ - typeOf(value: T, name: string, message?: string): void; - - /** - * Asserts that value's type is not name, as determined by Object.prototype.toString. - * - * T Type of value. - * @param value Actual value. - * @param name Potential expected type name of value. - * @param message Message to display on error. - */ - notTypeOf(value: T, name: string, message?: string): void; - - /** - * Asserts that value is an instance of constructor. - * - * T Expected type of value. - * @param value Actual value. - * @param constructor Potential expected contructor of value. - * @param message Message to display on error. - */ - instanceOf( - value: unknown, - constructor: Constructor, - message?: string, - ): asserts value is T; - - /** - * Asserts that value is not an instance of constructor. - * - * T Type of value. - * U Type that value shouldn't be an instance of. - * @param value Actual value. - * @param constructor Potential expected contructor of value. - * @param message Message to display on error. - */ - notInstanceOf(value: T, type: Constructor, message?: string): asserts value is Exclude; - - /** - * Asserts that haystack includes needle. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - */ - include(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack includes needle. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - include( - haystack: readonly T[] | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack includes needle. - * - * T Type of values in haystack. - * @param haystack WeakSet container. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - include(haystack: WeakSet, needle: T, message?: string): void; - - /** - * Asserts that haystack includes needle. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - include(haystack: T, needle: Partial, message?: string): void; - - /** - * Asserts that haystack does not include needle. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - */ - notInclude(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack does not include needle. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - notInclude( - haystack: readonly T[] | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack does not include needle. - * - * T Type of values in haystack. - * @param haystack WeakSet container. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - notInclude(haystack: WeakSet, needle: T, message?: string): void; - - /** - * Asserts that haystack does not include needle. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - notInclude(haystack: T, needle: Partial, message?: string): void; - - /** - * Asserts that haystack includes needle. Deep equality is used. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - * - * @deprecated Does not have any effect on string. Use {@link Assert#include} instead. - */ - deepInclude(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack includes needle. Deep equality is used. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - deepInclude( - haystack: readonly T[] | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack includes needle. Deep equality is used. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - deepInclude(haystack: T, needle: T extends WeakSet ? never : Partial, message?: string): void; - - /** - * Asserts that haystack does not include needle. Deep equality is used. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - * - * @deprecated Does not have any effect on string. Use {@link Assert#notInclude} instead. - */ - notDeepInclude(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack does not include needle. Deep equality is used. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - notDeepInclude( - haystack: readonly T[] | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack does not include needle. Deep equality is used. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - notDeepInclude(haystack: T, needle: T extends WeakSet ? never : Partial, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object. - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - nestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ does not include ‘needle’. Can be used to assert the absence of a subset of properties in an object. - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notNestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while checking for deep equality - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - deepNestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ does not include ‘needle’. Can be used to assert the absence of a subset of properties in an object while checking for deep equality. - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notDeepNestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while ignoring inherited properties. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - ownInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the absence of a subset of properties in an object while ignoring inherited properties. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notOwnInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while ignoring inherited properties and checking for deep - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - deepOwnInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the absence of a subset of properties in an object while ignoring inherited properties and checking for deep equality. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notDeepOwnInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that value matches the regular expression regexp. - * - * @param value Actual value. - * @param regexp Potential match of value. - * @param message Message to display on error. - */ - match(value: string, regexp: RegExp, message?: string): void; - - /** - * Asserts that value does not match the regular expression regexp. - * - * @param value Actual value. - * @param regexp Potential match of value. - * @param message Message to display on error. - */ - notMatch(expected: any, regexp: RegExp, message?: string): void; - - /** - * Asserts that object has a property named by property. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - property(object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that object does not have a property named by property. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - notProperty(object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that object has a property named by property, which can be a string - * using dot- and bracket-notation for deep reference. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - deepProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object does not have a property named by property, which can be a - * string using dot- and bracket-notation for deep reference. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - notDeepProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object has a property named by property with value given by value. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - propertyVal(object: T, property: string, /* keyof T */ value: V, message?: string): void; - - /** - * Asserts that object has a property named by property with value given by value. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - notPropertyVal(object: T, property: string, /* keyof T */ value: V, message?: string): void; - - /** - * Asserts that object has a property named by property, which can be a string - * using dot- and bracket-notation for deep reference. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - deepPropertyVal(object: T, property: string, value: V, message?: string): void; - - /** - * Asserts that object does not have a property named by property, which can be a - * string using dot- and bracket-notation for deep reference. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - notDeepPropertyVal(object: T, property: string, value: V, message?: string): void; - - /** - * Asserts that object has a length property with the expected value. - * - * T Type of object. - * @param object Container object. - * @param length Potential expected length of object. - * @param message Message to display on error. - */ - lengthOf( - object: T, - length: number, - message?: string, - ): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - throw(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - throw( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - throws(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - throws( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - Throw(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - Throw( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Asserts that fn will not throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - doesNotThrow(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will not throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - doesNotThrow( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Compares two values using operator. - * - * @param val1 Left value during comparison. - * @param operator Comparison operator. - * @param val2 Right value during comparison. - * @param message Message to display on error. - */ - operator(val1: OperatorComparable, operator: Operator, val2: OperatorComparable, message?: string): void; - - /** - * Asserts that the target is equal to expected, to within a +/- delta range. - * - * @param actual Actual value - * @param expected Potential expected value. - * @param delta Maximum differenced between values. - * @param message Message to display on error. - */ - closeTo(actual: number, expected: number, delta: number, message?: string): void; - - /** - * Asserts that the target is equal to expected, to within a +/- delta range. - * - * @param actual Actual value - * @param expected Potential expected value. - * @param delta Maximum differenced between values. - * @param message Message to display on error. - */ - approximately(act: number, exp: number, delta: number, message?: string): void; - - /** - * Asserts that set1 and set2 have the same members. Order is not take into account. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 have the same members using deep equality checking. - * Order is not take into account. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameDeepMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that `set1` and `set2` don't have the same members in any order. - * Uses a deep equality check. - * - * T Type of set values. - * @param set1 - * @param set2 - * @param message - */ - notSameDeepMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 have the same members in the same order. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 don’t have the same members in the same order. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - notSameOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 have the same members in the same order. - * Uses a deep equality check. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameDeepOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 don’t have the same members in the same order. - * Uses a deep equality check. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - notSameDeepOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that subset is included in superset in the same order beginning with the first element in superset. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset isn’t included in superset in the same order beginning with the first element in superset. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - notIncludeOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset is included in superset in the same order beginning with the first element in superset. - * Uses a deep equality check. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeDeepOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset isn’t included in superset in the same order beginning with the first element in superset. - * Uses a deep equality check. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - notIncludeDeepOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset is included in superset. Order is not take into account. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset isn’t included in superset in any order. - * Uses a strict equality check (===). Duplicates are ignored. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential not contained set of values. - * @param message Message to display on error. - */ - notIncludeMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset is included in superset using deep equality checking. - * Order is not take into account. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeDeepMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that `subset` isn't included in `superset` in any order. Uses a - * deep equality check. Duplicates are ignored. - * - * assert.notIncludeDeepMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { f: 5 } ], 'not include deep members'); - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - notIncludeDeepMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that non-object, non-array value inList appears in the flat array list. - * - * T Type of list values. - * @param inList Value expected to be in the list. - * @param list List of values. - * @param message Message to display on error. - */ - oneOf(inList: T, list: T[], message?: string): void; - - /** - * Asserts that a function changes the value of a property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected to be modified. - * @param message Message to display on error. - */ - changes(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function changes the value of a property by an amount (delta). - * - * @param modifier function - * @param object or getter function - * @param property name _optional_ - * @param change amount (delta) - * @param message _optional_ - */ - changesBy( - modifier: Function, - object: T, - property: string, - /* keyof T */ change: number, - message?: string, - ): void; - changesBy(modifier: Function, object: T, change: number, message?: string): void; - - /** - * Asserts that a function does not change the value of a property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected not to be modified. - * @param message Message to display on error. - */ - doesNotChange(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function increases an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected to be increased. - * @param message Message to display on error. - */ - increases(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function increases a numeric object property or a function's return value by an amount (delta). - * - * T Type of object or function. - * @param modifier function - * @param object or getter function - * @param property name _optional_ - * @param change amount (delta) - * @param message _optional_ - */ - increasesBy( - modifier: Function, - object: T, - property: string, - /* keyof T */ change: number, - message?: string, - ): void; - increasesBy(modifier: Function, object: T, change: number, message?: string): void; - - /** - * Asserts that a function does not increase an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected not to be increased. - * @param message Message to display on error. - */ - doesNotIncrease(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function does not increase a numeric object property or function's return value by an amount (delta). - * - * T Type of object or function. - * @param modifier function - * @param object or getter function - * @param property name _optional_ - * @param change amount (delta) - * @param message _optional_ - */ - - increasesButNotBy( - modifier: Function, - object: T, - property: string, - /* keyof T */ change: number, - message?: string, - ): void; - increasesButNotBy(modifier: Function, object: T, change: number, message?: string): void; - - /** - * Asserts that a function decreases an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected to be decreased. - * @param message Message to display on error. - */ - decreases(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function decreases a numeric object property or a function's return value by an amount (delta) - * - * T Type of object or function. - * @param modifier function - * @param object or getter function - * @param property name _optional_ - * @param change amount (delta) - * @param message _optional_ - */ - - decreasesBy( - modifier: Function, - object: T, - property: string, - /* keyof T */ change: number, - message?: string, - ): void; - decreasesBy(modifier: Function, object: T, change: number, message?: string): void; - - /** - * Asserts that a function does not decrease an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected not to be decreased. - * @param message Message to display on error. - */ - doesNotDecrease(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function does not decreases a numeric object property or a function's return value by an amount (delta) - * - * T Type of object or function. - * @param modifier function - * @param object or getter function - * @param property name _optional_ - * @param change amount (delta) - * @param message _optional_ - */ - - doesNotDecreaseBy( - modifier: Function, - object: T, - property: string, - /* keyof T */ change: number, - message?: string, - ): void; - doesNotDecreaseBy(modifier: Function, object: T, change: number, message?: string): void; - - /** - * Asserts that a function does not decreases a numeric object property or a function's return value by an amount (delta) - * - * T Type of object or function. - * @param modifier function - * @param object or getter function - * @param property name _optional_ - * @param change amount (delta) - * @param message _optional_ - */ - - decreasesButNotBy( - modifier: Function, - object: T, - property: string, - /* keyof T */ change: number, - message?: string, - ): void; - decreasesButNotBy(modifier: Function, object: T, change: number, message?: string): void; - - /** - * Asserts if value is not a false value, and throws if it is a true value. - * - * T Type of object. - * @param object Actual value. - * @param message Message to display on error. - * @remarks This is added to allow for chai to be a drop-in replacement for - * Node’s assert class. - */ - ifError(object: T, message?: string): void; - - /** - * Asserts that object is extensible (can have new properties added to it). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isExtensible(object: T, message?: string): void; - - /** - * Asserts that object is extensible (can have new properties added to it). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - extensible(object: T, message?: string): void; - - /** - * Asserts that object is not extensible. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isNotExtensible(object: T, message?: string): void; - - /** - * Asserts that object is not extensible. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - notExtensible(object: T, message?: string): void; - - /** - * Asserts that object is sealed (can have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isSealed(object: T, message?: string): void; - - /** - * Asserts that object is sealed (can have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - sealed(object: T, message?: string): void; - - /** - * Asserts that object is not sealed. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isNotSealed(object: T, message?: string): void; - - /** - * Asserts that object is not sealed. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - notSealed(object: T, message?: string): void; - - /** - * Asserts that object is frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isFrozen(object: T, message?: string): void; - - /** - * Asserts that object is frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - frozen(object: T, message?: string): void; - - /** - * Asserts that object is not frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isNotFrozen(object: T, message?: string): void; - - /** - * Asserts that object is not frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - notFrozen(object: T, message?: string): void; - - /** - * Asserts that the target does not contain any values. For arrays and - * strings, it checks the length property. For Map and Set instances, it - * checks the size property. For non-function objects, it gets the count - * of own enumerable string keys. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isEmpty(object: T, message?: string): void; - - /** - * Asserts that the target contains values. For arrays and strings, it checks - * the length property. For Map and Set instances, it checks the size property. - * For non-function objects, it gets the count of own enumerable string keys. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - isNotEmpty(object: T, message?: string): void; - - /** - * Asserts that `object` has at least one of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAnyKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has all and only all of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAllKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has all of the `keys` provided but may have more keys not listed. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - containsAllKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that `object` has none of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAnyKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that `object` does not have at least one of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAllKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that `object` has at least one of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAnyDeepKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has all and only all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAllDeepKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` contains all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - containsAllDeepKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that `object` contains all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAnyDeepKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that `object` contains all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAllDeepKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that object has a direct or inherited property named by property, - * which can be a string using dot- and bracket-notation for nested reference. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param message Message to display on error. - */ - nestedProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object does not have a property named by property, - * which can be a string using dot- and bracket-notation for nested reference. - * The property cannot exist on the object nor anywhere in its prototype chain. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param message Message to display on error. - */ - notNestedProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object has a property named by property with value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a strict equality check (===). - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - nestedPropertyVal(object: T, property: string, value: any, message?: string): void; - - /** - * Asserts that object does not have a property named by property with value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a strict equality check (===). - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - notNestedPropertyVal(object: T, property: string, value: any, message?: string): void; - - /** - * Asserts that object has a property named by property with a value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a deep equality check. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - deepNestedPropertyVal(object: T, property: string, value: any, message?: string): void; - - /** - * Asserts that object does not have a property named by property with value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a deep equality check. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - notDeepNestedPropertyVal(object: T, property: string, value: any, message?: string): void; - } - - export interface Config { - /** - * Default: false - */ - includeStack: boolean; - - /** - * Default: true - */ - showDiff: boolean; - - /** - * Default: 40 - */ - truncateThreshold: number; - - /** - * Default: true - */ - useProxy: boolean; - - /** - * Default: ['then', 'catch', 'inspect', 'toJSON'] - */ - proxyExcludedKeys: string[]; - - deepEqual: (expected: L, actual: R) => void; - } - - export type { ImportedAssertionError as AssertionError }; - } -} - -export function use(fn: Chai.ChaiPlugin): Chai.ChaiStatic; - -export const util: Chai.ChaiUtils; -export const config: Chai.Config; -export const Assertion: Chai.AssertionStatic; -export const AssertionError: typeof ImportedAssertionError; -export function should(): Chai.Should; -export function Should(): Chai.Should; -export const assert: Chai.AssertStatic; -export const expect: Chai.ExpectStatic; diff --git a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/package.json b/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/package.json deleted file mode 100644 index 7aec8d1..0000000 --- a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "@types/chai", - "version": "5.2.3", - "description": "TypeScript definitions for chai", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai", - "license": "MIT", - "contributors": [ - { - "name": "Bart van der Schoor", - "githubUsername": "Bartvds", - "url": "https://github.com/Bartvds" - }, - { - "name": "Andrew Brown", - "githubUsername": "AGBrown", - "url": "https://github.com/AGBrown" - }, - { - "name": "Olivier Chevet", - "githubUsername": "olivr70", - "url": "https://github.com/olivr70" - }, - { - "name": "Matt Wistrand", - "githubUsername": "mwistrand", - "url": "https://github.com/mwistrand" - }, - { - "name": "Shaun Luttin", - "githubUsername": "shaunluttin", - "url": "https://github.com/shaunluttin" - }, - { - "name": "Satana Charuwichitratana", - "githubUsername": "micksatana", - "url": "https://github.com/micksatana" - }, - { - "name": "Erik Schierboom", - "githubUsername": "ErikSchierboom", - "url": "https://github.com/ErikSchierboom" - }, - { - "name": "Bogdan Paranytsia", - "githubUsername": "bparan", - "url": "https://github.com/bparan" - }, - { - "name": "CXuesong", - "githubUsername": "CXuesong", - "url": "https://github.com/CXuesong" - }, - { - "name": "Joey Kilpatrick", - "githubUsername": "joeykilpatrick", - "url": "https://github.com/joeykilpatrick" - } - ], - "type": "module", - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/chai" - }, - "scripts": {}, - "dependencies": { - "@types/deep-eql": "*", - "assertion-error": "^2.0.1" - }, - "peerDependencies": {}, - "typesPublisherContentHash": "d9d83f1594f42010e624e46e4c8cfeee284bdd04cb05eb0730aec14140f2a833", - "typeScriptVersion": "5.2" -} \ No newline at end of file diff --git a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/register-should.d.ts b/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/register-should.d.ts deleted file mode 100644 index 1e14f93..0000000 --- a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/chai/register-should.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -declare global { - interface Object { - should: Chai.Assertion; - } -} - -export {}; diff --git a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/deep-eql b/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/deep-eql deleted file mode 120000 index f414eb3..0000000 --- a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/@types/deep-eql +++ /dev/null @@ -1 +0,0 @@ -../../../@types+deep-eql@4.0.2/node_modules/@types/deep-eql \ No newline at end of file diff --git a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/assertion-error b/node_modules/.pnpm/@types+chai@5.2.3/node_modules/assertion-error deleted file mode 120000 index b3c9e20..0000000 --- a/node_modules/.pnpm/@types+chai@5.2.3/node_modules/assertion-error +++ /dev/null @@ -1 +0,0 @@ -../../assertion-error@2.0.1/node_modules/assertion-error \ No newline at end of file diff --git a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/LICENSE b/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/LICENSE deleted file mode 100644 index 9e841e7..0000000 --- a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/README.md b/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/README.md deleted file mode 100644 index 48d96fc..0000000 --- a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Installation -> `npm install --save @types/deep-eql` - -# Summary -This package contains type definitions for deep-eql (https://github.com/chaijs/deep-eql). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-eql. -## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-eql/index.d.ts) -````ts -declare namespace deepEqual { - /** - * Memoization class used to speed up comparison. - */ - class MemoizeMap extends WeakMap {} - - interface DeepEqualOptions { - /** - * Override default algorithm, determining custom equality. - */ - comparator?: (leftHandOperand: T1, rightHandOperand: T2) => boolean | null; - - /** - * Provide a custom memoization object which will cache the results of - * complex objects for a speed boost. - * - * By passing `false` you can disable memoization, but this will cause circular - * references to blow the stack. - */ - memoize?: MemoizeMap | false; - } -} - -/** - * Assert deeply nested sameValue equality between two objects of any type. - * - * @param leftHandOperand - * @param rightHandOperand - * @param [options] Additional options - * @return equal match - */ -declare function deepEqual( - leftHandOperand: T1, - rightHandOperand: T2, - options?: deepEqual.DeepEqualOptions, -): boolean; - -export = deepEqual; - -```` - -### Additional Details - * Last updated: Mon, 06 Nov 2023 22:41:05 GMT - * Dependencies: none - -# Credits -These definitions were written by [Rodrigo Pietnechuk](https://github.com/ghnoob). diff --git a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/index.d.ts b/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/index.d.ts deleted file mode 100644 index 0cdbefe..0000000 --- a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/index.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -declare namespace deepEqual { - /** - * Memoization class used to speed up comparison. - */ - class MemoizeMap extends WeakMap {} - - interface DeepEqualOptions { - /** - * Override default algorithm, determining custom equality. - */ - comparator?: (leftHandOperand: T1, rightHandOperand: T2) => boolean | null; - - /** - * Provide a custom memoization object which will cache the results of - * complex objects for a speed boost. - * - * By passing `false` you can disable memoization, but this will cause circular - * references to blow the stack. - */ - memoize?: MemoizeMap | false; - } -} - -/** - * Assert deeply nested sameValue equality between two objects of any type. - * - * @param leftHandOperand - * @param rightHandOperand - * @param [options] Additional options - * @return equal match - */ -declare function deepEqual( - leftHandOperand: T1, - rightHandOperand: T2, - options?: deepEqual.DeepEqualOptions, -): boolean; - -export = deepEqual; diff --git a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/package.json b/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/package.json deleted file mode 100644 index 8761581..0000000 --- a/node_modules/.pnpm/@types+deep-eql@4.0.2/node_modules/@types/deep-eql/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@types/deep-eql", - "version": "4.0.2", - "description": "TypeScript definitions for deep-eql", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-eql", - "license": "MIT", - "contributors": [ - { - "name": "Rodrigo Pietnechuk", - "githubUsername": "ghnoob", - "url": "https://github.com/ghnoob" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/deep-eql" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "3b8981ce557947fc00ca08cbd93b4206bfc0943360956867381a0a3f6b1eabf5", - "typeScriptVersion": "4.5" -} \ No newline at end of file diff --git a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/LICENSE b/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/LICENSE deleted file mode 100644 index 9e841e7..0000000 --- a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/README.md b/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/README.md deleted file mode 100644 index 2af760b..0000000 --- a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/estree` - -# Summary -This package contains type definitions for estree (https://github.com/estree/estree). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree. - -### Additional Details - * Last updated: Fri, 06 Jun 2025 00:04:33 GMT - * Dependencies: none - -# Credits -These definitions were written by [RReverser](https://github.com/RReverser). diff --git a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/flow.d.ts b/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/flow.d.ts deleted file mode 100644 index 9d001a9..0000000 --- a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/flow.d.ts +++ /dev/null @@ -1,167 +0,0 @@ -declare namespace ESTree { - interface FlowTypeAnnotation extends Node {} - - interface FlowBaseTypeAnnotation extends FlowTypeAnnotation {} - - interface FlowLiteralTypeAnnotation extends FlowTypeAnnotation, Literal {} - - interface FlowDeclaration extends Declaration {} - - interface AnyTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface ArrayTypeAnnotation extends FlowTypeAnnotation { - elementType: FlowTypeAnnotation; - } - - interface BooleanLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} - - interface BooleanTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface ClassImplements extends Node { - id: Identifier; - typeParameters?: TypeParameterInstantiation | null; - } - - interface ClassProperty { - key: Expression; - value?: Expression | null; - typeAnnotation?: TypeAnnotation | null; - computed: boolean; - static: boolean; - } - - interface DeclareClass extends FlowDeclaration { - id: Identifier; - typeParameters?: TypeParameterDeclaration | null; - body: ObjectTypeAnnotation; - extends: InterfaceExtends[]; - } - - interface DeclareFunction extends FlowDeclaration { - id: Identifier; - } - - interface DeclareModule extends FlowDeclaration { - id: Literal | Identifier; - body: BlockStatement; - } - - interface DeclareVariable extends FlowDeclaration { - id: Identifier; - } - - interface FunctionTypeAnnotation extends FlowTypeAnnotation { - params: FunctionTypeParam[]; - returnType: FlowTypeAnnotation; - rest?: FunctionTypeParam | null; - typeParameters?: TypeParameterDeclaration | null; - } - - interface FunctionTypeParam { - name: Identifier; - typeAnnotation: FlowTypeAnnotation; - optional: boolean; - } - - interface GenericTypeAnnotation extends FlowTypeAnnotation { - id: Identifier | QualifiedTypeIdentifier; - typeParameters?: TypeParameterInstantiation | null; - } - - interface InterfaceExtends extends Node { - id: Identifier | QualifiedTypeIdentifier; - typeParameters?: TypeParameterInstantiation | null; - } - - interface InterfaceDeclaration extends FlowDeclaration { - id: Identifier; - typeParameters?: TypeParameterDeclaration | null; - extends: InterfaceExtends[]; - body: ObjectTypeAnnotation; - } - - interface IntersectionTypeAnnotation extends FlowTypeAnnotation { - types: FlowTypeAnnotation[]; - } - - interface MixedTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface NullableTypeAnnotation extends FlowTypeAnnotation { - typeAnnotation: TypeAnnotation; - } - - interface NumberLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} - - interface NumberTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface StringLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} - - interface StringTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface TupleTypeAnnotation extends FlowTypeAnnotation { - types: FlowTypeAnnotation[]; - } - - interface TypeofTypeAnnotation extends FlowTypeAnnotation { - argument: FlowTypeAnnotation; - } - - interface TypeAlias extends FlowDeclaration { - id: Identifier; - typeParameters?: TypeParameterDeclaration | null; - right: FlowTypeAnnotation; - } - - interface TypeAnnotation extends Node { - typeAnnotation: FlowTypeAnnotation; - } - - interface TypeCastExpression extends Expression { - expression: Expression; - typeAnnotation: TypeAnnotation; - } - - interface TypeParameterDeclaration extends Node { - params: Identifier[]; - } - - interface TypeParameterInstantiation extends Node { - params: FlowTypeAnnotation[]; - } - - interface ObjectTypeAnnotation extends FlowTypeAnnotation { - properties: ObjectTypeProperty[]; - indexers: ObjectTypeIndexer[]; - callProperties: ObjectTypeCallProperty[]; - } - - interface ObjectTypeCallProperty extends Node { - value: FunctionTypeAnnotation; - static: boolean; - } - - interface ObjectTypeIndexer extends Node { - id: Identifier; - key: FlowTypeAnnotation; - value: FlowTypeAnnotation; - static: boolean; - } - - interface ObjectTypeProperty extends Node { - key: Expression; - value: FlowTypeAnnotation; - optional: boolean; - static: boolean; - } - - interface QualifiedTypeIdentifier extends Node { - qualification: Identifier | QualifiedTypeIdentifier; - id: Identifier; - } - - interface UnionTypeAnnotation extends FlowTypeAnnotation { - types: FlowTypeAnnotation[]; - } - - interface VoidTypeAnnotation extends FlowBaseTypeAnnotation {} -} diff --git a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts b/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts deleted file mode 100644 index 2bc66fb..0000000 --- a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts +++ /dev/null @@ -1,694 +0,0 @@ -// This definition file follows a somewhat unusual format. ESTree allows -// runtime type checks based on the `type` parameter. In order to explain this -// to typescript we want to use discriminated union types: -// https://github.com/Microsoft/TypeScript/pull/9163 -// -// For ESTree this is a bit tricky because the high level interfaces like -// Node or Function are pulling double duty. We want to pass common fields down -// to the interfaces that extend them (like Identifier or -// ArrowFunctionExpression), but you can't extend a type union or enforce -// common fields on them. So we've split the high level interfaces into two -// types, a base type which passes down inherited fields, and a type union of -// all types which extend the base type. Only the type union is exported, and -// the union is how other types refer to the collection of inheriting types. -// -// This makes the definitions file here somewhat more difficult to maintain, -// but it has the notable advantage of making ESTree much easier to use as -// an end user. - -export interface BaseNodeWithoutComments { - // Every leaf interface that extends BaseNode must specify a type property. - // The type property should be a string literal. For example, Identifier - // has: `type: "Identifier"` - type: string; - loc?: SourceLocation | null | undefined; - range?: [number, number] | undefined; -} - -export interface BaseNode extends BaseNodeWithoutComments { - leadingComments?: Comment[] | undefined; - trailingComments?: Comment[] | undefined; -} - -export interface NodeMap { - AssignmentProperty: AssignmentProperty; - CatchClause: CatchClause; - Class: Class; - ClassBody: ClassBody; - Expression: Expression; - Function: Function; - Identifier: Identifier; - Literal: Literal; - MethodDefinition: MethodDefinition; - ModuleDeclaration: ModuleDeclaration; - ModuleSpecifier: ModuleSpecifier; - Pattern: Pattern; - PrivateIdentifier: PrivateIdentifier; - Program: Program; - Property: Property; - PropertyDefinition: PropertyDefinition; - SpreadElement: SpreadElement; - Statement: Statement; - Super: Super; - SwitchCase: SwitchCase; - TemplateElement: TemplateElement; - VariableDeclarator: VariableDeclarator; -} - -export type Node = NodeMap[keyof NodeMap]; - -export interface Comment extends BaseNodeWithoutComments { - type: "Line" | "Block"; - value: string; -} - -export interface SourceLocation { - source?: string | null | undefined; - start: Position; - end: Position; -} - -export interface Position { - /** >= 1 */ - line: number; - /** >= 0 */ - column: number; -} - -export interface Program extends BaseNode { - type: "Program"; - sourceType: "script" | "module"; - body: Array; - comments?: Comment[] | undefined; -} - -export interface Directive extends BaseNode { - type: "ExpressionStatement"; - expression: Literal; - directive: string; -} - -export interface BaseFunction extends BaseNode { - params: Pattern[]; - generator?: boolean | undefined; - async?: boolean | undefined; - // The body is either BlockStatement or Expression because arrow functions - // can have a body that's either. FunctionDeclarations and - // FunctionExpressions have only BlockStatement bodies. - body: BlockStatement | Expression; -} - -export type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression; - -export type Statement = - | ExpressionStatement - | BlockStatement - | StaticBlock - | EmptyStatement - | DebuggerStatement - | WithStatement - | ReturnStatement - | LabeledStatement - | BreakStatement - | ContinueStatement - | IfStatement - | SwitchStatement - | ThrowStatement - | TryStatement - | WhileStatement - | DoWhileStatement - | ForStatement - | ForInStatement - | ForOfStatement - | Declaration; - -export interface BaseStatement extends BaseNode {} - -export interface EmptyStatement extends BaseStatement { - type: "EmptyStatement"; -} - -export interface BlockStatement extends BaseStatement { - type: "BlockStatement"; - body: Statement[]; - innerComments?: Comment[] | undefined; -} - -export interface StaticBlock extends Omit { - type: "StaticBlock"; -} - -export interface ExpressionStatement extends BaseStatement { - type: "ExpressionStatement"; - expression: Expression; -} - -export interface IfStatement extends BaseStatement { - type: "IfStatement"; - test: Expression; - consequent: Statement; - alternate?: Statement | null | undefined; -} - -export interface LabeledStatement extends BaseStatement { - type: "LabeledStatement"; - label: Identifier; - body: Statement; -} - -export interface BreakStatement extends BaseStatement { - type: "BreakStatement"; - label?: Identifier | null | undefined; -} - -export interface ContinueStatement extends BaseStatement { - type: "ContinueStatement"; - label?: Identifier | null | undefined; -} - -export interface WithStatement extends BaseStatement { - type: "WithStatement"; - object: Expression; - body: Statement; -} - -export interface SwitchStatement extends BaseStatement { - type: "SwitchStatement"; - discriminant: Expression; - cases: SwitchCase[]; -} - -export interface ReturnStatement extends BaseStatement { - type: "ReturnStatement"; - argument?: Expression | null | undefined; -} - -export interface ThrowStatement extends BaseStatement { - type: "ThrowStatement"; - argument: Expression; -} - -export interface TryStatement extends BaseStatement { - type: "TryStatement"; - block: BlockStatement; - handler?: CatchClause | null | undefined; - finalizer?: BlockStatement | null | undefined; -} - -export interface WhileStatement extends BaseStatement { - type: "WhileStatement"; - test: Expression; - body: Statement; -} - -export interface DoWhileStatement extends BaseStatement { - type: "DoWhileStatement"; - body: Statement; - test: Expression; -} - -export interface ForStatement extends BaseStatement { - type: "ForStatement"; - init?: VariableDeclaration | Expression | null | undefined; - test?: Expression | null | undefined; - update?: Expression | null | undefined; - body: Statement; -} - -export interface BaseForXStatement extends BaseStatement { - left: VariableDeclaration | Pattern; - right: Expression; - body: Statement; -} - -export interface ForInStatement extends BaseForXStatement { - type: "ForInStatement"; -} - -export interface DebuggerStatement extends BaseStatement { - type: "DebuggerStatement"; -} - -export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration; - -export interface BaseDeclaration extends BaseStatement {} - -export interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration { - type: "FunctionDeclaration"; - /** It is null when a function declaration is a part of the `export default function` statement */ - id: Identifier | null; - body: BlockStatement; -} - -export interface FunctionDeclaration extends MaybeNamedFunctionDeclaration { - id: Identifier; -} - -export interface VariableDeclaration extends BaseDeclaration { - type: "VariableDeclaration"; - declarations: VariableDeclarator[]; - kind: "var" | "let" | "const" | "using" | "await using"; -} - -export interface VariableDeclarator extends BaseNode { - type: "VariableDeclarator"; - id: Pattern; - init?: Expression | null | undefined; -} - -export interface ExpressionMap { - ArrayExpression: ArrayExpression; - ArrowFunctionExpression: ArrowFunctionExpression; - AssignmentExpression: AssignmentExpression; - AwaitExpression: AwaitExpression; - BinaryExpression: BinaryExpression; - CallExpression: CallExpression; - ChainExpression: ChainExpression; - ClassExpression: ClassExpression; - ConditionalExpression: ConditionalExpression; - FunctionExpression: FunctionExpression; - Identifier: Identifier; - ImportExpression: ImportExpression; - Literal: Literal; - LogicalExpression: LogicalExpression; - MemberExpression: MemberExpression; - MetaProperty: MetaProperty; - NewExpression: NewExpression; - ObjectExpression: ObjectExpression; - SequenceExpression: SequenceExpression; - TaggedTemplateExpression: TaggedTemplateExpression; - TemplateLiteral: TemplateLiteral; - ThisExpression: ThisExpression; - UnaryExpression: UnaryExpression; - UpdateExpression: UpdateExpression; - YieldExpression: YieldExpression; -} - -export type Expression = ExpressionMap[keyof ExpressionMap]; - -export interface BaseExpression extends BaseNode {} - -export type ChainElement = SimpleCallExpression | MemberExpression; - -export interface ChainExpression extends BaseExpression { - type: "ChainExpression"; - expression: ChainElement; -} - -export interface ThisExpression extends BaseExpression { - type: "ThisExpression"; -} - -export interface ArrayExpression extends BaseExpression { - type: "ArrayExpression"; - elements: Array; -} - -export interface ObjectExpression extends BaseExpression { - type: "ObjectExpression"; - properties: Array; -} - -export interface PrivateIdentifier extends BaseNode { - type: "PrivateIdentifier"; - name: string; -} - -export interface Property extends BaseNode { - type: "Property"; - key: Expression | PrivateIdentifier; - value: Expression | Pattern; // Could be an AssignmentProperty - kind: "init" | "get" | "set"; - method: boolean; - shorthand: boolean; - computed: boolean; -} - -export interface PropertyDefinition extends BaseNode { - type: "PropertyDefinition"; - key: Expression | PrivateIdentifier; - value?: Expression | null | undefined; - computed: boolean; - static: boolean; -} - -export interface FunctionExpression extends BaseFunction, BaseExpression { - id?: Identifier | null | undefined; - type: "FunctionExpression"; - body: BlockStatement; -} - -export interface SequenceExpression extends BaseExpression { - type: "SequenceExpression"; - expressions: Expression[]; -} - -export interface UnaryExpression extends BaseExpression { - type: "UnaryExpression"; - operator: UnaryOperator; - prefix: true; - argument: Expression; -} - -export interface BinaryExpression extends BaseExpression { - type: "BinaryExpression"; - operator: BinaryOperator; - left: Expression | PrivateIdentifier; - right: Expression; -} - -export interface AssignmentExpression extends BaseExpression { - type: "AssignmentExpression"; - operator: AssignmentOperator; - left: Pattern | MemberExpression; - right: Expression; -} - -export interface UpdateExpression extends BaseExpression { - type: "UpdateExpression"; - operator: UpdateOperator; - argument: Expression; - prefix: boolean; -} - -export interface LogicalExpression extends BaseExpression { - type: "LogicalExpression"; - operator: LogicalOperator; - left: Expression; - right: Expression; -} - -export interface ConditionalExpression extends BaseExpression { - type: "ConditionalExpression"; - test: Expression; - alternate: Expression; - consequent: Expression; -} - -export interface BaseCallExpression extends BaseExpression { - callee: Expression | Super; - arguments: Array; -} -export type CallExpression = SimpleCallExpression | NewExpression; - -export interface SimpleCallExpression extends BaseCallExpression { - type: "CallExpression"; - optional: boolean; -} - -export interface NewExpression extends BaseCallExpression { - type: "NewExpression"; -} - -export interface MemberExpression extends BaseExpression, BasePattern { - type: "MemberExpression"; - object: Expression | Super; - property: Expression | PrivateIdentifier; - computed: boolean; - optional: boolean; -} - -export type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression; - -export interface BasePattern extends BaseNode {} - -export interface SwitchCase extends BaseNode { - type: "SwitchCase"; - test?: Expression | null | undefined; - consequent: Statement[]; -} - -export interface CatchClause extends BaseNode { - type: "CatchClause"; - param: Pattern | null; - body: BlockStatement; -} - -export interface Identifier extends BaseNode, BaseExpression, BasePattern { - type: "Identifier"; - name: string; -} - -export type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral; - -export interface SimpleLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value: string | boolean | number | null; - raw?: string | undefined; -} - -export interface RegExpLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value?: RegExp | null | undefined; - regex: { - pattern: string; - flags: string; - }; - raw?: string | undefined; -} - -export interface BigIntLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value?: bigint | null | undefined; - bigint: string; - raw?: string | undefined; -} - -export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"; - -export type BinaryOperator = - | "==" - | "!=" - | "===" - | "!==" - | "<" - | "<=" - | ">" - | ">=" - | "<<" - | ">>" - | ">>>" - | "+" - | "-" - | "*" - | "/" - | "%" - | "**" - | "|" - | "^" - | "&" - | "in" - | "instanceof"; - -export type LogicalOperator = "||" | "&&" | "??"; - -export type AssignmentOperator = - | "=" - | "+=" - | "-=" - | "*=" - | "/=" - | "%=" - | "**=" - | "<<=" - | ">>=" - | ">>>=" - | "|=" - | "^=" - | "&=" - | "||=" - | "&&=" - | "??="; - -export type UpdateOperator = "++" | "--"; - -export interface ForOfStatement extends BaseForXStatement { - type: "ForOfStatement"; - await: boolean; -} - -export interface Super extends BaseNode { - type: "Super"; -} - -export interface SpreadElement extends BaseNode { - type: "SpreadElement"; - argument: Expression; -} - -export interface ArrowFunctionExpression extends BaseExpression, BaseFunction { - type: "ArrowFunctionExpression"; - expression: boolean; - body: BlockStatement | Expression; -} - -export interface YieldExpression extends BaseExpression { - type: "YieldExpression"; - argument?: Expression | null | undefined; - delegate: boolean; -} - -export interface TemplateLiteral extends BaseExpression { - type: "TemplateLiteral"; - quasis: TemplateElement[]; - expressions: Expression[]; -} - -export interface TaggedTemplateExpression extends BaseExpression { - type: "TaggedTemplateExpression"; - tag: Expression; - quasi: TemplateLiteral; -} - -export interface TemplateElement extends BaseNode { - type: "TemplateElement"; - tail: boolean; - value: { - /** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */ - cooked?: string | null | undefined; - raw: string; - }; -} - -export interface AssignmentProperty extends Property { - value: Pattern; - kind: "init"; - method: boolean; // false -} - -export interface ObjectPattern extends BasePattern { - type: "ObjectPattern"; - properties: Array; -} - -export interface ArrayPattern extends BasePattern { - type: "ArrayPattern"; - elements: Array; -} - -export interface RestElement extends BasePattern { - type: "RestElement"; - argument: Pattern; -} - -export interface AssignmentPattern extends BasePattern { - type: "AssignmentPattern"; - left: Pattern; - right: Expression; -} - -export type Class = ClassDeclaration | ClassExpression; -export interface BaseClass extends BaseNode { - superClass?: Expression | null | undefined; - body: ClassBody; -} - -export interface ClassBody extends BaseNode { - type: "ClassBody"; - body: Array; -} - -export interface MethodDefinition extends BaseNode { - type: "MethodDefinition"; - key: Expression | PrivateIdentifier; - value: FunctionExpression; - kind: "constructor" | "method" | "get" | "set"; - computed: boolean; - static: boolean; -} - -export interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration { - type: "ClassDeclaration"; - /** It is null when a class declaration is a part of the `export default class` statement */ - id: Identifier | null; -} - -export interface ClassDeclaration extends MaybeNamedClassDeclaration { - id: Identifier; -} - -export interface ClassExpression extends BaseClass, BaseExpression { - type: "ClassExpression"; - id?: Identifier | null | undefined; -} - -export interface MetaProperty extends BaseExpression { - type: "MetaProperty"; - meta: Identifier; - property: Identifier; -} - -export type ModuleDeclaration = - | ImportDeclaration - | ExportNamedDeclaration - | ExportDefaultDeclaration - | ExportAllDeclaration; -export interface BaseModuleDeclaration extends BaseNode {} - -export type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier; -export interface BaseModuleSpecifier extends BaseNode { - local: Identifier; -} - -export interface ImportDeclaration extends BaseModuleDeclaration { - type: "ImportDeclaration"; - specifiers: Array; - attributes: ImportAttribute[]; - source: Literal; -} - -export interface ImportSpecifier extends BaseModuleSpecifier { - type: "ImportSpecifier"; - imported: Identifier | Literal; -} - -export interface ImportAttribute extends BaseNode { - type: "ImportAttribute"; - key: Identifier | Literal; - value: Literal; -} - -export interface ImportExpression extends BaseExpression { - type: "ImportExpression"; - source: Expression; - options?: Expression | null | undefined; -} - -export interface ImportDefaultSpecifier extends BaseModuleSpecifier { - type: "ImportDefaultSpecifier"; -} - -export interface ImportNamespaceSpecifier extends BaseModuleSpecifier { - type: "ImportNamespaceSpecifier"; -} - -export interface ExportNamedDeclaration extends BaseModuleDeclaration { - type: "ExportNamedDeclaration"; - declaration?: Declaration | null | undefined; - specifiers: ExportSpecifier[]; - attributes: ImportAttribute[]; - source?: Literal | null | undefined; -} - -export interface ExportSpecifier extends Omit { - type: "ExportSpecifier"; - local: Identifier | Literal; - exported: Identifier | Literal; -} - -export interface ExportDefaultDeclaration extends BaseModuleDeclaration { - type: "ExportDefaultDeclaration"; - declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression; -} - -export interface ExportAllDeclaration extends BaseModuleDeclaration { - type: "ExportAllDeclaration"; - exported: Identifier | Literal | null; - attributes: ImportAttribute[]; - source: Literal; -} - -export interface AwaitExpression extends BaseExpression { - type: "AwaitExpression"; - argument: Expression; -} diff --git a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/package.json b/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/package.json deleted file mode 100644 index 68c0782..0000000 --- a/node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@types/estree", - "version": "1.0.8", - "description": "TypeScript definitions for estree", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree", - "license": "MIT", - "contributors": [ - { - "name": "RReverser", - "githubUsername": "RReverser", - "url": "https://github.com/RReverser" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/estree" - }, - "scripts": {}, - "dependencies": {}, - "peerDependencies": {}, - "typesPublisherContentHash": "7a167b6e4a4d9f6e9a2cb9fd3fc45c885f89cbdeb44b3e5961bb057a45c082fd", - "typeScriptVersion": "5.1", - "nonNpm": true -} \ No newline at end of file diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/LICENSE b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/LICENSE deleted file mode 100644 index 9e841e7..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/README.md b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/README.md deleted file mode 100644 index 05fdbfc..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/node` - -# Summary -This package contains type definitions for node (https://nodejs.org/). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20. - -### Additional Details - * Last updated: Sun, 08 Feb 2026 00:09:19 GMT - * Dependencies: [undici-types](https://npmjs.com/package/undici-types) - -# Credits -These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [David Junger](https://github.com/touffy), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Sebastian Silbermann](https://github.com/eps1lon), [Wilco Bakker](https://github.com/WilcoBakker), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky). diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/assert.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/assert.d.ts deleted file mode 100644 index c32c903..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/assert.d.ts +++ /dev/null @@ -1,1062 +0,0 @@ -/** - * The `node:assert` module provides a set of assertion functions for verifying - * invariants. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/assert.js) - */ -declare module "assert" { - /** - * An alias of {@link ok}. - * @since v0.5.9 - * @param value The input that is checked for being truthy. - */ - function assert(value: unknown, message?: string | Error): asserts value; - namespace assert { - type AssertMethodNames = - | "deepEqual" - | "deepStrictEqual" - | "doesNotMatch" - | "doesNotReject" - | "doesNotThrow" - | "equal" - | "fail" - | "ifError" - | "match" - | "notDeepEqual" - | "notDeepStrictEqual" - | "notEqual" - | "notStrictEqual" - | "ok" - | "rejects" - | "strictEqual" - | "throws"; - /** - * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class. - */ - class AssertionError extends Error { - /** - * Set to the `actual` argument for methods such as {@link assert.strictEqual()}. - */ - actual: unknown; - /** - * Set to the `expected` argument for methods such as {@link assert.strictEqual()}. - */ - expected: unknown; - /** - * Set to the passed in operator value. - */ - operator: string; - /** - * Indicates if the message was auto-generated (`true`) or not. - */ - generatedMessage: boolean; - /** - * Value is always `ERR_ASSERTION` to show that the error is an assertion error. - */ - code: "ERR_ASSERTION"; - constructor(options?: { - /** If provided, the error message is set to this value. */ - message?: string | undefined; - /** The `actual` property on the error instance. */ - actual?: unknown | undefined; - /** The `expected` property on the error instance. */ - expected?: unknown | undefined; - /** The `operator` property on the error instance. */ - operator?: string | undefined; - /** If provided, the generated stack trace omits frames before this function. */ - // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type - stackStartFn?: Function | undefined; - }); - } - /** - * This feature is deprecated and will be removed in a future version. - * Please consider using alternatives such as the `mock` helper function. - * @since v14.2.0, v12.19.0 - * @deprecated Deprecated - */ - class CallTracker { - /** - * The wrapper function is expected to be called exactly `exact` times. If the - * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an - * error. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func); - * ``` - * @since v14.2.0, v12.19.0 - * @param [fn='A no-op function'] - * @param [exact=1] - * @return A function that wraps `fn`. - */ - calls(exact?: number): () => void; - calls(fn: undefined, exact?: number): () => void; - calls any>(fn: Func, exact?: number): Func; - calls any>(fn?: Func, exact?: number): Func | (() => void); - /** - * Example: - * - * ```js - * import assert from 'node:assert'; - * - * const tracker = new assert.CallTracker(); - * - * function func() {} - * const callsfunc = tracker.calls(func); - * callsfunc(1, 2, 3); - * - * assert.deepStrictEqual(tracker.getCalls(callsfunc), - * [{ thisArg: undefined, arguments: [1, 2, 3] }]); - * ``` - * @since v18.8.0, v16.18.0 - * @return An array with all the calls to a tracked function. - */ - getCalls(fn: Function): CallTrackerCall[]; - /** - * The arrays contains information about the expected and actual number of calls of - * the functions that have not been called the expected number of times. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * // Returns an array containing information on callsfunc() - * console.log(tracker.report()); - * // [ - * // { - * // message: 'Expected the func function to be executed 2 time(s) but was - * // executed 0 time(s).', - * // actual: 0, - * // expected: 2, - * // operator: 'func', - * // stack: stack trace - * // } - * // ] - * ``` - * @since v14.2.0, v12.19.0 - * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}. - */ - report(): CallTrackerReportInformation[]; - /** - * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it. - * If no arguments are passed, all tracked functions will be reset. - * - * ```js - * import assert from 'node:assert'; - * - * const tracker = new assert.CallTracker(); - * - * function func() {} - * const callsfunc = tracker.calls(func); - * - * callsfunc(); - * // Tracker was called once - * assert.strictEqual(tracker.getCalls(callsfunc).length, 1); - * - * tracker.reset(callsfunc); - * assert.strictEqual(tracker.getCalls(callsfunc).length, 0); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn a tracked function to reset. - */ - reset(fn?: Function): void; - /** - * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that - * have not been called the expected number of times. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * callsfunc(); - * - * // Will throw an error since callsfunc() was only called once. - * tracker.verify(); - * ``` - * @since v14.2.0, v12.19.0 - */ - verify(): void; - } - interface CallTrackerCall { - thisArg: object; - arguments: unknown[]; - } - interface CallTrackerReportInformation { - message: string; - /** The actual number of times the function was called. */ - actual: number; - /** The number of times the function was expected to be called. */ - expected: number; - /** The name of the function that is wrapped. */ - operator: string; - /** A stack trace of the function. */ - stack: object; - } - type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error; - /** - * Throws an `AssertionError` with the provided error message or a default - * error message. If the `message` parameter is an instance of an `Error` then - * it will be thrown instead of the `AssertionError`. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.fail(); - * // AssertionError [ERR_ASSERTION]: Failed - * - * assert.fail('boom'); - * // AssertionError [ERR_ASSERTION]: boom - * - * assert.fail(new TypeError('need array')); - * // TypeError: need array - * ``` - * - * Using `assert.fail()` with more than two arguments is possible but deprecated. - * See below for further details. - * @since v0.1.21 - * @param [message='Failed'] - */ - function fail(message?: string | Error): never; - /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ - function fail( - actual: unknown, - expected: unknown, - message?: string | Error, - operator?: string, - // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type - stackStartFn?: Function, - ): never; - /** - * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`. - * - * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``. - * - * Be aware that in the `repl` the error message will be different to the one - * thrown in a file! See below for further details. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.ok(true); - * // OK - * assert.ok(1); - * // OK - * - * assert.ok(); - * // AssertionError: No value argument passed to `assert.ok()` - * - * assert.ok(false, 'it\'s false'); - * // AssertionError: it's false - * - * // In the repl: - * assert.ok(typeof 123 === 'string'); - * // AssertionError: false == true - * - * // In a file (e.g. test.js): - * assert.ok(typeof 123 === 'string'); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(typeof 123 === 'string') - * - * assert.ok(false); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(false) - * - * assert.ok(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(0) - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * // Using `assert()` works the same: - * assert(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert(0) - * ``` - * @since v0.1.21 - */ - function ok(value: unknown, message?: string | Error): asserts value; - /** - * **Strict assertion mode** - * - * An alias of {@link strictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link strictEqual} instead. - * - * Tests shallow, coercive equality between the `actual` and `expected` parameters - * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled - * and treated as being identical if both sides are `NaN`. - * - * ```js - * import assert from 'node:assert'; - * - * assert.equal(1, 1); - * // OK, 1 == 1 - * assert.equal(1, '1'); - * // OK, 1 == '1' - * assert.equal(NaN, NaN); - * // OK - * - * assert.equal(1, 2); - * // AssertionError: 1 == 2 - * assert.equal({ a: { b: 1 } }, { a: { b: 1 } }); - * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } } - * ``` - * - * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v0.1.21 - */ - function equal(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead. - * - * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is - * specially handled and treated as being identical if both sides are `NaN`. - * - * ```js - * import assert from 'node:assert'; - * - * assert.notEqual(1, 2); - * // OK - * - * assert.notEqual(1, 1); - * // AssertionError: 1 != 1 - * - * assert.notEqual(1, '1'); - * // AssertionError: 1 != '1' - * ``` - * - * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error - * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v0.1.21 - */ - function notEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link deepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead. - * - * Tests for deep equality between the `actual` and `expected` parameters. Consider - * using {@link deepStrictEqual} instead. {@link deepEqual} can have - * surprising results. - * - * _Deep equality_ means that the enumerable "own" properties of child objects - * are also recursively evaluated by the following rules. - * @since v0.1.21 - */ - function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notDeepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead. - * - * Tests for any deep inequality. Opposite of {@link deepEqual}. - * - * ```js - * import assert from 'node:assert'; - * - * const obj1 = { - * a: { - * b: 1, - * }, - * }; - * const obj2 = { - * a: { - * b: 2, - * }, - * }; - * const obj3 = { - * a: { - * b: 1, - * }, - * }; - * const obj4 = { __proto__: obj1 }; - * - * assert.notDeepEqual(obj1, obj1); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj2); - * // OK - * - * assert.notDeepEqual(obj1, obj3); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj4); - * // OK - * ``` - * - * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests strict equality between the `actual` and `expected` parameters as - * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.strictEqual(1, 2); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // - * // 1 !== 2 - * - * assert.strictEqual(1, 1); - * // OK - * - * assert.strictEqual('Hello foobar', 'Hello World!'); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // + actual - expected - * // - * // + 'Hello foobar' - * // - 'Hello World!' - * // ^ - * - * const apples = 1; - * const oranges = 2; - * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`); - * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2 - * - * assert.strictEqual(1, '1', new TypeError('Inputs are not identical')); - * // TypeError: Inputs are not identical - * ``` - * - * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a - * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function strictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests strict inequality between the `actual` and `expected` parameters as - * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.notStrictEqual(1, 2); - * // OK - * - * assert.notStrictEqual(1, 1); - * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to: - * // - * // 1 - * - * assert.notStrictEqual(1, '1'); - * // OK - * ``` - * - * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a - * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests for deep equality between the `actual` and `expected` parameters. - * "Deep" equality means that the enumerable "own" properties of child objects - * are recursively evaluated also by the following rules. - * @since v1.2.0 - */ - function deepStrictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.notDeepStrictEqual({ a: 1 }, { a: '1' }); - * // OK - * ``` - * - * If the values are deeply and strictly equal, an `AssertionError` is thrown - * with a `message` property set equal to the value of the `message` parameter. If - * the `message` parameter is undefined, a default error message is assigned. If - * the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v1.2.0 - */ - function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Expects the function `fn` to throw an error. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * a validation object where each property will be tested for strict deep equality, - * or an instance of error where each property will be tested for strict deep - * equality including the non-enumerable `message` and `name` properties. When - * using an object, it is also possible to use a regular expression, when - * validating against a string property. See below for examples. - * - * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation - * fails. - * - * Custom validation object/error instance: - * - * ```js - * import assert from 'node:assert/strict'; - * - * const err = new TypeError('Wrong value'); - * err.code = 404; - * err.foo = 'bar'; - * err.info = { - * nested: true, - * baz: 'text', - * }; - * err.reg = /abc/i; - * - * assert.throws( - * () => { - * throw err; - * }, - * { - * name: 'TypeError', - * message: 'Wrong value', - * info: { - * nested: true, - * baz: 'text', - * }, - * // Only properties on the validation object will be tested for. - * // Using nested objects requires all properties to be present. Otherwise - * // the validation is going to fail. - * }, - * ); - * - * // Using regular expressions to validate error properties: - * assert.throws( - * () => { - * throw err; - * }, - * { - * // The `name` and `message` properties are strings and using regular - * // expressions on those will match against the string. If they fail, an - * // error is thrown. - * name: /^TypeError$/, - * message: /Wrong/, - * foo: 'bar', - * info: { - * nested: true, - * // It is not possible to use regular expressions for nested properties! - * baz: 'text', - * }, - * // The `reg` property contains a regular expression and only if the - * // validation object contains an identical regular expression, it is going - * // to pass. - * reg: /abc/i, - * }, - * ); - * - * // Fails due to the different `message` and `name` properties: - * assert.throws( - * () => { - * const otherErr = new Error('Not found'); - * // Copy all enumerable properties from `err` to `otherErr`. - * for (const [key, value] of Object.entries(err)) { - * otherErr[key] = value; - * } - * throw otherErr; - * }, - * // The error's `message` and `name` properties will also be checked when using - * // an error as validation object. - * err, - * ); - * ``` - * - * Validate instanceof using constructor: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * Error, - * ); - * ``` - * - * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions): - * - * Using a regular expression runs `.toString` on the error object, and will - * therefore also include the error name. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * /^Error: Wrong value$/, - * ); - * ``` - * - * Custom error validation: - * - * The function must return `true` to indicate all internal validations passed. - * It will otherwise fail with an `AssertionError`. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * (err) => { - * assert(err instanceof Error); - * assert(/value/.test(err)); - * // Avoid returning anything from validation functions besides `true`. - * // Otherwise, it's not clear what part of the validation failed. Instead, - * // throw an error about the specific validation that failed (as done in this - * // example) and add as much helpful debugging information to that error as - * // possible. - * return true; - * }, - * 'unexpected error', - * ); - * ``` - * - * `error` cannot be a string. If a string is provided as the second - * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same - * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using - * a string as the second argument gets considered: - * - * ```js - * import assert from 'node:assert/strict'; - * - * function throwingFirst() { - * throw new Error('First'); - * } - * - * function throwingSecond() { - * throw new Error('Second'); - * } - * - * function notThrowing() {} - * - * // The second argument is a string and the input function threw an Error. - * // The first case will not throw as it does not match for the error message - * // thrown by the input function! - * assert.throws(throwingFirst, 'Second'); - * // In the next example the message has no benefit over the message from the - * // error and since it is not clear if the user intended to actually match - * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error. - * assert.throws(throwingSecond, 'Second'); - * // TypeError [ERR_AMBIGUOUS_ARGUMENT] - * - * // The string is only used (as message) in case the function does not throw: - * assert.throws(notThrowing, 'Second'); - * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second - * - * // If it was intended to match for the error message do this instead: - * // It does not throw because the error messages match. - * assert.throws(throwingSecond, /Second$/); - * - * // If the error message does not match, an AssertionError is thrown. - * assert.throws(throwingFirst, /Second$/); - * // AssertionError [ERR_ASSERTION] - * ``` - * - * Due to the confusing error-prone notation, avoid a string as the second - * argument. - * @since v0.1.21 - */ - function throws(block: () => unknown, message?: string | Error): void; - function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Asserts that the function `fn` does not throw an error. - * - * Using `assert.doesNotThrow()` is actually not useful because there - * is no benefit in catching an error and then rethrowing it. Instead, consider - * adding a comment next to the specific code path that should not throw and keep - * error messages as expressive as possible. - * - * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function. - * - * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a - * different type, or if the `error` parameter is undefined, the error is - * propagated back to the caller. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation - * function. See {@link throws} for more details. - * - * The following, for instance, will throw the `TypeError` because there is no - * matching error type in the assertion: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError, - * ); - * ``` - * - * However, the following will result in an `AssertionError` with the message - * 'Got unwanted exception...': - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * TypeError, - * ); - * ``` - * - * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * /Wrong value/, - * 'Whoops', - * ); - * // Throws: AssertionError: Got unwanted exception: Whoops - * ``` - * @since v0.1.21 - */ - function doesNotThrow(block: () => unknown, message?: string | Error): void; - function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Throws `value` if `value` is not `undefined` or `null`. This is useful when - * testing the `error` argument in callbacks. The stack trace contains all frames - * from the error passed to `ifError()` including the potential new frames for `ifError()` itself. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.ifError(null); - * // OK - * assert.ifError(0); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0 - * assert.ifError('error'); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error' - * assert.ifError(new Error()); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error - * - * // Create some random error frames. - * let err; - * (function errorFrame() { - * err = new Error('test error'); - * })(); - * - * (function ifErrorFrame() { - * assert.ifError(err); - * })(); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error - * // at ifErrorFrame - * // at errorFrame - * ``` - * @since v0.1.97 - */ - function ifError(value: unknown): asserts value is null | undefined; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is rejected. - * - * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the - * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) - * error. In both cases the error handler is skipped. - * - * Besides the async nature to await the completion behaves identically to {@link throws}. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * an object where each property will be tested for, or an instance of error where - * each property will be tested for including the non-enumerable `message` and `name` properties. - * - * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject. - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * { - * name: 'TypeError', - * message: 'Wrong value', - * }, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * (err) => { - * assert.strictEqual(err.name, 'TypeError'); - * assert.strictEqual(err.message, 'Wrong value'); - * return true; - * }, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.rejects( - * Promise.reject(new Error('Wrong value')), - * Error, - * ).then(() => { - * // ... - * }); - * ``` - * - * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to - * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the - * example in {@link throws} carefully if using a string as the second argument gets considered. - * @since v10.0.0 - */ - function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; - function rejects( - block: (() => Promise) | Promise, - error: AssertPredicate, - message?: string | Error, - ): Promise; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is not rejected. - * - * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If - * the function does not return a promise, `assert.doesNotReject()` will return a - * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) error. In both cases - * the error handler is skipped. - * - * Using `assert.doesNotReject()` is actually not useful because there is little - * benefit in catching a rejection and then rejecting it again. Instead, consider - * adding a comment next to the specific code path that should not reject and keep - * error messages as expressive as possible. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation - * function. See {@link throws} for more details. - * - * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}. - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.doesNotReject( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotReject(Promise.reject(new TypeError('Wrong value'))) - * .then(() => { - * // ... - * }); - * ``` - * @since v10.0.0 - */ - function doesNotReject( - block: (() => Promise) | Promise, - message?: string | Error, - ): Promise; - function doesNotReject( - block: (() => Promise) | Promise, - error: AssertPredicate, - message?: string | Error, - ): Promise; - /** - * Expects the `string` input to match the regular expression. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.match('I will fail', /pass/); - * // AssertionError [ERR_ASSERTION]: The input did not match the regular ... - * - * assert.match(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.match('I will pass', /pass/); - * // OK - * ``` - * - * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. - * @since v13.6.0, v12.16.0 - */ - function match(value: string, regExp: RegExp, message?: string | Error): void; - /** - * Expects the `string` input not to match the regular expression. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotMatch('I will fail', /fail/); - * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ... - * - * assert.doesNotMatch(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.doesNotMatch('I will pass', /different/); - * // OK - * ``` - * - * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. - * @since v13.6.0, v12.16.0 - */ - function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void; - /** - * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example, - * {@link deepEqual} will behave like {@link deepStrictEqual}. - * - * In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error - * messages for objects display the objects, often truncated. - * - * To use strict assertion mode: - * - * ```js - * import { strict as assert } from 'node:assert';COPY - * import assert from 'node:assert/strict'; - * ``` - * - * Example error diff: - * - * ```js - * import { strict as assert } from 'node:assert'; - * - * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]); - * // AssertionError: Expected inputs to be strictly deep-equal: - * // + actual - expected ... Lines skipped - * // - * // [ - * // [ - * // ... - * // 2, - * // + 3 - * // - '3' - * // ], - * // ... - * // 5 - * // ] - * ``` - * - * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also - * deactivate the colors in the REPL. For more on color support in terminal environments, read the tty - * `getColorDepth()` documentation. - * - * @since v15.0.0, v13.9.0, v12.16.2, v9.9.0 - */ - namespace strict { - type AssertionError = assert.AssertionError; - type AssertPredicate = assert.AssertPredicate; - type CallTrackerCall = assert.CallTrackerCall; - type CallTrackerReportInformation = assert.CallTrackerReportInformation; - } - const strict: - & Omit< - typeof assert, - | "equal" - | "notEqual" - | "deepEqual" - | "notDeepEqual" - | "ok" - | "strictEqual" - | "deepStrictEqual" - | "ifError" - | "strict" - | "AssertionError" - > - & { - (value: unknown, message?: string | Error): asserts value; - equal: typeof strictEqual; - notEqual: typeof notStrictEqual; - deepEqual: typeof deepStrictEqual; - notDeepEqual: typeof notDeepStrictEqual; - // Mapped types and assertion functions are incompatible? - // TS2775: Assertions require every name in the call target - // to be declared with an explicit type annotation. - ok: typeof ok; - strictEqual: typeof strictEqual; - deepStrictEqual: typeof deepStrictEqual; - ifError: typeof ifError; - strict: typeof strict; - AssertionError: typeof AssertionError; - }; - } - export = assert; -} -declare module "node:assert" { - import assert = require("assert"); - export = assert; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/assert/strict.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/assert/strict.d.ts deleted file mode 100644 index f333913..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/assert/strict.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare module "assert/strict" { - import { strict } from "node:assert"; - export = strict; -} -declare module "node:assert/strict" { - import { strict } from "node:assert"; - export = strict; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/async_hooks.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/async_hooks.d.ts deleted file mode 100644 index fd9d2aa..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/async_hooks.d.ts +++ /dev/null @@ -1,605 +0,0 @@ -/** - * We strongly discourage the use of the `async_hooks` API. - * Other APIs that can cover most of its use cases include: - * - * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v20.x/api/async_context.html#class-asynclocalstorage) tracks async context - * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processgetactiveresourcesinfo) tracks active resources - * - * The `node:async_hooks` module provides an API to track asynchronous resources. - * It can be accessed using: - * - * ```js - * import async_hooks from 'node:async_hooks'; - * ``` - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/async_hooks.js) - */ -declare module "async_hooks" { - /** - * ```js - * import { executionAsyncId } from 'node:async_hooks'; - * import fs from 'node:fs'; - * - * console.log(executionAsyncId()); // 1 - bootstrap - * const path = '.'; - * fs.open(path, 'r', (err, fd) => { - * console.log(executionAsyncId()); // 6 - open() - * }); - * ``` - * - * The ID returned from `executionAsyncId()` is related to execution timing, not - * causality (which is covered by `triggerAsyncId()`): - * - * ```js - * const server = net.createServer((conn) => { - * // Returns the ID of the server, not of the new connection, because the - * // callback runs in the execution scope of the server's MakeCallback(). - * async_hooks.executionAsyncId(); - * - * }).listen(port, () => { - * // Returns the ID of a TickObject (process.nextTick()) because all - * // callbacks passed to .listen() are wrapped in a nextTick(). - * async_hooks.executionAsyncId(); - * }); - * ``` - * - * Promise contexts may not get precise `executionAsyncIds` by default. - * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking). - * @since v8.1.0 - * @return The `asyncId` of the current execution context. Useful to track when something calls. - */ - function executionAsyncId(): number; - /** - * Resource objects returned by `executionAsyncResource()` are most often internal - * Node.js handle objects with undocumented APIs. Using any functions or properties - * on the object is likely to crash your application and should be avoided. - * - * Using `executionAsyncResource()` in the top-level execution context will - * return an empty object as there is no handle or request object to use, - * but having an object representing the top-level can be helpful. - * - * ```js - * import { open } from 'node:fs'; - * import { executionAsyncId, executionAsyncResource } from 'node:async_hooks'; - * - * console.log(executionAsyncId(), executionAsyncResource()); // 1 {} - * open(new URL(import.meta.url), 'r', (err, fd) => { - * console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap - * }); - * ``` - * - * This can be used to implement continuation local storage without the - * use of a tracking `Map` to store the metadata: - * - * ```js - * import { createServer } from 'node:http'; - * import { - * executionAsyncId, - * executionAsyncResource, - * createHook, - * } from 'async_hooks'; - * const sym = Symbol('state'); // Private symbol to avoid pollution - * - * createHook({ - * init(asyncId, type, triggerAsyncId, resource) { - * const cr = executionAsyncResource(); - * if (cr) { - * resource[sym] = cr[sym]; - * } - * }, - * }).enable(); - * - * const server = createServer((req, res) => { - * executionAsyncResource()[sym] = { state: req.url }; - * setTimeout(function() { - * res.end(JSON.stringify(executionAsyncResource()[sym])); - * }, 100); - * }).listen(3000); - * ``` - * @since v13.9.0, v12.17.0 - * @return The resource representing the current execution. Useful to store data within the resource. - */ - function executionAsyncResource(): object; - /** - * ```js - * const server = net.createServer((conn) => { - * // The resource that caused (or triggered) this callback to be called - * // was that of the new connection. Thus the return value of triggerAsyncId() - * // is the asyncId of "conn". - * async_hooks.triggerAsyncId(); - * - * }).listen(port, () => { - * // Even though all callbacks passed to .listen() are wrapped in a nextTick() - * // the callback itself exists because the call to the server's .listen() - * // was made. So the return value would be the ID of the server. - * async_hooks.triggerAsyncId(); - * }); - * ``` - * - * Promise contexts may not get valid `triggerAsyncId`s by default. See - * the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking). - * @return The ID of the resource responsible for calling the callback that is currently being executed. - */ - function triggerAsyncId(): number; - interface HookCallbacks { - /** - * Called when a class is constructed that has the possibility to emit an asynchronous event. - * @param asyncId A unique ID for the async resource - * @param type The type of the async resource - * @param triggerAsyncId The unique ID of the async resource in whose execution context this async resource was created - * @param resource Reference to the resource representing the async operation, needs to be released during destroy - */ - init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; - /** - * When an asynchronous operation is initiated or completes a callback is called to notify the user. - * The before callback is called just before said callback is executed. - * @param asyncId the unique identifier assigned to the resource about to execute the callback. - */ - before?(asyncId: number): void; - /** - * Called immediately after the callback specified in `before` is completed. - * - * If an uncaught exception occurs during execution of the callback, then `after` will run after the `'uncaughtException'` event is emitted or a `domain`'s handler runs. - * @param asyncId the unique identifier assigned to the resource which has executed the callback. - */ - after?(asyncId: number): void; - /** - * Called when a promise has resolve() called. This may not be in the same execution id - * as the promise itself. - * @param asyncId the unique id for the promise that was resolve()d. - */ - promiseResolve?(asyncId: number): void; - /** - * Called after the resource corresponding to asyncId is destroyed - * @param asyncId a unique ID for the async resource - */ - destroy?(asyncId: number): void; - } - interface AsyncHook { - /** - * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. - */ - enable(): this; - /** - * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. - */ - disable(): this; - } - /** - * Registers functions to be called for different lifetime events of each async - * operation. - * - * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the - * respective asynchronous event during a resource's lifetime. - * - * All callbacks are optional. For example, if only resource cleanup needs to - * be tracked, then only the `destroy` callback needs to be passed. The - * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section. - * - * ```js - * import { createHook } from 'node:async_hooks'; - * - * const asyncHook = createHook({ - * init(asyncId, type, triggerAsyncId, resource) { }, - * destroy(asyncId) { }, - * }); - * ``` - * - * The callbacks will be inherited via the prototype chain: - * - * ```js - * class MyAsyncCallbacks { - * init(asyncId, type, triggerAsyncId, resource) { } - * destroy(asyncId) {} - * } - * - * class MyAddedCallbacks extends MyAsyncCallbacks { - * before(asyncId) { } - * after(asyncId) { } - * } - * - * const asyncHook = async_hooks.createHook(new MyAddedCallbacks()); - * ``` - * - * Because promises are asynchronous resources whose lifecycle is tracked - * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises. - * @since v8.1.0 - * @param callbacks The `Hook Callbacks` to register - * @return Instance used for disabling and enabling hooks - */ - function createHook(callbacks: HookCallbacks): AsyncHook; - interface AsyncResourceOptions { - /** - * The ID of the execution context that created this async event. - * @default executionAsyncId() - */ - triggerAsyncId?: number | undefined; - /** - * Disables automatic `emitDestroy` when the object is garbage collected. - * This usually does not need to be set (even if `emitDestroy` is called - * manually), unless the resource's `asyncId` is retrieved and the - * sensitive API's `emitDestroy` is called with it. - * @default false - */ - requireManualDestroy?: boolean | undefined; - } - /** - * The class `AsyncResource` is designed to be extended by the embedder's async - * resources. Using this, users can easily trigger the lifetime events of their - * own resources. - * - * The `init` hook will trigger when an `AsyncResource` is instantiated. - * - * The following is an overview of the `AsyncResource` API. - * - * ```js - * import { AsyncResource, executionAsyncId } from 'node:async_hooks'; - * - * // AsyncResource() is meant to be extended. Instantiating a - * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * // async_hook.executionAsyncId() is used. - * const asyncResource = new AsyncResource( - * type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false }, - * ); - * - * // Run a function in the execution context of the resource. This will - * // * establish the context of the resource - * // * trigger the AsyncHooks before callbacks - * // * call the provided function `fn` with the supplied arguments - * // * trigger the AsyncHooks after callbacks - * // * restore the original execution context - * asyncResource.runInAsyncScope(fn, thisArg, ...args); - * - * // Call AsyncHooks destroy callbacks. - * asyncResource.emitDestroy(); - * - * // Return the unique ID assigned to the AsyncResource instance. - * asyncResource.asyncId(); - * - * // Return the trigger ID for the AsyncResource instance. - * asyncResource.triggerAsyncId(); - * ``` - */ - class AsyncResource { - /** - * AsyncResource() is meant to be extended. Instantiating a - * new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * async_hook.executionAsyncId() is used. - * @param type The type of async event. - * @param triggerAsyncId The ID of the execution context that created - * this async event (default: `executionAsyncId()`), or an - * AsyncResourceOptions object (since v9.3.0) - */ - constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions); - /** - * Binds the given function to the current execution context. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current execution context. - * @param type An optional name to associate with the underlying `AsyncResource`. - */ - static bind any, ThisArg>( - fn: Func, - type?: string, - thisArg?: ThisArg, - ): Func; - /** - * Binds the given function to execute to this `AsyncResource`'s scope. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current `AsyncResource`. - */ - bind any>(fn: Func): Func; - /** - * Call the provided function with the provided arguments in the execution context - * of the async resource. This will establish the context, trigger the AsyncHooks - * before callbacks, call the function, trigger the AsyncHooks after callbacks, and - * then restore the original execution context. - * @since v9.6.0 - * @param fn The function to call in the execution context of this async resource. - * @param thisArg The receiver to be used for the function call. - * @param args Optional arguments to pass to the function. - */ - runInAsyncScope( - fn: (this: This, ...args: any[]) => Result, - thisArg?: This, - ...args: any[] - ): Result; - /** - * Call all `destroy` hooks. This should only ever be called once. An error will - * be thrown if it is called more than once. This **must** be manually called. If - * the resource is left to be collected by the GC then the `destroy` hooks will - * never be called. - * @return A reference to `asyncResource`. - */ - emitDestroy(): this; - /** - * @return The unique `asyncId` assigned to the resource. - */ - asyncId(): number; - /** - * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor. - */ - triggerAsyncId(): number; - } - /** - * This class creates stores that stay coherent through asynchronous operations. - * - * While you can create your own implementation on top of the `node:async_hooks` module, `AsyncLocalStorage` should be preferred as it is a performant and memory - * safe implementation that involves significant optimizations that are non-obvious - * to implement. - * - * The following example uses `AsyncLocalStorage` to build a simple logger - * that assigns IDs to incoming HTTP requests and includes them in messages - * logged within each request. - * - * ```js - * import http from 'node:http'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const asyncLocalStorage = new AsyncLocalStorage(); - * - * function logWithId(msg) { - * const id = asyncLocalStorage.getStore(); - * console.log(`${id !== undefined ? id : '-'}:`, msg); - * } - * - * let idSeq = 0; - * http.createServer((req, res) => { - * asyncLocalStorage.run(idSeq++, () => { - * logWithId('start'); - * // Imagine any chain of async operations here - * setImmediate(() => { - * logWithId('finish'); - * res.end(); - * }); - * }); - * }).listen(8080); - * - * http.get('http://localhost:8080'); - * http.get('http://localhost:8080'); - * // Prints: - * // 0: start - * // 1: start - * // 0: finish - * // 1: finish - * ``` - * - * Each instance of `AsyncLocalStorage` maintains an independent storage context. - * Multiple instances can safely exist simultaneously without risk of interfering - * with each other's data. - * @since v13.10.0, v12.17.0 - */ - class AsyncLocalStorage { - /** - * Binds the given function to the current execution context. - * @since v19.8.0 - * @experimental - * @param fn The function to bind to the current execution context. - * @return A new function that calls `fn` within the captured execution context. - */ - static bind any>(fn: Func): Func; - /** - * Captures the current execution context and returns a function that accepts a - * function as an argument. Whenever the returned function is called, it - * calls the function passed to it within the captured context. - * - * ```js - * const asyncLocalStorage = new AsyncLocalStorage(); - * const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot()); - * const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore())); - * console.log(result); // returns 123 - * ``` - * - * AsyncLocalStorage.snapshot() can replace the use of AsyncResource for simple - * async context tracking purposes, for example: - * - * ```js - * class Foo { - * #runInAsyncScope = AsyncLocalStorage.snapshot(); - * - * get() { return this.#runInAsyncScope(() => asyncLocalStorage.getStore()); } - * } - * - * const foo = asyncLocalStorage.run(123, () => new Foo()); - * console.log(asyncLocalStorage.run(321, () => foo.get())); // returns 123 - * ``` - * @since v19.8.0 - * @experimental - * @return A new function with the signature `(fn: (...args) : R, ...args) : R`. - */ - static snapshot(): (fn: (...args: TArgs) => R, ...args: TArgs) => R; - /** - * Disables the instance of `AsyncLocalStorage`. All subsequent calls - * to `asyncLocalStorage.getStore()` will return `undefined` until `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again. - * - * When calling `asyncLocalStorage.disable()`, all current contexts linked to the - * instance will be exited. - * - * Calling `asyncLocalStorage.disable()` is required before the `asyncLocalStorage` can be garbage collected. This does not apply to stores - * provided by the `asyncLocalStorage`, as those objects are garbage collected - * along with the corresponding async resources. - * - * Use this method when the `asyncLocalStorage` is not in use anymore - * in the current process. - * @since v13.10.0, v12.17.0 - * @experimental - */ - disable(): void; - /** - * Returns the current store. - * If called outside of an asynchronous context initialized by - * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it - * returns `undefined`. - * @since v13.10.0, v12.17.0 - */ - getStore(): T | undefined; - /** - * Runs a function synchronously within a context and returns its - * return value. The store is not accessible outside of the callback function. - * The store is accessible to any asynchronous operations created within the - * callback. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `run()` too. - * The stacktrace is not impacted by this call and the context is exited. - * - * Example: - * - * ```js - * const store = { id: 2 }; - * try { - * asyncLocalStorage.run(store, () => { - * asyncLocalStorage.getStore(); // Returns the store object - * setTimeout(() => { - * asyncLocalStorage.getStore(); // Returns the store object - * }, 200); - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns undefined - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - */ - run(store: T, callback: () => R): R; - run(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Runs a function synchronously outside of a context and returns its - * return value. The store is not accessible within the callback function or - * the asynchronous operations created within the callback. Any `getStore()` call done within the callback function will always return `undefined`. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `exit()` too. - * The stacktrace is not impacted by this call and the context is re-entered. - * - * Example: - * - * ```js - * // Within a call to run - * try { - * asyncLocalStorage.getStore(); // Returns the store object or value - * asyncLocalStorage.exit(() => { - * asyncLocalStorage.getStore(); // Returns undefined - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns the same object or value - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - * @experimental - */ - exit(callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Transitions into the context for the remainder of the current - * synchronous execution and then persists the store through any following - * asynchronous calls. - * - * Example: - * - * ```js - * const store = { id: 1 }; - * // Replaces previous store with the given store object - * asyncLocalStorage.enterWith(store); - * asyncLocalStorage.getStore(); // Returns the store object - * someAsyncOperation(() => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * ``` - * - * This transition will continue for the _entire_ synchronous execution. - * This means that if, for example, the context is entered within an event - * handler subsequent event handlers will also run within that context unless - * specifically bound to another context with an `AsyncResource`. That is why `run()` should be preferred over `enterWith()` unless there are strong reasons - * to use the latter method. - * - * ```js - * const store = { id: 1 }; - * - * emitter.on('my-event', () => { - * asyncLocalStorage.enterWith(store); - * }); - * emitter.on('my-event', () => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * - * asyncLocalStorage.getStore(); // Returns undefined - * emitter.emit('my-event'); - * asyncLocalStorage.getStore(); // Returns the same object - * ``` - * @since v13.11.0, v12.17.0 - * @experimental - */ - enterWith(store: T): void; - } - /** - * @since v17.2.0, v16.14.0 - * @return A map of provider types to the corresponding numeric id. - * This map contains all the event types that might be emitted by the `async_hooks.init()` event. - */ - namespace asyncWrapProviders { - const NONE: number; - const DIRHANDLE: number; - const DNSCHANNEL: number; - const ELDHISTOGRAM: number; - const FILEHANDLE: number; - const FILEHANDLECLOSEREQ: number; - const FIXEDSIZEBLOBCOPY: number; - const FSEVENTWRAP: number; - const FSREQCALLBACK: number; - const FSREQPROMISE: number; - const GETADDRINFOREQWRAP: number; - const GETNAMEINFOREQWRAP: number; - const HEAPSNAPSHOT: number; - const HTTP2SESSION: number; - const HTTP2STREAM: number; - const HTTP2PING: number; - const HTTP2SETTINGS: number; - const HTTPINCOMINGMESSAGE: number; - const HTTPCLIENTREQUEST: number; - const JSSTREAM: number; - const JSUDPWRAP: number; - const MESSAGEPORT: number; - const PIPECONNECTWRAP: number; - const PIPESERVERWRAP: number; - const PIPEWRAP: number; - const PROCESSWRAP: number; - const PROMISE: number; - const QUERYWRAP: number; - const SHUTDOWNWRAP: number; - const SIGNALWRAP: number; - const STATWATCHER: number; - const STREAMPIPE: number; - const TCPCONNECTWRAP: number; - const TCPSERVERWRAP: number; - const TCPWRAP: number; - const TTYWRAP: number; - const UDPSENDWRAP: number; - const UDPWRAP: number; - const SIGINTWATCHDOG: number; - const WORKER: number; - const WORKERHEAPSNAPSHOT: number; - const WRITEWRAP: number; - const ZLIB: number; - const CHECKPRIMEREQUEST: number; - const PBKDF2REQUEST: number; - const KEYPAIRGENREQUEST: number; - const KEYGENREQUEST: number; - const KEYEXPORTREQUEST: number; - const CIPHERREQUEST: number; - const DERIVEBITSREQUEST: number; - const HASHREQUEST: number; - const RANDOMBYTESREQUEST: number; - const RANDOMPRIMEREQUEST: number; - const SCRYPTREQUEST: number; - const SIGNREQUEST: number; - const TLSWRAP: number; - const VERIFYREQUEST: number; - } -} -declare module "node:async_hooks" { - export * from "async_hooks"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/buffer.buffer.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/buffer.buffer.d.ts deleted file mode 100644 index 023bb0f..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/buffer.buffer.d.ts +++ /dev/null @@ -1,471 +0,0 @@ -declare module "buffer" { - type ImplicitArrayBuffer> = T extends - { valueOf(): infer V extends ArrayBufferLike } ? V : T; - global { - interface BufferConstructor { - // see buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. - */ - new(str: string, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). - */ - new(size: number): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new(array: ArrayLike): Buffer; - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}/{SharedArrayBuffer}. - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. - */ - new(arrayBuffer: TArrayBuffer): Buffer; - /** - * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. - * Array entries outside that range will be truncated to fit into it. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. - * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); - * ``` - * - * If `array` is an `Array`-like object (that is, one with a `length` property of - * type `number`), it is treated as if it is an array, unless it is a `Buffer` or - * a `Uint8Array`. This means all other `TypedArray` variants get treated as an - * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use - * `Buffer.copyBytesFrom()`. - * - * A `TypeError` will be thrown if `array` is not an `Array` or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal - * `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v5.10.0 - */ - from(array: WithImplicitCoercion>): Buffer; - /** - * This creates a view of the `ArrayBuffer` without copying the underlying - * memory. For example, when passed a reference to the `.buffer` property of a - * `TypedArray` instance, the newly created `Buffer` will share the same - * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arr = new Uint16Array(2); - * - * arr[0] = 5000; - * arr[1] = 4000; - * - * // Shares memory with `arr`. - * const buf = Buffer.from(arr.buffer); - * - * console.log(buf); - * // Prints: - * - * // Changing the original Uint16Array changes the Buffer also. - * arr[1] = 6000; - * - * console.log(buf); - * // Prints: - * ``` - * - * The optional `byteOffset` and `length` arguments specify a memory range within - * the `arrayBuffer` that will be shared by the `Buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const ab = new ArrayBuffer(10); - * const buf = Buffer.from(ab, 0, 2); - * - * console.log(buf.length); - * // Prints: 2 - * ``` - * - * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a - * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` - * variants. - * - * It is important to remember that a backing `ArrayBuffer` can cover a range - * of memory that extends beyond the bounds of a `TypedArray` view. A new - * `Buffer` created using the `buffer` property of a `TypedArray` may extend - * beyond the range of the `TypedArray`: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements - * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements - * console.log(arrA.buffer === arrB.buffer); // true - * - * const buf = Buffer.from(arrB.buffer); - * console.log(buf); - * // Prints: - * ``` - * @since v5.10.0 - * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the - * `.buffer` property of a `TypedArray`. - * @param byteOffset Index of first byte to expose. **Default:** `0`. - * @param length Number of bytes to expose. **Default:** - * `arrayBuffer.byteLength - byteOffset`. - */ - from>( - arrayBuffer: TArrayBuffer, - byteOffset?: number, - length?: number, - ): Buffer>; - /** - * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies - * the character encoding to be used when converting `string` into bytes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('this is a tést'); - * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); - * - * console.log(buf1.toString()); - * // Prints: this is a tést - * console.log(buf2.toString()); - * // Prints: this is a tést - * console.log(buf1.toString('latin1')); - * // Prints: this is a tést - * ``` - * - * A `TypeError` will be thrown if `string` is not a string or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(string)` may also use the internal `Buffer` pool like - * `Buffer.allocUnsafe()` does. - * @since v5.10.0 - * @param string A string to encode. - * @param encoding The encoding of `string`. **Default:** `'utf8'`. - */ - from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; - from(arrayOrString: WithImplicitCoercion | string>): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param values to create a new Buffer - */ - of(...items: number[]): Buffer; - /** - * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. - * - * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. - * - * If `totalLength` is not provided, it is calculated from the `Buffer` instances - * in `list` by adding their lengths. - * - * If `totalLength` is provided, it is coerced to an unsigned integer. If the - * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is - * truncated to `totalLength`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a single `Buffer` from a list of three `Buffer` instances. - * - * const buf1 = Buffer.alloc(10); - * const buf2 = Buffer.alloc(14); - * const buf3 = Buffer.alloc(18); - * const totalLength = buf1.length + buf2.length + buf3.length; - * - * console.log(totalLength); - * // Prints: 42 - * - * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); - * - * console.log(bufA); - * // Prints: - * console.log(bufA.length); - * // Prints: 42 - * ``` - * - * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v0.7.11 - * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. - * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. - */ - concat(list: readonly Uint8Array[], totalLength?: number): Buffer; - /** - * Copies the underlying memory of `view` into a new `Buffer`. - * - * ```js - * const u16 = new Uint16Array([0, 0xffff]); - * const buf = Buffer.copyBytesFrom(u16, 1, 1); - * u16[1] = 0; - * console.log(buf.length); // 2 - * console.log(buf[0]); // 255 - * console.log(buf[1]); // 255 - * ``` - * @since v19.8.0 - * @param view The {TypedArray} to copy. - * @param [offset=0] The starting offset within `view`. - * @param [length=view.length - offset] The number of elements from `view` to copy. - */ - copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5); - * - * console.log(buf); - * // Prints: - * ``` - * - * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5, 'a'); - * - * console.log(buf); - * // Prints: - * ``` - * - * If both `fill` and `encoding` are specified, the allocated `Buffer` will be - * initialized by calling `buf.fill(fill, encoding)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); - * - * console.log(buf); - * // Prints: - * ``` - * - * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance - * contents will never contain sensitive data from previous allocations, including - * data that might not have been allocated for `Buffer`s. - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - * @param [fill=0] A value to pre-fill the new `Buffer` with. - * @param [encoding='utf8'] If `fill` is a string, this is its encoding. - */ - alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(10); - * - * console.log(buf); - * // Prints (contents may vary): - * - * buf.fill(0); - * - * console.log(buf); - * // Prints: - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * - * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). - * - * Use of this pre-allocated internal memory pool is a key difference between - * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. - * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less - * than or equal to half `Buffer.poolSize`. The - * difference is subtle but can be important when an application requires the - * additional performance that `Buffer.allocUnsafe()` provides. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafe(size: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if - * `size` is 0. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize - * such `Buffer` instances with zeroes. - * - * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, - * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This - * allows applications to avoid the garbage collection overhead of creating many - * individually allocated `Buffer` instances. This approach improves both - * performance and memory usage by eliminating the need to track and clean up as - * many individual `ArrayBuffer` objects. - * - * However, in the case where a developer may need to retain a small chunk of - * memory from a pool for an indeterminate amount of time, it may be appropriate - * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and - * then copying out the relevant bits. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Need to keep around a few small chunks of memory. - * const store = []; - * - * socket.on('readable', () => { - * let data; - * while (null !== (data = readable.read())) { - * // Allocate for retained data. - * const sb = Buffer.allocUnsafeSlow(10); - * - * // Copy the data into the new allocation. - * data.copy(sb, 0, 0, 10); - * - * store.push(sb); - * } - * }); - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.12.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafeSlow(size: number): Buffer; - } - interface Buffer extends Uint8Array { - // see buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * This method is not compatible with the `Uint8Array.prototype.slice()`, - * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * const copiedBuf = Uint8Array.prototype.slice.call(buf); - * copiedBuf[0]++; - * console.log(copiedBuf.toString()); - * // Prints: cuffer - * - * console.log(buf.toString()); - * // Prints: buffer - * - * // With buf.slice(), the original buffer is modified. - * const notReallyCopiedBuf = buf.slice(); - * notReallyCopiedBuf[0]++; - * console.log(notReallyCopiedBuf.toString()); - * // Prints: cuffer - * console.log(buf.toString()); - * // Also prints: cuffer (!) - * ``` - * @since v0.3.0 - * @deprecated Use `subarray` instead. - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - slice(start?: number, end?: number): Buffer; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * Specifying `end` greater than `buf.length` will return the same result as - * that of `end` equal to `buf.length`. - * - * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). - * - * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte - * // from the original `Buffer`. - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * const buf2 = buf1.subarray(0, 3); - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: abc - * - * buf1[0] = 33; - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: !bc - * ``` - * - * Specifying negative indexes causes the slice to be generated relative to the - * end of `buf` rather than the beginning. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * console.log(buf.subarray(-6, -1).toString()); - * // Prints: buffe - * // (Equivalent to buf.subarray(0, 5).) - * - * console.log(buf.subarray(-6, -2).toString()); - * // Prints: buff - * // (Equivalent to buf.subarray(0, 4).) - * - * console.log(buf.subarray(-5, -2).toString()); - * // Prints: uff - * // (Equivalent to buf.subarray(1, 4).) - * ``` - * @since v3.0.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - subarray(start?: number, end?: number): Buffer; - } - // TODO: remove globals in future version - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type NonSharedBuffer = Buffer; - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type AllowSharedBuffer = Buffer; - } - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - var SlowBuffer: { - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - new(size: number): Buffer; - prototype: Buffer; - }; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/buffer.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/buffer.d.ts deleted file mode 100644 index 7c2e873..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/buffer.d.ts +++ /dev/null @@ -1,1936 +0,0 @@ -// If lib.dom.d.ts or lib.webworker.d.ts is loaded, then use the global types. -// Otherwise, use the types from node. -type _Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : import("buffer").Blob; -type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : import("buffer").File; - -/** - * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many - * Node.js APIs support `Buffer`s. - * - * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and - * extends it with methods that cover additional use cases. Node.js APIs accept - * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well. - * - * While the `Buffer` class is available within the global scope, it is still - * recommended to explicitly reference it via an import or require statement. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a zero-filled Buffer of length 10. - * const buf1 = Buffer.alloc(10); - * - * // Creates a Buffer of length 10, - * // filled with bytes which all have the value `1`. - * const buf2 = Buffer.alloc(10, 1); - * - * // Creates an uninitialized buffer of length 10. - * // This is faster than calling Buffer.alloc() but the returned - * // Buffer instance might contain old data that needs to be - * // overwritten using fill(), write(), or other functions that fill the Buffer's - * // contents. - * const buf3 = Buffer.allocUnsafe(10); - * - * // Creates a Buffer containing the bytes [1, 2, 3]. - * const buf4 = Buffer.from([1, 2, 3]); - * - * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries - * // are all truncated using `(value & 255)` to fit into the range 0–255. - * const buf5 = Buffer.from([257, 257.5, -255, '1']); - * - * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést': - * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation) - * // [116, 195, 169, 115, 116] (in decimal notation) - * const buf6 = Buffer.from('tést'); - * - * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74]. - * const buf7 = Buffer.from('tést', 'latin1'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/buffer.js) - */ -declare module "buffer" { - import { BinaryLike } from "node:crypto"; - import { ReadableStream as WebReadableStream } from "node:stream/web"; - /** - * This function returns `true` if `input` contains only valid UTF-8-encoded data, - * including the case in which `input` is empty. - * - * Throws if the `input` is a detached array buffer. - * @since v19.4.0, v18.14.0 - * @param input The input to validate. - */ - export function isUtf8(input: ArrayBuffer | NodeJS.TypedArray): boolean; - /** - * This function returns `true` if `input` contains only valid ASCII-encoded data, - * including the case in which `input` is empty. - * - * Throws if the `input` is a detached array buffer. - * @since v19.6.0, v18.15.0 - * @param input The input to validate. - */ - export function isAscii(input: ArrayBuffer | NodeJS.TypedArray): boolean; - export let INSPECT_MAX_BYTES: number; - export const kMaxLength: number; - export const kStringMaxLength: number; - export const constants: { - MAX_LENGTH: number; - MAX_STRING_LENGTH: number; - }; - export type TranscodeEncoding = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "latin1" - | "binary"; - /** - * Re-encodes the given `Buffer` or `Uint8Array` instance from one character - * encoding to another. Returns a new `Buffer` instance. - * - * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if - * conversion from `fromEnc` to `toEnc` is not permitted. - * - * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. - * - * The transcoding process will use substitution characters if a given byte - * sequence cannot be adequately represented in the target encoding. For instance: - * - * ```js - * import { Buffer, transcode } from 'node:buffer'; - * - * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii'); - * console.log(newBuf.toString('ascii')); - * // Prints: '?' - * ``` - * - * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced - * with `?` in the transcoded `Buffer`. - * @since v7.1.0 - * @param source A `Buffer` or `Uint8Array` instance. - * @param fromEnc The current encoding. - * @param toEnc To target encoding. - */ - export function transcode( - source: Uint8Array, - fromEnc: TranscodeEncoding, - toEnc: TranscodeEncoding, - ): NonSharedBuffer; - /** - * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using - * a prior call to `URL.createObjectURL()`. - * @since v16.7.0 - * @experimental - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - export function resolveObjectURL(id: string): Blob | undefined; - export { type AllowSharedBuffer, Buffer, type NonSharedBuffer }; - /** - * @experimental - */ - export interface BlobOptions { - /** - * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts - * will be converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`. - */ - endings?: "transparent" | "native"; - /** - * The Blob content-type. The intent is for `type` to convey - * the MIME media type of the data, however no validation of the type format - * is performed. - */ - type?: string | undefined; - } - /** - * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across - * multiple worker threads. - * @since v15.7.0, v14.18.0 - */ - export class Blob { - /** - * The total size of the `Blob` in bytes. - * @since v15.7.0, v14.18.0 - */ - readonly size: number; - /** - * The content-type of the `Blob`. - * @since v15.7.0, v14.18.0 - */ - readonly type: string; - /** - * Creates a new `Blob` object containing a concatenation of the given sources. - * - * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into - * the 'Blob' and can therefore be safely modified after the 'Blob' is created. - * - * String sources are also copied into the `Blob`. - */ - constructor(sources: Array, options?: BlobOptions); - /** - * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of - * the `Blob` data. - * @since v15.7.0, v14.18.0 - */ - arrayBuffer(): Promise; - /** - * The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise`. - * - * ```js - * const blob = new Blob(['hello']); - * blob.bytes().then((bytes) => { - * console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ] - * }); - * ``` - * @since v20.16.0 - */ - bytes(): Promise; - /** - * Creates and returns a new `Blob` containing a subset of this `Blob` objects - * data. The original `Blob` is not altered. - * @since v15.7.0, v14.18.0 - * @param start The starting index. - * @param end The ending index. - * @param type The content-type for the new `Blob` - */ - slice(start?: number, end?: number, type?: string): Blob; - /** - * Returns a promise that fulfills with the contents of the `Blob` decoded as a - * UTF-8 string. - * @since v15.7.0, v14.18.0 - */ - text(): Promise; - /** - * Returns a new `ReadableStream` that allows the content of the `Blob` to be read. - * @since v16.7.0 - */ - stream(): WebReadableStream; - } - export interface FileOptions { - /** - * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be - * converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`. - */ - endings?: "native" | "transparent"; - /** The File content-type. */ - type?: string; - /** The last modified date of the file. `Default`: Date.now(). */ - lastModified?: number; - } - /** - * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files. - * @since v19.2.0, v18.13.0 - */ - export class File extends Blob { - constructor(sources: Array, fileName: string, options?: FileOptions); - /** - * The name of the `File`. - * @since v19.2.0, v18.13.0 - */ - readonly name: string; - /** - * The last modified date of the `File`. - * @since v19.2.0, v18.13.0 - */ - readonly lastModified: number; - } - export import atob = globalThis.atob; - export import btoa = globalThis.btoa; - export type WithImplicitCoercion = - | T - | { valueOf(): T } - | (T extends string ? { [Symbol.toPrimitive](hint: "string"): T } : never); - global { - namespace NodeJS { - export { BufferEncoding }; - } - // Buffer class - type BufferEncoding = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex"; - /** - * Raw data is stored in instances of the Buffer class. - * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. - * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex' - */ - interface BufferConstructor { - // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later - // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier - - /** - * Returns `true` if `obj` is a `Buffer`, `false` otherwise. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * Buffer.isBuffer(Buffer.alloc(10)); // true - * Buffer.isBuffer(Buffer.from('foo')); // true - * Buffer.isBuffer('a string'); // false - * Buffer.isBuffer([]); // false - * Buffer.isBuffer(new Uint8Array(1024)); // false - * ``` - * @since v0.1.101 - */ - isBuffer(obj: any): obj is Buffer; - /** - * Returns `true` if `encoding` is the name of a supported character encoding, - * or `false` otherwise. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * console.log(Buffer.isEncoding('utf8')); - * // Prints: true - * - * console.log(Buffer.isEncoding('hex')); - * // Prints: true - * - * console.log(Buffer.isEncoding('utf/8')); - * // Prints: false - * - * console.log(Buffer.isEncoding('')); - * // Prints: false - * ``` - * @since v0.9.1 - * @param encoding A character encoding name to check. - */ - isEncoding(encoding: string): encoding is BufferEncoding; - /** - * Returns the byte length of a string when encoded using `encoding`. - * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account - * for the encoding that is used to convert the string into bytes. - * - * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input. - * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the - * return value might be greater than the length of a `Buffer` created from the - * string. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const str = '\u00bd + \u00bc = \u00be'; - * - * console.log(`${str}: ${str.length} characters, ` + - * `${Buffer.byteLength(str, 'utf8')} bytes`); - * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes - * ``` - * - * When `string` is a - * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/- - * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop- - * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned. - * @since v0.1.90 - * @param string A value to calculate the length of. - * @param [encoding='utf8'] If `string` is a string, this is its encoding. - * @return The number of bytes contained within `string`. - */ - byteLength( - string: string | NodeJS.ArrayBufferView | ArrayBufferLike, - encoding?: BufferEncoding, - ): number; - /** - * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of `Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('1234'); - * const buf2 = Buffer.from('0123'); - * const arr = [buf1, buf2]; - * - * console.log(arr.sort(Buffer.compare)); - * // Prints: [ , ] - * // (This result is equal to: [buf2, buf1].) - * ``` - * @since v0.11.13 - * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details. - */ - compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1; - /** - * This is the size (in bytes) of pre-allocated internal `Buffer` instances used - * for pooling. This value may be modified. - * @since v0.11.3 - */ - poolSize: number; - } - interface Buffer { - // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later - // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier - - /** - * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did - * not contain enough space to fit the entire string, only part of `string` will be - * written. However, partially encoded characters will not be written. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(256); - * - * const len = buf.write('\u00bd + \u00bc = \u00be', 0); - * - * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`); - * // Prints: 12 bytes: ½ + ¼ = ¾ - * - * const buffer = Buffer.alloc(10); - * - * const length = buffer.write('abcd', 8); - * - * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`); - * // Prints: 2 bytes : ab - * ``` - * @since v0.1.90 - * @param string String to write to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write `string`. - * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`). - * @param [encoding='utf8'] The character encoding of `string`. - * @return Number of bytes written. - */ - write(string: string, encoding?: BufferEncoding): number; - write(string: string, offset: number, encoding?: BufferEncoding): number; - write(string: string, offset: number, length: number, encoding?: BufferEncoding): number; - /** - * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`. - * - * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8, - * then each invalid byte is replaced with the replacement character `U+FFFD`. - * - * The maximum length of a string instance (in UTF-16 code units) is available - * as {@link constants.MAX_STRING_LENGTH}. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * console.log(buf1.toString('utf8')); - * // Prints: abcdefghijklmnopqrstuvwxyz - * console.log(buf1.toString('utf8', 0, 5)); - * // Prints: abcde - * - * const buf2 = Buffer.from('tést'); - * - * console.log(buf2.toString('hex')); - * // Prints: 74c3a97374 - * console.log(buf2.toString('utf8', 0, 3)); - * // Prints: té - * console.log(buf2.toString(undefined, 0, 3)); - * // Prints: té - * ``` - * @since v0.1.90 - * @param [encoding='utf8'] The character encoding to use. - * @param [start=0] The byte offset to start decoding at. - * @param [end=buf.length] The byte offset to stop decoding at (not inclusive). - */ - toString(encoding?: BufferEncoding, start?: number, end?: number): string; - /** - * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls - * this function when stringifying a `Buffer` instance. - * - * `Buffer.from()` accepts objects in the format returned from this method. - * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]); - * const json = JSON.stringify(buf); - * - * console.log(json); - * // Prints: {"type":"Buffer","data":[1,2,3,4,5]} - * - * const copy = JSON.parse(json, (key, value) => { - * return value && value.type === 'Buffer' ? - * Buffer.from(value) : - * value; - * }); - * - * console.log(copy); - * // Prints: - * ``` - * @since v0.9.2 - */ - toJSON(): { - type: "Buffer"; - data: number[]; - }; - /** - * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('414243', 'hex'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.equals(buf2)); - * // Prints: true - * console.log(buf1.equals(buf3)); - * // Prints: false - * ``` - * @since v0.11.13 - * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`. - */ - equals(otherBuffer: Uint8Array): boolean; - /** - * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order. - * Comparison is based on the actual sequence of bytes in each `Buffer`. - * - * * `0` is returned if `target` is the same as `buf` - * * `1` is returned if `target` should come _before_`buf` when sorted. - * * `-1` is returned if `target` should come _after_`buf` when sorted. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('BCD'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.compare(buf1)); - * // Prints: 0 - * console.log(buf1.compare(buf2)); - * // Prints: -1 - * console.log(buf1.compare(buf3)); - * // Prints: -1 - * console.log(buf2.compare(buf1)); - * // Prints: 1 - * console.log(buf2.compare(buf3)); - * // Prints: 1 - * console.log([buf1, buf2, buf3].sort(Buffer.compare)); - * // Prints: [ , , ] - * // (This result is equal to: [buf1, buf3, buf2].) - * ``` - * - * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]); - * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]); - * - * console.log(buf1.compare(buf2, 5, 9, 0, 4)); - * // Prints: 0 - * console.log(buf1.compare(buf2, 0, 6, 4)); - * // Prints: -1 - * console.log(buf1.compare(buf2, 5, 6, 5)); - * // Prints: 1 - * ``` - * - * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. - * @since v0.11.13 - * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. - * @param [targetStart=0] The offset within `target` at which to begin comparison. - * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive). - * @param [sourceStart=0] The offset within `buf` at which to begin comparison. - * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive). - */ - compare( - target: Uint8Array, - targetStart?: number, - targetEnd?: number, - sourceStart?: number, - sourceEnd?: number, - ): -1 | 0 | 1; - /** - * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`. - * - * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available - * for all TypedArrays, including Node.js `Buffer`s, although it takes - * different function arguments. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create two `Buffer` instances. - * const buf1 = Buffer.allocUnsafe(26); - * const buf2 = Buffer.allocUnsafe(26).fill('!'); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`. - * buf1.copy(buf2, 8, 16, 20); - * // This is equivalent to: - * // buf2.set(buf1.subarray(16, 20), 8); - * - * console.log(buf2.toString('ascii', 0, 25)); - * // Prints: !!!!!!!!qrst!!!!!!!!!!!!! - * ``` - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` and copy data from one region to an overlapping region - * // within the same `Buffer`. - * - * const buf = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf[i] = i + 97; - * } - * - * buf.copy(buf, 0, 4, 10); - * - * console.log(buf.toString()); - * // Prints: efghijghijklmnopqrstuvwxyz - * ``` - * @since v0.1.90 - * @param target A `Buffer` or {@link Uint8Array} to copy into. - * @param [targetStart=0] The offset within `target` at which to begin writing. - * @param [sourceStart=0] The offset within `buf` from which to begin copying. - * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive). - * @return The number of bytes copied. - */ - copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64BE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64LE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64LE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * This function is also available under the `writeBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64BE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64BE(value: bigint, offset?: number): number; - /** - * @alias Buffer.writeBigUInt64BE - * @since v14.10.0, v12.19.0 - */ - writeBigUint64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64LE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * - * This function is also available under the `writeBigUint64LE` alias. - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64LE(value: bigint, offset?: number): number; - /** - * @alias Buffer.writeBigUInt64LE - * @since v14.10.0, v12.19.0 - */ - writeBigUint64LE(value: bigint, offset?: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintLE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntLE(value: number, offset: number, byteLength: number): number; - /** - * @alias Buffer.writeUIntLE - * @since v14.9.0, v12.19.0 - */ - writeUintLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintBE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntBE(value: number, offset: number, byteLength: number): number; - /** - * @alias Buffer.writeUIntBE - * @since v14.9.0, v12.19.0 - */ - writeUintBE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than a signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a - * signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntBE(value: number, offset: number, byteLength: number): number; - /** - * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64BE(0)); - * // Prints: 4294967295n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64BE(offset?: number): bigint; - /** - * @alias Buffer.readBigUInt64BE - * @since v14.10.0, v12.19.0 - */ - readBigUint64BE(offset?: number): bigint; - /** - * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64LE(0)); - * // Prints: 18446744069414584320n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64LE(offset?: number): bigint; - /** - * @alias Buffer.readBigUInt64LE - * @since v14.10.0, v12.19.0 - */ - readBigUint64LE(offset?: number): bigint; - /** - * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64BE(offset?: number): bigint; - /** - * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64LE(offset?: number): bigint; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintLE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntLE(0, 6).toString(16)); - * // Prints: ab9078563412 - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntLE(offset: number, byteLength: number): number; - /** - * @alias Buffer.readUIntLE - * @since v14.9.0, v12.19.0 - */ - readUintLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintBE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readUIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntBE(offset: number, byteLength: number): number; - /** - * @alias Buffer.readUIntBE - * @since v14.9.0, v12.19.0 - */ - readUintBE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntLE(0, 6).toString(16)); - * // Prints: -546f87a9cbee - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * console.log(buf.readIntBE(1, 0).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntBE(offset: number, byteLength: number): number; - /** - * Reads an unsigned 8-bit integer from `buf` at the specified `offset`. - * - * This function is also available under the `readUint8` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, -2]); - * - * console.log(buf.readUInt8(0)); - * // Prints: 1 - * console.log(buf.readUInt8(1)); - * // Prints: 254 - * console.log(buf.readUInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readUInt8(offset?: number): number; - /** - * @alias Buffer.readUInt8 - * @since v14.9.0, v12.19.0 - */ - readUint8(offset?: number): number; - /** - * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`. - * - * This function is also available under the `readUint16LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16LE(0).toString(16)); - * // Prints: 3412 - * console.log(buf.readUInt16LE(1).toString(16)); - * // Prints: 5634 - * console.log(buf.readUInt16LE(2).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16LE(offset?: number): number; - /** - * @alias Buffer.readUInt16LE - * @since v14.9.0, v12.19.0 - */ - readUint16LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint16BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16BE(0).toString(16)); - * // Prints: 1234 - * console.log(buf.readUInt16BE(1).toString(16)); - * // Prints: 3456 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16BE(offset?: number): number; - /** - * @alias Buffer.readUInt16BE - * @since v14.9.0, v12.19.0 - */ - readUint16BE(offset?: number): number; - /** - * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32LE(0).toString(16)); - * // Prints: 78563412 - * console.log(buf.readUInt32LE(1).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32LE(offset?: number): number; - /** - * @alias Buffer.readUInt32LE - * @since v14.9.0, v12.19.0 - */ - readUint32LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32BE(0).toString(16)); - * // Prints: 12345678 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32BE(offset?: number): number; - /** - * @alias Buffer.readUInt32BE - * @since v14.9.0, v12.19.0 - */ - readUint32BE(offset?: number): number; - /** - * Reads a signed 8-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([-1, 5]); - * - * console.log(buf.readInt8(0)); - * // Prints: -1 - * console.log(buf.readInt8(1)); - * // Prints: 5 - * console.log(buf.readInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readInt8(offset?: number): number; - /** - * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16LE(0)); - * // Prints: 1280 - * console.log(buf.readInt16LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16LE(offset?: number): number; - /** - * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16BE(offset?: number): number; - /** - * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32LE(0)); - * // Prints: 83886080 - * console.log(buf.readInt32LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32LE(offset?: number): number; - /** - * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32BE(offset?: number): number; - /** - * Reads a 32-bit, little-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatLE(0)); - * // Prints: 1.539989614439558e-36 - * console.log(buf.readFloatLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatLE(offset?: number): number; - /** - * Reads a 32-bit, big-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatBE(0)); - * // Prints: 2.387939260590663e-38 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatBE(offset?: number): number; - /** - * Reads a 64-bit, little-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleLE(0)); - * // Prints: 5.447603722011605e-270 - * console.log(buf.readDoubleLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleLE(offset?: number): number; - /** - * Reads a 64-bit, big-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleBE(0)); - * // Prints: 8.20788039913184e-304 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleBE(offset?: number): number; - reverse(): this; - /** - * Interprets `buf` as an array of unsigned 16-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap16(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap16(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * - * One convenient use of `buf.swap16()` is to perform a fast in-place conversion - * between UTF-16 little-endian and UTF-16 big-endian: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le'); - * buf.swap16(); // Convert to big-endian UTF-16 text. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap16(): this; - /** - * Interprets `buf` as an array of unsigned 32-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap32(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap32(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap32(): this; - /** - * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_. - * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap64(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap64(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v6.3.0 - * @return A reference to `buf`. - */ - swap64(): this; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a - * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything - * other than an unsigned 8-bit integer. - * - * This function is also available under the `writeUint8` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt8(0x3, 0); - * buf.writeUInt8(0x4, 1); - * buf.writeUInt8(0x23, 2); - * buf.writeUInt8(0x42, 3); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeUInt8(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt8 - * @since v14.9.0, v12.19.0 - */ - writeUint8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 16-bit integer. - * - * This function is also available under the `writeUint16LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16LE(0xdead, 0); - * buf.writeUInt16LE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16LE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt16LE - * @since v14.9.0, v12.19.0 - */ - writeUint16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 16-bit integer. - * - * This function is also available under the `writeUint16BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16BE(0xdead, 0); - * buf.writeUInt16BE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16BE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt16BE - * @since v14.9.0, v12.19.0 - */ - writeUint16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 32-bit integer. - * - * This function is also available under the `writeUint32LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32LE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32LE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt32LE - * @since v14.9.0, v12.19.0 - */ - writeUint32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 32-bit integer. - * - * This function is also available under the `writeUint32BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32BE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32BE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt32BE - * @since v14.9.0, v12.19.0 - */ - writeUint32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a valid - * signed 8-bit integer. Behavior is undefined when `value` is anything other than - * a signed 8-bit integer. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt8(2, 0); - * buf.writeInt8(-2, 1); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeInt8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16LE(0x0304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16BE(0x0102, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32LE(0x05060708, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32BE(0x01020304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatLE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatBE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatBE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleLE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleBE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleBE(value: number, offset?: number): number; - /** - * Fills `buf` with the specified `value`. If the `offset` and `end` are not given, - * the entire `buf` will be filled: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Fill a `Buffer` with the ASCII character 'h'. - * - * const b = Buffer.allocUnsafe(50).fill('h'); - * - * console.log(b.toString()); - * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh - * - * // Fill a buffer with empty string - * const c = Buffer.allocUnsafe(5).fill(''); - * - * console.log(c.fill('')); - * // Prints: - * ``` - * - * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or - * integer. If the resulting integer is greater than `255` (decimal), `buf` will be - * filled with `value & 255`. - * - * If the final write of a `fill()` operation falls on a multi-byte character, - * then only the bytes of that character that fit into `buf` are written: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Fill a `Buffer` with character that takes up two bytes in UTF-8. - * - * console.log(Buffer.allocUnsafe(5).fill('\u0222')); - * // Prints: - * ``` - * - * If `value` contains invalid characters, it is truncated; if no valid - * fill data remains, an exception is thrown: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(5); - * - * console.log(buf.fill('a')); - * // Prints: - * console.log(buf.fill('aazz', 'hex')); - * // Prints: - * console.log(buf.fill('zz', 'hex')); - * // Throws an exception. - * ``` - * @since v0.5.0 - * @param value The value with which to fill `buf`. Empty value (string, Uint8Array, Buffer) is coerced to `0`. - * @param [offset=0] Number of bytes to skip before starting to fill `buf`. - * @param [end=buf.length] Where to stop filling `buf` (not inclusive). - * @param [encoding='utf8'] The encoding for `value` if `value` is a string. - * @return A reference to `buf`. - */ - fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this; - fill(value: string | Uint8Array | number, offset: number, encoding: BufferEncoding): this; - fill(value: string | Uint8Array | number, encoding: BufferEncoding): this; - /** - * If `value` is: - * - * * a string, `value` is interpreted according to the character encoding in `encoding`. - * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety. - * To compare a partial `Buffer`, use `buf.subarray`. - * * a number, `value` will be interpreted as an unsigned 8-bit integer - * value between `0` and `255`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.indexOf('this')); - * // Prints: 0 - * console.log(buf.indexOf('is')); - * // Prints: 2 - * console.log(buf.indexOf(Buffer.from('a buffer'))); - * // Prints: 8 - * console.log(buf.indexOf(97)); - * // Prints: 8 (97 is the decimal ASCII value for 'a') - * console.log(buf.indexOf(Buffer.from('a buffer example'))); - * // Prints: -1 - * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: 8 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le')); - * // Prints: 4 - * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le')); - * // Prints: 6 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. If the result - * of coercion is `NaN` or `0`, then the entire buffer will be searched. This - * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf). - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.indexOf(99.9)); - * console.log(b.indexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN or 0. - * // Prints: 1, searching the whole buffer. - * console.log(b.indexOf('b', undefined)); - * console.log(b.indexOf('b', {})); - * console.log(b.indexOf('b', null)); - * console.log(b.indexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer` and `byteOffset` is less - * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned. - * @since v1.5.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; - /** - * Identical to `buf.indexOf()`, except the last occurrence of `value` is found - * rather than the first occurrence. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this buffer is a buffer'); - * - * console.log(buf.lastIndexOf('this')); - * // Prints: 0 - * console.log(buf.lastIndexOf('buffer')); - * // Prints: 17 - * console.log(buf.lastIndexOf(Buffer.from('buffer'))); - * // Prints: 17 - * console.log(buf.lastIndexOf(97)); - * // Prints: 15 (97 is the decimal ASCII value for 'a') - * console.log(buf.lastIndexOf(Buffer.from('yolo'))); - * // Prints: -1 - * console.log(buf.lastIndexOf('buffer', 5)); - * // Prints: 5 - * console.log(buf.lastIndexOf('buffer', 4)); - * // Prints: -1 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le')); - * // Prints: 6 - * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le')); - * // Prints: 4 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. Any arguments - * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer. - * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf). - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.lastIndexOf(99.9)); - * console.log(b.lastIndexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN. - * // Prints: 1, searching the whole buffer. - * console.log(b.lastIndexOf('b', undefined)); - * console.log(b.lastIndexOf('b', {})); - * - * // Passing a byteOffset that coerces to 0. - * // Prints: -1, equivalent to passing 0. - * console.log(b.lastIndexOf('b', null)); - * console.log(b.lastIndexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned. - * @since v6.0.0 - * @param value What to search for. - * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; - /** - * Equivalent to `buf.indexOf() !== -1`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.includes('this')); - * // Prints: true - * console.log(buf.includes('is')); - * // Prints: true - * console.log(buf.includes(Buffer.from('a buffer'))); - * // Prints: true - * console.log(buf.includes(97)); - * // Prints: true (97 is the decimal ASCII value for 'a') - * console.log(buf.includes(Buffer.from('a buffer example'))); - * // Prints: false - * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: true - * console.log(buf.includes('this', 4)); - * // Prints: false - * ``` - * @since v5.3.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is its encoding. - * @return `true` if `value` was found in `buf`, `false` otherwise. - */ - includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean; - includes(value: string | number | Buffer, encoding: BufferEncoding): boolean; - } - var Buffer: BufferConstructor; - /** - * Decodes a string of Base64-encoded data into bytes, and encodes those bytes - * into a string using Latin-1 (ISO-8859-1). - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** - * @since v15.13.0, v14.17.0 - * @legacy Use `Buffer.from(data, 'base64')` instead. - * @param data The Base64-encoded input string. - */ - function atob(data: string): string; - /** - * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes - * into a string using Base64. - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** - * @since v15.13.0, v14.17.0 - * @legacy Use `buf.toString('base64')` instead. - * @param data An ASCII (Latin1) string. - */ - function btoa(data: string): string; - interface Blob extends _Blob {} - /** - * `Blob` class is a global reference for `import { Blob } from 'node:node:buffer'` - * https://nodejs.org/api/buffer.html#class-blob - * @since v18.0.0 - */ - var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T - : typeof import("buffer").Blob; - interface File extends _File {} - /** - * `File` class is a global reference for `import { File } from 'node:node:buffer'` - * https://nodejs.org/api/buffer.html#class-file - * @since v20.0.0 - */ - var File: typeof globalThis extends { onmessage: any; File: infer T } ? T - : typeof import("buffer").File; - } -} -declare module "node:buffer" { - export * from "buffer"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/child_process.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/child_process.d.ts deleted file mode 100644 index 5089071..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/child_process.d.ts +++ /dev/null @@ -1,1475 +0,0 @@ -/** - * The `node:child_process` module provides the ability to spawn subprocesses in - * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability - * is primarily provided by the {@link spawn} function: - * - * ```js - * import { spawn } from 'node:child_process'; - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * By default, pipes for `stdin`, `stdout`, and `stderr` are established between - * the parent Node.js process and the spawned subprocess. These pipes have - * limited (and platform-specific) capacity. If the subprocess writes to - * stdout in excess of that limit without the output being captured, the - * subprocess blocks waiting for the pipe buffer to accept more data. This is - * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` option if the output will not be consumed. - * - * The command lookup is performed using the `options.env.PATH` environment - * variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is - * used. If `options.env` is set without `PATH`, lookup on Unix is performed - * on a default search path search of `/usr/bin:/bin` (see your operating system's - * manual for execvpe/execvp), on Windows the current processes environment - * variable `PATH` is used. - * - * On Windows, environment variables are case-insensitive. Node.js - * lexicographically sorts the `env` keys and uses the first one that - * case-insensitively matches. Only first (in lexicographic order) entry will be - * passed to the subprocess. This might lead to issues on Windows when passing - * objects to the `env` option that have multiple variants of the same key, such as `PATH` and `Path`. - * - * The {@link spawn} method spawns the child process asynchronously, - * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks - * the event loop until the spawned process either exits or is terminated. - * - * For convenience, the `node:child_process` module provides a handful of - * synchronous and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on - * top of {@link spawn} or {@link spawnSync}. - * - * * {@link exec}: spawns a shell and runs a command within that - * shell, passing the `stdout` and `stderr` to a callback function when - * complete. - * * {@link execFile}: similar to {@link exec} except - * that it spawns the command directly without first spawning a shell by - * default. - * * {@link fork}: spawns a new Node.js process and invokes a - * specified module with an IPC communication channel established that allows - * sending messages between parent and child. - * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop. - * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop. - * - * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however, - * the synchronous methods can have significant impact on performance due to - * stalling the event loop while spawned processes complete. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/child_process.js) - */ -declare module "child_process" { - import { NonSharedBuffer } from "node:buffer"; - import { Abortable, EventEmitter } from "node:events"; - import * as dgram from "node:dgram"; - import * as net from "node:net"; - import { Readable, Stream, Writable } from "node:stream"; - import { URL } from "node:url"; - type Serializable = string | object | number | boolean | bigint; - type SendHandle = net.Socket | net.Server | dgram.Socket | undefined; - /** - * Instances of the `ChildProcess` represent spawned child processes. - * - * Instances of `ChildProcess` are not intended to be created directly. Rather, - * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create - * instances of `ChildProcess`. - * @since v2.2.0 - */ - class ChildProcess extends EventEmitter { - /** - * A `Writable Stream` that represents the child process's `stdin`. - * - * If a child process waits to read all of its input, the child will not continue - * until this stream has been closed via `end()`. - * - * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will - * refer to the same value. - * - * The `subprocess.stdin` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stdin: Writable | null; - /** - * A `Readable Stream` that represents the child process's `stdout`. - * - * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will - * refer to the same value. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn('ls'); - * - * subprocess.stdout.on('data', (data) => { - * console.log(`Received chunk ${data}`); - * }); - * ``` - * - * The `subprocess.stdout` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stdout: Readable | null; - /** - * A `Readable Stream` that represents the child process's `stderr`. - * - * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will - * refer to the same value. - * - * The `subprocess.stderr` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stderr: Readable | null; - /** - * The `subprocess.channel` property is a reference to the child's IPC channel. If - * no IPC channel exists, this property is `undefined`. - * @since v7.1.0 - */ - readonly channel?: Control | null; - /** - * A sparse array of pipes to the child process, corresponding with positions in - * the `stdio` option passed to {@link spawn} that have been set - * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and `subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`, - * respectively. - * - * In the following example, only the child's fd `1` (stdout) is configured as a - * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values - * in the array are `null`. - * - * ```js - * import assert from 'node:assert'; - * import fs from 'node:fs'; - * import child_process from 'node:child_process'; - * - * const subprocess = child_process.spawn('ls', { - * stdio: [ - * 0, // Use parent's stdin for child. - * 'pipe', // Pipe child's stdout to parent. - * fs.openSync('err.out', 'w'), // Direct child's stderr to a file. - * ], - * }); - * - * assert.strictEqual(subprocess.stdio[0], null); - * assert.strictEqual(subprocess.stdio[0], subprocess.stdin); - * - * assert(subprocess.stdout); - * assert.strictEqual(subprocess.stdio[1], subprocess.stdout); - * - * assert.strictEqual(subprocess.stdio[2], null); - * assert.strictEqual(subprocess.stdio[2], subprocess.stderr); - * ``` - * - * The `subprocess.stdio` property can be `undefined` if the child process could - * not be successfully spawned. - * @since v0.7.10 - */ - readonly stdio: [ - Writable | null, - // stdin - Readable | null, - // stdout - Readable | null, - // stderr - Readable | Writable | null | undefined, - // extra - Readable | Writable | null | undefined, // extra - ]; - /** - * The `subprocess.killed` property indicates whether the child process - * successfully received a signal from `subprocess.kill()`. The `killed` property - * does not indicate that the child process has been terminated. - * @since v0.5.10 - */ - readonly killed: boolean; - /** - * Returns the process identifier (PID) of the child process. If the child process - * fails to spawn due to errors, then the value is `undefined` and `error` is - * emitted. - * - * ```js - * import { spawn } from 'node:child_process'; - * const grep = spawn('grep', ['ssh']); - * - * console.log(`Spawned child pid: ${grep.pid}`); - * grep.stdin.end(); - * ``` - * @since v0.1.90 - */ - readonly pid?: number | undefined; - /** - * The `subprocess.connected` property indicates whether it is still possible to - * send and receive messages from a child process. When `subprocess.connected` is `false`, it is no longer possible to send or receive messages. - * @since v0.7.2 - */ - readonly connected: boolean; - /** - * The `subprocess.exitCode` property indicates the exit code of the child process. - * If the child process is still running, the field will be `null`. - */ - readonly exitCode: number | null; - /** - * The `subprocess.signalCode` property indicates the signal received by - * the child process if any, else `null`. - */ - readonly signalCode: NodeJS.Signals | null; - /** - * The `subprocess.spawnargs` property represents the full list of command-line - * arguments the child process was launched with. - */ - readonly spawnargs: string[]; - /** - * The `subprocess.spawnfile` property indicates the executable file name of - * the child process that is launched. - * - * For {@link fork}, its value will be equal to `process.execPath`. - * For {@link spawn}, its value will be the name of - * the executable file. - * For {@link exec}, its value will be the name of the shell - * in which the child process is launched. - */ - readonly spawnfile: string; - /** - * The `subprocess.kill()` method sends a signal to the child process. If no - * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function - * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise. - * - * ```js - * import { spawn } from 'node:child_process'; - * const grep = spawn('grep', ['ssh']); - * - * grep.on('close', (code, signal) => { - * console.log( - * `child process terminated due to receipt of signal ${signal}`); - * }); - * - * // Send SIGHUP to process. - * grep.kill('SIGHUP'); - * ``` - * - * The `ChildProcess` object may emit an `'error'` event if the signal - * cannot be delivered. Sending a signal to a child process that has already exited - * is not an error but may have unforeseen consequences. Specifically, if the - * process identifier (PID) has been reassigned to another process, the signal will - * be delivered to that process instead which can have unexpected results. - * - * While the function is called `kill`, the signal delivered to the child process - * may not actually terminate the process. - * - * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference. - * - * On Windows, where POSIX signals do not exist, the `signal` argument will be - * ignored, and the process will be killed forcefully and abruptly (similar to `'SIGKILL'`). - * See `Signal Events` for more details. - * - * On Linux, child processes of child processes will not be terminated - * when attempting to kill their parent. This is likely to happen when running a - * new process in a shell or with the use of the `shell` option of `ChildProcess`: - * - * ```js - * 'use strict'; - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn( - * 'sh', - * [ - * '-c', - * `node -e "setInterval(() => { - * console.log(process.pid, 'is alive') - * }, 500);"`, - * ], { - * stdio: ['inherit', 'inherit', 'inherit'], - * }, - * ); - * - * setTimeout(() => { - * subprocess.kill(); // Does not terminate the Node.js process in the shell. - * }, 2000); - * ``` - * @since v0.1.90 - */ - kill(signal?: NodeJS.Signals | number): boolean; - /** - * Calls {@link ChildProcess.kill} with `'SIGTERM'`. - * @since v20.5.0 - */ - [Symbol.dispose](): void; - /** - * When an IPC channel has been established between the parent and child ( - * i.e. when using {@link fork}), the `subprocess.send()` method can - * be used to send messages to the child process. When the child process is a - * Node.js instance, these messages can be received via the `'message'` event. - * - * The message goes through serialization and parsing. The resulting - * message might not be the same as what is originally sent. - * - * For example, in the parent script: - * - * ```js - * import cp from 'node:child_process'; - * const n = cp.fork(`${__dirname}/sub.js`); - * - * n.on('message', (m) => { - * console.log('PARENT got message:', m); - * }); - * - * // Causes the child to print: CHILD got message: { hello: 'world' } - * n.send({ hello: 'world' }); - * ``` - * - * And then the child script, `'sub.js'` might look like this: - * - * ```js - * process.on('message', (m) => { - * console.log('CHILD got message:', m); - * }); - * - * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null } - * process.send({ foo: 'bar', baz: NaN }); - * ``` - * - * Child Node.js processes will have a `process.send()` method of their own - * that allows the child to send messages back to the parent. - * - * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages - * containing a `NODE_` prefix in the `cmd` property are reserved for use within - * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the `'internalMessage'` event and are consumed internally by Node.js. - * Applications should avoid using such messages or listening for `'internalMessage'` events as it is subject to change without notice. - * - * The optional `sendHandle` argument that may be passed to `subprocess.send()` is - * for passing a TCP server or socket object to the child process. The child will - * receive the object as the second argument passed to the callback function - * registered on the `'message'` event. Any data that is received and buffered in - * the socket will not be sent to the child. Sending IPC sockets is not supported on Windows. - * - * The optional `callback` is a function that is invoked after the message is - * sent but before the child may have received it. The function is called with a - * single argument: `null` on success, or an `Error` object on failure. - * - * If no `callback` function is provided and the message cannot be sent, an `'error'` event will be emitted by the `ChildProcess` object. This can - * happen, for instance, when the child process has already exited. - * - * `subprocess.send()` will return `false` if the channel has closed or when the - * backlog of unsent messages exceeds a threshold that makes it unwise to send - * more. Otherwise, the method returns `true`. The `callback` function can be - * used to implement flow control. - * - * #### Example: sending a server object - * - * The `sendHandle` argument can be used, for instance, to pass the handle of - * a TCP server object to the child process as illustrated in the example below: - * - * ```js - * import child_process from 'node:child_process'; - * const subprocess = child_process.fork('subprocess.js'); - * - * // Open up the server object and send the handle. - * import net from 'node:net'; - * const server = net.createServer(); - * server.on('connection', (socket) => { - * socket.end('handled by parent'); - * }); - * server.listen(1337, () => { - * subprocess.send('server', server); - * }); - * ``` - * - * The child would then receive the server object as: - * - * ```js - * process.on('message', (m, server) => { - * if (m === 'server') { - * server.on('connection', (socket) => { - * socket.end('handled by child'); - * }); - * } - * }); - * ``` - * - * Once the server is now shared between the parent and child, some connections - * can be handled by the parent and some by the child. - * - * While the example above uses a server created using the `node:net` module, `node:dgram` module servers use exactly the same workflow with the exceptions of - * listening on a `'message'` event instead of `'connection'` and using `server.bind()` instead of `server.listen()`. This is, however, only - * supported on Unix platforms. - * - * #### Example: sending a socket object - * - * Similarly, the `sendHandler` argument can be used to pass the handle of a - * socket to the child process. The example below spawns two children that each - * handle connections with "normal" or "special" priority: - * - * ```js - * import { fork } from 'node:child_process'; - * const normal = fork('subprocess.js', ['normal']); - * const special = fork('subprocess.js', ['special']); - * - * // Open up the server and send sockets to child. Use pauseOnConnect to prevent - * // the sockets from being read before they are sent to the child process. - * import net from 'node:net'; - * const server = net.createServer({ pauseOnConnect: true }); - * server.on('connection', (socket) => { - * - * // If this is special priority... - * if (socket.remoteAddress === '74.125.127.100') { - * special.send('socket', socket); - * return; - * } - * // This is normal priority. - * normal.send('socket', socket); - * }); - * server.listen(1337); - * ``` - * - * The `subprocess.js` would receive the socket handle as the second argument - * passed to the event callback function: - * - * ```js - * process.on('message', (m, socket) => { - * if (m === 'socket') { - * if (socket) { - * // Check that the client socket exists. - * // It is possible for the socket to be closed between the time it is - * // sent and the time it is received in the child process. - * socket.end(`Request handled with ${process.argv[2]} priority`); - * } - * } - * }); - * ``` - * - * Do not use `.maxConnections` on a socket that has been passed to a subprocess. - * The parent cannot track when the socket is destroyed. - * - * Any `'message'` handlers in the subprocess should verify that `socket` exists, - * as the connection may have been closed during the time it takes to send the - * connection to the child. - * @since v0.5.9 - * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v20.x/api/dgram.html#class-dgramsocket) object. - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send(message: Serializable, callback?: (error: Error | null) => void): boolean; - send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean; - send( - message: Serializable, - sendHandle?: SendHandle, - options?: MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * Closes the IPC channel between parent and child, allowing the child to exit - * gracefully once there are no other connections keeping it alive. After calling - * this method the `subprocess.connected` and `process.connected` properties in - * both the parent and child (respectively) will be set to `false`, and it will be - * no longer possible to pass messages between the processes. - * - * The `'disconnect'` event will be emitted when there are no messages in the - * process of being received. This will most often be triggered immediately after - * calling `subprocess.disconnect()`. - * - * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked - * within the child process to close the IPC channel as well. - * @since v0.7.2 - */ - disconnect(): void; - /** - * By default, the parent will wait for the detached child to exit. To prevent the - * parent from waiting for a given `subprocess` to exit, use the `subprocess.unref()` method. Doing so will cause the parent's event loop to not - * include the child in its reference count, allowing the parent to exit - * independently of the child, unless there is an established IPC channel between - * the child and the parent. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore', - * }); - * - * subprocess.unref(); - * ``` - * @since v0.7.10 - */ - unref(): void; - /** - * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will - * restore the removed reference count for the child process, forcing the parent - * to wait for the child to exit before exiting itself. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore', - * }); - * - * subprocess.unref(); - * subprocess.ref(); - * ``` - * @since v0.7.10 - */ - ref(): void; - /** - * events.EventEmitter - * 1. close - * 2. disconnect - * 3. error - * 4. exit - * 5. message - * 6. spawn - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: "disconnect", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - addListener(event: "spawn", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: "disconnect"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean; - emit(event: "spawn", listener: () => void): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: "disconnect", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - on(event: "spawn", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: "disconnect", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - once(event: "spawn", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: "disconnect", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependListener(event: "spawn", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "close", - listener: (code: number | null, signal: NodeJS.Signals | null) => void, - ): this; - prependOnceListener(event: "disconnect", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "exit", - listener: (code: number | null, signal: NodeJS.Signals | null) => void, - ): this; - prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependOnceListener(event: "spawn", listener: () => void): this; - } - // return this object when stdio option is undefined or not specified - interface ChildProcessWithoutNullStreams extends ChildProcess { - stdin: Writable; - stdout: Readable; - stderr: Readable; - readonly stdio: [ - Writable, - Readable, - Readable, - // stderr - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined, // extra, no modification - ]; - } - // return this object when stdio option is a tuple of 3 - interface ChildProcessByStdio - extends ChildProcess - { - stdin: I; - stdout: O; - stderr: E; - readonly stdio: [ - I, - O, - E, - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined, // extra, no modification - ]; - } - interface Control extends EventEmitter { - ref(): void; - unref(): void; - } - interface MessageOptions { - keepOpen?: boolean | undefined; - } - type IOType = "overlapped" | "pipe" | "ignore" | "inherit"; - type StdioOptions = IOType | Array; - type SerializationType = "json" | "advanced"; - interface MessagingOptions extends Abortable { - /** - * Specify the kind of serialization used for sending messages between processes. - * @default 'json' - */ - serialization?: SerializationType | undefined; - /** - * The signal value to be used when the spawned process will be killed by the abort signal. - * @default 'SIGTERM' - */ - killSignal?: NodeJS.Signals | number | undefined; - /** - * In milliseconds the maximum amount of time the process is allowed to run. - */ - timeout?: number | undefined; - } - interface ProcessEnvOptions { - uid?: number | undefined; - gid?: number | undefined; - cwd?: string | URL | undefined; - env?: NodeJS.ProcessEnv | undefined; - } - interface CommonOptions extends ProcessEnvOptions { - /** - * @default false - */ - windowsHide?: boolean | undefined; - /** - * @default 0 - */ - timeout?: number | undefined; - } - interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable { - argv0?: string | undefined; - /** - * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - shell?: boolean | string | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - interface SpawnOptions extends CommonSpawnOptions { - detached?: boolean | undefined; - } - interface SpawnOptionsWithoutStdio extends SpawnOptions { - stdio?: StdioPipeNamed | StdioPipe[] | undefined; - } - type StdioNull = "inherit" | "ignore" | Stream; - type StdioPipeNamed = "pipe" | "overlapped"; - type StdioPipe = undefined | null | StdioPipeNamed; - interface SpawnOptionsWithStdioTuple< - Stdin extends StdioNull | StdioPipe, - Stdout extends StdioNull | StdioPipe, - Stderr extends StdioNull | StdioPipe, - > extends SpawnOptions { - stdio: [Stdin, Stdout, Stderr]; - } - /** - * The `child_process.spawn()` method spawns a new process using the given `command`, with command-line arguments in `args`. If omitted, `args` defaults - * to an empty array. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * A third argument may be used to specify additional options, with these defaults: - * - * ```js - * const defaults = { - * cwd: undefined, - * env: process.env, - * }; - * ``` - * - * Use `cwd` to specify the working directory from which the process is spawned. - * If not given, the default is to inherit the current working directory. If given, - * but the path does not exist, the child process emits an `ENOENT` error - * and exits immediately. `ENOENT` is also emitted when the command - * does not exist. - * - * Use `env` to specify environment variables that will be visible to the new - * process, the default is `process.env`. - * - * `undefined` values in `env` will be ignored. - * - * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the - * exit code: - * - * ```js - * import { spawn } from 'node:child_process'; - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * Example: A very elaborate way to run `ps ax | grep ssh` - * - * ```js - * import { spawn } from 'node:child_process'; - * const ps = spawn('ps', ['ax']); - * const grep = spawn('grep', ['ssh']); - * - * ps.stdout.on('data', (data) => { - * grep.stdin.write(data); - * }); - * - * ps.stderr.on('data', (data) => { - * console.error(`ps stderr: ${data}`); - * }); - * - * ps.on('close', (code) => { - * if (code !== 0) { - * console.log(`ps process exited with code ${code}`); - * } - * grep.stdin.end(); - * }); - * - * grep.stdout.on('data', (data) => { - * console.log(data.toString()); - * }); - * - * grep.stderr.on('data', (data) => { - * console.error(`grep stderr: ${data}`); - * }); - * - * grep.on('close', (code) => { - * if (code !== 0) { - * console.log(`grep process exited with code ${code}`); - * } - * }); - * ``` - * - * Example of checking for failed `spawn`: - * - * ```js - * import { spawn } from 'node:child_process'; - * const subprocess = spawn('bad_command'); - * - * subprocess.on('error', (err) => { - * console.error('Failed to start subprocess.'); - * }); - * ``` - * - * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process - * title while others (Windows, SunOS) will use `command`. - * - * Node.js overwrites `argv[0]` with `process.execPath` on startup, so `process.argv[0]` in a Node.js child process will not match the `argv0` parameter passed to `spawn` from the parent. Retrieve - * it with the `process.argv0` property instead. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { spawn } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const grep = spawn('grep', ['ssh'], { signal }); - * grep.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * ``` - * @since v0.1.90 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptions): ChildProcess; - // overloads of spawn with 'args' - function spawn( - command: string, - args?: readonly string[], - options?: SpawnOptionsWithoutStdio, - ): ChildProcessWithoutNullStreams; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess; - interface ExecOptions extends CommonOptions { - shell?: string | undefined; - signal?: AbortSignal | undefined; - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - encoding?: string | null | undefined; - } - interface ExecOptionsWithStringEncoding extends ExecOptions { - encoding?: BufferEncoding | undefined; - } - interface ExecOptionsWithBufferEncoding extends ExecOptions { - encoding: "buffer" | null; // specify `null`. - } - // TODO: Just Plain Wrong™ (see also nodejs/node#57392) - interface ExecException extends Error { - cmd?: string; - killed?: boolean; - code?: number; - signal?: NodeJS.Signals; - stdout?: string; - stderr?: string; - } - /** - * Spawns a shell then executes the `command` within that shell, buffering any - * generated output. The `command` string passed to the exec function is processed - * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters)) - * need to be dealt with accordingly: - * - * ```js - * import { exec } from 'node:child_process'; - * - * exec('"/path/to/test file/test.sh" arg1 arg2'); - * // Double quotes are used so that the space in the path is not interpreted as - * // a delimiter of multiple arguments. - * - * exec('echo "The \\$HOME variable is $HOME"'); - * // The $HOME variable is escaped in the first instance, but not in the second. - * ``` - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * - * If a `callback` function is provided, it is called with the arguments `(error, stdout, stderr)`. On success, `error` will be `null`. On error, `error` will be an instance of `Error`. The - * `error.code` property will be - * the exit code of the process. By convention, any exit code other than `0` indicates an error. `error.signal` will be the signal that terminated the - * process. - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * ```js - * import { exec } from 'node:child_process'; - * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => { - * if (error) { - * console.error(`exec error: ${error}`); - * return; - * } - * console.log(`stdout: ${stdout}`); - * console.error(`stderr: ${stderr}`); - * }); - * ``` - * - * If `timeout` is greater than `0`, the parent will send the signal - * identified by the `killSignal` property (the default is `'SIGTERM'`) if the - * child runs longer than `timeout` milliseconds. - * - * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace - * the existing process and uses a shell to execute the command. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * import util from 'node:util'; - * import child_process from 'node:child_process'; - * const exec = util.promisify(child_process.exec); - * - * async function lsExample() { - * const { stdout, stderr } = await exec('ls'); - * console.log('stdout:', stdout); - * console.error('stderr:', stderr); - * } - * lsExample(); - * ``` - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { exec } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = exec('grep ssh', { signal }, (error) => { - * console.error(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.90 - * @param command The command to run, with space-separated arguments. - * @param callback called with the output when process terminates. - */ - function exec( - command: string, - callback?: (error: ExecException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function exec( - command: string, - options: ExecOptionsWithBufferEncoding, - callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. - function exec( - command: string, - options: ExecOptionsWithStringEncoding, - callback?: (error: ExecException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function exec( - command: string, - options: ExecOptions | undefined | null, - callback?: ( - error: ExecException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void, - ): ChildProcess; - interface PromiseWithChild extends Promise { - child: ChildProcess; - } - namespace exec { - function __promisify__(command: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: ExecOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - command: string, - options: ExecOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: ExecOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - } - interface ExecFileOptions extends CommonOptions, Abortable { - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - windowsVerbatimArguments?: boolean | undefined; - shell?: boolean | string | undefined; - signal?: AbortSignal | undefined; - encoding?: string | null | undefined; - } - interface ExecFileOptionsWithStringEncoding extends ExecFileOptions { - encoding?: BufferEncoding | undefined; - } - interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { - encoding: "buffer" | null; - } - /** @deprecated Use `ExecFileOptions` instead. */ - interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {} - // TODO: execFile exceptions can take many forms... this accurately describes none of them - type ExecFileException = - & Omit - & Omit - & { code?: string | number | null }; - /** - * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified - * executable `file` is spawned directly as a new process making it slightly more - * efficient than {@link exec}. - * - * The same options as {@link exec} are supported. Since a shell is - * not spawned, behaviors such as I/O redirection and file globbing are not - * supported. - * - * ```js - * import { execFile } from 'node:child_process'; - * const child = execFile('node', ['--version'], (error, stdout, stderr) => { - * if (error) { - * throw error; - * } - * console.log(stdout); - * }); - * ``` - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * import util from 'node:util'; - * const execFile = util.promisify(require('node:child_process').execFile); - * async function getVersion() { - * const { stdout } = await execFile('node', ['--version']); - * console.log(stdout); - * } - * getVersion(); - * ``` - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { execFile } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = execFile('node', ['--version'], { signal }, (error) => { - * console.error(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.91 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @param callback Called with the output when process terminates. - */ - // no `options` definitely means stdout/stderr are `string`. - function execFile( - file: string, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function execFile( - file: string, - options: ExecFileOptionsWithBufferEncoding, - callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithBufferEncoding, - callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. - function execFile( - file: string, - options: ExecFileOptionsWithStringEncoding, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithStringEncoding, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function execFile( - file: string, - options: ExecFileOptions | undefined | null, - callback: - | (( - error: ExecFileException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void) - | undefined - | null, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptions | undefined | null, - callback: - | (( - error: ExecFileException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void) - | undefined - | null, - ): ChildProcess; - namespace execFile { - function __promisify__(file: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - } - interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable { - execPath?: string | undefined; - execArgv?: string[] | undefined; - silent?: boolean | undefined; - /** - * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - detached?: boolean | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - /** - * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes. - * Like {@link spawn}, a `ChildProcess` object is returned. The - * returned `ChildProcess` will have an additional communication channel - * built-in that allows messages to be passed back and forth between the parent and - * child. See `subprocess.send()` for details. - * - * Keep in mind that spawned Node.js child processes are - * independent of the parent with exception of the IPC communication channel - * that is established between the two. Each process has its own memory, with - * their own V8 instances. Because of the additional resource allocations - * required, spawning a large number of child Node.js processes is not - * recommended. - * - * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the `options` object allows for an alternative - * execution path to be used. - * - * Node.js processes launched with a custom `execPath` will communicate with the - * parent process using the file descriptor (fd) identified using the - * environment variable `NODE_CHANNEL_FD` on the child process. - * - * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the - * current process. - * - * The `shell` option available in {@link spawn} is not supported by `child_process.fork()` and will be ignored if set. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * if (process.argv[2] === 'child') { - * setTimeout(() => { - * console.log(`Hello from ${process.argv[2]}!`); - * }, 1_000); - * } else { - * import { fork } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = fork(__filename, ['child'], { signal }); - * child.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * } - * ``` - * @since v0.5.0 - * @param modulePath The module to run in the child. - * @param args List of string arguments. - */ - function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess; - function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess; - interface SpawnSyncOptions extends CommonSpawnOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | "buffer" | null | undefined; - } - interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { - encoding: BufferEncoding; - } - interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions { - encoding?: "buffer" | null | undefined; - } - interface SpawnSyncReturns { - pid: number; - output: Array; - stdout: T; - stderr: T; - status: number | null; - signal: NodeJS.Signals | null; - error?: Error; - } - /** - * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the process intercepts and handles the `SIGTERM` signal - * and doesn't exit, the parent process will wait until the child process has - * exited. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawnSync(command: string): SpawnSyncReturns; - function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; - function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; - function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; - function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns; - function spawnSync( - command: string, - args: readonly string[], - options: SpawnSyncOptionsWithStringEncoding, - ): SpawnSyncReturns; - function spawnSync( - command: string, - args: readonly string[], - options: SpawnSyncOptionsWithBufferEncoding, - ): SpawnSyncReturns; - function spawnSync( - command: string, - args?: readonly string[], - options?: SpawnSyncOptions, - ): SpawnSyncReturns; - interface CommonExecOptions extends CommonOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - /** - * Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - killSignal?: NodeJS.Signals | number | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | "buffer" | null | undefined; - } - interface ExecSyncOptions extends CommonExecOptions { - shell?: string | undefined; - } - interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions { - encoding: BufferEncoding; - } - interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions { - encoding?: "buffer" | null | undefined; - } - /** - * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the child process intercepts and handles the `SIGTERM` signal and doesn't exit, the parent process will wait until the child process - * has exited. - * - * If the process times out or has a non-zero exit code, this method will throw. - * The `Error` object will contain the entire result from {@link spawnSync}. - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @return The stdout from the command. - */ - function execSync(command: string): NonSharedBuffer; - function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string; - function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): NonSharedBuffer; - function execSync(command: string, options?: ExecSyncOptions): string | NonSharedBuffer; - interface ExecFileSyncOptions extends CommonExecOptions { - shell?: boolean | string | undefined; - } - interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions { - encoding: BufferEncoding; - } - interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions { - encoding?: "buffer" | null | undefined; // specify `null`. - } - /** - * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not - * return until the child process has fully closed. When a timeout has been - * encountered and `killSignal` is sent, the method won't return until the process - * has completely exited. - * - * If the child process intercepts and handles the `SIGTERM` signal and - * does not exit, the parent process will still wait until the child process has - * exited. - * - * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @return The stdout from the command. - */ - function execFileSync(file: string): NonSharedBuffer; - function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string; - function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): NonSharedBuffer; - function execFileSync(file: string, options?: ExecFileSyncOptions): string | NonSharedBuffer; - function execFileSync(file: string, args: readonly string[]): NonSharedBuffer; - function execFileSync( - file: string, - args: readonly string[], - options: ExecFileSyncOptionsWithStringEncoding, - ): string; - function execFileSync( - file: string, - args: readonly string[], - options: ExecFileSyncOptionsWithBufferEncoding, - ): NonSharedBuffer; - function execFileSync( - file: string, - args?: readonly string[], - options?: ExecFileSyncOptions, - ): string | NonSharedBuffer; -} -declare module "node:child_process" { - export * from "child_process"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/cluster.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/cluster.d.ts deleted file mode 100644 index 42b21bf..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/cluster.d.ts +++ /dev/null @@ -1,577 +0,0 @@ -/** - * Clusters of Node.js processes can be used to run multiple instances of Node.js - * that can distribute workloads among their application threads. When process isolation - * is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html) - * module instead, which allows running multiple application threads within a single Node.js instance. - * - * The cluster module allows easy creation of child processes that all share - * server ports. - * - * ```js - * import cluster from 'node:cluster'; - * import http from 'node:http'; - * import { availableParallelism } from 'node:os'; - * import process from 'node:process'; - * - * const numCPUs = availableParallelism(); - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('exit', (worker, code, signal) => { - * console.log(`worker ${worker.process.pid} died`); - * }); - * } else { - * // Workers can share any TCP connection - * // In this case it is an HTTP server - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * - * console.log(`Worker ${process.pid} started`); - * } - * ``` - * - * Running Node.js will now share port 8000 between the workers: - * - * ```console - * $ node server.js - * Primary 3596 is running - * Worker 4324 started - * Worker 4520 started - * Worker 6056 started - * Worker 5644 started - * ``` - * - * On Windows, it is not yet possible to set up a named pipe server in a worker. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/cluster.js) - */ -declare module "cluster" { - import * as child from "node:child_process"; - import EventEmitter = require("node:events"); - import * as net from "node:net"; - type SerializationType = "json" | "advanced"; - export interface ClusterSettings { - /** - * List of string arguments passed to the Node.js executable. - * @default process.execArgv - */ - execArgv?: string[] | undefined; - /** - * File path to worker file. - * @default process.argv[1] - */ - exec?: string | undefined; - /** - * String arguments passed to worker. - * @default process.argv.slice(2) - */ - args?: readonly string[] | undefined; - /** - * Whether or not to send output to parent's stdio. - * @default false - */ - silent?: boolean | undefined; - /** - * Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must - * contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processspawncommand-args-options)'s - * [`stdio`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#optionsstdio). - */ - stdio?: any[] | undefined; - /** - * Sets the user identity of the process. (See [`setuid(2)`](https://man7.org/linux/man-pages/man2/setuid.2.html).) - */ - uid?: number | undefined; - /** - * Sets the group identity of the process. (See [`setgid(2)`](https://man7.org/linux/man-pages/man2/setgid.2.html).) - */ - gid?: number | undefined; - /** - * Sets inspector port of worker. This can be a number, or a function that takes no arguments and returns a number. - * By default each worker gets its own port, incremented from the primary's `process.debugPort`. - */ - inspectPort?: number | (() => number) | undefined; - /** - * Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`. - * See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#advanced-serialization) for more details. - * @default false - */ - serialization?: SerializationType | undefined; - /** - * Current working directory of the worker process. - * @default undefined (inherits from parent process) - */ - cwd?: string | undefined; - /** - * Hide the forked processes console window that would normally be created on Windows systems. - * @default false - */ - windowsHide?: boolean | undefined; - } - export interface Address { - address: string; - port: number; - /** - * The `addressType` is one of: - * - * * `4` (TCPv4) - * * `6` (TCPv6) - * * `-1` (Unix domain socket) - * * `'udp4'` or `'udp6'` (UDPv4 or UDPv6) - */ - addressType: 4 | 6 | -1 | "udp4" | "udp6"; - } - /** - * A `Worker` object contains all public information and method about a worker. - * In the primary it can be obtained using `cluster.workers`. In a worker - * it can be obtained using `cluster.worker`. - * @since v0.7.0 - */ - export class Worker extends EventEmitter { - /** - * Each new worker is given its own unique id, this id is stored in the `id`. - * - * While a worker is alive, this is the key that indexes it in `cluster.workers`. - * @since v0.8.0 - */ - id: number; - /** - * All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object - * from this function is stored as `.process`. In a worker, the global `process` is stored. - * - * See: [Child Process module](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options). - * - * Workers will call `process.exit(0)` if the `'disconnect'` event occurs - * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against - * accidental disconnection. - * @since v0.7.0 - */ - process: child.ChildProcess; - /** - * Send a message to a worker or primary, optionally with a handle. - * - * In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). - * - * In a worker, this sends a message to the primary. It is identical to `process.send()`. - * - * This example will echo back all messages from the primary: - * - * ```js - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * worker.send('hi there'); - * - * } else if (cluster.isWorker) { - * process.on('message', (msg) => { - * process.send(msg); - * }); - * } - * ``` - * @since v0.7.0 - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. - */ - send(message: child.Serializable, callback?: (error: Error | null) => void): boolean; - send( - message: child.Serializable, - sendHandle: child.SendHandle, - callback?: (error: Error | null) => void, - ): boolean; - send( - message: child.Serializable, - sendHandle: child.SendHandle, - options?: child.MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * This function will kill the worker. In the primary worker, it does this by - * disconnecting the `worker.process`, and once disconnected, killing with `signal`. In the worker, it does it by killing the process with `signal`. - * - * The `kill()` function kills the worker process without waiting for a graceful - * disconnect, it has the same behavior as `worker.process.kill()`. - * - * This method is aliased as `worker.destroy()` for backwards compatibility. - * - * In a worker, `process.kill()` exists, but it is not this function; - * it is [`kill()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processkillpid-signal). - * @since v0.9.12 - * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process. - */ - kill(signal?: string): void; - destroy(signal?: string): void; - /** - * In a worker, this function will close all servers, wait for the `'close'` event - * on those servers, and then disconnect the IPC channel. - * - * In the primary, an internal message is sent to the worker causing it to call `.disconnect()` on itself. - * - * Causes `.exitedAfterDisconnect` to be set. - * - * After a server is closed, it will no longer accept new connections, - * but connections may be accepted by any other listening worker. Existing - * connections will be allowed to close as usual. When no more connections exist, - * see `server.close()`, the IPC channel to the worker will close allowing it - * to die gracefully. - * - * The above applies _only_ to server connections, client connections are not - * automatically closed by workers, and disconnect does not wait for them to close - * before exiting. - * - * In a worker, `process.disconnect` exists, but it is not this function; - * it is `disconnect()`. - * - * Because long living server connections may block workers from disconnecting, it - * may be useful to send a message, so application specific actions may be taken to - * close them. It also may be useful to implement a timeout, killing a worker if - * the `'disconnect'` event has not been emitted after some time. - * - * ```js - * import net from 'node:net'; - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * let timeout; - * - * worker.on('listening', (address) => { - * worker.send('shutdown'); - * worker.disconnect(); - * timeout = setTimeout(() => { - * worker.kill(); - * }, 2000); - * }); - * - * worker.on('disconnect', () => { - * clearTimeout(timeout); - * }); - * - * } else if (cluster.isWorker) { - * const server = net.createServer((socket) => { - * // Connections never end - * }); - * - * server.listen(8000); - * - * process.on('message', (msg) => { - * if (msg === 'shutdown') { - * // Initiate graceful close of any connections to server - * } - * }); - * } - * ``` - * @since v0.7.7 - * @return A reference to `worker`. - */ - disconnect(): this; - /** - * This function returns `true` if the worker is connected to its primary via its - * IPC channel, `false` otherwise. A worker is connected to its primary after it - * has been created. It is disconnected after the `'disconnect'` event is emitted. - * @since v0.11.14 - */ - isConnected(): boolean; - /** - * This function returns `true` if the worker's process has terminated (either - * because of exiting or being signaled). Otherwise, it returns `false`. - * - * ```js - * import cluster from 'node:cluster'; - * import http from 'node:http'; - * import { availableParallelism } from 'node:os'; - * import process from 'node:process'; - * - * const numCPUs = availableParallelism(); - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('fork', (worker) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * - * cluster.on('exit', (worker, code, signal) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * } else { - * // Workers can share any TCP connection. In this case, it is an HTTP server. - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end(`Current process\n ${process.pid}`); - * process.kill(process.pid); - * }).listen(8000); - * } - * ``` - * @since v0.11.14 - */ - isDead(): boolean; - /** - * This property is `true` if the worker exited due to `.disconnect()`. - * If the worker exited any other way, it is `false`. If the - * worker has not exited, it is `undefined`. - * - * The boolean `worker.exitedAfterDisconnect` allows distinguishing between - * voluntary and accidental exit, the primary may choose not to respawn a worker - * based on this value. - * - * ```js - * cluster.on('exit', (worker, code, signal) => { - * if (worker.exitedAfterDisconnect === true) { - * console.log('Oh, it was just voluntary – no need to worry'); - * } - * }); - * - * // kill worker - * worker.kill(); - * ``` - * @since v6.0.0 - */ - exitedAfterDisconnect: boolean; - /** - * events.EventEmitter - * 1. disconnect - * 2. error - * 3. exit - * 4. listening - * 5. message - * 6. online - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "disconnect", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - addListener(event: "exit", listener: (code: number, signal: string) => void): this; - addListener(event: "listening", listener: (address: Address) => void): this; - addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: "online", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "disconnect"): boolean; - emit(event: "error", error: Error): boolean; - emit(event: "exit", code: number, signal: string): boolean; - emit(event: "listening", address: Address): boolean; - emit(event: "message", message: any, handle: net.Socket | net.Server): boolean; - emit(event: "online"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "disconnect", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - on(event: "exit", listener: (code: number, signal: string) => void): this; - on(event: "listening", listener: (address: Address) => void): this; - on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: "online", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "disconnect", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - once(event: "exit", listener: (code: number, signal: string) => void): this; - once(event: "listening", listener: (address: Address) => void): this; - once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: "online", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "disconnect", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependListener(event: "exit", listener: (code: number, signal: string) => void): this; - prependListener(event: "listening", listener: (address: Address) => void): this; - prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependListener(event: "online", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "disconnect", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this; - prependOnceListener(event: "listening", listener: (address: Address) => void): this; - prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener(event: "online", listener: () => void): this; - } - export interface Cluster extends EventEmitter { - disconnect(callback?: () => void): void; - /** - * Spawn a new worker process. - * - * This can only be called from the primary process. - * @param env Key/value pairs to add to worker process environment. - * @since v0.6.0 - */ - fork(env?: any): Worker; - /** @deprecated since v16.0.0 - use isPrimary. */ - readonly isMaster: boolean; - /** - * True if the process is a primary. This is determined by the `process.env.NODE_UNIQUE_ID`. If `process.env.NODE_UNIQUE_ID` - * is undefined, then `isPrimary` is `true`. - * @since v16.0.0 - */ - readonly isPrimary: boolean; - /** - * True if the process is not a primary (it is the negation of `cluster.isPrimary`). - * @since v0.6.0 - */ - readonly isWorker: boolean; - /** - * The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a - * global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) - * is called, whichever comes first. - * - * `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute - * IOCP handles without incurring a large performance hit. - * - * `cluster.schedulingPolicy` can also be set through the `NODE_CLUSTER_SCHED_POLICY` environment variable. Valid values are `'rr'` and `'none'`. - * @since v0.11.2 - */ - schedulingPolicy: number; - /** - * After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) - * (or [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv)) this settings object will contain - * the settings, including the default values. - * - * This object is not intended to be changed or set manually. - * @since v0.7.1 - */ - readonly settings: ClusterSettings; - /** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) instead. */ - setupMaster(settings?: ClusterSettings): void; - /** - * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`. - * - * Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv) - * and have no effect on workers that are already running. - * - * The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to - * [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv). - * - * The defaults above apply to the first call only; the defaults for later calls are the current values at the time of - * `cluster.setupPrimary()` is called. - * - * ```js - * import cluster from 'node:cluster'; - * - * cluster.setupPrimary({ - * exec: 'worker.js', - * args: ['--use', 'https'], - * silent: true, - * }); - * cluster.fork(); // https worker - * cluster.setupPrimary({ - * exec: 'worker.js', - * args: ['--use', 'http'], - * }); - * cluster.fork(); // http worker - * ``` - * - * This can only be called from the primary process. - * @since v16.0.0 - */ - setupPrimary(settings?: ClusterSettings): void; - /** - * A reference to the current worker object. Not available in the primary process. - * - * ```js - * import cluster from 'node:cluster'; - * - * if (cluster.isPrimary) { - * console.log('I am primary'); - * cluster.fork(); - * cluster.fork(); - * } else if (cluster.isWorker) { - * console.log(`I am worker #${cluster.worker.id}`); - * } - * ``` - * @since v0.7.0 - */ - readonly worker?: Worker; - /** - * A hash that stores the active worker objects, keyed by `id` field. This makes it easy to loop through all the workers. It is only available in the primary process. - * - * A worker is removed from `cluster.workers` after the worker has disconnected _and_ exited. The order between these two events cannot be determined in advance. However, it - * is guaranteed that the removal from the `cluster.workers` list happens before the last `'disconnect'` or `'exit'` event is emitted. - * - * ```js - * import cluster from 'node:cluster'; - * - * for (const worker of Object.values(cluster.workers)) { - * worker.send('big announcement to all workers'); - * } - * ``` - * @since v0.7.0 - */ - readonly workers?: NodeJS.Dict; - readonly SCHED_NONE: number; - readonly SCHED_RR: number; - /** - * events.EventEmitter - * 1. disconnect - * 2. exit - * 3. fork - * 4. listening - * 5. message - * 6. online - * 7. setup - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "disconnect", listener: (worker: Worker) => void): this; - addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - addListener(event: "fork", listener: (worker: Worker) => void): this; - addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - addListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: "online", listener: (worker: Worker) => void): this; - addListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "disconnect", worker: Worker): boolean; - emit(event: "exit", worker: Worker, code: number, signal: string): boolean; - emit(event: "fork", worker: Worker): boolean; - emit(event: "listening", worker: Worker, address: Address): boolean; - emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean; - emit(event: "online", worker: Worker): boolean; - emit(event: "setup", settings: ClusterSettings): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "disconnect", listener: (worker: Worker) => void): this; - on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - on(event: "fork", listener: (worker: Worker) => void): this; - on(event: "listening", listener: (worker: Worker, address: Address) => void): this; - on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: "online", listener: (worker: Worker) => void): this; - on(event: "setup", listener: (settings: ClusterSettings) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "disconnect", listener: (worker: Worker) => void): this; - once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - once(event: "fork", listener: (worker: Worker) => void): this; - once(event: "listening", listener: (worker: Worker, address: Address) => void): this; - once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: "online", listener: (worker: Worker) => void): this; - once(event: "setup", listener: (settings: ClusterSettings) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "disconnect", listener: (worker: Worker) => void): this; - prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - prependListener(event: "fork", listener: (worker: Worker) => void): this; - prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - prependListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; - prependListener(event: "online", listener: (worker: Worker) => void): this; - prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this; - prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - prependOnceListener(event: "fork", listener: (worker: Worker) => void): this; - prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; - prependOnceListener(event: "online", listener: (worker: Worker) => void): this; - prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - } - const cluster: Cluster; - export default cluster; -} -declare module "node:cluster" { - export * from "cluster"; - export { default as default } from "cluster"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/disposable.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/disposable.d.ts deleted file mode 100644 index 5fff612..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/disposable.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Polyfills for the explicit resource management types added in TypeScript 5.2. -// TODO: remove once this package no longer supports TS 5.1, and replace with a -// to TypeScript's disposable library in index.d.ts. - -interface SymbolConstructor { - readonly dispose: unique symbol; - readonly asyncDispose: unique symbol; -} - -interface Disposable { - [Symbol.dispose](): void; -} - -interface AsyncDisposable { - [Symbol.asyncDispose](): PromiseLike; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/index.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/index.d.ts deleted file mode 100644 index 5c41e37..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Declaration files in this directory contain types relating to TypeScript library features -// that are not included in all TypeScript versions supported by DefinitelyTyped, but -// which can be made backwards-compatible without needing `typesVersions`. -// If adding declarations to this directory, please specify which versions of TypeScript require them, -// so that they can be removed when no longer needed. - -/// -/// -/// diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/indexable.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/indexable.d.ts deleted file mode 100644 index 262ba09..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/indexable.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -// Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6. - -interface RelativeIndexable { - at(index: number): T | undefined; -} - -interface String extends RelativeIndexable {} -interface Array extends RelativeIndexable {} -interface ReadonlyArray extends RelativeIndexable {} -interface Int8Array extends RelativeIndexable {} -interface Uint8Array extends RelativeIndexable {} -interface Uint8ClampedArray extends RelativeIndexable {} -interface Int16Array extends RelativeIndexable {} -interface Uint16Array extends RelativeIndexable {} -interface Int32Array extends RelativeIndexable {} -interface Uint32Array extends RelativeIndexable {} -interface Float32Array extends RelativeIndexable {} -interface Float64Array extends RelativeIndexable {} -interface BigInt64Array extends RelativeIndexable {} -interface BigUint64Array extends RelativeIndexable {} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/iterators.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/iterators.d.ts deleted file mode 100644 index 156e785..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/compatibility/iterators.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Backwards-compatible iterator interfaces, augmented with iterator helper methods by lib.esnext.iterator in TypeScript 5.6. -// The IterableIterator interface does not contain these methods, which creates assignability issues in places where IteratorObjects -// are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded. -// Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods -// if lib.esnext.iterator is loaded. -// TODO: remove once this package no longer supports TS 5.5, and replace NodeJS.BuiltinIteratorReturn with BuiltinIteratorReturn. - -// Placeholders for TS <5.6 -interface IteratorObject {} -interface AsyncIteratorObject {} - -declare namespace NodeJS { - // Populate iterator methods for TS <5.6 - interface Iterator extends globalThis.Iterator {} - interface AsyncIterator extends globalThis.AsyncIterator {} - - // Polyfill for TS 5.6's instrinsic BuiltinIteratorReturn type, required for DOM-compatible iterators - type BuiltinIteratorReturn = ReturnType extends - globalThis.Iterator ? TReturn - : any; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/console.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/console.d.ts deleted file mode 100644 index 206e3fc..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/console.d.ts +++ /dev/null @@ -1,452 +0,0 @@ -/** - * The `node:console` module provides a simple debugging console that is similar to - * the JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and - * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/console.js) - */ -declare module "console" { - import console = require("node:console"); - export = console; -} -declare module "node:console" { - import { InspectOptions } from "node:util"; - global { - // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build - interface Console { - Console: console.ConsoleConstructor; - /** - * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only - * writes a message and does not otherwise affect execution. The output always - * starts with `"Assertion failed"`. If provided, `message` is formatted using - * [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args). - * - * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens. - * - * ```js - * console.assert(true, 'does nothing'); - * - * console.assert(false, 'Whoops %s work', 'didn\'t'); - * // Assertion failed: Whoops didn't work - * - * console.assert(); - * // Assertion failed - * ``` - * @since v0.1.101 - * @param value The value tested for being truthy. - * @param message All arguments besides `value` are used as error message. - */ - assert(value: any, message?: string, ...optionalParams: any[]): void; - /** - * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the - * TTY. When `stdout` is not a TTY, this method does nothing. - * - * The specific operation of `console.clear()` can vary across operating systems - * and terminal types. For most Linux operating systems, `console.clear()` operates similarly to the `clear` shell command. On Windows, `console.clear()` will clear only the output in the - * current terminal viewport for the Node.js - * binary. - * @since v8.3.0 - */ - clear(): void; - /** - * Maintains an internal counter specific to `label` and outputs to `stdout` the - * number of times `console.count()` has been called with the given `label`. - * - * ```js - * > console.count() - * default: 1 - * undefined - * > console.count('default') - * default: 2 - * undefined - * > console.count('abc') - * abc: 1 - * undefined - * > console.count('xyz') - * xyz: 1 - * undefined - * > console.count('abc') - * abc: 2 - * undefined - * > console.count() - * default: 3 - * undefined - * > - * ``` - * @since v8.3.0 - * @param [label='default'] The display label for the counter. - */ - count(label?: string): void; - /** - * Resets the internal counter specific to `label`. - * - * ```js - * > console.count('abc'); - * abc: 1 - * undefined - * > console.countReset('abc'); - * undefined - * > console.count('abc'); - * abc: 1 - * undefined - * > - * ``` - * @since v8.3.0 - * @param [label='default'] The display label for the counter. - */ - countReset(label?: string): void; - /** - * The `console.debug()` function is an alias for {@link log}. - * @since v8.0.0 - */ - debug(message?: any, ...optionalParams: any[]): void; - /** - * Uses [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) on `obj` and prints the resulting string to `stdout`. - * This function bypasses any custom `inspect()` function defined on `obj`. - * @since v0.1.101 - */ - dir(obj: any, options?: InspectOptions): void; - /** - * This method calls `console.log()` passing it the arguments received. - * This method does not produce any XML formatting. - * @since v8.0.0 - */ - dirxml(...data: any[]): void; - /** - * Prints to `stderr` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) - * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)). - * - * ```js - * const code = 5; - * console.error('error #%d', code); - * // Prints: error #5, to stderr - * console.error('error', code); - * // Prints: error 5, to stderr - * ``` - * - * If formatting elements (e.g. `%d`) are not found in the first string then - * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) is called on each argument and the - * resulting string values are concatenated. See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) - * for more information. - * @since v0.1.100 - */ - error(message?: any, ...optionalParams: any[]): void; - /** - * Increases indentation of subsequent lines by spaces for `groupIndentation` length. - * - * If one or more `label`s are provided, those are printed first without the - * additional indentation. - * @since v8.5.0 - */ - group(...label: any[]): void; - /** - * An alias for {@link group}. - * @since v8.5.0 - */ - groupCollapsed(...label: any[]): void; - /** - * Decreases indentation of subsequent lines by spaces for `groupIndentation` length. - * @since v8.5.0 - */ - groupEnd(): void; - /** - * The `console.info()` function is an alias for {@link log}. - * @since v0.1.100 - */ - info(message?: any, ...optionalParams: any[]): void; - /** - * Prints to `stdout` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) - * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)). - * - * ```js - * const count = 5; - * console.log('count: %d', count); - * // Prints: count: 5, to stdout - * console.log('count:', count); - * // Prints: count: 5, to stdout - * ``` - * - * See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) for more information. - * @since v0.1.100 - */ - log(message?: any, ...optionalParams: any[]): void; - /** - * Try to construct a table with the columns of the properties of `tabularData` (or use `properties`) and rows of `tabularData` and log it. Falls back to just - * logging the argument if it can't be parsed as tabular. - * - * ```js - * // These can't be parsed as tabular data - * console.table(Symbol()); - * // Symbol() - * - * console.table(undefined); - * // undefined - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); - * // ┌─────────┬─────┬─────┐ - * // │ (index) │ a │ b │ - * // ├─────────┼─────┼─────┤ - * // │ 0 │ 1 │ 'Y' │ - * // │ 1 │ 'Z' │ 2 │ - * // └─────────┴─────┴─────┘ - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); - * // ┌─────────┬─────┐ - * // │ (index) │ a │ - * // ├─────────┼─────┤ - * // │ 0 │ 1 │ - * // │ 1 │ 'Z' │ - * // └─────────┴─────┘ - * ``` - * @since v10.0.0 - * @param properties Alternate properties for constructing the table. - */ - table(tabularData: any, properties?: readonly string[]): void; - /** - * Starts a timer that can be used to compute the duration of an operation. Timers - * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in - * suitable time units to `stdout`. For example, if the elapsed - * time is 3869ms, `console.timeEnd()` displays "3.869s". - * @since v0.1.104 - * @param [label='default'] - */ - time(label?: string): void; - /** - * Stops a timer that was previously started by calling {@link time} and - * prints the result to `stdout`: - * - * ```js - * console.time('bunch-of-stuff'); - * // Do a bunch of stuff. - * console.timeEnd('bunch-of-stuff'); - * // Prints: bunch-of-stuff: 225.438ms - * ``` - * @since v0.1.104 - * @param [label='default'] - */ - timeEnd(label?: string): void; - /** - * For a timer that was previously started by calling {@link time}, prints - * the elapsed time and other `data` arguments to `stdout`: - * - * ```js - * console.time('process'); - * const value = expensiveProcess1(); // Returns 42 - * console.timeLog('process', value); - * // Prints "process: 365.227ms 42". - * doExpensiveProcess2(value); - * console.timeEnd('process'); - * ``` - * @since v10.7.0 - * @param [label='default'] - */ - timeLog(label?: string, ...data: any[]): void; - /** - * Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) - * formatted message and stack trace to the current position in the code. - * - * ```js - * console.trace('Show me'); - * // Prints: (stack trace will vary based on where trace is called) - * // Trace: Show me - * // at repl:2:9 - * // at REPLServer.defaultEval (repl.js:248:27) - * // at bound (domain.js:287:14) - * // at REPLServer.runBound [as eval] (domain.js:300:12) - * // at REPLServer. (repl.js:412:12) - * // at emitOne (events.js:82:20) - * // at REPLServer.emit (events.js:169:7) - * // at REPLServer.Interface._onLine (readline.js:210:10) - * // at REPLServer.Interface._line (readline.js:549:8) - * // at REPLServer.Interface._ttyWrite (readline.js:826:14) - * ``` - * @since v0.1.104 - */ - trace(message?: any, ...optionalParams: any[]): void; - /** - * The `console.warn()` function is an alias for {@link error}. - * @since v0.1.100 - */ - warn(message?: any, ...optionalParams: any[]): void; - // --- Inspector mode only --- - /** - * This method does not display anything unless used in the inspector. The `console.profile()` - * method starts a JavaScript CPU profile with an optional label until {@link profileEnd} - * is called. The profile is then added to the Profile panel of the inspector. - * - * ```js - * console.profile('MyLabel'); - * // Some code - * console.profileEnd('MyLabel'); - * // Adds the profile 'MyLabel' to the Profiles panel of the inspector. - * ``` - * @since v8.0.0 - */ - profile(label?: string): void; - /** - * This method does not display anything unless used in the inspector. Stops the current - * JavaScript CPU profiling session if one has been started and prints the report to the - * Profiles panel of the inspector. See {@link profile} for an example. - * - * If this method is called without a label, the most recently started profile is stopped. - * @since v8.0.0 - */ - profileEnd(label?: string): void; - /** - * This method does not display anything unless used in the inspector. The `console.timeStamp()` - * method adds an event with the label `'label'` to the Timeline panel of the inspector. - * @since v8.0.0 - */ - timeStamp(label?: string): void; - } - /** - * The `console` module provides a simple debugging console that is similar to the - * JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()` and `console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and - * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.11.1/lib/console.js) - */ - namespace console { - interface ConsoleConstructorOptions { - stdout: NodeJS.WritableStream; - stderr?: NodeJS.WritableStream | undefined; - /** - * Ignore errors when writing to the underlying streams. - * @default true - */ - ignoreErrors?: boolean | undefined; - /** - * Set color support for this `Console` instance. Setting to true enables coloring while inspecting - * values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color - * support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the - * respective stream. This option can not be used, if `inspectOptions.colors` is set as well. - * @default auto - */ - colorMode?: boolean | "auto" | undefined; - /** - * Specifies options that are passed along to - * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options). - */ - inspectOptions?: InspectOptions | undefined; - /** - * Set group indentation. - * @default 2 - */ - groupIndentation?: number | undefined; - } - interface ConsoleConstructor { - prototype: Console; - new(stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console; - new(options: ConsoleConstructorOptions): Console; - } - } - var console: Console; - } - export = globalThis.console; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/constants.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/constants.d.ts deleted file mode 100644 index 5685a9d..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/constants.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @deprecated The `node:constants` module is deprecated. When requiring access to constants - * relevant to specific Node.js builtin modules, developers should instead refer - * to the `constants` property exposed by the relevant module. For instance, - * `require('node:fs').constants` and `require('node:os').constants`. - */ -declare module "constants" { - const constants: - & typeof import("node:os").constants.dlopen - & typeof import("node:os").constants.errno - & typeof import("node:os").constants.priority - & typeof import("node:os").constants.signals - & typeof import("node:fs").constants - & typeof import("node:crypto").constants; - export = constants; -} - -declare module "node:constants" { - import constants = require("constants"); - export = constants; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/crypto.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/crypto.d.ts deleted file mode 100644 index 036cf8c..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/crypto.d.ts +++ /dev/null @@ -1,4590 +0,0 @@ -/** - * The `node:crypto` module provides cryptographic functionality that includes a - * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify - * functions. - * - * ```js - * const { createHmac } = await import('node:crypto'); - * - * const secret = 'abcdefg'; - * const hash = createHmac('sha256', secret) - * .update('I love cupcakes') - * .digest('hex'); - * console.log(hash); - * // Prints: - * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/crypto.js) - */ -declare module "crypto" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { PeerCertificate } from "node:tls"; - /** - * SPKAC is a Certificate Signing Request mechanism originally implemented by - * Netscape and was specified formally as part of HTML5's `keygen` element. - * - * `` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects - * should not use this element anymore. - * - * The `node:crypto` module provides the `Certificate` class for working with SPKAC - * data. The most common usage is handling output generated by the HTML5 `` element. Node.js uses [OpenSSL's SPKAC - * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally. - * @since v0.11.8 - */ - class Certificate { - /** - * ```js - * const { Certificate } = await import('node:crypto'); - * const spkac = getSpkacSomehow(); - * const challenge = Certificate.exportChallenge(spkac); - * console.log(challenge.toString('utf8')); - * // Prints: the challenge as a UTF8 string - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge. - */ - static exportChallenge(spkac: BinaryLike): NonSharedBuffer; - /** - * ```js - * const { Certificate } = await import('node:crypto'); - * const spkac = getSpkacSomehow(); - * const publicKey = Certificate.exportPublicKey(spkac); - * console.log(publicKey); - * // Prints: the public key as - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return The public key component of the `spkac` data structure, which includes a public key and a challenge. - */ - static exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; - /** - * ```js - * import { Buffer } from 'node:buffer'; - * const { Certificate } = await import('node:crypto'); - * - * const spkac = getSpkacSomehow(); - * console.log(Certificate.verifySpkac(Buffer.from(spkac))); - * // Prints: true or false - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return `true` if the given `spkac` data structure is valid, `false` otherwise. - */ - static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - /** - * @deprecated - * @param spkac - * @returns The challenge component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportChallenge(spkac: BinaryLike): NonSharedBuffer; - /** - * @deprecated - * @param spkac - * @param encoding The encoding of the spkac string. - * @returns The public key component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; - /** - * @deprecated - * @param spkac - * @returns `true` if the given `spkac` data structure is valid, - * `false` otherwise. - */ - verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - } - namespace constants { - // https://nodejs.org/dist/latest-v20.x/docs/api/crypto.html#crypto-constants - const OPENSSL_VERSION_NUMBER: number; - /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ - const SSL_OP_ALL: number; - /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */ - const SSL_OP_ALLOW_NO_DHE_KEX: number; - /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; - /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_CIPHER_SERVER_PREFERENCE: number; - /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */ - const SSL_OP_CISCO_ANYCONNECT: number; - /** Instructs OpenSSL to turn on cookie exchange. */ - const SSL_OP_COOKIE_EXCHANGE: number; - /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */ - const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; - /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */ - const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; - /** Allows initial connection to servers that do not support RI. */ - const SSL_OP_LEGACY_SERVER_CONNECT: number; - /** Instructs OpenSSL to disable support for SSL/TLS compression. */ - const SSL_OP_NO_COMPRESSION: number; - /** Instructs OpenSSL to disable encrypt-then-MAC. */ - const SSL_OP_NO_ENCRYPT_THEN_MAC: number; - const SSL_OP_NO_QUERY_MTU: number; - /** Instructs OpenSSL to disable renegotiation. */ - const SSL_OP_NO_RENEGOTIATION: number; - /** Instructs OpenSSL to always start a new session when performing renegotiation. */ - const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; - /** Instructs OpenSSL to turn off SSL v2 */ - const SSL_OP_NO_SSLv2: number; - /** Instructs OpenSSL to turn off SSL v3 */ - const SSL_OP_NO_SSLv3: number; - /** Instructs OpenSSL to disable use of RFC4507bis tickets. */ - const SSL_OP_NO_TICKET: number; - /** Instructs OpenSSL to turn off TLS v1 */ - const SSL_OP_NO_TLSv1: number; - /** Instructs OpenSSL to turn off TLS v1.1 */ - const SSL_OP_NO_TLSv1_1: number; - /** Instructs OpenSSL to turn off TLS v1.2 */ - const SSL_OP_NO_TLSv1_2: number; - /** Instructs OpenSSL to turn off TLS v1.3 */ - const SSL_OP_NO_TLSv1_3: number; - /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */ - const SSL_OP_PRIORITIZE_CHACHA: number; - /** Instructs OpenSSL to disable version rollback attack detection. */ - const SSL_OP_TLS_ROLLBACK_BUG: number; - const ENGINE_METHOD_RSA: number; - const ENGINE_METHOD_DSA: number; - const ENGINE_METHOD_DH: number; - const ENGINE_METHOD_RAND: number; - const ENGINE_METHOD_EC: number; - const ENGINE_METHOD_CIPHERS: number; - const ENGINE_METHOD_DIGESTS: number; - const ENGINE_METHOD_PKEY_METHS: number; - const ENGINE_METHOD_PKEY_ASN1_METHS: number; - const ENGINE_METHOD_ALL: number; - const ENGINE_METHOD_NONE: number; - const DH_CHECK_P_NOT_SAFE_PRIME: number; - const DH_CHECK_P_NOT_PRIME: number; - const DH_UNABLE_TO_CHECK_GENERATOR: number; - const DH_NOT_SUITABLE_GENERATOR: number; - const RSA_PKCS1_PADDING: number; - const RSA_SSLV23_PADDING: number; - const RSA_NO_PADDING: number; - const RSA_PKCS1_OAEP_PADDING: number; - const RSA_X931_PADDING: number; - const RSA_PKCS1_PSS_PADDING: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */ - const RSA_PSS_SALTLEN_DIGEST: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */ - const RSA_PSS_SALTLEN_MAX_SIGN: number; - /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */ - const RSA_PSS_SALTLEN_AUTO: number; - const POINT_CONVERSION_COMPRESSED: number; - const POINT_CONVERSION_UNCOMPRESSED: number; - const POINT_CONVERSION_HYBRID: number; - /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */ - const defaultCoreCipherList: string; - /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */ - const defaultCipherList: string; - } - interface HashOptions extends stream.TransformOptions { - /** - * For XOF hash functions such as `shake256`, the - * outputLength option can be used to specify the desired output length in bytes. - */ - outputLength?: number | undefined; - } - /** @deprecated since v10.0.0 */ - const fips: boolean; - /** - * Creates and returns a `Hash` object that can be used to generate hash digests - * using the given `algorithm`. Optional `options` argument controls stream - * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option - * can be used to specify the desired output length in bytes. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms` will - * display the available digest algorithms. - * - * Example: generating the sha256 sum of a file - * - * ```js - * import { - * createReadStream, - * } from 'node:fs'; - * import { argv } from 'node:process'; - * const { - * createHash, - * } = await import('node:crypto'); - * - * const filename = argv[2]; - * - * const hash = createHash('sha256'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hash.update(data); - * else { - * console.log(`${hash.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.92 - * @param options `stream.transform` options - */ - function createHash(algorithm: string, options?: HashOptions): Hash; - /** - * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`. - * Optional `options` argument controls stream behavior. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms` will - * display the available digest algorithms. - * - * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is - * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was - * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not - * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256). - * - * Example: generating the sha256 HMAC of a file - * - * ```js - * import { - * createReadStream, - * } from 'node:fs'; - * import { argv } from 'node:process'; - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const filename = argv[2]; - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hmac.update(data); - * else { - * console.log(`${hmac.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac; - // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings - type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary"; - type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1"; - type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2"; - type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding; - type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid"; - /** - * The `Hash` class is a utility for creating hash digests of data. It can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed hash digest on the readable side, or - * * Using the `hash.update()` and `hash.digest()` methods to produce the - * computed hash. - * - * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hash` objects as streams: - * - * ```js - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hash.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * } - * }); - * - * hash.write('some data to hash'); - * hash.end(); - * ``` - * - * Example: Using `Hash` and piped streams: - * - * ```js - * import { createReadStream } from 'node:fs'; - * import { stdout } from 'node:process'; - * const { createHash } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * const input = createReadStream('test.js'); - * input.pipe(hash).setEncoding('hex').pipe(stdout); - * ``` - * - * Example: Using the `hash.update()` and `hash.digest()` methods: - * - * ```js - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('some data to hash'); - * console.log(hash.digest('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * ``` - * @since v0.1.92 - */ - class Hash extends stream.Transform { - private constructor(); - /** - * Creates a new `Hash` object that contains a deep copy of the internal state - * of the current `Hash` object. - * - * The optional `options` argument controls stream behavior. For XOF hash - * functions such as `'shake256'`, the `outputLength` option can be used to - * specify the desired output length in bytes. - * - * An error is thrown when an attempt is made to copy the `Hash` object after - * its `hash.digest()` method has been called. - * - * ```js - * // Calculate a rolling hash. - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('one'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('two'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('three'); - * console.log(hash.copy().digest('hex')); - * - * // Etc. - * ``` - * @since v13.1.0 - * @param options `stream.transform` options - */ - copy(options?: HashOptions): Hash; - /** - * Updates the hash content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hash; - update(data: string, inputEncoding: Encoding): Hash; - /** - * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method). - * If `encoding` is provided a string will be returned; otherwise - * a `Buffer` is returned. - * - * The `Hash` object can not be used again after `hash.digest()` method has been - * called. Multiple calls will cause an error to be thrown. - * @since v0.1.92 - * @param encoding The `encoding` of the return value. - */ - digest(): NonSharedBuffer; - digest(encoding: BinaryToTextEncoding): string; - } - /** - * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can - * be used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed HMAC digest on the readable side, or - * * Using the `hmac.update()` and `hmac.digest()` methods to produce the - * computed HMAC digest. - * - * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hmac` objects as streams: - * - * ```js - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hmac.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * } - * }); - * - * hmac.write('some data to hash'); - * hmac.end(); - * ``` - * - * Example: Using `Hmac` and piped streams: - * - * ```js - * import { createReadStream } from 'node:fs'; - * import { stdout } from 'node:process'; - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream('test.js'); - * input.pipe(hmac).pipe(stdout); - * ``` - * - * Example: Using the `hmac.update()` and `hmac.digest()` methods: - * - * ```js - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.update('some data to hash'); - * console.log(hmac.digest('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * ``` - * @since v0.1.94 - * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances. - */ - class Hmac extends stream.Transform { - private constructor(); - /** - * Updates the `Hmac` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hmac; - update(data: string, inputEncoding: Encoding): Hmac; - /** - * Calculates the HMAC digest of all of the data passed using `hmac.update()`. - * If `encoding` is - * provided a string is returned; otherwise a `Buffer` is returned; - * - * The `Hmac` object can not be used again after `hmac.digest()` has been - * called. Multiple calls to `hmac.digest()` will result in an error being thrown. - * @since v0.1.94 - * @param encoding The `encoding` of the return value. - */ - digest(): NonSharedBuffer; - digest(encoding: BinaryToTextEncoding): string; - } - type KeyObjectType = "secret" | "public" | "private"; - interface KeyExportOptions { - type: "pkcs1" | "spki" | "pkcs8" | "sec1"; - format: T; - cipher?: string | undefined; - passphrase?: string | Buffer | undefined; - } - interface JwkKeyExportOptions { - format: "jwk"; - } - interface JsonWebKey { - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - k?: string; - kty?: string; - n?: string; - p?: string; - q?: string; - qi?: string; - x?: string; - y?: string; - [key: string]: unknown; - } - interface AsymmetricKeyDetails { - /** - * Key size in bits (RSA, DSA). - */ - modulusLength?: number; - /** - * Public exponent (RSA). - */ - publicExponent?: bigint; - /** - * Name of the message digest (RSA-PSS). - */ - hashAlgorithm?: string; - /** - * Name of the message digest used by MGF1 (RSA-PSS). - */ - mgf1HashAlgorithm?: string; - /** - * Minimal salt length in bytes (RSA-PSS). - */ - saltLength?: number; - /** - * Size of q in bits (DSA). - */ - divisorLength?: number; - /** - * Name of the curve (EC). - */ - namedCurve?: string; - } - /** - * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key, - * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject` - * objects are not to be created directly using the `new`keyword. - * - * Most applications should consider using the new `KeyObject` API instead of - * passing keys as strings or `Buffer`s due to improved security features. - * - * `KeyObject` instances can be passed to other threads via `postMessage()`. - * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to - * be listed in the `transferList` argument. - * @since v11.6.0 - */ - class KeyObject { - private constructor(); - /** - * Example: Converting a `CryptoKey` instance to a `KeyObject`: - * - * ```js - * const { KeyObject } = await import('node:crypto'); - * const { subtle } = globalThis.crypto; - * - * const key = await subtle.generateKey({ - * name: 'HMAC', - * hash: 'SHA-256', - * length: 256, - * }, true, ['sign', 'verify']); - * - * const keyObject = KeyObject.from(key); - * console.log(keyObject.symmetricKeySize); - * // Prints: 32 (symmetric key size in bytes) - * ``` - * @since v15.0.0 - */ - static from(key: webcrypto.CryptoKey): KeyObject; - /** - * For asymmetric keys, this property represents the type of the key. Supported key - * types are: - * - * * `'rsa'` (OID 1.2.840.113549.1.1.1) - * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10) - * * `'dsa'` (OID 1.2.840.10040.4.1) - * * `'ec'` (OID 1.2.840.10045.2.1) - * * `'x25519'` (OID 1.3.101.110) - * * `'x448'` (OID 1.3.101.111) - * * `'ed25519'` (OID 1.3.101.112) - * * `'ed448'` (OID 1.3.101.113) - * * `'dh'` (OID 1.2.840.113549.1.3.1) - * - * This property is `undefined` for unrecognized `KeyObject` types and symmetric - * keys. - * @since v11.6.0 - */ - asymmetricKeyType?: KeyType; - /** - * This property exists only on asymmetric keys. Depending on the type of the key, - * this object contains information about the key. None of the information obtained - * through this property can be used to uniquely identify a key or to compromise - * the security of the key. - * - * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence, - * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be - * set. - * - * Other key details might be exposed via this API using additional attributes. - * @since v15.7.0 - */ - asymmetricKeyDetails?: AsymmetricKeyDetails; - /** - * For symmetric keys, the following encoding options can be used: - * - * For public keys, the following encoding options can be used: - * - * For private keys, the following encoding options can be used: - * - * The result type depends on the selected encoding format, when PEM the - * result is a string, when DER it will be a buffer containing the data - * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object. - * - * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are - * ignored. - * - * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of - * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be - * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for - * encrypted private keys. Since PKCS#8 defines its own - * encryption mechanism, PEM-level encryption is not supported when encrypting - * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for - * PKCS#1 and SEC1 encryption. - * @since v11.6.0 - */ - export(options: KeyExportOptions<"pem">): string | NonSharedBuffer; - export(options?: KeyExportOptions<"der">): NonSharedBuffer; - export(options?: JwkKeyExportOptions): JsonWebKey; - /** - * Returns `true` or `false` depending on whether the keys have exactly the same - * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). - * @since v17.7.0, v16.15.0 - * @param otherKeyObject A `KeyObject` with which to compare `keyObject`. - */ - equals(otherKeyObject: KeyObject): boolean; - /** - * For secret keys, this property represents the size of the key in bytes. This - * property is `undefined` for asymmetric keys. - * @since v11.6.0 - */ - symmetricKeySize?: number; - /** - * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys - * or `'private'` for private (asymmetric) keys. - * @since v11.6.0 - */ - type: KeyObjectType; - } - type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm"; - type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm"; - type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb"; - type CipherChaCha20Poly1305Types = "chacha20-poly1305"; - type BinaryLike = string | NodeJS.ArrayBufferView; - type CipherKey = BinaryLike | KeyObject; - interface CipherCCMOptions extends stream.TransformOptions { - authTagLength: number; - } - interface CipherGCMOptions extends stream.TransformOptions { - authTagLength?: number | undefined; - } - interface CipherOCBOptions extends stream.TransformOptions { - authTagLength: number; - } - interface CipherChaCha20Poly1305Options extends stream.TransformOptions { - /** @default 16 */ - authTagLength?: number | undefined; - } - /** - * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`. - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication - * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `password` is used to derive the cipher key and initialization vector (IV). - * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`. - * - * **This function is semantically insecure for all** - * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,** - * **GCM, or CCM).** - * - * The implementation of `crypto.createCipher()` derives keys using the OpenSSL - * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one - * iteration, and no salt. The lack of salt allows dictionary attacks as the same - * password always creates the same key. The low iteration count and - * non-cryptographically secure hash algorithm allow passwords to be tested very - * rapidly. - * - * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that - * developers derive a key and IV on - * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode - * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when - * they are used in order to avoid the risk of IV reuse that causes - * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details. - * @since v0.1.94 - * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead. - * @param options `stream.transform` options - */ - function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): CipherOCB; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher( - algorithm: CipherChaCha20Poly1305Types, - password: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): CipherChaCha20Poly1305; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher; - /** - * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and - * initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication - * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a - * given IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createCipheriv( - algorithm: CipherCCMTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherCCMOptions, - ): CipherCCM; - function createCipheriv( - algorithm: CipherOCBTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherOCBOptions, - ): CipherOCB; - function createCipheriv( - algorithm: CipherGCMTypes, - key: CipherKey, - iv: BinaryLike, - options?: CipherGCMOptions, - ): CipherGCM; - function createCipheriv( - algorithm: CipherChaCha20Poly1305Types, - key: CipherKey, - iv: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): CipherChaCha20Poly1305; - function createCipheriv( - algorithm: string, - key: CipherKey, - iv: BinaryLike | null, - options?: stream.TransformOptions, - ): Cipher; - /** - * Instances of the `Cipher` class are used to encrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain unencrypted - * data is written to produce encrypted data on the readable side, or - * * Using the `cipher.update()` and `cipher.final()` methods to produce - * the encrypted data. - * - * The {@link createCipher} or {@link createCipheriv} methods are - * used to create `Cipher` instances. `Cipher` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Cipher` objects as streams: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * // Once we have the key and iv, we can create and use the cipher... - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = ''; - * cipher.setEncoding('hex'); - * - * cipher.on('data', (chunk) => encrypted += chunk); - * cipher.on('end', () => console.log(encrypted)); - * - * cipher.write('some clear text data'); - * cipher.end(); - * }); - * }); - * ``` - * - * Example: Using `Cipher` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'node:fs'; - * - * import { - * pipeline, - * } from 'node:stream'; - * - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.js'); - * const output = createWriteStream('test.enc'); - * - * pipeline(input, cipher, output, (err) => { - * if (err) throw err; - * }); - * }); - * }); - * ``` - * - * Example: Using the `cipher.update()` and `cipher.final()` methods: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = cipher.update('some clear text data', 'utf8', 'hex'); - * encrypted += cipher.final('hex'); - * console.log(encrypted); - * }); - * }); - * ``` - * @since v0.1.94 - */ - class Cipher extends stream.Transform { - private constructor(); - /** - * Updates the cipher with `data`. If the `inputEncoding` argument is given, - * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`, - * `TypedArray`, or `DataView`, then `inputEncoding` is ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. - * - * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being - * thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the data. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: BinaryLike): NonSharedBuffer; - update(data: string, inputEncoding: Encoding): NonSharedBuffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `cipher.final()` method has been called, the `Cipher` object can no - * longer be used to encrypt data. Attempts to call `cipher.final()` more than - * once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): NonSharedBuffer; - final(outputEncoding: BufferEncoding): string; - /** - * When using block encryption algorithms, the `Cipher` class will automatically - * add padding to the input data to the appropriate block size. To disable the - * default padding call `cipher.setAutoPadding(false)`. - * - * When `autoPadding` is `false`, the length of the entire input data must be a - * multiple of the cipher's block size or `cipher.final()` will throw an error. - * Disabling automatic padding is useful for non-standard padding, for instance - * using `0x0` instead of PKCS padding. - * - * The `cipher.setAutoPadding()` method must be called before `cipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(autoPadding?: boolean): this; - } - interface CipherCCM extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherGCM extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherOCB extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherChaCha20Poly1305 extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - /** - * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * **This function is semantically insecure for all** - * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,** - * **GCM, or CCM).** - * - * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL - * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one - * iteration, and no salt. The lack of salt allows dictionary attacks as the same - * password always creates the same key. The low iteration count and - * non-cryptographically secure hash algorithm allow passwords to be tested very - * rapidly. - * - * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that - * developers derive a key and IV on - * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object. - * @since v0.1.94 - * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead. - * @param options `stream.transform` options - */ - function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: CipherOCBTypes, password: BinaryLike, options: CipherOCBOptions): DecipherOCB; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher( - algorithm: CipherChaCha20Poly1305Types, - password: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): DecipherChaCha20Poly1305; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; - /** - * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags - * to those with the specified length. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a given - * IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createDecipheriv( - algorithm: CipherCCMTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherCCMOptions, - ): DecipherCCM; - function createDecipheriv( - algorithm: CipherOCBTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherOCBOptions, - ): DecipherOCB; - function createDecipheriv( - algorithm: CipherGCMTypes, - key: CipherKey, - iv: BinaryLike, - options?: CipherGCMOptions, - ): DecipherGCM; - function createDecipheriv( - algorithm: CipherChaCha20Poly1305Types, - key: CipherKey, - iv: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): DecipherChaCha20Poly1305; - function createDecipheriv( - algorithm: string, - key: CipherKey, - iv: BinaryLike | null, - options?: stream.TransformOptions, - ): Decipher; - /** - * Instances of the `Decipher` class are used to decrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain encrypted - * data is written to produce unencrypted data on the readable side, or - * * Using the `decipher.update()` and `decipher.final()` methods to - * produce the unencrypted data. - * - * The {@link createDecipher} or {@link createDecipheriv} methods are - * used to create `Decipher` instances. `Decipher` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Decipher` objects as streams: - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Key length is dependent on the algorithm. In this case for aes192, it is - * // 24 bytes (192 bits). - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * let decrypted = ''; - * decipher.on('readable', () => { - * let chunk; - * while (null !== (chunk = decipher.read())) { - * decrypted += chunk.toString('utf8'); - * } - * }); - * decipher.on('end', () => { - * console.log(decrypted); - * // Prints: some clear text data - * }); - * - * // Encrypted with same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * decipher.write(encrypted, 'hex'); - * decipher.end(); - * ``` - * - * Example: Using `Decipher` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.enc'); - * const output = createWriteStream('test.js'); - * - * input.pipe(decipher).pipe(output); - * ``` - * - * Example: Using the `decipher.update()` and `decipher.final()` methods: - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * // Encrypted using same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * let decrypted = decipher.update(encrypted, 'hex', 'utf8'); - * decrypted += decipher.final('utf8'); - * console.log(decrypted); - * // Prints: some clear text data - * ``` - * @since v0.1.94 - */ - class Decipher extends stream.Transform { - private constructor(); - /** - * Updates the decipher with `data`. If the `inputEncoding` argument is given, - * the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is - * ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned. - * - * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error - * being thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: NodeJS.ArrayBufferView): NonSharedBuffer; - update(data: string, inputEncoding: Encoding): NonSharedBuffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `decipher.final()` method has been called, the `Decipher` object can - * no longer be used to decrypt data. Attempts to call `decipher.final()` more - * than once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): NonSharedBuffer; - final(outputEncoding: BufferEncoding): string; - /** - * When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and - * removing padding. - * - * Turning auto padding off will only work if the input data's length is a - * multiple of the ciphers block size. - * - * The `decipher.setAutoPadding()` method must be called before `decipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(auto_padding?: boolean): this; - } - interface DecipherCCM extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - } - interface DecipherGCM extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - } - interface DecipherOCB extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - } - interface DecipherChaCha20Poly1305 extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - } - interface PrivateKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: "pkcs1" | "pkcs8" | "sec1" | undefined; - passphrase?: string | Buffer | undefined; - encoding?: string | undefined; - } - interface PublicKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: "pkcs1" | "spki" | undefined; - encoding?: string | undefined; - } - /** - * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. - * - * ```js - * const { - * generateKey, - * } = await import('node:crypto'); - * - * generateKey('hmac', { length: 512 }, (err, key) => { - * if (err) throw err; - * console.log(key.export().toString('hex')); // 46e..........620 - * }); - * ``` - * - * The size of a generated HMAC key should not exceed the block size of the - * underlying hash function. See {@link createHmac} for more information. - * @since v15.0.0 - * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. - */ - function generateKey( - type: "hmac" | "aes", - options: { - length: number; - }, - callback: (err: Error | null, key: KeyObject) => void, - ): void; - /** - * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. - * - * ```js - * const { - * generateKeySync, - * } = await import('node:crypto'); - * - * const key = generateKeySync('hmac', { length: 512 }); - * console.log(key.export().toString('hex')); // e89..........41e - * ``` - * - * The size of a generated HMAC key should not exceed the block size of the - * underlying hash function. See {@link createHmac} for more information. - * @since v15.0.0 - * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. - */ - function generateKeySync( - type: "hmac" | "aes", - options: { - length: number; - }, - ): KeyObject; - interface JsonWebKeyInput { - key: JsonWebKey; - format: "jwk"; - } - /** - * Creates and returns a new key object containing a private key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above. - * - * If the private key is encrypted, a `passphrase` must be specified. The length - * of the passphrase is limited to 1024 bytes. - * @since v11.6.0 - */ - function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a public key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key; - * otherwise, `key` must be an object with the properties described above. - * - * If the format is `'pem'`, the `'key'` may also be an X.509 certificate. - * - * Because public keys can be derived from private keys, a private key may be - * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the - * returned `KeyObject` will be `'public'` and that the private key cannot be - * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned - * and it will be impossible to extract the private key from the returned object. - * @since v11.6.0 - */ - function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a secret key for symmetric - * encryption or `Hmac`. - * @since v11.6.0 - * @param encoding The string encoding when `key` is a string. - */ - function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; - function createSecretKey(key: string, encoding: BufferEncoding): KeyObject; - /** - * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms. - * Optional `options` argument controls the `stream.Writable` behavior. - * - * In some cases, a `Sign` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - function createSign(algorithm: string, options?: stream.WritableOptions): Sign; - type DSAEncoding = "der" | "ieee-p1363"; - interface SigningOptions { - /** - * @see crypto.constants.RSA_PKCS1_PADDING - */ - padding?: number | undefined; - saltLength?: number | undefined; - dsaEncoding?: DSAEncoding | undefined; - } - interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {} - interface SignKeyObjectInput extends SigningOptions { - key: KeyObject; - } - interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} - interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {} - interface VerifyKeyObjectInput extends SigningOptions { - key: KeyObject; - } - interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} - type KeyLike = string | Buffer | KeyObject; - /** - * The `Sign` class is a utility for generating signatures. It can be used in one - * of two ways: - * - * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or - * * Using the `sign.update()` and `sign.sign()` methods to produce the - * signature. - * - * The {@link createSign} method is used to create `Sign` instances. The - * argument is the string name of the hash function to use. `Sign` objects are not - * to be created directly using the `new` keyword. - * - * Example: Using `Sign` and `Verify` objects as streams: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify, - * } = await import('node:crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('ec', { - * namedCurve: 'sect239k1', - * }); - * - * const sign = createSign('SHA256'); - * sign.write('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey, 'hex'); - * - * const verify = createVerify('SHA256'); - * verify.write('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature, 'hex')); - * // Prints: true - * ``` - * - * Example: Using the `sign.update()` and `verify.update()` methods: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify, - * } = await import('node:crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('rsa', { - * modulusLength: 2048, - * }); - * - * const sign = createSign('SHA256'); - * sign.update('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey); - * - * const verify = createVerify('SHA256'); - * verify.update('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature)); - * // Prints: true - * ``` - * @since v0.1.92 - */ - class Sign extends stream.Writable { - private constructor(); - /** - * Updates the `Sign` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): this; - update(data: string, inputEncoding: Encoding): this; - /** - * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the following additional properties can be passed: - * - * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned. - * - * The `Sign` object can not be again used after `sign.sign()` method has been - * called. Multiple calls to `sign.sign()` will result in an error being thrown. - * @since v0.1.92 - */ - sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): NonSharedBuffer; - sign( - privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - outputFormat: BinaryToTextEncoding, - ): string; - } - /** - * Creates and returns a `Verify` object that uses the given algorithm. - * Use {@link getHashes} to obtain an array of names of the available - * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior. - * - * In some cases, a `Verify` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; - /** - * The `Verify` class is a utility for verifying signatures. It can be used in one - * of two ways: - * - * * As a writable `stream` where written data is used to validate against the - * supplied signature, or - * * Using the `verify.update()` and `verify.verify()` methods to verify - * the signature. - * - * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword. - * - * See `Sign` for examples. - * @since v0.1.92 - */ - class Verify extends stream.Writable { - private constructor(); - /** - * Updates the `Verify` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `inputEncoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Verify; - update(data: string, inputEncoding: Encoding): Verify; - /** - * Verifies the provided data using the given `object` and `signature`. - * - * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an - * object, the following additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the data, in - * the `signatureEncoding`. - * If a `signatureEncoding` is specified, the `signature` is expected to be a - * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * The `verify` object can not be used again after `verify.verify()` has been - * called. Multiple calls to `verify.verify()` will result in an error being - * thrown. - * - * Because public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.1.92 - */ - verify( - object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - ): boolean; - verify( - object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: string, - signature_format?: BinaryToTextEncoding, - ): boolean; - } - /** - * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an - * optional specific `generator`. - * - * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used. - * - * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise - * a `Buffer`, `TypedArray`, or `DataView` is expected. - * - * If `generatorEncoding` is specified, `generator` is expected to be a string; - * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected. - * @since v0.11.12 - * @param primeEncoding The `encoding` of the `prime` string. - * @param [generator=2] - * @param generatorEncoding The `encoding` of the `generator` string. - */ - function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman; - function createDiffieHellman( - prime: ArrayBuffer | NodeJS.ArrayBufferView, - generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, - ): DiffieHellman; - function createDiffieHellman( - prime: ArrayBuffer | NodeJS.ArrayBufferView, - generator: string, - generatorEncoding: BinaryToTextEncoding, - ): DiffieHellman; - function createDiffieHellman( - prime: string, - primeEncoding: BinaryToTextEncoding, - generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, - ): DiffieHellman; - function createDiffieHellman( - prime: string, - primeEncoding: BinaryToTextEncoding, - generator: string, - generatorEncoding: BinaryToTextEncoding, - ): DiffieHellman; - /** - * The `DiffieHellman` class is a utility for creating Diffie-Hellman key - * exchanges. - * - * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function. - * - * ```js - * import assert from 'node:assert'; - * - * const { - * createDiffieHellman, - * } = await import('node:crypto'); - * - * // Generate Alice's keys... - * const alice = createDiffieHellman(2048); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator()); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * // OK - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * ``` - * @since v0.5.0 - */ - class DiffieHellman { - private constructor(); - /** - * Generates private and public Diffie-Hellman key values unless they have been - * generated or computed already, and returns - * the public key in the specified `encoding`. This key should be - * transferred to the other party. - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * - * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular, - * once a private key has been generated or set, calling this function only updates - * the public key but does not generate a new private key. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - generateKeys(): NonSharedBuffer; - generateKeys(encoding: BinaryToTextEncoding): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using the specified `inputEncoding`, and secret is - * encoded using specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. - * @since v0.5.0 - * @param inputEncoding The `encoding` of an `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret( - otherPublicKey: NodeJS.ArrayBufferView, - inputEncoding?: null, - outputEncoding?: null, - ): NonSharedBuffer; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding?: null, - ): NonSharedBuffer; - computeSecret( - otherPublicKey: NodeJS.ArrayBufferView, - inputEncoding: null, - outputEncoding: BinaryToTextEncoding, - ): string; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding: BinaryToTextEncoding, - ): string; - /** - * Returns the Diffie-Hellman prime in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrime(): NonSharedBuffer; - getPrime(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman generator in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getGenerator(): NonSharedBuffer; - getGenerator(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman public key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPublicKey(): NonSharedBuffer; - getPublicKey(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman private key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrivateKey(): NonSharedBuffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected - * to be a string. If no `encoding` is provided, `publicKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * @since v0.5.0 - * @param encoding The `encoding` of the `publicKey` string. - */ - setPublicKey(publicKey: NodeJS.ArrayBufferView): void; - setPublicKey(publicKey: string, encoding: BufferEncoding): void; - /** - * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected - * to be a string. If no `encoding` is provided, `privateKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * - * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be - * used to manually provide the public key or to automatically derive it. - * @since v0.5.0 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BufferEncoding): void; - /** - * A bit field containing any warnings and/or errors resulting from a check - * performed during initialization of the `DiffieHellman` object. - * - * The following values are valid for this property (as defined in `node:constants` module): - * - * * `DH_CHECK_P_NOT_SAFE_PRIME` - * * `DH_CHECK_P_NOT_PRIME` - * * `DH_UNABLE_TO_CHECK_GENERATOR` - * * `DH_NOT_SUITABLE_GENERATOR` - * @since v0.11.12 - */ - verifyError: number; - } - /** - * The `DiffieHellmanGroup` class takes a well-known modp group as its argument. - * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation. - * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods. - * - * ```js - * const { createDiffieHellmanGroup } = await import('node:crypto'); - * const dh = createDiffieHellmanGroup('modp1'); - * ``` - * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt): - * ```bash - * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h - * modp1 # 768 bits - * modp2 # 1024 bits - * modp5 # 1536 bits - * modp14 # 2048 bits - * modp15 # etc. - * modp16 - * modp17 - * modp18 - * ``` - * @since v0.7.5 - */ - const DiffieHellmanGroup: DiffieHellmanGroupConstructor; - interface DiffieHellmanGroupConstructor { - new(name: string): DiffieHellmanGroup; - (name: string): DiffieHellmanGroup; - readonly prototype: DiffieHellmanGroup; - } - type DiffieHellmanGroup = Omit; - /** - * Creates a predefined `DiffieHellmanGroup` key exchange object. The - * supported groups are listed in the documentation for `DiffieHellmanGroup`. - * - * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing - * the keys (with `diffieHellman.setPublicKey()`, for example). The - * advantage of using this method is that the parties do not have to - * generate nor exchange a group modulus beforehand, saving both processor - * and communication time. - * - * Example (obtaining a shared secret): - * - * ```js - * const { - * getDiffieHellman, - * } = await import('node:crypto'); - * const alice = getDiffieHellman('modp14'); - * const bob = getDiffieHellman('modp14'); - * - * alice.generateKeys(); - * bob.generateKeys(); - * - * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex'); - * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex'); - * - * // aliceSecret and bobSecret should be the same - * console.log(aliceSecret === bobSecret); - * ``` - * @since v0.7.5 - */ - function getDiffieHellman(groupName: string): DiffieHellmanGroup; - /** - * An alias for {@link getDiffieHellman} - * @since v0.9.3 - */ - function createDiffieHellmanGroup(name: string): DiffieHellmanGroup; - /** - * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. - * - * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be - * thrown if any of the input arguments specify invalid values or types. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2, - * } = await import('node:crypto'); - * - * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * @since v0.5.5 - */ - function pbkdf2( - password: BinaryLike, - salt: BinaryLike, - iterations: number, - keylen: number, - digest: string, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - /** - * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. - * - * If an error occurs an `Error` will be thrown, otherwise the derived key will be - * returned as a `Buffer`. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2Sync, - * } = await import('node:crypto'); - * - * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512'); - * console.log(key.toString('hex')); // '3745e48...08d59ae' - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * @since v0.9.3 - */ - function pbkdf2Sync( - password: BinaryLike, - salt: BinaryLike, - iterations: number, - keylen: number, - digest: string, - ): NonSharedBuffer; - /** - * Generates cryptographically strong pseudorandom data. The `size` argument - * is a number indicating the number of bytes to generate. - * - * If a `callback` function is provided, the bytes are generated asynchronously - * and the `callback` function is invoked with two arguments: `err` and `buf`. - * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes. - * - * ```js - * // Asynchronous - * const { - * randomBytes, - * } = await import('node:crypto'); - * - * randomBytes(256, (err, buf) => { - * if (err) throw err; - * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`); - * }); - * ``` - * - * If the `callback` function is not provided, the random bytes are generated - * synchronously and returned as a `Buffer`. An error will be thrown if - * there is a problem generating the bytes. - * - * ```js - * // Synchronous - * const { - * randomBytes, - * } = await import('node:crypto'); - * - * const buf = randomBytes(256); - * console.log( - * `${buf.length} bytes of random data: ${buf.toString('hex')}`); - * ``` - * - * The `crypto.randomBytes()` method will not complete until there is - * sufficient entropy available. - * This should normally never take longer than a few milliseconds. The only time - * when generating the random bytes may conceivably block for a longer period of - * time is right after boot, when the whole system is still low on entropy. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomBytes()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomBytes` requests when doing so as part of fulfilling a client - * request. - * @since v0.5.8 - * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`. - * @return if the `callback` function is not provided. - */ - function randomBytes(size: number): NonSharedBuffer; - function randomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; - function pseudoRandomBytes(size: number): NonSharedBuffer; - function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; - /** - * Return a random integer `n` such that `min <= n < max`. This - * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). - * - * The range (`max - min`) must be less than 2**48. `min` and `max` must - * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). - * - * If the `callback` function is not provided, the random integer is - * generated synchronously. - * - * ```js - * // Asynchronous - * const { - * randomInt, - * } = await import('node:crypto'); - * - * randomInt(3, (err, n) => { - * if (err) throw err; - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * }); - * ``` - * - * ```js - * // Synchronous - * const { - * randomInt, - * } = await import('node:crypto'); - * - * const n = randomInt(3); - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * ``` - * - * ```js - * // With `min` argument - * const { - * randomInt, - * } = await import('node:crypto'); - * - * const n = randomInt(1, 7); - * console.log(`The dice rolled: ${n}`); - * ``` - * @since v14.10.0, v12.19.0 - * @param [min=0] Start of random range (inclusive). - * @param max End of random range (exclusive). - * @param callback `function(err, n) {}`. - */ - function randomInt(max: number): number; - function randomInt(min: number, max: number): number; - function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; - function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; - /** - * Synchronous version of {@link randomFill}. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFillSync } = await import('node:crypto'); - * - * const buf = Buffer.alloc(10); - * console.log(randomFillSync(buf).toString('hex')); - * - * randomFillSync(buf, 5); - * console.log(buf.toString('hex')); - * - * // The above is equivalent to the following: - * randomFillSync(buf, 5, 5); - * console.log(buf.toString('hex')); - * ``` - * - * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFillSync } = await import('node:crypto'); - * - * const a = new Uint32Array(10); - * console.log(Buffer.from(randomFillSync(a).buffer, - * a.byteOffset, a.byteLength).toString('hex')); - * - * const b = new DataView(new ArrayBuffer(10)); - * console.log(Buffer.from(randomFillSync(b).buffer, - * b.byteOffset, b.byteLength).toString('hex')); - * - * const c = new ArrayBuffer(10); - * console.log(Buffer.from(randomFillSync(c)).toString('hex')); - * ``` - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @return The object passed as `buffer` argument. - */ - function randomFillSync(buffer: T, offset?: number, size?: number): T; - /** - * This function is similar to {@link randomBytes} but requires the first - * argument to be a `Buffer` that will be filled. It also - * requires that a callback is passed in. - * - * If the `callback` function is not provided, an error will be thrown. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFill } = await import('node:crypto'); - * - * const buf = Buffer.alloc(10); - * randomFill(buf, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * randomFill(buf, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * // The above is equivalent to the following: - * randomFill(buf, 5, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * ``` - * - * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`. - * - * While this includes instances of `Float32Array` and `Float64Array`, this - * function should not be used to generate random floating-point numbers. The - * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array - * contains finite numbers only, they are not drawn from a uniform random - * distribution and have no meaningful lower or upper bounds. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFill } = await import('node:crypto'); - * - * const a = new Uint32Array(10); - * randomFill(a, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const b = new DataView(new ArrayBuffer(10)); - * randomFill(b, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const c = new ArrayBuffer(10); - * randomFill(c, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf).toString('hex')); - * }); - * ``` - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomFill()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomFill` requests when doing so as part of fulfilling a client - * request. - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @param callback `function(err, buf) {}`. - */ - function randomFill( - buffer: T, - callback: (err: Error | null, buf: T) => void, - ): void; - function randomFill( - buffer: T, - offset: number, - callback: (err: Error | null, buf: T) => void, - ): void; - function randomFill( - buffer: T, - offset: number, - size: number, - callback: (err: Error | null, buf: T) => void, - ): void; - interface ScryptOptions { - cost?: number | undefined; - blockSize?: number | undefined; - parallelization?: number | undefined; - N?: number | undefined; - r?: number | undefined; - p?: number | undefined; - maxmem?: number | undefined; - } - /** - * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the - * callback as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scrypt, - * } = await import('node:crypto'); - * - * // Using the factory defaults. - * scrypt('password', 'salt', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * // Using a custom N parameter. Must be a power of two. - * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34' - * }); - * ``` - * @since v10.5.0 - */ - function scrypt( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - function scrypt( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - options: ScryptOptions, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - /** - * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * An exception is thrown when key derivation fails, otherwise the derived key is - * returned as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scryptSync, - * } = await import('node:crypto'); - * // Using the factory defaults. - * - * const key1 = scryptSync('password', 'salt', 64); - * console.log(key1.toString('hex')); // '3745e48...08d59ae' - * // Using a custom N parameter. Must be a power of two. - * const key2 = scryptSync('password', 'salt', 64, { N: 1024 }); - * console.log(key2.toString('hex')); // '3745e48...aa39b34' - * ``` - * @since v10.5.0 - */ - function scryptSync( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - options?: ScryptOptions, - ): NonSharedBuffer; - interface RsaPublicKey { - key: KeyLike; - padding?: number | undefined; - } - interface RsaPrivateKey { - key: KeyLike; - passphrase?: string | undefined; - /** - * @default 'sha1' - */ - oaepHash?: string | undefined; - oaepLabel?: NodeJS.TypedArray | undefined; - padding?: number | undefined; - } - /** - * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using - * the corresponding private key, for example using {@link privateDecrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.11.14 - */ - function publicEncrypt( - key: RsaPublicKey | RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView, - ): NonSharedBuffer; - /** - * Decrypts `buffer` with `key`.`buffer` was previously encrypted using - * the corresponding private key, for example using {@link privateEncrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v1.1.0 - */ - function publicDecrypt( - key: RsaPublicKey | RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView, - ): NonSharedBuffer; - /** - * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using - * the corresponding public key, for example using {@link publicEncrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. - * @since v0.11.14 - */ - function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): NonSharedBuffer; - /** - * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using - * the corresponding public key, for example using {@link publicDecrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. - * @since v1.1.0 - */ - function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): NonSharedBuffer; - /** - * ```js - * const { - * getCiphers, - * } = await import('node:crypto'); - * - * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...] - * ``` - * @since v0.9.3 - * @return An array with the names of the supported cipher algorithms. - */ - function getCiphers(): string[]; - /** - * ```js - * const { - * getCurves, - * } = await import('node:crypto'); - * - * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...] - * ``` - * @since v2.3.0 - * @return An array with the names of the supported elliptic curves. - */ - function getCurves(): string[]; - /** - * @since v10.0.0 - * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}. - */ - function getFips(): 1 | 0; - /** - * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. - * Throws an error if FIPS mode is not available. - * @since v10.0.0 - * @param bool `true` to enable FIPS mode. - */ - function setFips(bool: boolean): void; - /** - * ```js - * const { - * getHashes, - * } = await import('node:crypto'); - * - * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...] - * ``` - * @since v0.9.3 - * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms. - */ - function getHashes(): string[]; - /** - * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH) - * key exchanges. - * - * Instances of the `ECDH` class can be created using the {@link createECDH} function. - * - * ```js - * import assert from 'node:assert'; - * - * const { - * createECDH, - * } = await import('node:crypto'); - * - * // Generate Alice's keys... - * const alice = createECDH('secp521r1'); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createECDH('secp521r1'); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * // OK - * ``` - * @since v0.11.14 - */ - class ECDH { - private constructor(); - /** - * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the - * format specified by `format`. The `format` argument specifies point encoding - * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is - * interpreted using the specified `inputEncoding`, and the returned key is encoded - * using the specified `outputEncoding`. - * - * Use {@link getCurves} to obtain a list of available curve names. - * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display - * the name and description of each available elliptic curve. - * - * If `format` is not specified the point will be returned in `'uncompressed'` format. - * - * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * Example (uncompressing a key): - * - * ```js - * const { - * createECDH, - * ECDH, - * } = await import('node:crypto'); - * - * const ecdh = createECDH('secp256k1'); - * ecdh.generateKeys(); - * - * const compressedKey = ecdh.getPublicKey('hex', 'compressed'); - * - * const uncompressedKey = ECDH.convertKey(compressedKey, - * 'secp256k1', - * 'hex', - * 'hex', - * 'uncompressed'); - * - * // The converted key and the uncompressed public key should be the same - * console.log(uncompressedKey === ecdh.getPublicKey('hex')); - * ``` - * @since v10.0.0 - * @param inputEncoding The `encoding` of the `key` string. - * @param outputEncoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - static convertKey( - key: BinaryLike, - curve: string, - inputEncoding?: BinaryToTextEncoding, - outputEncoding?: "latin1" | "hex" | "base64" | "base64url", - format?: "uncompressed" | "compressed" | "hybrid", - ): NonSharedBuffer | string; - /** - * Generates private and public EC Diffie-Hellman key values, and returns - * the public key in the specified `format` and `encoding`. This key should be - * transferred to the other party. - * - * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format. - * - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - generateKeys(): NonSharedBuffer; - generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using specified `inputEncoding`, and the returned secret - * is encoded using the specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned. - * - * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is - * usually supplied from a remote user over an insecure network, - * be sure to handle this exception accordingly. - * @since v0.11.14 - * @param inputEncoding The `encoding` of the `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret(otherPublicKey: NodeJS.ArrayBufferView): NonSharedBuffer; - computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): NonSharedBuffer; - computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding: BinaryToTextEncoding, - ): string; - /** - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @return The EC Diffie-Hellman in the specified `encoding`. - */ - getPrivateKey(): NonSharedBuffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format. - * - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`. - */ - getPublicKey(encoding?: null, format?: ECDHKeyFormat): NonSharedBuffer; - getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Sets the EC Diffie-Hellman private key. - * If `encoding` is provided, `privateKey` is expected - * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `privateKey` is not valid for the curve specified when the `ECDH` object was - * created, an error is thrown. Upon setting the private key, the associated - * public point (key) is also generated and set in the `ECDH` object. - * @since v0.11.14 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void; - } - /** - * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a - * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent - * OpenSSL releases, `openssl ecparam -list_curves` will also display the name - * and description of each available elliptic curve. - * @since v0.11.14 - */ - function createECDH(curveName: string): ECDH; - /** - * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time - * algorithm. - * - * This function does not leak timing information that - * would allow an attacker to guess one of the values. This is suitable for - * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/). - * - * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they - * must have the same byte length. An error is thrown if `a` and `b` have - * different byte lengths. - * - * If at least one of `a` and `b` is a `TypedArray` with more than one byte per - * entry, such as `Uint16Array`, the result will be computed using the platform - * byte order. - * - * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754** - * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point** - * **numbers `x` and `y` are equal.** - * - * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code - * is timing-safe. Care should be taken to ensure that the surrounding code does - * not introduce timing vulnerabilities. - * @since v6.6.0 - */ - function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; - type KeyType = "rsa" | "rsa-pss" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448"; - type KeyFormat = "pem" | "der" | "jwk"; - interface BasePrivateKeyEncodingOptions { - format: T; - cipher?: string | undefined; - passphrase?: string | undefined; - } - interface KeyPairKeyObjectResult { - publicKey: KeyObject; - privateKey: KeyObject; - } - interface ED25519KeyPairKeyObjectOptions {} - interface ED448KeyPairKeyObjectOptions {} - interface X25519KeyPairKeyObjectOptions {} - interface X448KeyPairKeyObjectOptions {} - interface ECKeyPairKeyObjectOptions { - /** - * Name of the curve to use - */ - namedCurve: string; - /** - * Must be `'named'` or `'explicit'`. Default: `'named'`. - */ - paramEncoding?: "explicit" | "named" | undefined; - } - interface RSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - } - interface RSAPSSKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - /** - * Name of the message digest - */ - hashAlgorithm?: string | undefined; - /** - * Name of the message digest used by MGF1 - */ - mgf1HashAlgorithm?: string | undefined; - /** - * Minimal salt length in bytes - */ - saltLength?: string | undefined; - } - interface DSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - } - interface RSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - publicKeyEncoding: { - type: "pkcs1" | "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs1" | "pkcs8"; - }; - } - interface RSAPSSKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - /** - * Name of the message digest - */ - hashAlgorithm?: string | undefined; - /** - * Name of the message digest used by MGF1 - */ - mgf1HashAlgorithm?: string | undefined; - /** - * Minimal salt length in bytes - */ - saltLength?: string | undefined; - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface DSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface ECKeyPairOptions extends ECKeyPairKeyObjectOptions { - publicKeyEncoding: { - type: "pkcs1" | "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "sec1" | "pkcs8"; - }; - } - interface ED25519KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface ED448KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface X25519KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface X448KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface KeyPairSyncResult { - publicKey: T1; - privateKey: T2; - } - /** - * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, - * Ed25519, Ed448, X25519, X448, and DH are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * When encoding public keys, it is recommended to use `'spki'`. When encoding - * private keys, it is recommended to use `'pkcs8'` with a strong passphrase, - * and to keep the passphrase confidential. - * - * ```js - * const { - * generateKeyPairSync, - * } = await import('node:crypto'); - * - * const { - * publicKey, - * privateKey, - * } = generateKeyPairSync('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem', - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret', - * }, - * }); - * ``` - * - * The return value `{ publicKey, privateKey }` represents the generated key pair. - * When PEM encoding was selected, the respective key will be a string, otherwise - * it will be a buffer containing the data encoded as DER. - * @since v10.12.0 - * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. - */ - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - /** - * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, - * Ed25519, Ed448, X25519, X448, and DH are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage: - * - * ```js - * const { - * generateKeyPair, - * } = await import('node:crypto'); - * - * generateKeyPair('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem', - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret', - * }, - * }, (err, publicKey, privateKey) => { - * // Handle errors and use the generated key pair. - * }); - * ``` - * - * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. - * @since v10.12.0 - * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. - */ - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - namespace generateKeyPair { - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed25519", - options?: ED25519KeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x25519", - options?: X25519KeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise; - } - /** - * Calculates and returns the signature for `data` using the given private key and - * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is - * dependent upon the key type (especially Ed25519 and Ed448). - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPrivateKey}. If it is an object, the following - * additional properties can be passed: - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function sign( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - ): NonSharedBuffer; - function sign( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - callback: (error: Error | null, data: NonSharedBuffer) => void, - ): void; - /** - * Verifies the given signature for `data` using the given key and algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the - * key type (especially Ed25519 and Ed448). - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPublicKey}. If it is an object, the following - * additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the `data`. - * - * Because public keys can be derived from private keys, a private key or a public - * key may be passed for `key`. - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function verify( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - ): boolean; - function verify( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - callback: (error: Error | null, result: boolean) => void, - ): void; - /** - * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`. - * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES). - * @since v13.9.0, v12.17.0 - */ - function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): NonSharedBuffer; - /** - * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data - * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm` - * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases - * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms. - * - * Example: - * - * ```js - * import crypto from 'node:crypto'; - * import { Buffer } from 'node:buffer'; - * - * // Hashing a string and return the result as a hex-encoded string. - * const string = 'Node.js'; - * // 10b3493287f831e81a438811a1ffba01f8cec4b7 - * console.log(crypto.hash('sha1', string)); - * - * // Encode a base64-encoded string into a Buffer, hash it and return - * // the result as a buffer. - * const base64 = 'Tm9kZS5qcw=='; - * // - * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer')); - * ``` - * @since v21.7.0, v20.12.0 - * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user - * could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead. - * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v20.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest. - */ - function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string; - function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): NonSharedBuffer; - function hash( - algorithm: string, - data: BinaryLike, - outputEncoding?: BinaryToTextEncoding | "buffer", - ): string | NonSharedBuffer; - type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts"; - interface CipherInfoOptions { - /** - * A test key length. - */ - keyLength?: number | undefined; - /** - * A test IV length. - */ - ivLength?: number | undefined; - } - interface CipherInfo { - /** - * The name of the cipher. - */ - name: string; - /** - * The nid of the cipher. - */ - nid: number; - /** - * The block size of the cipher in bytes. - * This property is omitted when mode is 'stream'. - */ - blockSize?: number | undefined; - /** - * The expected or default initialization vector length in bytes. - * This property is omitted if the cipher does not use an initialization vector. - */ - ivLength?: number | undefined; - /** - * The expected or default key length in bytes. - */ - keyLength: number; - /** - * The cipher mode. - */ - mode: CipherMode; - } - /** - * Returns information about a given cipher. - * - * Some ciphers accept variable length keys and initialization vectors. By default, - * the `crypto.getCipherInfo()` method will return the default values for these - * ciphers. To test if a given key length or iv length is acceptable for given - * cipher, use the `keyLength` and `ivLength` options. If the given values are - * unacceptable, `undefined` will be returned. - * @since v15.0.0 - * @param nameOrNid The name or nid of the cipher to query. - */ - function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; - /** - * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. - * - * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. The successfully generated `derivedKey` will - * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any - * of the input arguments specify invalid values or types. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * hkdf, - * } = await import('node:crypto'); - * - * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * }); - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. Must be provided but can be zero-length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdf( - digest: string, - irm: BinaryLike | KeyObject, - salt: BinaryLike, - info: BinaryLike, - keylen: number, - callback: (err: Error | null, derivedKey: ArrayBuffer) => void, - ): void; - /** - * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The - * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. - * - * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). - * - * An error will be thrown if any of the input arguments specify invalid values or - * types, or if the derived key cannot be generated. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * hkdfSync, - * } = await import('node:crypto'); - * - * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64); - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. Must be provided but can be zero-length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdfSync( - digest: string, - ikm: BinaryLike | KeyObject, - salt: BinaryLike, - info: BinaryLike, - keylen: number, - ): ArrayBuffer; - interface SecureHeapUsage { - /** - * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag. - */ - total: number; - /** - * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag. - */ - min: number; - /** - * The total number of bytes currently allocated from the secure heap. - */ - used: number; - /** - * The calculated ratio of `used` to `total` allocated bytes. - */ - utilization: number; - } - /** - * @since v15.6.0 - */ - function secureHeapUsed(): SecureHeapUsage; - interface RandomUUIDOptions { - /** - * By default, to improve performance, - * Node.js will pre-emptively generate and persistently cache enough - * random data to generate up to 128 random UUIDs. To generate a UUID - * without using the cache, set `disableEntropyCache` to `true`. - * - * @default `false` - */ - disableEntropyCache?: boolean | undefined; - } - type UUID = `${string}-${string}-${string}-${string}-${string}`; - /** - * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a - * cryptographic pseudorandom number generator. - * @since v15.6.0, v14.17.0 - */ - function randomUUID(options?: RandomUUIDOptions): UUID; - interface X509CheckOptions { - /** - * @default 'always' - */ - subject?: "always" | "default" | "never" | undefined; - /** - * @default true - */ - wildcards?: boolean | undefined; - /** - * @default true - */ - partialWildcards?: boolean | undefined; - /** - * @default false - */ - multiLabelWildcards?: boolean | undefined; - /** - * @default false - */ - singleLabelSubdomains?: boolean | undefined; - } - /** - * Encapsulates an X509 certificate and provides read-only access to - * its information. - * - * ```js - * const { X509Certificate } = await import('node:crypto'); - * - * const x509 = new X509Certificate('{... pem encoded cert ...}'); - * - * console.log(x509.subject); - * ``` - * @since v15.6.0 - */ - class X509Certificate { - /** - * Will be \`true\` if this is a Certificate Authority (CA) certificate. - * @since v15.6.0 - */ - readonly ca: boolean; - /** - * The SHA-1 fingerprint of this certificate. - * - * Because SHA-1 is cryptographically broken and because the security of SHA-1 is - * significantly worse than that of algorithms that are commonly used to sign - * certificates, consider using `x509.fingerprint256` instead. - * @since v15.6.0 - */ - readonly fingerprint: string; - /** - * The SHA-256 fingerprint of this certificate. - * @since v15.6.0 - */ - readonly fingerprint256: string; - /** - * The SHA-512 fingerprint of this certificate. - * - * Because computing the SHA-256 fingerprint is usually faster and because it is - * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be - * a better choice. While SHA-512 presumably provides a higher level of security in - * general, the security of SHA-256 matches that of most algorithms that are - * commonly used to sign certificates. - * @since v17.2.0, v16.14.0 - */ - readonly fingerprint512: string; - /** - * The complete subject of this certificate. - * @since v15.6.0 - */ - readonly subject: string; - /** - * The subject alternative name specified for this certificate. - * - * This is a comma-separated list of subject alternative names. Each entry begins - * with a string identifying the kind of the subject alternative name followed by - * a colon and the value associated with the entry. - * - * Earlier versions of Node.js incorrectly assumed that it is safe to split this - * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However, - * both malicious and legitimate certificates can contain subject alternative names - * that include this sequence when represented as a string. - * - * After the prefix denoting the type of the entry, the remainder of each entry - * might be enclosed in quotes to indicate that the value is a JSON string literal. - * For backward compatibility, Node.js only uses JSON string literals within this - * property when necessary to avoid ambiguity. Third-party code should be prepared - * to handle both possible entry formats. - * @since v15.6.0 - */ - readonly subjectAltName: string | undefined; - /** - * A textual representation of the certificate's authority information access - * extension. - * - * This is a line feed separated list of access descriptions. Each line begins with - * the access method and the kind of the access location, followed by a colon and - * the value associated with the access location. - * - * After the prefix denoting the access method and the kind of the access location, - * the remainder of each line might be enclosed in quotes to indicate that the - * value is a JSON string literal. For backward compatibility, Node.js only uses - * JSON string literals within this property when necessary to avoid ambiguity. - * Third-party code should be prepared to handle both possible entry formats. - * @since v15.6.0 - */ - readonly infoAccess: string | undefined; - /** - * An array detailing the key usages for this certificate. - * @since v15.6.0 - */ - readonly keyUsage: string[]; - /** - * The issuer identification included in this certificate. - * @since v15.6.0 - */ - readonly issuer: string; - /** - * The issuer certificate or `undefined` if the issuer certificate is not - * available. - * @since v15.9.0 - */ - readonly issuerCertificate: X509Certificate | undefined; - /** - * The public key `KeyObject` for this certificate. - * @since v15.6.0 - */ - readonly publicKey: KeyObject; - /** - * A `Buffer` containing the DER encoding of this certificate. - * @since v15.6.0 - */ - readonly raw: NonSharedBuffer; - /** - * The serial number of this certificate. - * - * Serial numbers are assigned by certificate authorities and do not uniquely - * identify certificates. Consider using `x509.fingerprint256` as a unique - * identifier instead. - * @since v15.6.0 - */ - readonly serialNumber: string; - /** - * The date/time from which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validFrom: string; - /** - * The date/time until which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validTo: string; - constructor(buffer: BinaryLike); - /** - * Checks whether the certificate matches the given email address. - * - * If the `'subject'` option is undefined or set to `'default'`, the certificate - * subject is only considered if the subject alternative name extension either does - * not exist or does not contain any email addresses. - * - * If the `'subject'` option is set to `'always'` and if the subject alternative - * name extension either does not exist or does not contain a matching email - * address, the certificate subject is considered. - * - * If the `'subject'` option is set to `'never'`, the certificate subject is never - * considered, even if the certificate contains no subject alternative names. - * @since v15.6.0 - * @return Returns `email` if the certificate matches, `undefined` if it does not. - */ - checkEmail(email: string, options?: Pick): string | undefined; - /** - * Checks whether the certificate matches the given host name. - * - * If the certificate matches the given host name, the matching subject name is - * returned. The returned name might be an exact match (e.g., `foo.example.com`) - * or it might contain wildcards (e.g., `*.example.com`). Because host name - * comparisons are case-insensitive, the returned subject name might also differ - * from the given `name` in capitalization. - * - * If the `'subject'` option is undefined or set to `'default'`, the certificate - * subject is only considered if the subject alternative name extension either does - * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS"). - * - * If the `'subject'` option is set to `'always'` and if the subject alternative - * name extension either does not exist or does not contain a matching DNS name, - * the certificate subject is considered. - * - * If the `'subject'` option is set to `'never'`, the certificate subject is never - * considered, even if the certificate contains no subject alternative names. - * @since v15.6.0 - * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`. - */ - checkHost(name: string, options?: X509CheckOptions): string | undefined; - /** - * Checks whether the certificate matches the given IP address (IPv4 or IPv6). - * - * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they - * must match the given `ip` address exactly. Other subject alternative names as - * well as the subject field of the certificate are ignored. - * @since v15.6.0 - * @return Returns `ip` if the certificate matches, `undefined` if it does not. - */ - checkIP(ip: string): string | undefined; - /** - * Checks whether this certificate was issued by the given `otherCert`. - * @since v15.6.0 - */ - checkIssued(otherCert: X509Certificate): boolean; - /** - * Checks whether the public key for this certificate is consistent with - * the given private key. - * @since v15.6.0 - * @param privateKey A private key. - */ - checkPrivateKey(privateKey: KeyObject): boolean; - /** - * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded - * certificate. - * @since v15.6.0 - */ - toJSON(): string; - /** - * Returns information about this certificate using the legacy `certificate object` encoding. - * @since v15.6.0 - */ - toLegacyObject(): PeerCertificate; - /** - * Returns the PEM-encoded certificate. - * @since v15.6.0 - */ - toString(): string; - /** - * Verifies that this certificate was signed by the given public key. - * Does not perform any other validation checks on the certificate. - * @since v15.6.0 - * @param publicKey A public key. - */ - verify(publicKey: KeyObject): boolean; - } - type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint; - interface GeneratePrimeOptions { - add?: LargeNumberLike | undefined; - rem?: LargeNumberLike | undefined; - /** - * @default false - */ - safe?: boolean | undefined; - bigint?: boolean | undefined; - } - interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions { - bigint: true; - } - interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions { - bigint?: false | undefined; - } - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void; - function generatePrime( - size: number, - options: GeneratePrimeOptionsBigInt, - callback: (err: Error | null, prime: bigint) => void, - ): void; - function generatePrime( - size: number, - options: GeneratePrimeOptionsArrayBuffer, - callback: (err: Error | null, prime: ArrayBuffer) => void, - ): void; - function generatePrime( - size: number, - options: GeneratePrimeOptions, - callback: (err: Error | null, prime: ArrayBuffer | bigint) => void, - ): void; - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrimeSync(size: number): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint; - interface CheckPrimeOptions { - /** - * The number of Miller-Rabin probabilistic primality iterations to perform. - * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most `2**-64` for random input. - * Care must be used when selecting a number of checks. - * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details. - * - * @default 0 - */ - checks?: number | undefined; - } - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - */ - function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void; - function checkPrime( - value: LargeNumberLike, - options: CheckPrimeOptions, - callback: (err: Error | null, result: boolean) => void, - ): void; - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`. - */ - function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean; - /** - * Load and set the `engine` for some or all OpenSSL functions (selected by flags). - * - * `engine` could be either an id or a path to the engine's shared library. - * - * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`): - * - * * `crypto.constants.ENGINE_METHOD_RSA` - * * `crypto.constants.ENGINE_METHOD_DSA` - * * `crypto.constants.ENGINE_METHOD_DH` - * * `crypto.constants.ENGINE_METHOD_RAND` - * * `crypto.constants.ENGINE_METHOD_EC` - * * `crypto.constants.ENGINE_METHOD_CIPHERS` - * * `crypto.constants.ENGINE_METHOD_DIGESTS` - * * `crypto.constants.ENGINE_METHOD_PKEY_METHS` - * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS` - * * `crypto.constants.ENGINE_METHOD_ALL` - * * `crypto.constants.ENGINE_METHOD_NONE` - * @since v0.11.11 - * @param flags - */ - function setEngine(engine: string, flags?: number): void; - /** - * A convenient alias for {@link webcrypto.getRandomValues}. This - * implementation is not compliant with the Web Crypto spec, to write - * web-compatible code use {@link webcrypto.getRandomValues} instead. - * @since v17.4.0 - * @return Returns `typedArray`. - */ - function getRandomValues(typedArray: T): T; - /** - * A convenient alias for `crypto.webcrypto.subtle`. - * @since v17.4.0 - */ - const subtle: webcrypto.SubtleCrypto; - /** - * An implementation of the Web Crypto API standard. - * - * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details. - * @since v15.0.0 - */ - const webcrypto: webcrypto.Crypto; - namespace webcrypto { - type BufferSource = ArrayBufferView | ArrayBuffer; - type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; - type KeyType = "private" | "public" | "secret"; - type KeyUsage = - | "decrypt" - | "deriveBits" - | "deriveKey" - | "encrypt" - | "sign" - | "unwrapKey" - | "verify" - | "wrapKey"; - type AlgorithmIdentifier = Algorithm | string; - type HashAlgorithmIdentifier = AlgorithmIdentifier; - type NamedCurve = string; - type BigInteger = Uint8Array; - interface AesCbcParams extends Algorithm { - iv: BufferSource; - } - interface AesCtrParams extends Algorithm { - counter: BufferSource; - length: number; - } - interface AesDerivedKeyParams extends Algorithm { - length: number; - } - interface AesGcmParams extends Algorithm { - additionalData?: BufferSource; - iv: BufferSource; - tagLength?: number; - } - interface AesKeyAlgorithm extends KeyAlgorithm { - length: number; - } - interface AesKeyGenParams extends Algorithm { - length: number; - } - interface Algorithm { - name: string; - } - interface EcKeyAlgorithm extends KeyAlgorithm { - namedCurve: NamedCurve; - } - interface EcKeyGenParams extends Algorithm { - namedCurve: NamedCurve; - } - interface EcKeyImportParams extends Algorithm { - namedCurve: NamedCurve; - } - interface EcdhKeyDeriveParams extends Algorithm { - public: CryptoKey; - } - interface EcdsaParams extends Algorithm { - hash: HashAlgorithmIdentifier; - } - interface Ed448Params extends Algorithm { - context?: BufferSource; - } - interface HkdfParams extends Algorithm { - hash: HashAlgorithmIdentifier; - info: BufferSource; - salt: BufferSource; - } - interface HmacImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; - } - interface HmacKeyAlgorithm extends KeyAlgorithm { - hash: KeyAlgorithm; - length: number; - } - interface HmacKeyGenParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; - } - interface JsonWebKey { - alg?: string; - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - ext?: boolean; - k?: string; - key_ops?: string[]; - kty?: string; - n?: string; - oth?: RsaOtherPrimesInfo[]; - p?: string; - q?: string; - qi?: string; - use?: string; - x?: string; - y?: string; - } - interface KeyAlgorithm { - name: string; - } - interface Pbkdf2Params extends Algorithm { - hash: HashAlgorithmIdentifier; - iterations: number; - salt: BufferSource; - } - interface RsaHashedImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - } - interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { - hash: KeyAlgorithm; - } - interface RsaHashedKeyGenParams extends RsaKeyGenParams { - hash: HashAlgorithmIdentifier; - } - interface RsaKeyAlgorithm extends KeyAlgorithm { - modulusLength: number; - publicExponent: BigInteger; - } - interface RsaKeyGenParams extends Algorithm { - modulusLength: number; - publicExponent: BigInteger; - } - interface RsaOaepParams extends Algorithm { - label?: BufferSource; - } - interface RsaOtherPrimesInfo { - d?: string; - r?: string; - t?: string; - } - interface RsaPssParams extends Algorithm { - saltLength: number; - } - /** - * Importing the `webcrypto` object (`import { webcrypto } from 'node:crypto'`) gives an instance of the `Crypto` class. - * `Crypto` is a singleton that provides access to the remainder of the crypto API. - * @since v15.0.0 - */ - interface Crypto { - /** - * Provides access to the `SubtleCrypto` API. - * @since v15.0.0 - */ - readonly subtle: SubtleCrypto; - /** - * Generates cryptographically strong random values. - * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned. - * - * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted. - * - * An error will be thrown if the given `typedArray` is larger than 65,536 bytes. - * @since v15.0.0 - */ - getRandomValues>(typedArray: T): T; - /** - * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID. - * The UUID is generated using a cryptographic pseudorandom number generator. - * @since v16.7.0 - */ - randomUUID(): UUID; - CryptoKey: CryptoKeyConstructor; - } - // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable. - interface CryptoKeyConstructor { - /** Illegal constructor */ - (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user. - readonly length: 0; - readonly name: "CryptoKey"; - readonly prototype: CryptoKey; - } - /** - * @since v15.0.0 - */ - interface CryptoKey { - /** - * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters. - * @since v15.0.0 - */ - readonly algorithm: KeyAlgorithm; - /** - * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`. - * @since v15.0.0 - */ - readonly extractable: boolean; - /** - * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key. - * @since v15.0.0 - */ - readonly type: KeyType; - /** - * An array of strings identifying the operations for which the key may be used. - * - * The possible usages are: - * - `'encrypt'` - The key may be used to encrypt data. - * - `'decrypt'` - The key may be used to decrypt data. - * - `'sign'` - The key may be used to generate digital signatures. - * - `'verify'` - The key may be used to verify digital signatures. - * - `'deriveKey'` - The key may be used to derive a new key. - * - `'deriveBits'` - The key may be used to derive bits. - * - `'wrapKey'` - The key may be used to wrap another key. - * - `'unwrapKey'` - The key may be used to unwrap another key. - * - * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`). - * @since v15.0.0 - */ - readonly usages: KeyUsage[]; - } - /** - * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair. - * @since v15.0.0 - */ - interface CryptoKeyPair { - /** - * A {@link CryptoKey} whose type will be `'private'`. - * @since v15.0.0 - */ - privateKey: CryptoKey; - /** - * A {@link CryptoKey} whose type will be `'public'`. - * @since v15.0.0 - */ - publicKey: CryptoKey; - } - /** - * @since v15.0.0 - */ - interface SubtleCrypto { - /** - * Using the method and parameters specified in `algorithm` and the keying material provided by `key`, - * `subtle.decrypt()` attempts to decipher the provided `data`. If successful, - * the returned promise will be resolved with an `` containing the plaintext result. - * - * The algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * @since v15.0.0 - */ - decrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`, - * `subtle.deriveBits()` attempts to generate `length` bits. - * The Node.js implementation requires that when `length` is a number it must be multiple of `8`. - * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed - * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms. - * If successful, the returned promise will be resolved with an `` containing the generated data. - * - * The algorithms currently supported include: - * - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * - `'HKDF'` - * - `'PBKDF2'` - * @since v15.0.0 - */ - deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise; - deriveBits( - algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params, - baseKey: CryptoKey, - length: number, - ): Promise; - /** - * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`, - * `subtle.deriveKey()` attempts to generate a new ` based on the method and parameters in `derivedKeyAlgorithm`. - * - * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material, - * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input. - * - * The algorithms currently supported include: - * - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * - `'HKDF'` - * - `'PBKDF2'` - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - deriveKey( - algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, - baseKey: CryptoKey, - derivedKeyAlgorithm: - | AlgorithmIdentifier - | AesDerivedKeyParams - | HmacImportParams - | HkdfParams - | Pbkdf2Params, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - /** - * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`. - * If successful, the returned promise is resolved with an `` containing the computed digest. - * - * If `algorithm` is provided as a ``, it must be one of: - * - * - `'SHA-1'` - * - `'SHA-256'` - * - `'SHA-384'` - * - `'SHA-512'` - * - * If `algorithm` is provided as an ``, it must have a `name` property whose value is one of the above. - * @since v15.0.0 - */ - digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise; - /** - * Using the method and parameters specified by `algorithm` and the keying material provided by `key`, - * `subtle.encrypt()` attempts to encipher `data`. If successful, - * the returned promise is resolved with an `` containing the encrypted result. - * - * The algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * @since v15.0.0 - */ - encrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * Exports the given key into the specified format, if supported. - * - * If the `` is not extractable, the returned promise will reject. - * - * When `format` is either `'pkcs8'` or `'spki'` and the export is successful, - * the returned promise will be resolved with an `` containing the exported key data. - * - * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a - * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification. - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @returns `` containing ``. - * @since v15.0.0 - */ - exportKey(format: "jwk", key: CryptoKey): Promise; - exportKey(format: Exclude, key: CryptoKey): Promise; - /** - * Using the method and parameters provided in `algorithm`, - * `subtle.generateKey()` attempts to generate new keying material. - * Depending the method used, the method may generate either a single `` or a ``. - * - * The `` (public and private key) generating algorithms supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'RSA-OAEP'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * The `` (secret key) generating algorithms supported include: - * - * - `'HMAC'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - generateKey( - algorithm: RsaHashedKeyGenParams | EcKeyGenParams, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - generateKey( - algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - generateKey( - algorithm: AlgorithmIdentifier, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format` - * to create a `` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments. - * If the import is successful, the returned promise will be resolved with the created ``. - * - * If importing a `'PBKDF2'` key, `extractable` must be `false`. - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - importKey( - format: "jwk", - keyData: JsonWebKey, - algorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - importKey( - format: Exclude, - keyData: BufferSource, - algorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters given by `algorithm` and the keying material provided by `key`, - * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful, - * the returned promise is resolved with an `` containing the generated signature. - * - * The algorithms currently supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'HMAC'` - * @since v15.0.0 - */ - sign( - algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. - * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `` instance. - * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input) - * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs. - * If successful, the returned promise is resolved with a `` object. - * - * The wrapping algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * - * The unwrapped key algorithms supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'RSA-OAEP'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'ECDH'` - * - `'X25519'` - * - `'X448'` - * - `'HMAC'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - unwrapKey( - format: KeyFormat, - wrappedKey: BufferSource, - unwrappingKey: CryptoKey, - unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - unwrappedKeyAlgorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters given in `algorithm` and the keying material provided by `key`, - * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`. - * The returned promise is resolved with either `true` or `false`. - * - * The algorithms currently supported include: - * - * - `'RSASSA-PKCS1-v1_5'` - * - `'RSA-PSS'` - * - `'ECDSA'` - * - `'Ed25519'` - * - `'Ed448'` - * - `'HMAC'` - * @since v15.0.0 - */ - verify( - algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params, - key: CryptoKey, - signature: BufferSource, - data: BufferSource, - ): Promise; - /** - * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. - * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`, - * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`. - * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments, - * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs. - * If successful, the returned promise will be resolved with an `` containing the encrypted key data. - * - * The wrapping algorithms currently supported include: - * - * - `'RSA-OAEP'` - * - `'AES-CTR'` - * - `'AES-CBC'` - * - `'AES-GCM'` - * - `'AES-KW'` - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. - * @since v15.0.0 - */ - wrapKey( - format: KeyFormat, - key: CryptoKey, - wrappingKey: CryptoKey, - wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, - ): Promise; - } - } - - global { - var crypto: typeof globalThis extends { - crypto: infer T; - onmessage: any; - } ? T - : webcrypto.Crypto; - } -} -declare module "node:crypto" { - export * from "crypto"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dgram.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dgram.d.ts deleted file mode 100644 index 4c74367..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dgram.d.ts +++ /dev/null @@ -1,597 +0,0 @@ -/** - * The `node:dgram` module provides an implementation of UDP datagram sockets. - * - * ```js - * import dgram from 'node:dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.error(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dgram.js) - */ -declare module "dgram" { - import { NonSharedBuffer } from "node:buffer"; - import { AddressInfo } from "node:net"; - import * as dns from "node:dns"; - import { Abortable, EventEmitter } from "node:events"; - interface RemoteInfo { - address: string; - family: "IPv4" | "IPv6"; - port: number; - size: number; - } - interface BindOptions { - port?: number | undefined; - address?: string | undefined; - exclusive?: boolean | undefined; - fd?: number | undefined; - } - type SocketType = "udp4" | "udp6"; - interface SocketOptions extends Abortable { - type: SocketType; - reuseAddr?: boolean | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - recvBufferSize?: number | undefined; - sendBufferSize?: number | undefined; - lookup?: - | (( - hostname: string, - options: dns.LookupOneOptions, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ) => void) - | undefined; - } - /** - * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram - * messages. When `address` and `port` are not passed to `socket.bind()` the - * method will bind the socket to the "all interfaces" address on a random port - * (it does the right thing for both `udp4` and `udp6` sockets). The bound address - * and port can be retrieved using `socket.address().address` and `socket.address().port`. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.close()` on the socket: - * - * ```js - * const controller = new AbortController(); - * const { signal } = controller; - * const server = dgram.createSocket({ type: 'udp4', signal }); - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * // Later, when you want to close the server. - * controller.abort(); - * ``` - * @since v0.11.13 - * @param options Available options are: - * @param callback Attached as a listener for `'message'` events. Optional. - */ - function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; - function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; - /** - * Encapsulates the datagram functionality. - * - * New instances of `dgram.Socket` are created using {@link createSocket}. - * The `new` keyword is not to be used to create `dgram.Socket` instances. - * @since v0.1.99 - */ - class Socket extends EventEmitter { - /** - * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not - * specified, the operating system will choose - * one interface and will add membership to it. To add membership to every - * available interface, call `addMembership` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * - * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur: - * - * ```js - * import cluster from 'node:cluster'; - * import dgram from 'node:dgram'; - * - * if (cluster.isPrimary) { - * cluster.fork(); // Works ok. - * cluster.fork(); // Fails with EADDRINUSE. - * } else { - * const s = dgram.createSocket('udp4'); - * s.bind(1234, () => { - * s.addMembership('224.0.0.114'); - * }); - * } - * ``` - * @since v0.6.9 - */ - addMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * Returns an object containing the address information for a socket. - * For UDP sockets, this object will contain `address`, `family`, and `port` properties. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.99 - */ - address(): AddressInfo; - /** - * For UDP sockets, causes the `dgram.Socket` to listen for datagram - * messages on a named `port` and optional `address`. If `port` is not - * specified or is `0`, the operating system will attempt to bind to a - * random port. If `address` is not specified, the operating system will - * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is - * called. - * - * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very - * useful. - * - * A bound datagram socket keeps the Node.js process running to receive - * datagram messages. - * - * If binding fails, an `'error'` event is generated. In rare case (e.g. - * attempting to bind with a closed socket), an `Error` may be thrown. - * - * Example of a UDP server listening on port 41234: - * - * ```js - * import dgram from 'node:dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.error(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @since v0.1.99 - * @param callback with no parameters. Called when binding is complete. - */ - bind(port?: number, address?: string, callback?: () => void): this; - bind(port?: number, callback?: () => void): this; - bind(callback?: () => void): this; - bind(options: BindOptions, callback?: () => void): this; - /** - * Close the underlying socket and stop listening for data on it. If a callback is - * provided, it is added as a listener for the `'close'` event. - * @since v0.1.99 - * @param callback Called when the socket has been closed. - */ - close(callback?: () => void): this; - /** - * Associates the `dgram.Socket` to a remote address and port. Every - * message sent by this handle is automatically sent to that destination. Also, - * the socket will only receive messages from that remote peer. - * Trying to call `connect()` on an already connected socket will result - * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not - * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) - * will be used by default. Once the connection is complete, a `'connect'` event - * is emitted and the optional `callback` function is called. In case of failure, - * the `callback` is called or, failing this, an `'error'` event is emitted. - * @since v12.0.0 - * @param callback Called when the connection is completed or on error. - */ - connect(port: number, address?: string, callback?: () => void): void; - connect(port: number, callback: () => void): void; - /** - * A synchronous function that disassociates a connected `dgram.Socket` from - * its remote address. Trying to call `disconnect()` on an unbound or already - * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception. - * @since v12.0.0 - */ - disconnect(): void; - /** - * Instructs the kernel to leave a multicast group at `multicastAddress` using the `IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the - * kernel when the socket is closed or the process terminates, so most apps will - * never have reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v0.6.9 - */ - dropMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_RCVBUF` socket receive buffer size in bytes. - */ - getRecvBufferSize(): number; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_SNDBUF` socket send buffer size in bytes. - */ - getSendBufferSize(): number; - /** - * @since v18.8.0, v16.19.0 - * @return Number of bytes queued for sending. - */ - getSendQueueSize(): number; - /** - * @since v18.8.0, v16.19.0 - * @return Number of send requests currently in the queue awaiting to be processed. - */ - getSendQueueCount(): number; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active. The `socket.ref()` method adds the socket back to the reference - * counting and restores the default behavior. - * - * Calling `socket.ref()` multiples times will have no additional effect. - * - * The `socket.ref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - ref(): this; - /** - * Returns an object containing the `address`, `family`, and `port` of the remote - * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception - * if the socket is not connected. - * @since v12.0.0 - */ - remoteAddress(): AddressInfo; - /** - * Broadcasts a datagram on the socket. - * For connectionless sockets, the destination `port` and `address` must be - * specified. Connected sockets, on the other hand, will use their associated - * remote endpoint, so the `port` and `address` arguments must not be set. - * - * The `msg` argument contains the message to be sent. - * Depending on its type, different behavior can apply. If `msg` is a `Buffer`, - * any `TypedArray` or a `DataView`, - * the `offset` and `length` specify the offset within the `Buffer` where the - * message begins and the number of bytes in the message, respectively. - * If `msg` is a `String`, then it is automatically converted to a `Buffer` with `'utf8'` encoding. With messages that - * contain multi-byte characters, `offset` and `length` will be calculated with - * respect to `byte length` and not the character position. - * If `msg` is an array, `offset` and `length` must not be specified. - * - * The `address` argument is a string. If the value of `address` is a host name, - * DNS will be used to resolve the address of the host. If `address` is not - * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default. - * - * If the socket has not been previously bound with a call to `bind`, the socket - * is assigned a random port number and is bound to the "all interfaces" address - * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.) - * - * An optional `callback` function may be specified to as a way of reporting - * DNS errors or for determining when it is safe to reuse the `buf` object. - * DNS lookups delay the time to send for at least one tick of the - * Node.js event loop. - * - * The only way to know for sure that the datagram has been sent is by using a `callback`. If an error occurs and a `callback` is given, the error will be - * passed as the first argument to the `callback`. If a `callback` is not given, - * the error is emitted as an `'error'` event on the `socket` object. - * - * Offset and length are optional but both _must_ be set if either are used. - * They are supported only when the first argument is a `Buffer`, a `TypedArray`, - * or a `DataView`. - * - * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket. - * - * Example of sending a UDP packet to a port on `localhost`; - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.send(message, 41234, 'localhost', (err) => { - * client.close(); - * }); - * ``` - * - * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`; - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('Some '); - * const buf2 = Buffer.from('bytes'); - * const client = dgram.createSocket('udp4'); - * client.send([buf1, buf2], 41234, (err) => { - * client.close(); - * }); - * ``` - * - * Sending multiple buffers might be faster or slower depending on the - * application and operating system. Run benchmarks to - * determine the optimal strategy on a case-by-case basis. Generally speaking, - * however, sending multiple buffers is faster. - * - * Example of sending a UDP packet using a socket connected to a port on `localhost`: - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.connect(41234, 'localhost', (err) => { - * client.send(message, (err) => { - * client.close(); - * }); - * }); - * ``` - * @since v0.1.99 - * @param msg Message to be sent. - * @param offset Offset in the buffer where the message starts. - * @param length Number of bytes in the message. - * @param port Destination port. - * @param address Destination host name or IP address. - * @param callback Called when the message has been sent. - */ - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - port?: number, - address?: string, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - port?: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - port?: number, - address?: string, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - port?: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - /** - * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP - * packets may be sent to a local interface's broadcast address. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.6.9 - */ - setBroadcast(flag: boolean): void; - /** - * _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC - * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_ - * _with a scope index is written as `'IP%scope'` where scope is an interface name_ - * _or interface number._ - * - * Sets the default outgoing multicast interface of the socket to a chosen - * interface or back to system interface selection. The `multicastInterface` must - * be a valid string representation of an IP from the socket's family. - * - * For IPv4 sockets, this should be the IP configured for the desired physical - * interface. All packets sent to multicast on the socket will be sent on the - * interface determined by the most recent successful use of this call. - * - * For IPv6 sockets, `multicastInterface` should include a scope to indicate the - * interface as in the examples that follow. In IPv6, individual `send` calls can - * also use explicit scope in addresses, so only packets sent to a multicast - * address without specifying an explicit scope are affected by the most recent - * successful use of this call. - * - * This method throws `EBADF` if called on an unbound socket. - * - * #### Example: IPv6 outgoing multicast interface - * - * On most systems, where scope format uses the interface name: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%eth1'); - * }); - * ``` - * - * On Windows, where scope format uses an interface number: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%2'); - * }); - * ``` - * - * #### Example: IPv4 outgoing multicast interface - * - * All systems use an IP of the host on the desired physical interface: - * - * ```js - * const socket = dgram.createSocket('udp4'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('10.0.0.2'); - * }); - * ``` - * @since v8.6.0 - */ - setMulticastInterface(multicastInterface: string): void; - /** - * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`, - * multicast packets will also be received on the local interface. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastLoopback(flag: boolean): boolean; - /** - * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for - * "Time to Live", in this context it specifies the number of IP hops that a - * packet is allowed to travel through, specifically for multicast traffic. Each - * router or gateway that forwards a packet decrements the TTL. If the TTL is - * decremented to 0 by a router, it will not be forwarded. - * - * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastTTL(ttl: number): number; - /** - * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setRecvBufferSize(size: number): void; - /** - * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setSendBufferSize(size: number): void; - /** - * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live", - * in this context it specifies the number of IP hops that a packet is allowed to - * travel through. Each router or gateway that forwards a packet decrements the - * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded. - * Changing TTL values is typically done for network probes or when multicasting. - * - * The `ttl` argument may be between 1 and 255\. The default on most systems - * is 64. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.101 - */ - setTTL(ttl: number): number; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active, allowing the process to exit even if the socket is still - * listening. - * - * Calling `socket.unref()` multiple times will have no additional effect. - * - * The `socket.unref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - unref(): this; - /** - * Tells the kernel to join a source-specific multicast channel at the given `sourceAddress` and `groupAddress`, using the `multicastInterface` with the `IP_ADD_SOURCE_MEMBERSHIP` socket - * option. If the `multicastInterface` argument - * is not specified, the operating system will choose one interface and will add - * membership to it. To add membership to every available interface, call `socket.addSourceSpecificMembership()` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * @since v13.1.0, v12.16.0 - */ - addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * Instructs the kernel to leave a source-specific multicast channel at the given `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` socket option. This method is - * automatically called by the kernel when the - * socket is closed or the process terminates, so most apps will never have - * reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v13.1.0, v12.16.0 - */ - dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. error - * 4. listening - * 5. message - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connect", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connect"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit(event: "message", msg: NonSharedBuffer, rinfo: RemoteInfo): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connect", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connect", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connect", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connect", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - /** - * Calls `socket.close()` and returns a promise that fulfills when the socket has closed. - * @since v20.5.0 - */ - [Symbol.asyncDispose](): Promise; - } -} -declare module "node:dgram" { - export * from "dgram"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/diagnostics_channel.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/diagnostics_channel.d.ts deleted file mode 100644 index f758aec..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/diagnostics_channel.d.ts +++ /dev/null @@ -1,578 +0,0 @@ -/** - * The `node:diagnostics_channel` module provides an API to create named channels - * to report arbitrary message data for diagnostics purposes. - * - * It can be accessed using: - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * ``` - * - * It is intended that a module writer wanting to report diagnostics messages - * will create one or many top-level channels to report messages through. - * Channels may also be acquired at runtime but it is not encouraged - * due to the additional overhead of doing so. Channels may be exported for - * convenience, but as long as the name is known it can be acquired anywhere. - * - * If you intend for your module to produce diagnostics data for others to - * consume it is recommended that you include documentation of what named - * channels are used along with the shape of the message data. Channel names - * should generally include the module name to avoid collisions with data from - * other modules. - * @since v15.1.0, v14.17.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/diagnostics_channel.js) - */ -declare module "diagnostics_channel" { - import { AsyncLocalStorage } from "node:async_hooks"; - /** - * Check if there are active subscribers to the named channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * if (diagnostics_channel.hasSubscribers('my-channel')) { - * // There are subscribers, prepare and publish message - * } - * ``` - * @since v15.1.0, v14.17.0 - * @param name The channel name - * @return If there are active subscribers - */ - function hasSubscribers(name: string | symbol): boolean; - /** - * This is the primary entry-point for anyone wanting to publish to a named - * channel. It produces a channel object which is optimized to reduce overhead at - * publish time as much as possible. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * ``` - * @since v15.1.0, v14.17.0 - * @param name The channel name - * @return The named channel object - */ - function channel(name: string | symbol): Channel; - type ChannelListener = (message: unknown, name: string | symbol) => void; - /** - * Register a message handler to subscribe to this channel. This message handler - * will be run synchronously whenever a message is published to the channel. Any - * errors thrown in the message handler will trigger an `'uncaughtException'`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * diagnostics_channel.subscribe('my-channel', (message, name) => { - * // Received data - * }); - * ``` - * @since v18.7.0, v16.17.0 - * @param name The channel name - * @param onMessage The handler to receive channel messages - */ - function subscribe(name: string | symbol, onMessage: ChannelListener): void; - /** - * Remove a message handler previously registered to this channel with {@link subscribe}. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * function onMessage(message, name) { - * // Received data - * } - * - * diagnostics_channel.subscribe('my-channel', onMessage); - * - * diagnostics_channel.unsubscribe('my-channel', onMessage); - * ``` - * @since v18.7.0, v16.17.0 - * @param name The channel name - * @param onMessage The previous subscribed handler to remove - * @return `true` if the handler was found, `false` otherwise. - */ - function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean; - /** - * Creates a `TracingChannel` wrapper for the given `TracingChannel Channels`. If a name is given, the corresponding tracing - * channels will be created in the form of `tracing:${name}:${eventType}` where `eventType` corresponds to the types of `TracingChannel Channels`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channelsByName = diagnostics_channel.tracingChannel('my-channel'); - * - * // or... - * - * const channelsByCollection = diagnostics_channel.tracingChannel({ - * start: diagnostics_channel.channel('tracing:my-channel:start'), - * end: diagnostics_channel.channel('tracing:my-channel:end'), - * asyncStart: diagnostics_channel.channel('tracing:my-channel:asyncStart'), - * asyncEnd: diagnostics_channel.channel('tracing:my-channel:asyncEnd'), - * error: diagnostics_channel.channel('tracing:my-channel:error'), - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param nameOrChannels Channel name or object containing all the `TracingChannel Channels` - * @return Collection of channels to trace with - */ - function tracingChannel< - StoreType = unknown, - ContextType extends object = StoreType extends object ? StoreType : object, - >( - nameOrChannels: string | TracingChannelCollection, - ): TracingChannel; - /** - * The class `Channel` represents an individual named channel within the data - * pipeline. It is used to track subscribers and to publish messages when there - * are subscribers present. It exists as a separate object to avoid channel - * lookups at publish time, enabling very fast publish speeds and allowing - * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly - * with `new Channel(name)` is not supported. - * @since v15.1.0, v14.17.0 - */ - class Channel { - readonly name: string | symbol; - /** - * Check if there are active subscribers to this channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * if (channel.hasSubscribers) { - * // There are subscribers, prepare and publish message - * } - * ``` - * @since v15.1.0, v14.17.0 - */ - readonly hasSubscribers: boolean; - private constructor(name: string | symbol); - /** - * Publish a message to any subscribers to the channel. This will trigger - * message handlers synchronously so they will execute within the same context. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.publish({ - * some: 'message', - * }); - * ``` - * @since v15.1.0, v14.17.0 - * @param message The message to send to the channel subscribers - */ - publish(message: unknown): void; - /** - * Register a message handler to subscribe to this channel. This message handler - * will be run synchronously whenever a message is published to the channel. Any - * errors thrown in the message handler will trigger an `'uncaughtException'`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.subscribe((message, name) => { - * // Received data - * }); - * ``` - * @since v15.1.0, v14.17.0 - * @deprecated Since v18.7.0,v16.17.0 - Use {@link subscribe(name, onMessage)} - * @param onMessage The handler to receive channel messages - */ - subscribe(onMessage: ChannelListener): void; - /** - * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * function onMessage(message, name) { - * // Received data - * } - * - * channel.subscribe(onMessage); - * - * channel.unsubscribe(onMessage); - * ``` - * @since v15.1.0, v14.17.0 - * @deprecated Since v18.7.0,v16.17.0 - Use {@link unsubscribe(name, onMessage)} - * @param onMessage The previous subscribed handler to remove - * @return `true` if the handler was found, `false` otherwise. - */ - unsubscribe(onMessage: ChannelListener): void; - /** - * When `channel.runStores(context, ...)` is called, the given context data - * will be applied to any store bound to the channel. If the store has already been - * bound the previous `transform` function will be replaced with the new one. - * The `transform` function may be omitted to set the given context data as the - * context directly. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store, (data) => { - * return { data }; - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param store The store to which to bind the context data - * @param transform Transform context data before setting the store context - */ - bindStore(store: AsyncLocalStorage, transform?: (context: ContextType) => StoreType): void; - /** - * Remove a message handler previously registered to this channel with `channel.bindStore(store)`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store); - * channel.unbindStore(store); - * ``` - * @since v19.9.0 - * @experimental - * @param store The store to unbind from the channel. - * @return `true` if the store was found, `false` otherwise. - */ - unbindStore(store: AsyncLocalStorage): boolean; - /** - * Applies the given data to any AsyncLocalStorage instances bound to the channel - * for the duration of the given function, then publishes to the channel within - * the scope of that data is applied to the stores. - * - * If a transform function was given to `channel.bindStore(store)` it will be - * applied to transform the message data before it becomes the context value for - * the store. The prior storage context is accessible from within the transform - * function in cases where context linking is required. - * - * The context applied to the store should be accessible in any async code which - * continues from execution which began during the given function, however - * there are some situations in which `context loss` may occur. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store, (message) => { - * const parent = store.getStore(); - * return new Span(message, parent); - * }); - * channel.runStores({ some: 'message' }, () => { - * store.getStore(); // Span({ some: 'message' }) - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param context Message to send to subscribers and bind to stores - * @param fn Handler to run within the entered storage context - * @param thisArg The receiver to be used for the function call. - * @param args Optional arguments to pass to the function. - */ - runStores( - context: ContextType, - fn: (this: ThisArg, ...args: Args) => Result, - thisArg?: ThisArg, - ...args: Args - ): Result; - } - interface TracingChannelSubscribers { - start: (message: ContextType) => void; - end: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - asyncStart: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - asyncEnd: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - error: ( - message: ContextType & { - error: unknown; - }, - ) => void; - } - interface TracingChannelCollection { - start: Channel; - end: Channel; - asyncStart: Channel; - asyncEnd: Channel; - error: Channel; - } - /** - * The class `TracingChannel` is a collection of `TracingChannel Channels` which - * together express a single traceable action. It is used to formalize and - * simplify the process of producing events for tracing application flow. {@link tracingChannel} is used to construct a `TracingChannel`. As with `Channel` it is recommended to create and reuse a - * single `TracingChannel` at the top-level of the file rather than creating them - * dynamically. - * @since v19.9.0 - * @experimental - */ - class TracingChannel implements TracingChannelCollection { - start: Channel; - end: Channel; - asyncStart: Channel; - asyncEnd: Channel; - error: Channel; - /** - * Helper to subscribe a collection of functions to the corresponding channels. - * This is the same as calling `channel.subscribe(onMessage)` on each channel - * individually. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.subscribe({ - * start(message) { - * // Handle start message - * }, - * end(message) { - * // Handle end message - * }, - * asyncStart(message) { - * // Handle asyncStart message - * }, - * asyncEnd(message) { - * // Handle asyncEnd message - * }, - * error(message) { - * // Handle error message - * }, - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param subscribers Set of `TracingChannel Channels` subscribers - */ - subscribe(subscribers: TracingChannelSubscribers): void; - /** - * Helper to unsubscribe a collection of functions from the corresponding channels. - * This is the same as calling `channel.unsubscribe(onMessage)` on each channel - * individually. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.unsubscribe({ - * start(message) { - * // Handle start message - * }, - * end(message) { - * // Handle end message - * }, - * asyncStart(message) { - * // Handle asyncStart message - * }, - * asyncEnd(message) { - * // Handle asyncEnd message - * }, - * error(message) { - * // Handle error message - * }, - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param subscribers Set of `TracingChannel Channels` subscribers - * @return `true` if all handlers were successfully unsubscribed, and `false` otherwise. - */ - unsubscribe(subscribers: TracingChannelSubscribers): void; - /** - * Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error. - * This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.traceSync(() => { - * // Do something - * }, { - * some: 'thing', - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn Function to wrap a trace around - * @param context Shared object to correlate events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return The return value of the given function - */ - traceSync( - fn: (this: ThisArg, ...args: Args) => Result, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Result; - /** - * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the - * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also - * produce an `error event` if the given function throws an error or the - * returned promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.tracePromise(async () => { - * // Do something - * }, { - * some: 'thing', - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn Promise-returning function to wrap a trace around - * @param context Shared object to correlate trace events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return Chained from promise returned by the given function - */ - tracePromise( - fn: (this: ThisArg, ...args: Args) => Promise, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Promise; - /** - * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the - * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or - * the returned - * promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * The `position` will be -1 by default to indicate the final argument should - * be used as the callback. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.traceCallback((arg1, callback) => { - * // Do something - * callback(null, 'result'); - * }, 1, { - * some: 'thing', - * }, thisArg, arg1, callback); - * ``` - * - * The callback will also be run with `channel.runStores(context, ...)` which - * enables context loss recovery in some cases. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * const myStore = new AsyncLocalStorage(); - * - * // The start channel sets the initial store data to something - * // and stores that store data value on the trace context object - * channels.start.bindStore(myStore, (data) => { - * const span = new Span(data); - * data.span = span; - * return span; - * }); - * - * // Then asyncStart can restore from that data it stored previously - * channels.asyncStart.bindStore(myStore, (data) => { - * return data.span; - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn callback using function to wrap a trace around - * @param position Zero-indexed argument position of expected callback - * @param context Shared object to correlate trace events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return The return value of the given function - */ - traceCallback( - fn: (this: ThisArg, ...args: Args) => Result, - position?: number, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Result; - /** - * `true` if any of the individual channels has a subscriber, `false` if not. - * - * This is a helper method available on a {@link TracingChannel} instance to check - * if any of the [TracingChannel Channels](https://nodejs.org/api/diagnostics_channel.html#tracingchannel-channels) have subscribers. - * A `true` is returned if any of them have at least one subscriber, a `false` is returned otherwise. - * - * ```js - * const diagnostics_channel = require('node:diagnostics_channel'); - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * if (channels.hasSubscribers) { - * // Do something - * } - * ``` - * @since v22.0.0, v20.13.0 - */ - readonly hasSubscribers: boolean; - } -} -declare module "node:diagnostics_channel" { - export * from "diagnostics_channel"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dns.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dns.d.ts deleted file mode 100644 index acb5264..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dns.d.ts +++ /dev/null @@ -1,871 +0,0 @@ -/** - * The `node:dns` module enables name resolution. For example, use it to look up IP - * addresses of host names. - * - * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the - * DNS protocol for lookups. {@link lookup} uses the operating system - * facilities to perform name resolution. It may not need to perform any network - * communication. To perform name resolution the way other applications on the same - * system do, use {@link lookup}. - * - * ```js - * import dns from 'node:dns'; - * - * dns.lookup('example.org', (err, address, family) => { - * console.log('address: %j family: IPv%s', address, family); - * }); - * // address: "93.184.216.34" family: IPv4 - * ``` - * - * All other functions in the `node:dns` module connect to an actual DNS server to - * perform name resolution. They will always use the network to perform DNS - * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform - * DNS queries, bypassing other name-resolution facilities. - * - * ```js - * import dns from 'node:dns'; - * - * dns.resolve4('archive.org', (err, addresses) => { - * if (err) throw err; - * - * console.log(`addresses: ${JSON.stringify(addresses)}`); - * - * addresses.forEach((a) => { - * dns.reverse(a, (err, hostnames) => { - * if (err) { - * throw err; - * } - * console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`); - * }); - * }); - * }); - * ``` - * - * See the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) for more information. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dns.js) - */ -declare module "dns" { - import * as dnsPromises from "node:dns/promises"; - // Supported getaddrinfo flags. - /** - * Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are - * only returned if the current system has at least one IPv4 address configured. - */ - export const ADDRCONFIG: number; - /** - * If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported - * on some operating systems (e.g. FreeBSD 10.1). - */ - export const V4MAPPED: number; - /** - * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as - * well as IPv4 mapped IPv6 addresses. - */ - export const ALL: number; - export interface LookupOptions { - /** - * The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted - * as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used - * with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned. - * @default 0 - */ - family?: number | "IPv4" | "IPv6" | undefined; - /** - * One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v20.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be - * passed by bitwise `OR`ing their values. - */ - hints?: number | undefined; - /** - * When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address. - * @default false - */ - all?: boolean | undefined; - /** - * When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted - * by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6 - * addresses before IPv4 addresses. Default value is configurable using - * {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). - * @default `verbatim` (addresses are not reordered) - */ - order?: "ipv4first" | "ipv6first" | "verbatim" | undefined; - /** - * When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4 - * addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified, - * `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder} - * or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). - * @default true (addresses are not reordered) - */ - verbatim?: boolean | undefined; - } - export interface LookupOneOptions extends LookupOptions { - all?: false | undefined; - } - export interface LookupAllOptions extends LookupOptions { - all: true; - } - export interface LookupAddress { - /** - * A string representation of an IPv4 or IPv6 address. - */ - address: string; - /** - * `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a - * bug in the name resolution service used by the operating system. - */ - family: number; - } - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is `0` or not provided, then - * IPv4 and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the - * properties `address` and `family`. - * - * On error, `err` is an `Error` object, where `err.code` is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * `dns.lookup()` does not necessarily have anything to do with the DNS protocol. - * The implementation uses an operating system facility that can associate names - * with addresses and vice versa. This implementation can have subtle but - * important consequences on the behavior of any Node.js program. Please take some - * time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) - * before using `dns.lookup()`. - * - * Example usage: - * - * ```js - * import dns from 'node:dns'; - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * dns.lookup('example.com', options, (err, address, family) => - * console.log('address: %j family: IPv%s', address, family)); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dns.lookup('example.com', options, (err, addresses) => - * console.log('addresses: %j', addresses)); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * ``` - * - * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed - * version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties. - * @since v0.1.90 - */ - export function lookup( - hostname: string, - family: number, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export function lookup( - hostname: string, - options: LookupOneOptions, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export function lookup( - hostname: string, - options: LookupAllOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void, - ): void; - export function lookup( - hostname: string, - options: LookupOptions, - callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void, - ): void; - export function lookup( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export namespace lookup { - function __promisify__(hostname: string, options: LookupAllOptions): Promise; - function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise; - function __promisify__(hostname: string, options: LookupOptions): Promise; - } - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. - * - * On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, - * where `err.code` is the error code. - * - * ```js - * import dns from 'node:dns'; - * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { - * console.log(hostname, service); - * // Prints: localhost ssh - * }); - * ``` - * - * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed - * version, it returns a `Promise` for an `Object` with `hostname` and `service` properties. - * @since v0.11.14 - */ - export function lookupService( - address: string, - port: number, - callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void, - ): void; - export namespace lookupService { - function __promisify__( - address: string, - port: number, - ): Promise<{ - hostname: string; - service: string; - }>; - } - export interface ResolveOptions { - ttl: boolean; - } - export interface ResolveWithTtlOptions extends ResolveOptions { - ttl: true; - } - export interface RecordWithTtl { - address: string; - ttl: number; - } - /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */ - export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord; - export interface AnyARecord extends RecordWithTtl { - type: "A"; - } - export interface AnyAaaaRecord extends RecordWithTtl { - type: "AAAA"; - } - export interface CaaRecord { - critical: number; - issue?: string | undefined; - issuewild?: string | undefined; - iodef?: string | undefined; - contactemail?: string | undefined; - contactphone?: string | undefined; - } - export interface AnyCaaRecord extends CaaRecord { - type: "CAA"; - } - export interface MxRecord { - priority: number; - exchange: string; - } - export interface AnyMxRecord extends MxRecord { - type: "MX"; - } - export interface NaptrRecord { - flags: string; - service: string; - regexp: string; - replacement: string; - order: number; - preference: number; - } - export interface AnyNaptrRecord extends NaptrRecord { - type: "NAPTR"; - } - export interface SoaRecord { - nsname: string; - hostmaster: string; - serial: number; - refresh: number; - retry: number; - expire: number; - minttl: number; - } - export interface AnySoaRecord extends SoaRecord { - type: "SOA"; - } - export interface SrvRecord { - priority: number; - weight: number; - port: number; - name: string; - } - export interface AnySrvRecord extends SrvRecord { - type: "SRV"; - } - export interface AnyTxtRecord { - type: "TXT"; - entries: string[]; - } - export interface AnyNsRecord { - type: "NS"; - value: string; - } - export interface AnyPtrRecord { - type: "PTR"; - value: string; - } - export interface AnyCnameRecord { - type: "CNAME"; - value: string; - } - export type AnyRecord = - | AnyARecord - | AnyAaaaRecord - | AnyCaaRecord - | AnyCnameRecord - | AnyMxRecord - | AnyNaptrRecord - | AnyNsRecord - | AnyPtrRecord - | AnySoaRecord - | AnySrvRecord - | AnyTxtRecord; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource - * records. The type and structure of individual results varies based on `rrtype`: - * - * - * - * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, - * where `err.code` is one of the `DNS error codes`. - * @since v0.1.27 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - export function resolve( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "ANY", - callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "CAA", - callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "MX", - callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "NAPTR", - callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "SOA", - callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "SRV", - callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "TXT", - callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: string, - callback: ( - err: NodeJS.ErrnoException | null, - addresses: - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | string[][] - | AnyRecord[], - ) => void, - ): void; - export namespace resolve { - function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; - function __promisify__(hostname: string, rrtype: "ANY"): Promise; - function __promisify__(hostname: string, rrtype: "CAA"): Promise; - function __promisify__(hostname: string, rrtype: "MX"): Promise; - function __promisify__(hostname: string, rrtype: "NAPTR"): Promise; - function __promisify__(hostname: string, rrtype: "SOA"): Promise; - function __promisify__(hostname: string, rrtype: "SRV"): Promise; - function __promisify__(hostname: string, rrtype: "TXT"): Promise; - function __promisify__( - hostname: string, - rrtype: string, - ): Promise< - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | string[][] - | AnyRecord[] - >; - } - /** - * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve4( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve4( - hostname: string, - options: ResolveWithTtlOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, - ): void; - export function resolve4( - hostname: string, - options: ResolveOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, - ): void; - export namespace resolve4 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv6 addresses. - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve6( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve6( - hostname: string, - options: ResolveWithTtlOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, - ): void; - export function resolve6( - hostname: string, - options: ResolveOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, - ): void; - export namespace resolve6 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`). - * @since v0.3.2 - */ - export function resolveCname( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolveCname { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of certification authority authorization records - * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0, v14.17.0 - */ - export function resolveCaa( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void, - ): void; - export namespace resolveCaa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v0.1.27 - */ - export function resolveMx( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, - ): void; - export namespace resolveMx { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of - * objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v0.9.12 - */ - export function resolveNaptr( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, - ): void; - export namespace resolveNaptr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`). - * @since v0.1.90 - */ - export function resolveNs( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolveNs { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * be an array of strings containing the reply records. - * @since v6.0.0 - */ - export function resolvePtr( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolvePtr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. The `address` argument passed to the `callback` function will - * be an object with the following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v0.11.10 - */ - export function resolveSoa( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void, - ): void; - export namespace resolveSoa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * be an array of objects with the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v0.1.27 - */ - export function resolveSrv( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, - ): void; - export namespace resolveSrv { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a - * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v0.1.27 - */ - export function resolveTxt( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, - ): void; - export namespace resolveTxt { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * The `ret` argument passed to the `callback` function will be an array containing - * various types of records. Each object has a property `type` that indicates the - * type of the current record. And depending on the `type`, additional properties - * will be present on the object: - * - * - * - * Here is an example of the `ret` object passed to the callback: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * - * DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see - * [RFC 8482](https://tools.ietf.org/html/rfc8482). - */ - export function resolveAny( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, - ): void; - export namespace resolveAny { - function __promisify__(hostname: string): Promise; - } - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is - * one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v0.1.16 - */ - export function reverse( - ip: string, - callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void, - ): void; - /** - * Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: for `order` defaulting to `ipv4first`. - * * `ipv6first`: for `order` defaulting to `ipv6first`. - * * `verbatim`: for `order` defaulting to `verbatim`. - * @since v18.17.0 - */ - export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim"; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dns.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dns.setServers()` method must not be called while a DNS query is in - * progress. - * - * The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}). - * - * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v0.11.3 - * @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses - */ - export function setServers(servers: readonly string[]): void; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v0.11.3 - */ - export function getServers(): string[]; - /** - * Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: sets default `order` to `ipv4first`. - * * `ipv6first`: sets default `order` to `ipv6first`. - * * `verbatim`: sets default `order` to `verbatim`. - * - * The default is `verbatim` and {@link setDefaultResultOrder} have higher - * priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). When using - * [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main - * thread won't affect the default dns orders in workers. - * @since v16.4.0, v14.18.0 - * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. - */ - export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; - // Error codes - export const NODATA: "ENODATA"; - export const FORMERR: "EFORMERR"; - export const SERVFAIL: "ESERVFAIL"; - export const NOTFOUND: "ENOTFOUND"; - export const NOTIMP: "ENOTIMP"; - export const REFUSED: "EREFUSED"; - export const BADQUERY: "EBADQUERY"; - export const BADNAME: "EBADNAME"; - export const BADFAMILY: "EBADFAMILY"; - export const BADRESP: "EBADRESP"; - export const CONNREFUSED: "ECONNREFUSED"; - export const TIMEOUT: "ETIMEOUT"; - export const EOF: "EOF"; - export const FILE: "EFILE"; - export const NOMEM: "ENOMEM"; - export const DESTRUCTION: "EDESTRUCTION"; - export const BADSTR: "EBADSTR"; - export const BADFLAGS: "EBADFLAGS"; - export const NONAME: "ENONAME"; - export const BADHINTS: "EBADHINTS"; - export const NOTINITIALIZED: "ENOTINITIALIZED"; - export const LOADIPHLPAPI: "ELOADIPHLPAPI"; - export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; - export const CANCELLED: "ECANCELLED"; - export interface ResolverOptions { - /** - * Query timeout in milliseconds, or `-1` to use the default timeout. - */ - timeout?: number | undefined; - /** - * The number of tries the resolver will try contacting each name server before giving up. - * @default 4 - */ - tries?: number | undefined; - } - /** - * An independent resolver for DNS requests. - * - * Creating a new resolver uses the default server settings. Setting - * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnssetserversservers) does not affect - * other resolvers: - * - * ```js - * import { Resolver } from 'node:dns'; - * const resolver = new Resolver(); - * resolver.setServers(['4.4.4.4']); - * - * // This request will use the server at 4.4.4.4, independent of global settings. - * resolver.resolve4('example.org', (err, addresses) => { - * // ... - * }); - * ``` - * - * The following methods from the `node:dns` module are available: - * - * * `resolver.getServers()` - * * `resolver.resolve()` - * * `resolver.resolve4()` - * * `resolver.resolve6()` - * * `resolver.resolveAny()` - * * `resolver.resolveCaa()` - * * `resolver.resolveCname()` - * * `resolver.resolveMx()` - * * `resolver.resolveNaptr()` - * * `resolver.resolveNs()` - * * `resolver.resolvePtr()` - * * `resolver.resolveSoa()` - * * `resolver.resolveSrv()` - * * `resolver.resolveTxt()` - * * `resolver.reverse()` - * * `resolver.setServers()` - * @since v8.3.0 - */ - export class Resolver { - constructor(options?: ResolverOptions); - /** - * Cancel all outstanding DNS queries made by this resolver. The corresponding - * callbacks will be called with an error with code `ECANCELLED`. - * @since v8.3.0 - */ - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCaa: typeof resolveCaa; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - /** - * The resolver instance will send its requests from the specified IP address. - * This allows programs to specify outbound interfaces when used on multi-homed - * systems. - * - * If a v4 or v6 address is not specified, it is set to the default and the - * operating system will choose a local address automatically. - * - * The resolver will use the v4 local address when making requests to IPv4 DNS - * servers, and the v6 local address when making requests to IPv6 DNS servers. - * The `rrtype` of resolution requests has no impact on the local address used. - * @since v15.1.0, v14.17.0 - * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. - * @param [ipv6='::0'] A string representation of an IPv6 address. - */ - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } - export { dnsPromises as promises }; -} -declare module "node:dns" { - export * from "dns"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dns/promises.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dns/promises.d.ts deleted file mode 100644 index 29ae2ba..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/dns/promises.d.ts +++ /dev/null @@ -1,479 +0,0 @@ -/** - * The `dns.promises` API provides an alternative set of asynchronous DNS methods - * that return `Promise` objects rather than using callbacks. The API is accessible - * via `import { promises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`. - * @since v10.6.0 - */ -declare module "dns/promises" { - import { - AnyRecord, - CaaRecord, - LookupAddress, - LookupAllOptions, - LookupOneOptions, - LookupOptions, - MxRecord, - NaptrRecord, - RecordWithTtl, - ResolveOptions, - ResolverOptions, - ResolveWithTtlOptions, - SoaRecord, - SrvRecord, - } from "node:dns"; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v10.6.0 - */ - function getServers(): string[]; - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 - * and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS - * protocol. The implementation uses an operating system facility that can - * associate names with addresses and vice versa. This implementation can have - * subtle but important consequences on the behavior of any Node.js program. Please - * take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before - * using `dnsPromises.lookup()`. - * - * Example usage: - * - * ```js - * import dns from 'node:dns'; - * const dnsPromises = dns.promises; - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('address: %j family: IPv%s', result.address, result.family); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * }); - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('addresses: %j', result); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * }); - * ``` - * @since v10.6.0 - */ - function lookup(hostname: string, family: number): Promise; - function lookup(hostname: string, options: LookupOneOptions): Promise; - function lookup(hostname: string, options: LookupAllOptions): Promise; - function lookup(hostname: string, options: LookupOptions): Promise; - function lookup(hostname: string): Promise; - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. - * - * ```js - * import dns from 'node:dns'; - * dns.promises.lookupService('127.0.0.1', 22).then((result) => { - * console.log(result.hostname, result.service); - * // Prints: localhost ssh - * }); - * ``` - * @since v10.6.0 - */ - function lookupService( - address: string, - port: number, - ): Promise<{ - hostname: string; - service: string; - }>; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. When successful, the `Promise` is resolved with an - * array of resource records. The type and structure of individual results vary - * based on `rrtype`: - * - * - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` - * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v10.6.0 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - function resolve(hostname: string): Promise; - function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; - function resolve(hostname: string, rrtype: "ANY"): Promise; - function resolve(hostname: string, rrtype: "CAA"): Promise; - function resolve(hostname: string, rrtype: "MX"): Promise; - function resolve(hostname: string, rrtype: "NAPTR"): Promise; - function resolve(hostname: string, rrtype: "SOA"): Promise; - function resolve(hostname: string, rrtype: "SRV"): Promise; - function resolve(hostname: string, rrtype: "TXT"): Promise; - function resolve(hostname: string, rrtype: string): Promise< - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | string[][] - | AnyRecord[] - >; - /** - * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4 - * addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve4(hostname: string): Promise; - function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve4(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6 - * addresses. - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve6(hostname: string): Promise; - function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve6(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * On success, the `Promise` is resolved with an array containing various types of - * records. Each object has a property `type` that indicates the type of the - * current record. And depending on the `type`, additional properties will be - * present on the object: - * - * - * - * Here is an example of the result object: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * @since v10.6.0 - */ - function resolveAny(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success, - * the `Promise` is resolved with an array of objects containing available - * certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0, v14.17.0 - */ - function resolveCaa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success, - * the `Promise` is resolved with an array of canonical name records available for - * the `hostname` (e.g. `['bar.example.com']`). - * @since v10.6.0 - */ - function resolveCname(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects - * containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v10.6.0 - */ - function resolveMx(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array - * of objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v10.6.0 - */ - function resolveNaptr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server - * records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`). - * @since v10.6.0 - */ - function resolveNs(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings - * containing the reply records. - * @since v10.6.0 - */ - function resolvePtr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. On success, the `Promise` is resolved with an object with the - * following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v10.6.0 - */ - function resolveSoa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with - * the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v10.6.0 - */ - function resolveSrv(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array - * of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v10.6.0 - */ - function resolveTxt(hostname: string): Promise; - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` - * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v10.6.0 - */ - function reverse(ip: string): Promise; - /** - * Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: for `verbatim` defaulting to `false`. - * * `verbatim`: for `verbatim` defaulting to `true`. - * @since v20.1.0 - */ - function getDefaultResultOrder(): "ipv4first" | "verbatim"; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dnsPromises.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dnsPromises.setServers()` method must not be called while a DNS query is in - * progress. - * - * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v10.6.0 - * @param servers array of `RFC 5952` formatted addresses - */ - function setServers(servers: readonly string[]): void; - /** - * Set the default value of `order` in `dns.lookup()` and `{@link lookup}`. The value could be: - * - * * `ipv4first`: sets default `order` to `ipv4first`. - * * `ipv6first`: sets default `order` to `ipv6first`. - * * `verbatim`: sets default `order` to `verbatim`. - * - * The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) - * have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). - * When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) - * from the main thread won't affect the default dns orders in workers. - * @since v16.4.0, v14.18.0 - * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. - */ - function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; - // Error codes - const NODATA: "ENODATA"; - const FORMERR: "EFORMERR"; - const SERVFAIL: "ESERVFAIL"; - const NOTFOUND: "ENOTFOUND"; - const NOTIMP: "ENOTIMP"; - const REFUSED: "EREFUSED"; - const BADQUERY: "EBADQUERY"; - const BADNAME: "EBADNAME"; - const BADFAMILY: "EBADFAMILY"; - const BADRESP: "EBADRESP"; - const CONNREFUSED: "ECONNREFUSED"; - const TIMEOUT: "ETIMEOUT"; - const EOF: "EOF"; - const FILE: "EFILE"; - const NOMEM: "ENOMEM"; - const DESTRUCTION: "EDESTRUCTION"; - const BADSTR: "EBADSTR"; - const BADFLAGS: "EBADFLAGS"; - const NONAME: "ENONAME"; - const BADHINTS: "EBADHINTS"; - const NOTINITIALIZED: "ENOTINITIALIZED"; - const LOADIPHLPAPI: "ELOADIPHLPAPI"; - const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; - const CANCELLED: "ECANCELLED"; - - /** - * An independent resolver for DNS requests. - * - * Creating a new resolver uses the default server settings. Setting - * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect - * other resolvers: - * - * ```js - * import dns from 'node:dns'; - * const { Resolver } = dns.promises; - * const resolver = new Resolver(); - * resolver.setServers(['4.4.4.4']); - * - * // This request will use the server at 4.4.4.4, independent of global settings. - * resolver.resolve4('example.org').then((addresses) => { - * // ... - * }); - * - * // Alternatively, the same code can be written using async-await style. - * (async function() { - * const addresses = await resolver.resolve4('example.org'); - * })(); - * ``` - * - * The following methods from the `dnsPromises` API are available: - * - * * `resolver.getServers()` - * * `resolver.resolve()` - * * `resolver.resolve4()` - * * `resolver.resolve6()` - * * `resolver.resolveAny()` - * * `resolver.resolveCaa()` - * * `resolver.resolveCname()` - * * `resolver.resolveMx()` - * * `resolver.resolveNaptr()` - * * `resolver.resolveNs()` - * * `resolver.resolvePtr()` - * * `resolver.resolveSoa()` - * * `resolver.resolveSrv()` - * * `resolver.resolveTxt()` - * * `resolver.reverse()` - * * `resolver.setServers()` - * @since v10.6.0 - */ - class Resolver { - constructor(options?: ResolverOptions); - /** - * Cancel all outstanding DNS queries made by this resolver. The corresponding - * callbacks will be called with an error with code `ECANCELLED`. - * @since v8.3.0 - */ - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCaa: typeof resolveCaa; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - /** - * The resolver instance will send its requests from the specified IP address. - * This allows programs to specify outbound interfaces when used on multi-homed - * systems. - * - * If a v4 or v6 address is not specified, it is set to the default and the - * operating system will choose a local address automatically. - * - * The resolver will use the v4 local address when making requests to IPv4 DNS - * servers, and the v6 local address when making requests to IPv6 DNS servers. - * The `rrtype` of resolution requests has no impact on the local address used. - * @since v15.1.0, v14.17.0 - * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. - * @param [ipv6='::0'] A string representation of an IPv6 address. - */ - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } -} -declare module "node:dns/promises" { - export * from "dns/promises"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/domain.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/domain.d.ts deleted file mode 100644 index d83b0f0..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/domain.d.ts +++ /dev/null @@ -1,170 +0,0 @@ -/** - * **This module is pending deprecation.** Once a replacement API has been - * finalized, this module will be fully deprecated. Most developers should - * **not** have cause to use this module. Users who absolutely must have - * the functionality that domains provide may rely on it for the time being - * but should expect to have to migrate to a different solution - * in the future. - * - * Domains provide a way to handle multiple different IO operations as a - * single group. If any of the event emitters or callbacks registered to a - * domain emit an `'error'` event, or throw an error, then the domain object - * will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to - * exit immediately with an error code. - * @deprecated Since v1.4.2 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/domain.js) - */ -declare module "domain" { - import EventEmitter = require("node:events"); - /** - * The `Domain` class encapsulates the functionality of routing errors and - * uncaught exceptions to the active `Domain` object. - * - * To handle the errors that it catches, listen to its `'error'` event. - */ - class Domain extends EventEmitter { - /** - * An array of timers and event emitters that have been explicitly added - * to the domain. - */ - members: Array; - /** - * The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly - * pushes the domain onto the domain - * stack managed by the domain module (see {@link exit} for details on the - * domain stack). The call to `enter()` delimits the beginning of a chain of - * asynchronous calls and I/O operations bound to a domain. - * - * Calling `enter()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - enter(): void; - /** - * The `exit()` method exits the current domain, popping it off the domain stack. - * Any time execution is going to switch to the context of a different chain of - * asynchronous calls, it's important to ensure that the current domain is exited. - * The call to `exit()` delimits either the end of or an interruption to the chain - * of asynchronous calls and I/O operations bound to a domain. - * - * If there are multiple, nested domains bound to the current execution context, `exit()` will exit any domains nested within this domain. - * - * Calling `exit()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - exit(): void; - /** - * Run the supplied function in the context of the domain, implicitly - * binding all event emitters, timers, and low-level requests that are - * created in that context. Optionally, arguments can be passed to - * the function. - * - * This is the most basic way to use a domain. - * - * ```js - * import domain from 'node:domain'; - * import fs from 'node:fs'; - * const d = domain.create(); - * d.on('error', (er) => { - * console.error('Caught error!', er); - * }); - * d.run(() => { - * process.nextTick(() => { - * setTimeout(() => { // Simulating some various async stuff - * fs.open('non-existent file', 'r', (er, fd) => { - * if (er) throw er; - * // proceed... - * }); - * }, 100); - * }); - * }); - * ``` - * - * In this example, the `d.on('error')` handler will be triggered, rather - * than crashing the program. - */ - run(fn: (...args: any[]) => T, ...args: any[]): T; - /** - * Explicitly adds an emitter to the domain. If any event handlers called by - * the emitter throw an error, or if the emitter emits an `'error'` event, it - * will be routed to the domain's `'error'` event, just like with implicit - * binding. - * - * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by - * the domain `'error'` handler. - * - * If the Timer or `EventEmitter` was already bound to a domain, it is removed - * from that one, and bound to this one instead. - * @param emitter emitter or timer to be added to the domain - */ - add(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The opposite of {@link add}. Removes domain handling from the - * specified emitter. - * @param emitter emitter or timer to be removed from the domain - */ - remove(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The returned function will be a wrapper around the supplied callback - * function. When the returned function is called, any errors that are - * thrown will be routed to the domain's `'error'` event. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.bind((er, data) => { - * // If this throws, it will also be passed to the domain. - * return cb(er, data ? JSON.parse(data) : null); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The bound function - */ - bind(callback: T): T; - /** - * This method is almost identical to {@link bind}. However, in - * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. - * - * In this way, the common `if (err) return callback(err);` pattern can be replaced - * with a single error handler in a single place. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.intercept((data) => { - * // Note, the first argument is never passed to the - * // callback since it is assumed to be the 'Error' argument - * // and thus intercepted by the domain. - * - * // If this throws, it will also be passed to the domain - * // so the error-handling logic can be moved to the 'error' - * // event on the domain instead of being repeated throughout - * // the program. - * return cb(null, JSON.parse(data)); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The intercepted function - */ - intercept(callback: T): T; - } - function create(): Domain; -} -declare module "node:domain" { - export * from "domain"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/events.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/events.d.ts deleted file mode 100644 index 31ab3ca..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/events.d.ts +++ /dev/null @@ -1,977 +0,0 @@ -/** - * Much of the Node.js core API is built around an idiomatic asynchronous - * event-driven architecture in which certain kinds of objects (called "emitters") - * emit named events that cause `Function` objects ("listeners") to be called. - * - * For instance: a `net.Server` object emits an event each time a peer - * connects to it; a `fs.ReadStream` emits an event when the file is opened; - * a `stream` emits an event whenever data is available to be read. - * - * All objects that emit events are instances of the `EventEmitter` class. These - * objects expose an `eventEmitter.on()` function that allows one or more - * functions to be attached to named events emitted by the object. Typically, - * event names are camel-cased strings but any valid JavaScript property key - * can be used. - * - * When the `EventEmitter` object emits an event, all of the functions attached - * to that specific event are called _synchronously_. Any values returned by the - * called listeners are _ignored_ and discarded. - * - * The following example shows a simple `EventEmitter` instance with a single - * listener. The `eventEmitter.on()` method is used to register listeners, while - * the `eventEmitter.emit()` method is used to trigger the event. - * - * ```js - * import { EventEmitter } from 'node:events'; - * - * class MyEmitter extends EventEmitter {} - * - * const myEmitter = new MyEmitter(); - * myEmitter.on('event', () => { - * console.log('an event occurred!'); - * }); - * myEmitter.emit('event'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/events.js) - */ -declare module "events" { - import { AsyncResource, AsyncResourceOptions } from "node:async_hooks"; - interface EventEmitterOptions { - /** - * Enables automatic capturing of promise rejection. - */ - captureRejections?: boolean | undefined; - } - interface StaticEventEmitterOptions { - /** - * Can be used to cancel awaiting events. - */ - signal?: AbortSignal | undefined; - } - interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions { - /** - * Names of events that will end the iteration. - */ - close?: string[] | undefined; - /** - * The high watermark. The emitter is paused every time the size of events being buffered is higher than it. - * Supported only on emitters implementing `pause()` and `resume()` methods. - * @default Number.MAX_SAFE_INTEGER - */ - highWaterMark?: number | undefined; - /** - * The low watermark. The emitter is resumed every time the size of events being buffered is lower than it. - * Supported only on emitters implementing `pause()` and `resume()` methods. - * @default 1 - */ - lowWaterMark?: number | undefined; - } - interface EventEmitter = DefaultEventMap> extends NodeJS.EventEmitter {} - type EventMap = Record | DefaultEventMap; - type DefaultEventMap = [never]; - type AnyRest = [...args: any[]]; - type Args = T extends DefaultEventMap ? AnyRest : ( - K extends keyof T ? T[K] : never - ); - type Key = T extends DefaultEventMap ? string | symbol : K | keyof T; - type Key2 = T extends DefaultEventMap ? string | symbol : K & keyof T; - type Listener = T extends DefaultEventMap ? F : ( - K extends keyof T ? ( - T[K] extends unknown[] ? (...args: T[K]) => void : never - ) - : never - ); - type Listener1 = Listener void>; - type Listener2 = Listener; - - /** - * The `EventEmitter` class is defined and exposed by the `node:events` module: - * - * ```js - * import { EventEmitter } from 'node:events'; - * ``` - * - * All `EventEmitter`s emit the event `'newListener'` when new listeners are - * added and `'removeListener'` when existing listeners are removed. - * - * It supports the following option: - * @since v0.1.26 - */ - class EventEmitter = DefaultEventMap> { - constructor(options?: EventEmitterOptions); - - [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; - - /** - * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given - * event or that is rejected if the `EventEmitter` emits `'error'` while waiting. - * The `Promise` will resolve with an array of all the arguments emitted to the - * given event. - * - * This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event - * semantics and does not listen to the `'error'` event. - * - * ```js - * import { once, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * process.nextTick(() => { - * ee.emit('myevent', 42); - * }); - * - * const [value] = await once(ee, 'myevent'); - * console.log(value); - * - * const err = new Error('kaboom'); - * process.nextTick(() => { - * ee.emit('error', err); - * }); - * - * try { - * await once(ee, 'myevent'); - * } catch (err) { - * console.error('error happened', err); - * } - * ``` - * - * The special handling of the `'error'` event is only used when `events.once()` is used to wait for another event. If `events.once()` is used to wait for the - * '`error'` event itself, then it is treated as any other kind of event without - * special handling: - * - * ```js - * import { EventEmitter, once } from 'node:events'; - * - * const ee = new EventEmitter(); - * - * once(ee, 'error') - * .then(([err]) => console.log('ok', err.message)) - * .catch((err) => console.error('error', err.message)); - * - * ee.emit('error', new Error('boom')); - * - * // Prints: ok boom - * ``` - * - * An `AbortSignal` can be used to cancel waiting for the event: - * - * ```js - * import { EventEmitter, once } from 'node:events'; - * - * const ee = new EventEmitter(); - * const ac = new AbortController(); - * - * async function foo(emitter, event, signal) { - * try { - * await once(emitter, event, { signal }); - * console.log('event emitted!'); - * } catch (error) { - * if (error.name === 'AbortError') { - * console.error('Waiting for the event was canceled!'); - * } else { - * console.error('There was an error', error.message); - * } - * } - * } - * - * foo(ee, 'foo', ac.signal); - * ac.abort(); // Abort waiting for the event - * ee.emit('foo'); // Prints: Waiting for the event was canceled! - * ``` - * @since v11.13.0, v10.16.0 - */ - static once( - emitter: NodeJS.EventEmitter, - eventName: string | symbol, - options?: StaticEventEmitterOptions, - ): Promise; - static once(emitter: EventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise; - /** - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo')) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * ``` - * - * Returns an `AsyncIterator` that iterates `eventName` events. It will throw - * if the `EventEmitter` emits `'error'`. It removes all listeners when - * exiting the loop. The `value` returned by each iteration is an array - * composed of the emitted event arguments. - * - * An `AbortSignal` can be used to cancel waiting on events: - * - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ac = new AbortController(); - * - * (async () => { - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo', { signal: ac.signal })) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * })(); - * - * process.nextTick(() => ac.abort()); - * ``` - * - * Use the `close` option to specify an array of event names that will end the iteration: - * - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * ee.emit('close'); - * }); - * - * for await (const event of on(ee, 'foo', { close: ['close'] })) { - * console.log(event); // prints ['bar'] [42] - * } - * // the loop will exit after 'close' is emitted - * console.log('done'); // prints 'done' - * ``` - * @since v13.6.0, v12.16.0 - * @return An `AsyncIterator` that iterates `eventName` events emitted by the `emitter` - */ - static on( - emitter: NodeJS.EventEmitter, - eventName: string | symbol, - options?: StaticEventEmitterIteratorOptions, - ): NodeJS.AsyncIterator; - static on( - emitter: EventTarget, - eventName: string, - options?: StaticEventEmitterIteratorOptions, - ): NodeJS.AsyncIterator; - /** - * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`. - * - * ```js - * import { EventEmitter, listenerCount } from 'node:events'; - * - * const myEmitter = new EventEmitter(); - * myEmitter.on('event', () => {}); - * myEmitter.on('event', () => {}); - * console.log(listenerCount(myEmitter, 'event')); - * // Prints: 2 - * ``` - * @since v0.9.12 - * @deprecated Since v3.2.0 - Use `listenerCount` instead. - * @param emitter The emitter to query - * @param eventName The event name - */ - static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * For `EventEmitter`s this behaves exactly the same as calling `.listeners` on - * the emitter. - * - * For `EventTarget`s this is the only way to get the event listeners for the - * event target. This is useful for debugging and diagnostic purposes. - * - * ```js - * import { getEventListeners, EventEmitter } from 'node:events'; - * - * { - * const ee = new EventEmitter(); - * const listener = () => console.log('Events are fun'); - * ee.on('foo', listener); - * console.log(getEventListeners(ee, 'foo')); // [ [Function: listener] ] - * } - * { - * const et = new EventTarget(); - * const listener = () => console.log('Events are fun'); - * et.addEventListener('foo', listener); - * console.log(getEventListeners(et, 'foo')); // [ [Function: listener] ] - * } - * ``` - * @since v15.2.0, v14.17.0 - */ - static getEventListeners(emitter: EventTarget | NodeJS.EventEmitter, name: string | symbol): Function[]; - /** - * Returns the currently set max amount of listeners. - * - * For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on - * the emitter. - * - * For `EventTarget`s this is the only way to get the max event listeners for the - * event target. If the number of event handlers on a single EventTarget exceeds - * the max set, the EventTarget will print a warning. - * - * ```js - * import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events'; - * - * { - * const ee = new EventEmitter(); - * console.log(getMaxListeners(ee)); // 10 - * setMaxListeners(11, ee); - * console.log(getMaxListeners(ee)); // 11 - * } - * { - * const et = new EventTarget(); - * console.log(getMaxListeners(et)); // 10 - * setMaxListeners(11, et); - * console.log(getMaxListeners(et)); // 11 - * } - * ``` - * @since v19.9.0 - */ - static getMaxListeners(emitter: EventTarget | NodeJS.EventEmitter): number; - /** - * ```js - * import { setMaxListeners, EventEmitter } from 'node:events'; - * - * const target = new EventTarget(); - * const emitter = new EventEmitter(); - * - * setMaxListeners(5, target, emitter); - * ``` - * @since v15.4.0 - * @param n A non-negative number. The maximum number of listeners per `EventTarget` event. - * @param eventTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter} - * objects. - */ - static setMaxListeners(n?: number, ...eventTargets: Array): void; - /** - * Listens once to the `abort` event on the provided `signal`. - * - * Listening to the `abort` event on abort signals is unsafe and may - * lead to resource leaks since another third party with the signal can - * call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change - * this since it would violate the web standard. Additionally, the original - * API makes it easy to forget to remove listeners. - * - * This API allows safely using `AbortSignal`s in Node.js APIs by solving these - * two issues by listening to the event such that `stopImmediatePropagation` does - * not prevent the listener from running. - * - * Returns a disposable so that it may be unsubscribed from more easily. - * - * ```js - * import { addAbortListener } from 'node:events'; - * - * function example(signal) { - * let disposable; - * try { - * signal.addEventListener('abort', (e) => e.stopImmediatePropagation()); - * disposable = addAbortListener(signal, (e) => { - * // Do something when signal is aborted. - * }); - * } finally { - * disposable?.[Symbol.dispose](); - * } - * } - * ``` - * @since v20.5.0 - * @experimental - * @return Disposable that removes the `abort` listener. - */ - static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable; - /** - * This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called. - * - * Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted. Therefore, the process will still crash if no - * regular `'error'` listener is installed. - * @since v13.6.0, v12.17.0 - */ - static readonly errorMonitor: unique symbol; - /** - * Value: `Symbol.for('nodejs.rejection')` - * - * See how to write a custom `rejection handler`. - * @since v13.4.0, v12.16.0 - */ - static readonly captureRejectionSymbol: unique symbol; - /** - * Value: [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) - * - * Change the default `captureRejections` option on all new `EventEmitter` objects. - * @since v13.4.0, v12.16.0 - */ - static captureRejections: boolean; - /** - * By default, a maximum of `10` listeners can be registered for any single - * event. This limit can be changed for individual `EventEmitter` instances - * using the `emitter.setMaxListeners(n)` method. To change the default - * for _all_`EventEmitter` instances, the `events.defaultMaxListeners` property - * can be used. If this value is not a positive number, a `RangeError` is thrown. - * - * Take caution when setting the `events.defaultMaxListeners` because the - * change affects _all_ `EventEmitter` instances, including those created before - * the change is made. However, calling `emitter.setMaxListeners(n)` still has - * precedence over `events.defaultMaxListeners`. - * - * This is not a hard limit. The `EventEmitter` instance will allow - * more listeners to be added but will output a trace warning to stderr indicating - * that a "possible EventEmitter memory leak" has been detected. For any single - * `EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()` methods can be used to - * temporarily avoid this warning: - * - * ```js - * import { EventEmitter } from 'node:events'; - * const emitter = new EventEmitter(); - * emitter.setMaxListeners(emitter.getMaxListeners() + 1); - * emitter.once('event', () => { - * // do stuff - * emitter.setMaxListeners(Math.max(emitter.getMaxListeners() - 1, 0)); - * }); - * ``` - * - * The `--trace-warnings` command-line flag can be used to display the - * stack trace for such warnings. - * - * The emitted warning can be inspected with `process.on('warning')` and will - * have the additional `emitter`, `type`, and `count` properties, referring to - * the event emitter instance, the event's name and the number of attached - * listeners, respectively. - * Its `name` property is set to `'MaxListenersExceededWarning'`. - * @since v0.11.2 - */ - static defaultMaxListeners: number; - } - import internal = require("node:events"); - namespace EventEmitter { - // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4 - export { internal as EventEmitter }; - export interface Abortable { - /** - * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. - */ - signal?: AbortSignal | undefined; - } - - export interface EventEmitterReferencingAsyncResource extends AsyncResource { - readonly eventEmitter: EventEmitterAsyncResource; - } - - export interface EventEmitterAsyncResourceOptions extends AsyncResourceOptions, EventEmitterOptions { - /** - * The type of async event, this is required when instantiating `EventEmitterAsyncResource` - * directly rather than as a child class. - * @default new.target.name if instantiated as a child class. - */ - name?: string | undefined; - } - - /** - * Integrates `EventEmitter` with `AsyncResource` for `EventEmitter`s that - * require manual async tracking. Specifically, all events emitted by instances - * of `events.EventEmitterAsyncResource` will run within its `async context`. - * - * ```js - * import { EventEmitterAsyncResource, EventEmitter } from 'node:events'; - * import { notStrictEqual, strictEqual } from 'node:assert'; - * import { executionAsyncId, triggerAsyncId } from 'node:async_hooks'; - * - * // Async tracking tooling will identify this as 'Q'. - * const ee1 = new EventEmitterAsyncResource({ name: 'Q' }); - * - * // 'foo' listeners will run in the EventEmitters async context. - * ee1.on('foo', () => { - * strictEqual(executionAsyncId(), ee1.asyncId); - * strictEqual(triggerAsyncId(), ee1.triggerAsyncId); - * }); - * - * const ee2 = new EventEmitter(); - * - * // 'foo' listeners on ordinary EventEmitters that do not track async - * // context, however, run in the same async context as the emit(). - * ee2.on('foo', () => { - * notStrictEqual(executionAsyncId(), ee2.asyncId); - * notStrictEqual(triggerAsyncId(), ee2.triggerAsyncId); - * }); - * - * Promise.resolve().then(() => { - * ee1.emit('foo'); - * ee2.emit('foo'); - * }); - * ``` - * - * The `EventEmitterAsyncResource` class has the same methods and takes the - * same options as `EventEmitter` and `AsyncResource` themselves. - * @since v17.4.0, v16.14.0 - */ - export class EventEmitterAsyncResource extends EventEmitter { - /** - * @param options Only optional in child class. - */ - constructor(options?: EventEmitterAsyncResourceOptions); - /** - * Call all `destroy` hooks. This should only ever be called once. An error will - * be thrown if it is called more than once. This **must** be manually called. If - * the resource is left to be collected by the GC then the `destroy` hooks will - * never be called. - */ - emitDestroy(): void; - /** - * The unique `asyncId` assigned to the resource. - */ - readonly asyncId: number; - /** - * The same triggerAsyncId that is passed to the AsyncResource constructor. - */ - readonly triggerAsyncId: number; - /** - * The returned `AsyncResource` object has an additional `eventEmitter` property - * that provides a reference to this `EventEmitterAsyncResource`. - */ - readonly asyncResource: EventEmitterReferencingAsyncResource; - } - /** - * The `NodeEventTarget` is a Node.js-specific extension to `EventTarget` - * that emulates a subset of the `EventEmitter` API. - * @since v14.5.0 - */ - export interface NodeEventTarget extends EventTarget { - /** - * Node.js-specific extension to the `EventTarget` class that emulates the - * equivalent `EventEmitter` API. The only difference between `addListener()` and - * `addEventListener()` is that `addListener()` will return a reference to the - * `EventTarget`. - * @since v14.5.0 - */ - addListener(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class that dispatches the - * `arg` to the list of handlers for `type`. - * @since v15.2.0 - * @returns `true` if event listeners registered for the `type` exist, - * otherwise `false`. - */ - emit(type: string, arg: any): boolean; - /** - * Node.js-specific extension to the `EventTarget` class that returns an array - * of event `type` names for which event listeners are registered. - * @since 14.5.0 - */ - eventNames(): string[]; - /** - * Node.js-specific extension to the `EventTarget` class that returns the number - * of event listeners registered for the `type`. - * @since v14.5.0 - */ - listenerCount(type: string): number; - /** - * Node.js-specific extension to the `EventTarget` class that sets the number - * of max event listeners as `n`. - * @since v14.5.0 - */ - setMaxListeners(n: number): void; - /** - * Node.js-specific extension to the `EventTarget` class that returns the number - * of max event listeners. - * @since v14.5.0 - */ - getMaxListeners(): number; - /** - * Node.js-specific alias for `eventTarget.removeEventListener()`. - * @since v14.5.0 - */ - off(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; - /** - * Node.js-specific alias for `eventTarget.addEventListener()`. - * @since v14.5.0 - */ - on(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class that adds a `once` - * listener for the given event `type`. This is equivalent to calling `on` - * with the `once` option set to `true`. - * @since v14.5.0 - */ - once(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class. If `type` is specified, - * removes all registered listeners for `type`, otherwise removes all registered - * listeners. - * @since v14.5.0 - */ - removeAllListeners(type?: string): this; - /** - * Node.js-specific extension to the `EventTarget` class that removes the - * `listener` for the given `type`. The only difference between `removeListener()` - * and `removeEventListener()` is that `removeListener()` will return a reference - * to the `EventTarget`. - * @since v14.5.0 - */ - removeListener(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; - } - } - global { - namespace NodeJS { - interface EventEmitter = DefaultEventMap> { - [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; - /** - * Alias for `emitter.on(eventName, listener)`. - * @since v0.1.26 - */ - addListener(eventName: Key, listener: Listener1): this; - /** - * Adds the `listener` function to the end of the listeners array for the event - * named `eventName`. No checks are made to see if the `listener` has already - * been added. Multiple calls passing the same combination of `eventName` and - * `listener` will result in the `listener` being added, and called, multiple times. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The `emitter.prependListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEE = new EventEmitter(); - * myEE.on('foo', () => console.log('a')); - * myEE.prependListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.1.101 - * @param eventName The name of the event. - * @param listener The callback function - */ - on(eventName: Key, listener: Listener1): this; - /** - * Adds a **one-time** `listener` function for the event named `eventName`. The - * next time `eventName` is triggered, this listener is removed and then invoked. - * - * ```js - * server.once('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The `emitter.prependOnceListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEE = new EventEmitter(); - * myEE.once('foo', () => console.log('a')); - * myEE.prependOnceListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.3.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - once(eventName: Key, listener: Listener1): this; - /** - * Removes the specified `listener` from the listener array for the event named `eventName`. - * - * ```js - * const callback = (stream) => { - * console.log('someone connected!'); - * }; - * server.on('connection', callback); - * // ... - * server.removeListener('connection', callback); - * ``` - * - * `removeListener()` will remove, at most, one instance of a listener from the - * listener array. If any single listener has been added multiple times to the - * listener array for the specified `eventName`, then `removeListener()` must be - * called multiple times to remove each instance. - * - * Once an event is emitted, all listeners attached to it at the - * time of emitting are called in order. This implies that any `removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution - * will not remove them from`emit()` in progress. Subsequent events behave as expected. - * - * ```js - * import { EventEmitter } from 'node:events'; - * class MyEmitter extends EventEmitter {} - * const myEmitter = new MyEmitter(); - * - * const callbackA = () => { - * console.log('A'); - * myEmitter.removeListener('event', callbackB); - * }; - * - * const callbackB = () => { - * console.log('B'); - * }; - * - * myEmitter.on('event', callbackA); - * - * myEmitter.on('event', callbackB); - * - * // callbackA removes listener callbackB but it will still be called. - * // Internal listener array at time of emit [callbackA, callbackB] - * myEmitter.emit('event'); - * // Prints: - * // A - * // B - * - * // callbackB is now removed. - * // Internal listener array [callbackA] - * myEmitter.emit('event'); - * // Prints: - * // A - * ``` - * - * Because listeners are managed using an internal array, calling this will - * change the position indices of any listener registered _after_ the listener - * being removed. This will not impact the order in which listeners are called, - * but it means that any copies of the listener array as returned by - * the `emitter.listeners()` method will need to be recreated. - * - * When a single function has been added as a handler multiple times for a single - * event (as in the example below), `removeListener()` will remove the most - * recently added instance. In the example the `once('ping')` listener is removed: - * - * ```js - * import { EventEmitter } from 'node:events'; - * const ee = new EventEmitter(); - * - * function pong() { - * console.log('pong'); - * } - * - * ee.on('ping', pong); - * ee.once('ping', pong); - * ee.removeListener('ping', pong); - * - * ee.emit('ping'); - * ee.emit('ping'); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeListener(eventName: Key, listener: Listener1): this; - /** - * Alias for `emitter.removeListener()`. - * @since v10.0.0 - */ - off(eventName: Key, listener: Listener1): this; - /** - * Removes all listeners, or those of the specified `eventName`. - * - * It is bad practice to remove listeners added elsewhere in the code, - * particularly when the `EventEmitter` instance was created by some other - * component or module (e.g. sockets or file streams). - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeAllListeners(eventName?: Key): this; - /** - * By default `EventEmitter`s will print a warning if more than `10` listeners are - * added for a particular event. This is a useful default that helps finding - * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be - * modified for this specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`) to indicate an unlimited number of listeners. - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.3.5 - */ - setMaxListeners(n: number): this; - /** - * Returns the current max listener value for the `EventEmitter` which is either - * set by `emitter.setMaxListeners(n)` or defaults to {@link EventEmitter.defaultMaxListeners}. - * @since v1.0.0 - */ - getMaxListeners(): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * console.log(util.inspect(server.listeners('connection'))); - * // Prints: [ [Function] ] - * ``` - * @since v0.1.26 - */ - listeners(eventName: Key): Array>; - /** - * Returns a copy of the array of listeners for the event named `eventName`, - * including any wrappers (such as those created by `.once()`). - * - * ```js - * import { EventEmitter } from 'node:events'; - * const emitter = new EventEmitter(); - * emitter.once('log', () => console.log('log once')); - * - * // Returns a new Array with a function `onceWrapper` which has a property - * // `listener` which contains the original listener bound above - * const listeners = emitter.rawListeners('log'); - * const logFnWrapper = listeners[0]; - * - * // Logs "log once" to the console and does not unbind the `once` event - * logFnWrapper.listener(); - * - * // Logs "log once" to the console and removes the listener - * logFnWrapper(); - * - * emitter.on('log', () => console.log('log persistently')); - * // Will return a new Array with a single function bound by `.on()` above - * const newListeners = emitter.rawListeners('log'); - * - * // Logs "log persistently" twice - * newListeners[0](); - * emitter.emit('log'); - * ``` - * @since v9.4.0 - */ - rawListeners(eventName: Key): Array>; - /** - * Synchronously calls each of the listeners registered for the event named `eventName`, in the order they were registered, passing the supplied arguments - * to each. - * - * Returns `true` if the event had listeners, `false` otherwise. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEmitter = new EventEmitter(); - * - * // First listener - * myEmitter.on('event', function firstListener() { - * console.log('Helloooo! first listener'); - * }); - * // Second listener - * myEmitter.on('event', function secondListener(arg1, arg2) { - * console.log(`event with parameters ${arg1}, ${arg2} in second listener`); - * }); - * // Third listener - * myEmitter.on('event', function thirdListener(...args) { - * const parameters = args.join(', '); - * console.log(`event with parameters ${parameters} in third listener`); - * }); - * - * console.log(myEmitter.listeners('event')); - * - * myEmitter.emit('event', 1, 2, 3, 4, 5); - * - * // Prints: - * // [ - * // [Function: firstListener], - * // [Function: secondListener], - * // [Function: thirdListener] - * // ] - * // Helloooo! first listener - * // event with parameters 1, 2 in second listener - * // event with parameters 1, 2, 3, 4, 5 in third listener - * ``` - * @since v0.1.26 - */ - emit(eventName: Key, ...args: Args): boolean; - /** - * Returns the number of listeners listening for the event named `eventName`. - * If `listener` is provided, it will return how many times the listener is found - * in the list of the listeners of the event. - * @since v3.2.0 - * @param eventName The name of the event being listened for - * @param listener The event handler function - */ - listenerCount(eventName: Key, listener?: Listener2): number; - /** - * Adds the `listener` function to the _beginning_ of the listeners array for the - * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName` - * and `listener` will result in the `listener` being added, and called, multiple times. - * - * ```js - * server.prependListener('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependListener(eventName: Key, listener: Listener1): this; - /** - * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this - * listener is removed, and then invoked. - * - * ```js - * server.prependOnceListener('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependOnceListener(eventName: Key, listener: Listener1): this; - /** - * Returns an array listing the events for which the emitter has registered - * listeners. The values in the array are strings or `Symbol`s. - * - * ```js - * import { EventEmitter } from 'node:events'; - * - * const myEE = new EventEmitter(); - * myEE.on('foo', () => {}); - * myEE.on('bar', () => {}); - * - * const sym = Symbol('symbol'); - * myEE.on(sym, () => {}); - * - * console.log(myEE.eventNames()); - * // Prints: [ 'foo', 'bar', Symbol(symbol) ] - * ``` - * @since v6.0.0 - */ - eventNames(): Array<(string | symbol) & Key2>; - } - } - } - export = EventEmitter; -} -declare module "node:events" { - import events = require("events"); - export = events; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/fs.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/fs.d.ts deleted file mode 100644 index 4115ffe..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/fs.d.ts +++ /dev/null @@ -1,4375 +0,0 @@ -/** - * The `node:fs` module enables interacting with the file system in a - * way modeled on standard POSIX functions. - * - * To use the promise-based APIs: - * - * ```js - * import * as fs from 'node:fs/promises'; - * ``` - * - * To use the callback and sync APIs: - * - * ```js - * import * as fs from 'node:fs'; - * ``` - * - * All file system operations have synchronous, callback, and promise-based - * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM). - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/fs.js) - */ -declare module "fs" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { Abortable, EventEmitter } from "node:events"; - import { URL } from "node:url"; - import * as promises from "node:fs/promises"; - export { promises }; - /** - * Valid types for path values in "fs". - */ - export type PathLike = string | Buffer | URL; - export type PathOrFileDescriptor = PathLike | number; - export type TimeLike = string | number | Date; - export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void; - export type BufferEncodingOption = - | "buffer" - | { - encoding: "buffer"; - }; - export interface ObjectEncodingOptions { - encoding?: BufferEncoding | null | undefined; - } - export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null; - export type OpenMode = number | string; - export type Mode = number | string; - export interface StatsBase { - isFile(): boolean; - isDirectory(): boolean; - isBlockDevice(): boolean; - isCharacterDevice(): boolean; - isSymbolicLink(): boolean; - isFIFO(): boolean; - isSocket(): boolean; - dev: T; - ino: T; - mode: T; - nlink: T; - uid: T; - gid: T; - rdev: T; - size: T; - blksize: T; - blocks: T; - atimeMs: T; - mtimeMs: T; - ctimeMs: T; - birthtimeMs: T; - atime: Date; - mtime: Date; - ctime: Date; - birthtime: Date; - } - export interface Stats extends StatsBase {} - /** - * A `fs.Stats` object provides information about a file. - * - * Objects returned from {@link stat}, {@link lstat}, {@link fstat}, and - * their synchronous counterparts are of this type. - * If `bigint` in the `options` passed to those methods is true, the numeric values - * will be `bigint` instead of `number`, and the object will contain additional - * nanosecond-precision properties suffixed with `Ns`. `Stat` objects are not to be created directly using the `new` keyword. - * - * ```console - * Stats { - * dev: 2114, - * ino: 48064969, - * mode: 33188, - * nlink: 1, - * uid: 85, - * gid: 100, - * rdev: 0, - * size: 527, - * blksize: 4096, - * blocks: 8, - * atimeMs: 1318289051000.1, - * mtimeMs: 1318289051000.1, - * ctimeMs: 1318289051000.1, - * birthtimeMs: 1318289051000.1, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * - * `bigint` version: - * - * ```console - * BigIntStats { - * dev: 2114n, - * ino: 48064969n, - * mode: 33188n, - * nlink: 1n, - * uid: 85n, - * gid: 100n, - * rdev: 0n, - * size: 527n, - * blksize: 4096n, - * blocks: 8n, - * atimeMs: 1318289051000n, - * mtimeMs: 1318289051000n, - * ctimeMs: 1318289051000n, - * birthtimeMs: 1318289051000n, - * atimeNs: 1318289051000000000n, - * mtimeNs: 1318289051000000000n, - * ctimeNs: 1318289051000000000n, - * birthtimeNs: 1318289051000000000n, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * @since v0.1.21 - */ - export class Stats {} - export interface StatsFsBase { - /** Type of file system. */ - type: T; - /** Optimal transfer block size. */ - bsize: T; - /** Total data blocks in file system. */ - blocks: T; - /** Free blocks in file system. */ - bfree: T; - /** Available blocks for unprivileged users */ - bavail: T; - /** Total file nodes in file system. */ - files: T; - /** Free file nodes in file system. */ - ffree: T; - } - export interface StatsFs extends StatsFsBase {} - /** - * Provides information about a mounted file system. - * - * Objects returned from {@link statfs} and its synchronous counterpart are of - * this type. If `bigint` in the `options` passed to those methods is `true`, the - * numeric values will be `bigint` instead of `number`. - * - * ```console - * StatFs { - * type: 1397114950, - * bsize: 4096, - * blocks: 121938943, - * bfree: 61058895, - * bavail: 61058895, - * files: 999, - * ffree: 1000000 - * } - * ``` - * - * `bigint` version: - * - * ```console - * StatFs { - * type: 1397114950n, - * bsize: 4096n, - * blocks: 121938943n, - * bfree: 61058895n, - * bavail: 61058895n, - * files: 999n, - * ffree: 1000000n - * } - * ``` - * @since v19.6.0, v18.15.0 - */ - export class StatsFs {} - export interface BigIntStatsFs extends StatsFsBase {} - export interface StatFsOptions { - bigint?: boolean | undefined; - } - /** - * A representation of a directory entry, which can be a file or a subdirectory - * within the directory, as returned by reading from an `fs.Dir`. The - * directory entry is a combination of the file name and file type pairs. - * - * Additionally, when {@link readdir} or {@link readdirSync} is called with - * the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s. - * @since v10.10.0 - */ - export class Dirent { - /** - * Returns `true` if the `fs.Dirent` object describes a regular file. - * @since v10.10.0 - */ - isFile(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a file system - * directory. - * @since v10.10.0 - */ - isDirectory(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a block device. - * @since v10.10.0 - */ - isBlockDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a character device. - * @since v10.10.0 - */ - isCharacterDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a symbolic link. - * @since v10.10.0 - */ - isSymbolicLink(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a first-in-first-out - * (FIFO) pipe. - * @since v10.10.0 - */ - isFIFO(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a socket. - * @since v10.10.0 - */ - isSocket(): boolean; - /** - * The file name that this `fs.Dirent` object refers to. The type of this - * value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}. - * @since v10.10.0 - */ - name: Name; - /** - * The base path that this `fs.Dirent` object refers to. - * @since v20.12.0 - */ - parentPath: string; - /** - * Alias for `dirent.parentPath`. - * @since v20.1.0 - * @deprecated Since v20.12.0 - */ - path: string; - } - /** - * A class representing a directory stream. - * - * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`. - * - * ```js - * import { opendir } from 'node:fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - */ - export class Dir implements AsyncIterable { - /** - * The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`. - * @since v12.12.0 - */ - readonly path: string; - /** - * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read. - */ - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - /** - * Asynchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * - * A promise is returned that will be fulfilled after the resource has been - * closed. - * @since v12.12.0 - */ - close(): Promise; - close(cb: NoParamCallback): void; - /** - * Synchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * @since v12.12.0 - */ - closeSync(): void; - /** - * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. - * - * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - * @return containing {fs.Dirent|null} - */ - read(): Promise; - read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void; - /** - * Synchronously read the next directory entry as an `fs.Dirent`. See the - * POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail. - * - * If there are no more directory entries to read, `null` will be returned. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - */ - readSync(): Dirent | null; - } - /** - * Class: fs.StatWatcher - * @since v14.3.0, v12.20.0 - * Extends `EventEmitter` - * A successful call to {@link watchFile} method will return a new fs.StatWatcher object. - */ - export interface StatWatcher extends EventEmitter { - /** - * When called, requests that the Node.js event loop _not_ exit so long as the `fs.StatWatcher` is active. Calling `watcher.ref()` multiple times will have - * no effect. - * - * By default, all `fs.StatWatcher` objects are "ref'ed", making it normally - * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been - * called previously. - * @since v14.3.0, v12.20.0 - */ - ref(): this; - /** - * When called, the active `fs.StatWatcher` object will not require the Node.js - * event loop to remain active. If there is no other activity keeping the - * event loop running, the process may exit before the `fs.StatWatcher` object's - * callback is invoked. Calling `watcher.unref()` multiple times will have - * no effect. - * @since v14.3.0, v12.20.0 - */ - unref(): this; - } - export interface FSWatcher extends EventEmitter { - /** - * Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable. - * @since v0.5.8 - */ - close(): void; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have - * no effect. - * - * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally - * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been - * called previously. - * @since v14.3.0, v12.20.0 - */ - ref(): this; - /** - * When called, the active `fs.FSWatcher` object will not require the Node.js - * event loop to remain active. If there is no other activity keeping the - * event loop running, the process may exit before the `fs.FSWatcher` object's - * callback is invoked. Calling `watcher.unref()` multiple times will have - * no effect. - * @since v14.3.0, v12.20.0 - */ - unref(): this; - /** - * events.EventEmitter - * 1. change - * 2. close - * 3. error - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - on(event: "close", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - once(event: "close", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener( - event: "change", - listener: (eventType: string, filename: string | NonSharedBuffer) => void, - ): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "change", - listener: (eventType: string, filename: string | NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - } - /** - * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. - * @since v0.1.93 - */ - export class ReadStream extends stream.Readable { - close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; - /** - * The number of bytes that have been read so far. - * @since v6.4.0 - */ - bytesRead: number; - /** - * The path to the file the stream is reading from as specified in the first - * argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a - * `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0, v10.16.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: K, listener: ReadStreamEvents[K]): this; - on(event: K, listener: ReadStreamEvents[K]): this; - once(event: K, listener: ReadStreamEvents[K]): this; - prependListener(event: K, listener: ReadStreamEvents[K]): this; - prependOnceListener(event: K, listener: ReadStreamEvents[K]): this; - } - - /** - * The Keys are events of the ReadStream and the values are the functions that are called when the event is emitted. - */ - type ReadStreamEvents = { - close: () => void; - data: (chunk: Buffer | string) => void; - end: () => void; - error: (err: Error) => void; - open: (fd: number) => void; - pause: () => void; - readable: () => void; - ready: () => void; - resume: () => void; - } & CustomEvents; - - /** - * string & {} allows to allow any kind of strings for the event - * but still allows to have auto completion for the normal events. - */ - type CustomEvents = { [Key in string & {} | symbol]: (...args: any[]) => void }; - - /** - * The Keys are events of the WriteStream and the values are the functions that are called when the event is emitted. - */ - type WriteStreamEvents = { - close: () => void; - drain: () => void; - error: (err: Error) => void; - finish: () => void; - open: (fd: number) => void; - pipe: (src: stream.Readable) => void; - ready: () => void; - unpipe: (src: stream.Readable) => void; - } & CustomEvents; - /** - * * Extends `stream.Writable` - * - * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function. - * @since v0.1.93 - */ - export class WriteStream extends stream.Writable { - /** - * Closes `writeStream`. Optionally accepts a - * callback that will be executed once the `writeStream`is closed. - * @since v0.9.4 - */ - close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; - /** - * The number of bytes written so far. Does not include data that is still queued - * for writing. - * @since v0.4.7 - */ - bytesWritten: number; - /** - * The path to the file the stream is writing to as specified in the first - * argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a - * `Buffer`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: K, listener: WriteStreamEvents[K]): this; - on(event: K, listener: WriteStreamEvents[K]): this; - once(event: K, listener: WriteStreamEvents[K]): this; - prependListener(event: K, listener: WriteStreamEvents[K]): this; - prependOnceListener(event: K, listener: WriteStreamEvents[K]): this; - } - /** - * Asynchronously rename file at `oldPath` to the pathname provided - * as `newPath`. In the case that `newPath` already exists, it will - * be overwritten. If there is a directory at `newPath`, an error will - * be raised instead. No arguments other than a possible exception are - * given to the completion callback. - * - * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html). - * - * ```js - * import { rename } from 'node:fs'; - * - * rename('oldFile.txt', 'newFile.txt', (err) => { - * if (err) throw err; - * console.log('Rename complete!'); - * }); - * ``` - * @since v0.0.2 - */ - export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace rename { - /** - * Asynchronous rename(2) - Change the name or location of a file or directory. - * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(oldPath: PathLike, newPath: PathLike): Promise; - } - /** - * Renames the file from `oldPath` to `newPath`. Returns `undefined`. - * - * See the POSIX [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html) documentation for more details. - * @since v0.1.21 - */ - export function renameSync(oldPath: PathLike, newPath: PathLike): void; - /** - * Truncates the file. No arguments other than a possible exception are - * given to the completion callback. A file descriptor can also be passed as the - * first argument. In this case, `fs.ftruncate()` is called. - * - * ```js - * import { truncate } from 'node:fs'; - * // Assuming that 'path/file.txt' is a regular file. - * truncate('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was truncated'); - * }); - * ``` - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * - * See the POSIX [`truncate(2)`](http://man7.org/linux/man-pages/man2/truncate.2.html) documentation for more details. - * @since v0.8.6 - * @param [len=0] - */ - export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function truncate(path: PathLike, callback: NoParamCallback): void; - export namespace truncate { - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(path: PathLike, len?: number): Promise; - } - /** - * Truncates the file. Returns `undefined`. A file descriptor can also be - * passed as the first argument. In this case, `fs.ftruncateSync()` is called. - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * @since v0.8.6 - * @param [len=0] - */ - export function truncateSync(path: PathLike, len?: number): void; - /** - * Truncates the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`ftruncate(2)`](http://man7.org/linux/man-pages/man2/ftruncate.2.html) documentation for more detail. - * - * If the file referred to by the file descriptor was larger than `len` bytes, only - * the first `len` bytes will be retained in the file. - * - * For example, the following program retains only the first four bytes of the - * file: - * - * ```js - * import { open, close, ftruncate } from 'node:fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('temp.txt', 'r+', (err, fd) => { - * if (err) throw err; - * - * try { - * ftruncate(fd, 4, (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * if (err) throw err; - * } - * }); - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - */ - export function ftruncate(fd: number, callback: NoParamCallback): void; - export namespace ftruncate { - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(fd: number, len?: number): Promise; - } - /** - * Truncates the file descriptor. Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link ftruncate}. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncateSync(fd: number, len?: number): void; - /** - * Asynchronously changes owner and group of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace chown { - /** - * Asynchronous chown(2) - Change ownership of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Synchronously changes owner and group of a file. Returns `undefined`. - * This is the synchronous version of {@link chown}. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chownSync(path: PathLike, uid: number, gid: number): void; - /** - * Sets the owner of the file. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void; - export namespace fchown { - /** - * Asynchronous fchown(2) - Change ownership of a file. - * @param fd A file descriptor. - */ - function __promisify__(fd: number, uid: number, gid: number): Promise; - } - /** - * Sets the owner of the file. Returns `undefined`. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function fchownSync(fd: number, uid: number, gid: number): void; - /** - * Set the owner of the symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more detail. - */ - export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace lchown { - /** - * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Set the owner for the path. Returns `undefined`. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more details. - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function lchownSync(path: PathLike, uid: number, gid: number): void; - /** - * Changes the access and modification times of a file in the same way as {@link utimes}, with the difference that if the path refers to a symbolic - * link, then the link is not dereferenced: instead, the timestamps of the - * symbolic link itself are changed. - * - * No arguments other than a possible exception are given to the completion - * callback. - * @since v14.5.0, v12.19.0 - */ - export function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace lutimes { - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, - * with the difference that if the path refers to a symbolic link, then the link is not - * dereferenced: instead, the timestamps of the symbolic link itself are changed. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Change the file system timestamps of the symbolic link referenced by `path`. - * Returns `undefined`, or throws an exception when parameters are incorrect or - * the operation fails. This is the synchronous version of {@link lutimes}. - * @since v14.5.0, v12.19.0 - */ - export function lutimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Asynchronously changes the permissions of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * - * ```js - * import { chmod } from 'node:fs'; - * - * chmod('my_file.txt', 0o775, (err) => { - * if (err) throw err; - * console.log('The permissions for file "my_file.txt" have been changed!'); - * }); - * ``` - * @since v0.1.30 - */ - export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - export namespace chmod { - /** - * Asynchronous chmod(2) - Change permissions of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link chmod}. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * @since v0.6.7 - */ - export function chmodSync(path: PathLike, mode: Mode): void; - /** - * Sets the permissions on the file. No arguments other than a possible exception - * are given to the completion callback. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void; - export namespace fchmod { - /** - * Asynchronous fchmod(2) - Change permissions of a file. - * @param fd A file descriptor. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(fd: number, mode: Mode): Promise; - } - /** - * Sets the permissions on the file. Returns `undefined`. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmodSync(fd: number, mode: Mode): void; - /** - * Changes the permissions on a symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - /** @deprecated */ - export namespace lchmod { - /** - * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * Changes the permissions on a symbolic link. Returns `undefined`. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmodSync(path: PathLike, mode: Mode): void; - /** - * Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * - * {@link stat} follows symbolic links. Use {@link lstat} to look at the - * links themselves. - * - * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. - * Instead, user code should open/read/write the file directly and handle the - * error raised if the file is not available. - * - * To check if a file exists without manipulating it afterwards, {@link access} is recommended. - * - * For example, given the following directory structure: - * - * ```text - * - txtDir - * -- file.txt - * - app.js - * ``` - * - * The next program will check for the stats of the given paths: - * - * ```js - * import { stat } from 'node:fs'; - * - * const pathsToCheck = ['./txtDir', './txtDir/file.txt']; - * - * for (let i = 0; i < pathsToCheck.length; i++) { - * stat(pathsToCheck[i], (err, stats) => { - * console.log(stats.isDirectory()); - * console.log(stats); - * }); - * } - * ``` - * - * The resulting output will resemble: - * - * ```console - * true - * Stats { - * dev: 16777220, - * mode: 16877, - * nlink: 3, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214262, - * size: 96, - * blocks: 0, - * atimeMs: 1561174653071.963, - * mtimeMs: 1561174614583.3518, - * ctimeMs: 1561174626623.5366, - * birthtimeMs: 1561174126937.2893, - * atime: 2019-06-22T03:37:33.072Z, - * mtime: 2019-06-22T03:36:54.583Z, - * ctime: 2019-06-22T03:37:06.624Z, - * birthtime: 2019-06-22T03:28:46.937Z - * } - * false - * Stats { - * dev: 16777220, - * mode: 33188, - * nlink: 1, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214074, - * size: 8, - * blocks: 8, - * atimeMs: 1561174616618.8555, - * mtimeMs: 1561174614584, - * ctimeMs: 1561174614583.8145, - * birthtimeMs: 1561174007710.7478, - * atime: 2019-06-22T03:36:56.619Z, - * mtime: 2019-06-22T03:36:54.584Z, - * ctime: 2019-06-22T03:36:54.584Z, - * birthtime: 2019-06-22T03:26:47.711Z - * } - * ``` - * @since v0.0.2 - */ - export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function stat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function stat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function stat( - path: PathLike, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace stat { - /** - * Asynchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - export interface StatSyncFn extends Function { - (path: PathLike, options?: undefined): Stats; - ( - path: PathLike, - options?: StatSyncOptions & { - bigint?: false | undefined; - throwIfNoEntry: false; - }, - ): Stats | undefined; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: true; - throwIfNoEntry: false; - }, - ): BigIntStats | undefined; - ( - path: PathLike, - options?: StatSyncOptions & { - bigint?: false | undefined; - }, - ): Stats; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: true; - }, - ): BigIntStats; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: boolean; - throwIfNoEntry?: false | undefined; - }, - ): Stats | BigIntStats; - (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined; - } - /** - * Synchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const statSync: StatSyncFn; - /** - * Invokes the callback with the `fs.Stats` for the file descriptor. - * - * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. - * @since v0.1.95 - */ - export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function fstat( - fd: number, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function fstat( - fd: number, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function fstat( - fd: number, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace fstat { - /** - * Asynchronous fstat(2) - Get file status. - * @param fd A file descriptor. - */ - function __promisify__( - fd: number, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - fd: number, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(fd: number, options?: StatOptions): Promise; - } - /** - * Retrieves the `fs.Stats` for the file descriptor. - * - * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. - * @since v0.1.95 - */ - export function fstatSync( - fd: number, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Stats; - export function fstatSync( - fd: number, - options: StatOptions & { - bigint: true; - }, - ): BigIntStats; - export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats; - /** - * Retrieves the `fs.Stats` for the symbolic link referred to by the path. - * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic - * link, then the link itself is stat-ed, not the file that it refers to. - * - * See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details. - * @since v0.1.30 - */ - export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function lstat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function lstat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function lstat( - path: PathLike, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace lstat { - /** - * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - /** - * Asynchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which - * contains `path`. The callback gets two arguments `(err, stats)` where `stats`is an `fs.StatFs` object. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * @since v19.6.0, v18.15.0 - * @param path A path to an existing file or directory on the file system to be queried. - */ - export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void; - export function statfs( - path: PathLike, - options: - | (StatFsOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void, - ): void; - export function statfs( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void, - ): void; - export function statfs( - path: PathLike, - options: StatFsOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void, - ): void; - export namespace statfs { - /** - * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an object. - * @param path A path to an existing file or directory on the file system to be queried. - */ - function __promisify__( - path: PathLike, - options?: StatFsOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatFsOptions): Promise; - } - /** - * Synchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which - * contains `path`. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * @since v19.6.0, v18.15.0 - * @param path A path to an existing file or directory on the file system to be queried. - */ - export function statfsSync( - path: PathLike, - options?: StatFsOptions & { - bigint?: false | undefined; - }, - ): StatsFs; - export function statfsSync( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - ): BigIntStatsFs; - export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs; - /** - * Synchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const lstatSync: StatSyncFn; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than - * a possible - * exception are given to the completion callback. - * @since v0.1.31 - */ - export function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace link { - /** - * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. - * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(existingPath: PathLike, newPath: PathLike): Promise; - } - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.31 - */ - export function linkSync(existingPath: PathLike, newPath: PathLike): void; - /** - * Creates the link called `path` pointing to `target`. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`symlink(2)`](http://man7.org/linux/man-pages/man2/symlink.2.html) documentation for more details. - * - * The `type` argument is only available on Windows and ignored on other platforms. - * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is - * not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`. - * If the `target` does not exist, `'file'` will be used. Windows junction points - * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. Junction - * points on NTFS volumes can only point to directories. - * - * Relative targets are relative to the link's parent directory. - * - * ```js - * import { symlink } from 'node:fs'; - * - * symlink('./mew', './mewtwo', callback); - * ``` - * - * The above example creates a symbolic link `mewtwo` which points to `mew` in the - * same directory: - * - * ```bash - * $ tree . - * . - * ├── mew - * └── mewtwo -> ./mew - * ``` - * @since v0.1.31 - * @param [type='null'] - */ - export function symlink( - target: PathLike, - path: PathLike, - type: symlink.Type | undefined | null, - callback: NoParamCallback, - ): void; - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - */ - export function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void; - export namespace symlink { - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). - * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. - */ - function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise; - type Type = "dir" | "file" | "junction"; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link symlink}. - * @since v0.1.31 - * @param [type='null'] - */ - export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void; - /** - * Reads the contents of the symbolic link referred to by `path`. The callback gets - * two arguments `(err, linkString)`. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path passed to the callback. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlink( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: NonSharedBuffer) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readlink( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, - ): void; - export namespace readlink { - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - } - /** - * Returns the symbolic link's string value. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - /** - * Asynchronously computes the canonical pathname by resolving `.`, `..`, and - * symbolic links. - * - * A canonical pathname is not necessarily unique. Hard links and bind mounts can - * expose a file system entity through many pathnames. - * - * This function behaves like [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html), with some exceptions: - * - * 1. No case conversion is performed on case-insensitive file systems. - * 2. The maximum number of symbolic links is platform-independent and generally - * (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports. - * - * The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd` to resolve relative paths. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * If `path` resolves to a socket or a pipe, the function will return a system - * dependent name for that object. - * @since v0.1.31 - */ - export function realpath( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function realpath( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - export namespace realpath { - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html). - * - * The `callback` gets two arguments `(err, resolvedPath)`. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v9.2.0 - */ - function native( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - function native( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, - ): void; - function native( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, - ): void; - function native( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - } - /** - * Returns the resolved pathname. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link realpath}. - * @since v0.1.31 - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - export namespace realpathSync { - function native(path: PathLike, options?: EncodingOption): string; - function native(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - function native(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - } - /** - * Asynchronously removes a file or symbolic link. No arguments other than a - * possible exception are given to the completion callback. - * - * ```js - * import { unlink } from 'node:fs'; - * // Assuming that 'path/file.txt' is a regular file. - * unlink('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was deleted'); - * }); - * ``` - * - * `fs.unlink()` will not work on a directory, empty or otherwise. To remove a - * directory, use {@link rmdir}. - * - * See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more details. - * @since v0.0.2 - */ - export function unlink(path: PathLike, callback: NoParamCallback): void; - export namespace unlink { - /** - * Asynchronous unlink(2) - delete a name and possibly the file it refers to. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Synchronous [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html). Returns `undefined`. - * @since v0.1.21 - */ - export function unlinkSync(path: PathLike): void; - export interface RmDirOptions { - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * @deprecated since v14.14.0 In future versions of Node.js and will trigger a warning - * `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file. - * Use `fs.rm(path, { recursive: true, force: true })` instead. - * - * If `true`, perform a recursive directory removal. In - * recursive mode, operations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). No arguments other than a possible exception are given - * to the completion callback. - * - * Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on - * Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rm} with options `{ recursive: true, force: true }`. - * @since v0.0.2 - */ - export function rmdir(path: PathLike, callback: NoParamCallback): void; - export function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void; - export namespace rmdir { - /** - * Asynchronous rmdir(2) - delete a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, options?: RmDirOptions): Promise; - } - /** - * Synchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). Returns `undefined`. - * - * Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error - * on Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rmSync} with options `{ recursive: true, force: true }`. - * @since v0.1.21 - */ - export function rmdirSync(path: PathLike, options?: RmDirOptions): void; - export interface RmOptions { - /** - * When `true`, exceptions will be ignored if `path` does not exist. - * @default false - */ - force?: boolean | undefined; - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * If `true`, perform a recursive directory removal. In - * recursive mode, operations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). No arguments other than a possible exception are given to the - * completion callback. - * @since v14.14.0 - */ - export function rm(path: PathLike, callback: NoParamCallback): void; - export function rm(path: PathLike, options: RmOptions, callback: NoParamCallback): void; - export namespace rm { - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). - */ - function __promisify__(path: PathLike, options?: RmOptions): Promise; - } - /** - * Synchronously removes files and directories (modeled on the standard POSIX `rm` utility). Returns `undefined`. - * @since v14.14.0 - */ - export function rmSync(path: PathLike, options?: RmOptions): void; - export interface MakeDirectoryOptions { - /** - * Indicates whether parent folders should be created. - * If a folder was created, the path to the first created folder will be returned. - * @default false - */ - recursive?: boolean | undefined; - /** - * A file mode. If a string is passed, it is parsed as an octal integer. If not specified - * @default 0o777 - */ - mode?: Mode | undefined; - } - /** - * Asynchronously creates a directory. - * - * The callback is given a possible exception and, if `recursive` is `true`, the - * first directory path created, `(err[, path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was - * created (for instance, if it was previously created). - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fs.mkdir()` when `path` is a directory that - * exists results in an error only - * when `recursive` is false. If `recursive` is false and the directory exists, - * an `EEXIST` error occurs. - * - * ```js - * import { mkdir } from 'node:fs'; - * - * // Create ./tmp/a/apple, regardless of whether ./tmp and ./tmp/a exist. - * mkdir('./tmp/a/apple', { recursive: true }, (err) => { - * if (err) throw err; - * }); - * ``` - * - * On Windows, using `fs.mkdir()` on the root directory even with recursion will - * result in an error: - * - * ```js - * import { mkdir } from 'node:fs'; - * - * mkdir('/', { recursive: true }, (err) => { - * // => [Error: EPERM: operation not permitted, mkdir 'C:\'] - * }); - * ``` - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.8 - */ - export function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - callback: (err: NodeJS.ErrnoException | null, path?: string) => void, - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir( - path: PathLike, - options: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null - | undefined, - callback: NoParamCallback, - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir( - path: PathLike, - options: Mode | MakeDirectoryOptions | null | undefined, - callback: (err: NodeJS.ErrnoException | null, path?: string) => void, - ): void; - /** - * Asynchronous mkdir(2) - create a directory with a mode of `0o777`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function mkdir(path: PathLike, callback: NoParamCallback): void; - export namespace mkdir { - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options?: Mode | MakeDirectoryOptions | null, - ): Promise; - } - /** - * Synchronously creates a directory. Returns `undefined`, or if `recursive` is `true`, the first directory path created. - * This is the synchronous version of {@link mkdir}. - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.21 - */ - export function mkdirSync( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): string | undefined; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): void; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions | null): string | undefined; - /** - * Creates a unique temporary directory. - * - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. Due to platform - * inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms, - * notably the BSDs, can return more than six random characters, and replace - * trailing `X` characters in `prefix` with random characters. - * - * The created directory path is passed as a string to the callback's second - * parameter. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'node:fs'; - * import { join } from 'node:path'; - * import { tmpdir } from 'node:os'; - * - * mkdtemp(join(tmpdir(), 'foo-'), (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2 - * }); - * ``` - * - * The `fs.mkdtemp()` method will append the six randomly selected characters - * directly to the `prefix` string. For instance, given a directory `/tmp`, if the - * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator - * (`import { sep } from 'node:node:path'`). - * - * ```js - * import { tmpdir } from 'node:os'; - * import { mkdtemp } from 'node:fs'; - * - * // The parent directory for the new temporary directory - * const tmpDir = tmpdir(); - * - * // This method is *INCORRECT*: - * mkdtemp(tmpDir, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmpabc123`. - * // A new temporary directory is created at the file system root - * // rather than *within* the /tmp directory. - * }); - * - * // This method is *CORRECT*: - * import { sep } from 'node:path'; - * mkdtemp(`${tmpDir}${sep}`, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmp/abc123`. - * // A new temporary directory is created within - * // the /tmp directory. - * }); - * ``` - * @since v5.10.0 - */ - export function mkdtemp( - prefix: string, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: string) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp( - prefix: string, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: NonSharedBuffer) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp( - prefix: string, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - */ - export function mkdtemp( - prefix: string, - callback: (err: NodeJS.ErrnoException | null, folder: string) => void, - ): void; - export namespace mkdtemp { - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - } - /** - * Returns the created directory path. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link mkdtemp}. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * @since v5.10.0 - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string | NonSharedBuffer; - /** - * Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames passed to the callback. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects. - * @since v0.1.8 - */ - export function readdir( - path: PathLike, - options: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - callback: (err: NodeJS.ErrnoException | null, files: NonSharedBuffer[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[] | NonSharedBuffer[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readdir( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - export function readdir( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, - ): void; - export namespace readdir { - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options: - | "buffer" - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent - */ - function __promisify__( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - function __promisify__( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise[]>; - } - /** - * Reads the contents of the directory. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames returned. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects. - * @since v0.1.21 - */ - export function readdirSync( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | null, - ): string[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - ): NonSharedBuffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): string[] | NonSharedBuffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdirSync( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Dirent[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - export function readdirSync( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Dirent[]; - /** - * Closes the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * Calling `fs.close()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.0.2 - */ - export function close(fd: number, callback?: NoParamCallback): void; - export namespace close { - /** - * Asynchronous close(2) - close a file descriptor. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Closes the file descriptor. Returns `undefined`. - * - * Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.1.21 - */ - export function closeSync(fd: number): void; - /** - * Asynchronous file open. See the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more details. - * - * `mode` sets the file mode (permission and sticky bits), but only if the file was - * created. On Windows, only the write permission can be manipulated; see {@link chmod}. - * - * The callback gets two arguments `(err, fd)`. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * - * Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc. - * @since v0.0.2 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] - */ - export function open( - path: PathLike, - flags: OpenMode | undefined, - mode: Mode | undefined | null, - callback: (err: NodeJS.ErrnoException | null, fd: number) => void, - ): void; - /** - * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param [flags='r'] See `support of file system `flags``. - */ - export function open( - path: PathLike, - flags: OpenMode | undefined, - callback: (err: NodeJS.ErrnoException | null, fd: number) => void, - ): void; - /** - * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; - export namespace open { - /** - * Asynchronous open(2) - open and possibly create a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. - */ - function __promisify__(path: PathLike, flags: OpenMode, mode?: Mode | null): Promise; - } - /** - * Returns an integer representing the file descriptor. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link open}. - * @since v0.1.21 - * @param [flags='r'] - * @param [mode=0o666] - */ - export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time in seconds, `Date`s, or a numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. - * @since v0.4.2 - */ - export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace utimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied path. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link utimes}. - * @since v0.4.2 - */ - export function utimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Change the file system timestamps of the object referenced by the supplied file - * descriptor. See {@link utimes}. - * @since v0.4.2 - */ - export function futimes(fd: number, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace futimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(fd: number, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Synchronous version of {@link futimes}. Returns `undefined`. - * @since v0.4.2 - */ - export function futimesSync(fd: number, atime: TimeLike, mtime: TimeLike): void; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other - * than a possible exception are given to the completion callback. - * @since v0.1.96 - */ - export function fsync(fd: number, callback: NoParamCallback): void; - export namespace fsync { - /** - * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.96 - */ - export function fsyncSync(fd: number): void; - export interface WriteOptions { - /** - * @default 0 - */ - offset?: number | undefined; - /** - * @default `buffer.byteLength - offset` - */ - length?: number | undefined; - /** - * @default null - */ - position?: number | null | undefined; - } - /** - * Write `buffer` to the file specified by `fd`. - * - * `offset` determines the part of the buffer to be written, and `length` is - * an integer specifying the number of bytes to write. - * - * `position` refers to the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html). - * - * The callback will be given three arguments `(err, bytesWritten, buffer)` where `bytesWritten` specifies how many _bytes_ were written from `buffer`. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesWritten` and `buffer` properties. - * - * It is unsafe to use `fs.write()` multiple times on the same file without waiting - * for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v0.0.2 - * @param [offset=0] - * @param [length=buffer.byteLength - offset] - * @param [position='null'] - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - position: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - */ - export function write( - fd: number, - buffer: TBuffer, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param options An object with the following properties: - * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. - * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - export function write( - fd: number, - buffer: TBuffer, - options: WriteOptions, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function write( - fd: number, - string: string, - position: number | undefined | null, - encoding: BufferEncoding | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - export function write( - fd: number, - string: string, - position: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - */ - export function write( - fd: number, - string: string, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - export namespace write { - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - function __promisify__( - fd: number, - buffer?: TBuffer, - offset?: number, - length?: number, - position?: number | null, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param options An object with the following properties: - * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. - * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - function __promisify__( - fd: number, - buffer?: TBuffer, - options?: WriteOptions, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - function __promisify__( - fd: number, - string: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link write}. - * @since v0.1.21 - * @param [offset=0] - * @param [length=buffer.byteLength - offset] - * @param [position='null'] - * @return The number of bytes written. - */ - export function writeSync( - fd: number, - buffer: NodeJS.ArrayBufferView, - offset?: number | null, - length?: number | null, - position?: number | null, - ): number; - /** - * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function writeSync( - fd: number, - string: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): number; - export type ReadPosition = number | bigint; - export interface ReadOptions { - /** - * @default 0 - */ - offset?: number | undefined; - /** - * @default `length of buffer` - */ - length?: number | undefined; - /** - * @default null - */ - position?: ReadPosition | null | undefined; - } - export interface ReadOptionsWithBuffer extends ReadOptions { - buffer?: T | undefined; - } - /** @deprecated Use `ReadOptions` instead. */ - // TODO: remove in future major - export interface ReadSyncOptions extends ReadOptions {} - /** @deprecated Use `ReadOptionsWithBuffer` instead. */ - // TODO: remove in future major - export interface ReadAsyncOptions extends ReadOptionsWithBuffer {} - /** - * Read data from the file specified by `fd`. - * - * The callback is given the three arguments, `(err, bytesRead, buffer)`. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffer` properties. - * @since v0.0.2 - * @param buffer The buffer that the data will be written to. - * @param offset The position in `buffer` to write the data to. - * @param length The number of bytes to read. - * @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If - * `position` is an integer, the file position will be unchanged. - */ - export function read( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: ReadPosition | null, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - /** - * Similar to the above `fs.read` function, this version takes an optional `options` object. - * If not otherwise specified in an `options` object, - * `buffer` defaults to `Buffer.alloc(16384)`, - * `offset` defaults to `0`, - * `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0 - * `position` defaults to `null` - * @since v12.17.0, 13.11.0 - */ - export function read( - fd: number, - options: ReadOptionsWithBuffer, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - buffer: TBuffer, - options: ReadOptions, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - buffer: TBuffer, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NonSharedBuffer) => void, - ): void; - export namespace read { - /** - * @param fd A file descriptor. - * @param buffer The buffer that the data will be written to. - * @param offset The offset in the buffer at which to start writing. - * @param length The number of bytes to read. - * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. - */ - function __promisify__( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: number | null, - ): Promise<{ - bytesRead: number; - buffer: TBuffer; - }>; - function __promisify__( - fd: number, - options: ReadOptionsWithBuffer, - ): Promise<{ - bytesRead: number; - buffer: TBuffer; - }>; - function __promisify__(fd: number): Promise<{ - bytesRead: number; - buffer: NonSharedBuffer; - }>; - } - /** - * Returns the number of `bytesRead`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link read}. - * @since v0.1.21 - * @param [position='null'] - */ - export function readSync( - fd: number, - buffer: NodeJS.ArrayBufferView, - offset: number, - length: number, - position: ReadPosition | null, - ): number; - /** - * Similar to the above `fs.readSync` function, this version takes an optional `options` object. - * If no `options` object is specified, it will default with the above values. - */ - export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, opts?: ReadOptions): number; - /** - * Asynchronously reads the entire contents of a file. - * - * ```js - * import { readFile } from 'node:fs'; - * - * readFile('/etc/passwd', (err, data) => { - * if (err) throw err; - * console.log(data); - * }); - * ``` - * - * The callback is passed two arguments `(err, data)`, where `data` is the - * contents of the file. - * - * If no encoding is specified, then the raw buffer is returned. - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { readFile } from 'node:fs'; - * - * readFile('/etc/passwd', 'utf8', callback); - * ``` - * - * When the path is a directory, the behavior of `fs.readFile()` and {@link readFileSync} is platform-specific. On macOS, Linux, and Windows, an - * error will be returned. On FreeBSD, a representation of the directory's contents - * will be returned. - * - * ```js - * import { readFile } from 'node:fs'; - * - * // macOS, Linux, and Windows - * readFile('', (err, data) => { - * // => [Error: EISDIR: illegal operation on a directory, read ] - * }); - * - * // FreeBSD - * readFile('', (err, data) => { - * // => null, - * }); - * ``` - * - * It is possible to abort an ongoing request using an `AbortSignal`. If a - * request is aborted the callback is called with an `AbortError`: - * - * ```js - * import { readFile } from 'node:fs'; - * - * const controller = new AbortController(); - * const signal = controller.signal; - * readFile(fileInfo[0].name, { signal }, (err, buf) => { - * // ... - * }); - * // When you want to abort the request - * controller.abort(); - * ``` - * - * The `fs.readFile()` function buffers the entire file. To minimize memory costs, - * when possible prefer streaming via `fs.createReadStream()`. - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * @since v0.1.29 - * @param path filename or file descriptor - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding?: null | undefined; - flag?: string | undefined; - } & Abortable) - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding: BufferEncoding; - flag?: string | undefined; - } & Abortable) - | BufferEncoding, - callback: (err: NodeJS.ErrnoException | null, data: string) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | (ObjectEncodingOptions & { - flag?: string | undefined; - } & Abortable) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - */ - export function readFile( - path: PathOrFileDescriptor, - callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, - ): void; - export namespace readFile { - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null, - ): Promise; - } - /** - * Returns the contents of the `path`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readFile}. - * - * If the `encoding` option is specified then this function returns a - * string. Otherwise it returns a buffer. - * - * Similar to {@link readFile}, when the path is a directory, the behavior of `fs.readFileSync()` is platform-specific. - * - * ```js - * import { readFileSync } from 'node:fs'; - * - * // macOS, Linux, and Windows - * readFileSync(''); - * // => [Error: EISDIR: illegal operation on a directory, read ] - * - * // FreeBSD - * readFileSync(''); // => - * ``` - * @since v0.1.8 - * @param path filename or file descriptor - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null, - ): NonSharedBuffer; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding, - ): string; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null, - ): string | NonSharedBuffer; - export type WriteFileOptions = - | ( - & ObjectEncodingOptions - & Abortable - & { - mode?: Mode | undefined; - flag?: string | undefined; - flush?: boolean | undefined; - } - ) - | BufferEncoding - | null; - /** - * When `file` is a filename, asynchronously writes data to the file, replacing the - * file if it already exists. `data` can be a string or a buffer. - * - * When `file` is a file descriptor, the behavior is similar to calling `fs.write()` directly (which is recommended). See the notes below on using - * a file descriptor. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { writeFile } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, (err) => { - * if (err) throw err; - * console.log('The file has been saved!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { writeFile } from 'node:fs'; - * - * writeFile('message.txt', 'Hello Node.js', 'utf8', callback); - * ``` - * - * It is unsafe to use `fs.writeFile()` multiple times on the same file without - * waiting for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * Similarly to `fs.readFile` \- `fs.writeFile` is a convenience method that - * performs multiple `write` calls internally to write the buffer passed to it. - * For performance sensitive code consider using {@link createWriteStream}. - * - * It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, { signal }, (err) => { - * // When a request is aborted - the callback is called with an AbortError - * }); - * // When the request should be aborted - * controller.abort(); - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFile( - file: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options: WriteFileOptions, - callback: NoParamCallback, - ): void; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function writeFile( - path: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - callback: NoParamCallback, - ): void; - export namespace writeFile { - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'w'` is used. - */ - function __promisify__( - path: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options?: WriteFileOptions, - ): Promise; - } - /** - * Returns `undefined`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writeFile}. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFileSync( - file: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options?: WriteFileOptions, - ): void; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { appendFile } from 'node:fs'; - * - * appendFile('message.txt', 'data to append', (err) => { - * if (err) throw err; - * console.log('The "data to append" was appended to file!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFile } from 'node:fs'; - * - * appendFile('message.txt', 'data to append', 'utf8', callback); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { open, close, appendFile } from 'node:fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('message.txt', 'a', (err, fd) => { - * if (err) throw err; - * - * try { - * appendFile(fd, 'data to append', 'utf8', (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * throw err; - * } - * }); - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFile( - path: PathOrFileDescriptor, - data: string | Uint8Array, - options: WriteFileOptions, - callback: NoParamCallback, - ): void; - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, callback: NoParamCallback): void; - export namespace appendFile { - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'a'` is used. - */ - function __promisify__( - file: PathOrFileDescriptor, - data: string | Uint8Array, - options?: WriteFileOptions, - ): Promise; - } - /** - * Synchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { appendFileSync } from 'node:fs'; - * - * try { - * appendFileSync('message.txt', 'data to append'); - * console.log('The "data to append" was appended to file!'); - * } catch (err) { - * // Handle the error - * } - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFileSync } from 'node:fs'; - * - * appendFileSync('message.txt', 'data to append', 'utf8'); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { openSync, closeSync, appendFileSync } from 'node:fs'; - * - * let fd; - * - * try { - * fd = openSync('message.txt', 'a'); - * appendFileSync(fd, 'data to append', 'utf8'); - * } catch (err) { - * // Handle the error - * } finally { - * if (fd !== undefined) - * closeSync(fd); - * } - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFileSync( - path: PathOrFileDescriptor, - data: string | Uint8Array, - options?: WriteFileOptions, - ): void; - /** - * Watch for changes on `filename`. The callback `listener` will be called each - * time the file is accessed. - * - * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates - * whether the process should continue to run as long as files are being watched. - * The `options` object may specify an `interval` property indicating how often the - * target should be polled in milliseconds. - * - * The `listener` gets two arguments the current stat object and the previous - * stat object: - * - * ```js - * import { watchFile } from 'fs'; - * - * watchFile('message.text', (curr, prev) => { - * console.log(`the current mtime is: ${curr.mtime}`); - * console.log(`the previous mtime was: ${prev.mtime}`); - * }); - * ``` - * - * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, - * the numeric values in these objects are specified as `BigInt`s. - * - * To be notified when the file was modified, not just accessed, it is necessary - * to compare `curr.mtimeMs` and `prev.mtimeMs`. - * - * When an `fs.watchFile` operation results in an `ENOENT` error, it - * will invoke the listener once, with all the fields zeroed (or, for dates, the - * Unix Epoch). If the file is created later on, the listener will be called - * again, with the latest stat objects. This is a change in functionality since - * v0.10. - * - * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. - * - * When a file being watched by `fs.watchFile()` disappears and reappears, - * then the contents of `previous` in the second callback event (the file's - * reappearance) will be the same as the contents of `previous` in the first - * callback event (its disappearance). - * - * This happens when: - * - * * the file is deleted, followed by a restore - * * the file is renamed and then renamed a second time back to its original name - * @since v0.1.31 - */ - export interface WatchFileOptions { - bigint?: boolean | undefined; - persistent?: boolean | undefined; - interval?: number | undefined; - } - /** - * Watch for changes on `filename`. The callback `listener` will be called each - * time the file is accessed. - * - * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates - * whether the process should continue to run as long as files are being watched. - * The `options` object may specify an `interval` property indicating how often the - * target should be polled in milliseconds. - * - * The `listener` gets two arguments the current stat object and the previous - * stat object: - * - * ```js - * import { watchFile } from 'node:fs'; - * - * watchFile('message.text', (curr, prev) => { - * console.log(`the current mtime is: ${curr.mtime}`); - * console.log(`the previous mtime was: ${prev.mtime}`); - * }); - * ``` - * - * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, - * the numeric values in these objects are specified as `BigInt`s. - * - * To be notified when the file was modified, not just accessed, it is necessary - * to compare `curr.mtimeMs` and `prev.mtimeMs`. - * - * When an `fs.watchFile` operation results in an `ENOENT` error, it - * will invoke the listener once, with all the fields zeroed (or, for dates, the - * Unix Epoch). If the file is created later on, the listener will be called - * again, with the latest stat objects. This is a change in functionality since - * v0.10. - * - * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. - * - * When a file being watched by `fs.watchFile()` disappears and reappears, - * then the contents of `previous` in the second callback event (the file's - * reappearance) will be the same as the contents of `previous` in the first - * callback event (its disappearance). - * - * This happens when: - * - * * the file is deleted, followed by a restore - * * the file is renamed and then renamed a second time back to its original name - * @since v0.1.31 - */ - export function watchFile( - filename: PathLike, - options: - | (WatchFileOptions & { - bigint?: false | undefined; - }) - | undefined, - listener: StatsListener, - ): StatWatcher; - export function watchFile( - filename: PathLike, - options: - | (WatchFileOptions & { - bigint: true; - }) - | undefined, - listener: BigIntStatsListener, - ): StatWatcher; - /** - * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher; - /** - * Stop watching for changes on `filename`. If `listener` is specified, only that - * particular listener is removed. Otherwise, _all_ listeners are removed, - * effectively stopping watching of `filename`. - * - * Calling `fs.unwatchFile()` with a filename that is not being watched is a - * no-op, not an error. - * - * Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible. - * @since v0.1.31 - * @param listener Optional, a listener previously attached using `fs.watchFile()` - */ - export function unwatchFile(filename: PathLike, listener?: StatsListener): void; - export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void; - export interface WatchOptions extends Abortable { - encoding?: BufferEncoding | "buffer" | undefined; - persistent?: boolean | undefined; - recursive?: boolean | undefined; - } - export type WatchEventType = "rename" | "change"; - export type WatchListener = (event: WatchEventType, filename: T | null) => void; - export type StatsListener = (curr: Stats, prev: Stats) => void; - export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void; - /** - * Watch for changes on `filename`, where `filename` is either a file or a - * directory. - * - * The second argument is optional. If `options` is provided as a string, it - * specifies the `encoding`. Otherwise `options` should be passed as an object. - * - * The listener callback gets two arguments `(eventType, filename)`. `eventType`is either `'rename'` or `'change'`, and `filename` is the name of the file - * which triggered the event. - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of `eventType`. - * - * If a `signal` is passed, aborting the corresponding AbortController will close - * the returned `fs.FSWatcher`. - * @since v0.5.10 - * @param listener - */ - export function watch( - filename: PathLike, - options: - | (WatchOptions & { - encoding: "buffer"; - }) - | "buffer", - listener?: WatchListener, - ): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - export function watch( - filename: PathLike, - options?: WatchOptions | BufferEncoding | null, - listener?: WatchListener, - ): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - export function watch( - filename: PathLike, - options: WatchOptions | string, - listener?: WatchListener, - ): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function watch(filename: PathLike, listener?: WatchListener): FSWatcher; - /** - * Test whether or not the given path exists by checking with the file system. - * Then call the `callback` argument with either true or false: - * - * ```js - * import { exists } from 'node:fs'; - * - * exists('/etc/passwd', (e) => { - * console.log(e ? 'it exists' : 'no passwd!'); - * }); - * ``` - * - * **The parameters for this callback are not consistent with other Node.js** - * **callbacks.** Normally, the first parameter to a Node.js callback is an `err` parameter, optionally followed by other parameters. The `fs.exists()` callback - * has only one boolean parameter. This is one reason `fs.access()` is recommended - * instead of `fs.exists()`. - * - * Using `fs.exists()` to check for the existence of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file does not exist. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { exists, open, close } from 'node:fs'; - * - * exists('myfile', (e) => { - * if (e) { - * console.error('myfile already exists'); - * } else { - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { open, close, exists } from 'node:fs'; - * - * exists('myfile', (e) => { - * if (e) { - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } else { - * console.error('myfile does not exist'); - * } - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for existence and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the existence of a file only if the file won't be - * used directly, for example when its existence is a signal from another - * process. - * @since v0.0.2 - * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead. - */ - export function exists(path: PathLike, callback: (exists: boolean) => void): void; - /** @deprecated */ - export namespace exists { - /** - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Returns `true` if the path exists, `false` otherwise. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link exists}. - * - * `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback` parameter to `fs.exists()` accepts parameters that are inconsistent with other - * Node.js callbacks. `fs.existsSync()` does not use a callback. - * - * ```js - * import { existsSync } from 'node:fs'; - * - * if (existsSync('/etc/passwd')) - * console.log('The path exists.'); - * ``` - * @since v0.1.21 - */ - export function existsSync(path: PathLike): boolean; - export namespace constants { - // File Access Constants - /** Constant for fs.access(). File is visible to the calling process. */ - const F_OK: number; - /** Constant for fs.access(). File can be read by the calling process. */ - const R_OK: number; - /** Constant for fs.access(). File can be written by the calling process. */ - const W_OK: number; - /** Constant for fs.access(). File can be executed by the calling process. */ - const X_OK: number; - // File Copy Constants - /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ - const COPYFILE_EXCL: number; - /** - * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. - */ - const COPYFILE_FICLONE: number; - /** - * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then the operation will fail with an error. - */ - const COPYFILE_FICLONE_FORCE: number; - // File Open Constants - /** Constant for fs.open(). Flag indicating to open a file for read-only access. */ - const O_RDONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for write-only access. */ - const O_WRONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for read-write access. */ - const O_RDWR: number; - /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */ - const O_CREAT: number; - /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */ - const O_EXCL: number; - /** - * Constant for fs.open(). Flag indicating that if path identifies a terminal device, - * opening the path shall not cause that terminal to become the controlling terminal for the process - * (if the process does not already have one). - */ - const O_NOCTTY: number; - /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */ - const O_TRUNC: number; - /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */ - const O_APPEND: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */ - const O_DIRECTORY: number; - /** - * constant for fs.open(). - * Flag indicating reading accesses to the file system will no longer result in - * an update to the atime information associated with the file. - * This flag is available on Linux operating systems only. - */ - const O_NOATIME: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */ - const O_NOFOLLOW: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ - const O_SYNC: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ - const O_DSYNC: number; - /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ - const O_SYMLINK: number; - /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */ - const O_DIRECT: number; - /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */ - const O_NONBLOCK: number; - // File Type Constants - /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */ - const S_IFMT: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */ - const S_IFREG: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */ - const S_IFDIR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */ - const S_IFCHR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */ - const S_IFBLK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */ - const S_IFIFO: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */ - const S_IFLNK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */ - const S_IFSOCK: number; - // File Mode Constants - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */ - const S_IRWXU: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */ - const S_IRUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */ - const S_IWUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */ - const S_IXUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */ - const S_IRWXG: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */ - const S_IRGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */ - const S_IWGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */ - const S_IXGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */ - const S_IRWXO: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */ - const S_IROTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */ - const S_IWOTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ - const S_IXOTH: number; - /** - * When set, a memory file mapping is used to access the file. This flag - * is available on Windows operating systems only. On other operating systems, - * this flag is ignored. - */ - const UV_FS_O_FILEMAP: number; - } - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` - * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * The final argument, `callback`, is a callback function that is invoked with - * a possible error argument. If any of the accessibility checks fail, the error - * argument will be an `Error` object. The following examples check if `package.json` exists, and if it is readable or writable. - * - * ```js - * import { access, constants } from 'node:fs'; - * - * const file = 'package.json'; - * - * // Check if the file exists in the current directory. - * access(file, constants.F_OK, (err) => { - * console.log(`${file} ${err ? 'does not exist' : 'exists'}`); - * }); - * - * // Check if the file is readable. - * access(file, constants.R_OK, (err) => { - * console.log(`${file} ${err ? 'is not readable' : 'is readable'}`); - * }); - * - * // Check if the file is writable. - * access(file, constants.W_OK, (err) => { - * console.log(`${file} ${err ? 'is not writable' : 'is writable'}`); - * }); - * - * // Check if the file is readable and writable. - * access(file, constants.R_OK | constants.W_OK, (err) => { - * console.log(`${file} ${err ? 'is not' : 'is'} readable and writable`); - * }); - * ``` - * - * Do not use `fs.access()` to check for the accessibility of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file is not accessible. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'node:fs'; - * - * access('myfile', (err) => { - * if (!err) { - * console.error('myfile already exists'); - * return; - * } - * - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'node:fs'; - * access('myfile', (err) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for accessibility and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the accessibility of a file only if the file will not be - * used directly, for example when its accessibility is a signal from another - * process. - * - * On Windows, access-control policies (ACLs) on a directory may limit access to - * a file or directory. The `fs.access()` function, however, does not check the - * ACL and therefore may report that a path is accessible even if the ACL restricts - * the user from reading or writing to it. - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function access(path: PathLike, callback: NoParamCallback): void; - export namespace access { - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike, mode?: number): Promise; - } - /** - * Synchronously tests a user's permissions for the file or directory specified - * by `path`. The `mode` argument is an optional integer that specifies the - * accessibility checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and - * `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise, - * the method will return `undefined`. - * - * ```js - * import { accessSync, constants } from 'node:fs'; - * - * try { - * accessSync('etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can read/write'); - * } catch (err) { - * console.error('no access!'); - * } - * ``` - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function accessSync(path: PathLike, mode?: number): void; - interface StreamOptions { - flags?: string | undefined; - encoding?: BufferEncoding | undefined; - fd?: number | promises.FileHandle | undefined; - mode?: number | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - signal?: AbortSignal | null | undefined; - highWaterMark?: number | undefined; - } - interface FSImplementation { - open?: (...args: any[]) => any; - close?: (...args: any[]) => any; - } - interface CreateReadStreamFSImplementation extends FSImplementation { - read: (...args: any[]) => any; - } - interface CreateWriteStreamFSImplementation extends FSImplementation { - write: (...args: any[]) => any; - writev?: (...args: any[]) => any; - } - interface ReadStreamOptions extends StreamOptions { - fs?: CreateReadStreamFSImplementation | null | undefined; - end?: number | undefined; - } - interface WriteStreamOptions extends StreamOptions { - fs?: CreateWriteStreamFSImplementation | null | undefined; - flush?: boolean | undefined; - } - /** - * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream - * returned by this method has a default `highWaterMark` of 64 KiB. - * - * `options` can include `start` and `end` values to read a range of bytes from - * the file instead of the entire file. Both `start` and `end` are inclusive and - * start counting at 0, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is - * omitted or `undefined`, `fs.createReadStream()` reads sequentially from the - * current file position. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `fd` is specified, `ReadStream` will ignore the `path` argument and will use - * the specified file descriptor. This means that no `'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`. - * - * If `fd` points to a character device that only supports blocking reads - * (such as keyboard or sound card), read operations do not finish until data is - * available. This can prevent the process from exiting and the stream from - * closing naturally. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * By providing the `fs` option, it is possible to override the corresponding `fs` implementations for `open`, `read`, and `close`. When providing the `fs` option, - * an override for `read` is required. If no `fd` is provided, an override for `open` is also required. If `autoClose` is `true`, an override for `close` is - * also required. - * - * ```js - * import { createReadStream } from 'node:fs'; - * - * // Create a stream from some character device. - * const stream = createReadStream('/dev/input/event0'); - * setTimeout(() => { - * stream.close(); // This may not close the stream. - * // Artificially marking end-of-stream, as if the underlying resource had - * // indicated end-of-file by itself, allows the stream to close. - * // This does not cancel pending read operations, and if there is such an - * // operation, the process may still not be able to exit successfully - * // until it finishes. - * stream.push(null); - * stream.read(0); - * }, 100); - * ``` - * - * If `autoClose` is false, then the file descriptor won't be closed, even if - * there's an error. It is the application's responsibility to close it and make - * sure there's no file descriptor leak. If `autoClose` is set to true (default - * behavior), on `'error'` or `'end'` the file descriptor will be closed - * automatically. - * - * `mode` sets the file mode (permission and sticky bits), but only if the - * file was created. - * - * An example to read the last 10 bytes of a file which is 100 bytes long: - * - * ```js - * import { createReadStream } from 'node:fs'; - * - * createReadStream('sample.txt', { start: 90, end: 99 }); - * ``` - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - */ - export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream; - /** - * `options` may also include a `start` option to allow writing data at some - * position past the beginning of the file, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than - * replacing it may require the `flags` option to be set to `r+` rather than the - * default `w`. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, - * then the file descriptor won't be closed, even if there's an error. - * It is the application's responsibility to close it and make sure there's no - * file descriptor leak. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * By providing the `fs` option it is possible to override the corresponding `fs` implementations for `open`, `write`, `writev`, and `close`. Overriding `write()` without `writev()` can reduce - * performance as some optimizations (`_writev()`) - * will be disabled. When providing the `fs` option, overrides for at least one of `write` and `writev` are required. If no `fd` option is supplied, an override - * for `open` is also required. If `autoClose` is `true`, an override for `close` is also required. - * - * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the `path` argument and will use the specified file descriptor. This means that no `'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s - * should be passed to `net.Socket`. - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - */ - export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other - * than a possible - * exception are given to the completion callback. - * @since v0.1.96 - */ - export function fdatasync(fd: number, callback: NoParamCallback): void; - export namespace fdatasync { - /** - * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`. - * @since v0.1.96 - */ - export function fdatasyncSync(fd: number): void; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. No arguments other than a possible exception are given to the - * callback function. Node.js makes no guarantees about the atomicity of the copy - * operation. If an error occurs after the destination file has been opened for - * writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFile, constants } from 'node:fs'; - * - * function callback(err) { - * if (err) throw err; - * console.log('source.txt was copied to destination.txt'); - * } - * - * // destination.txt will be created or overwritten by default. - * copyFile('source.txt', 'destination.txt', callback); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; - export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void; - export namespace copyFile { - function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise; - } - /** - * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. Returns `undefined`. Node.js makes no guarantees about the - * atomicity of the copy operation. If an error occurs after the destination file - * has been opened for writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFileSync, constants } from 'node:fs'; - * - * // destination.txt will be created or overwritten by default. - * copyFileSync('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void; - /** - * Write an array of `ArrayBufferView`s to the file specified by `fd` using `writev()`. - * - * `position` is the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. - * - * The callback will be given three arguments: `err`, `bytesWritten`, and `buffers`. `bytesWritten` is how many bytes were written from `buffers`. - * - * If this method is `util.promisify()` ed, it returns a promise for an `Object` with `bytesWritten` and `buffers` properties. - * - * It is unsafe to use `fs.writev()` multiple times on the same file without - * waiting for the callback. For this scenario, use {@link createWriteStream}. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - * @param [position='null'] - */ - export function writev( - fd: number, - buffers: TBuffers, - cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, - ): void; - export function writev( - fd: number, - buffers: TBuffers, - position: number | null, - cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, - ): void; - // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 - // TODO: remove default in future major version - export interface WriteVResult { - bytesWritten: number; - buffers: T; - } - export namespace writev { - function __promisify__( - fd: number, - buffers: TBuffers, - position?: number, - ): Promise>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writev}. - * @since v12.9.0 - * @param [position='null'] - * @return The number of bytes written. - */ - export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; - /** - * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s - * using `readv()`. - * - * `position` is the offset from the beginning of the file from where data - * should be read. If `typeof position !== 'number'`, the data will be read - * from the current position. - * - * The callback will be given three arguments: `err`, `bytesRead`, and `buffers`. `bytesRead` is how many bytes were read from the file. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffers` properties. - * @since v13.13.0, v12.17.0 - * @param [position='null'] - */ - export function readv( - fd: number, - buffers: TBuffers, - cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, - ): void; - export function readv( - fd: number, - buffers: TBuffers, - position: number | null, - cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, - ): void; - // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 - // TODO: remove default in future major version - export interface ReadVResult { - bytesRead: number; - buffers: T; - } - export namespace readv { - function __promisify__( - fd: number, - buffers: TBuffers, - position?: number, - ): Promise>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readv}. - * @since v13.13.0, v12.17.0 - * @param [position='null'] - * @return The number of bytes read. - */ - export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; - - export interface OpenAsBlobOptions { - /** - * An optional mime type for the blob. - * - * @default 'undefined' - */ - type?: string | undefined; - } - - /** - * Returns a `Blob` whose data is backed by the given file. - * - * The file must not be modified after the `Blob` is created. Any modifications - * will cause reading the `Blob` data to fail with a `DOMException` error. - * Synchronous stat operations on the file when the `Blob` is created, and before - * each read in order to detect whether the file data has been modified on disk. - * - * ```js - * import { openAsBlob } from 'node:fs'; - * - * const blob = await openAsBlob('the.file.txt'); - * const ab = await blob.arrayBuffer(); - * blob.stream(); - * ``` - * @since v19.8.0 - * @experimental - */ - export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise; - - export interface OpenDirOptions { - /** - * @default 'utf8' - */ - encoding?: BufferEncoding | undefined; - /** - * Number of directory entries that are buffered - * internally when reading from the directory. Higher values lead to better - * performance but higher memory usage. - * @default 32 - */ - bufferSize?: number | undefined; - /** - * @default false - */ - recursive?: boolean | undefined; - } - /** - * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html). - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir; - /** - * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for - * more details. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; - export function opendir( - path: PathLike, - options: OpenDirOptions, - cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void, - ): void; - export namespace opendir { - function __promisify__(path: PathLike, options?: OpenDirOptions): Promise; - } - export interface BigIntStats extends StatsBase { - atimeNs: bigint; - mtimeNs: bigint; - ctimeNs: bigint; - birthtimeNs: bigint; - } - export interface BigIntOptions { - bigint: true; - } - export interface StatOptions { - bigint?: boolean | undefined; - } - export interface StatSyncOptions extends StatOptions { - throwIfNoEntry?: boolean | undefined; - } - interface CopyOptionsBase { - /** - * Dereference symlinks - * @default false - */ - dereference?: boolean | undefined; - /** - * When `force` is `false`, and the destination - * exists, throw an error. - * @default false - */ - errorOnExist?: boolean | undefined; - /** - * Overwrite existing file or directory. _The copy - * operation will ignore errors if you set this to false and the destination - * exists. Use the `errorOnExist` option to change this behavior. - * @default true - */ - force?: boolean | undefined; - /** - * Modifiers for copy operation. See `mode` flag of {@link copyFileSync()} - */ - mode?: number | undefined; - /** - * When `true` timestamps from `src` will - * be preserved. - * @default false - */ - preserveTimestamps?: boolean | undefined; - /** - * Copy directories recursively. - * @default false - */ - recursive?: boolean | undefined; - /** - * When true, path resolution for symlinks will be skipped - * @default false - */ - verbatimSymlinks?: boolean | undefined; - } - export interface CopyOptions extends CopyOptionsBase { - /** - * Function to filter copied files/directories. Return - * `true` to copy the item, `false` to ignore it. - */ - filter?: ((source: string, destination: string) => boolean | Promise) | undefined; - } - export interface CopySyncOptions extends CopyOptionsBase { - /** - * Function to filter copied files/directories. Return - * `true` to copy the item, `false` to ignore it. - */ - filter?: ((source: string, destination: string) => boolean) | undefined; - } - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cp( - source: string | URL, - destination: string | URL, - callback: (err: NodeJS.ErrnoException | null) => void, - ): void; - export function cp( - source: string | URL, - destination: string | URL, - opts: CopyOptions, - callback: (err: NodeJS.ErrnoException | null) => void, - ): void; - /** - * Synchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void; -} -declare module "node:fs" { - export * from "fs"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/fs/promises.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/fs/promises.d.ts deleted file mode 100644 index 7cc4dee..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/fs/promises.d.ts +++ /dev/null @@ -1,1270 +0,0 @@ -/** - * The `fs/promises` API provides asynchronous file system methods that return - * promises. - * - * The promise APIs use the underlying Node.js threadpool to perform file - * system operations off the event loop thread. These operations are not - * synchronized or threadsafe. Care must be taken when performing multiple - * concurrent modifications on the same file or data corruption may occur. - * @since v10.0.0 - */ -declare module "fs/promises" { - import { NonSharedBuffer } from "node:buffer"; - import { Abortable } from "node:events"; - import { Stream } from "node:stream"; - import { ReadableStream } from "node:stream/web"; - import { - BigIntStats, - BigIntStatsFs, - BufferEncodingOption, - constants as fsConstants, - CopyOptions, - Dir, - Dirent, - MakeDirectoryOptions, - Mode, - ObjectEncodingOptions, - OpenDirOptions, - OpenMode, - PathLike, - ReadOptions, - ReadOptionsWithBuffer, - ReadStream, - ReadVResult, - RmDirOptions, - RmOptions, - StatFsOptions, - StatOptions, - Stats, - StatsFs, - TimeLike, - WatchEventType, - WatchOptions, - WriteStream, - WriteVResult, - } from "node:fs"; - import { Interface as ReadlineInterface } from "node:readline"; - interface FileChangeInfo { - eventType: WatchEventType; - filename: T | null; - } - interface FlagAndOpenMode { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - } - interface FileReadResult { - bytesRead: number; - buffer: T; - } - /** @deprecated This interface will be removed in a future version. Use `import { ReadOptionsWithBuffer } from "node:fs"` instead. */ - interface FileReadOptions { - /** - * @default `Buffer.alloc(0xffff)` - */ - buffer?: T; - /** - * @default 0 - */ - offset?: number | null; - /** - * @default `buffer.byteLength` - */ - length?: number | null; - position?: number | null; - } - interface CreateReadStreamOptions extends Abortable { - encoding?: BufferEncoding | null | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - end?: number | undefined; - highWaterMark?: number | undefined; - } - interface CreateWriteStreamOptions { - encoding?: BufferEncoding | null | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - highWaterMark?: number | undefined; - flush?: boolean | undefined; - } - interface ReadableWebStreamOptions { - /** - * Whether to open a normal or a `'bytes'` stream. - * @since v20.0.0 - */ - type?: "bytes" | undefined; - } - // TODO: Add `EventEmitter` close - interface FileHandle { - /** - * The numeric file descriptor managed by the {FileHandle} object. - * @since v10.0.0 - */ - readonly fd: number; - /** - * Alias of `filehandle.writeFile()`. - * - * When operating on file handles, the mode cannot be changed from what it was set - * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - appendFile( - data: string | Uint8Array, - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html). - * @since v10.0.0 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - * @return Fulfills with `undefined` upon success. - */ - chown(uid: number, gid: number): Promise; - /** - * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html). - * @since v10.0.0 - * @param mode the file mode bit mask. - * @return Fulfills with `undefined` upon success. - */ - chmod(mode: Mode): Promise; - /** - * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream - * returned by this method has a default `highWaterMark` of 64 KiB. - * - * `options` can include `start` and `end` values to read a range of bytes from - * the file instead of the entire file. Both `start` and `end` are inclusive and - * start counting at 0, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is - * omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from - * the current file position. The `encoding` can be any one of those accepted by `Buffer`. - * - * If the `FileHandle` points to a character device that only supports blocking - * reads (such as keyboard or sound card), read operations do not finish until data - * is available. This can prevent the process from exiting and the stream from - * closing naturally. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const fd = await open('/dev/input/event0'); - * // Create a stream from some character device. - * const stream = fd.createReadStream(); - * setTimeout(() => { - * stream.close(); // This may not close the stream. - * // Artificially marking end-of-stream, as if the underlying resource had - * // indicated end-of-file by itself, allows the stream to close. - * // This does not cancel pending read operations, and if there is such an - * // operation, the process may still not be able to exit successfully - * // until it finishes. - * stream.push(null); - * stream.read(0); - * }, 100); - * ``` - * - * If `autoClose` is false, then the file descriptor won't be closed, even if - * there's an error. It is the application's responsibility to close it and make - * sure there's no file descriptor leak. If `autoClose` is set to true (default - * behavior), on `'error'` or `'end'` the file descriptor will be closed - * automatically. - * - * An example to read the last 10 bytes of a file which is 100 bytes long: - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const fd = await open('sample.txt'); - * fd.createReadStream({ start: 90, end: 99 }); - * ``` - * @since v16.11.0 - */ - createReadStream(options?: CreateReadStreamOptions): ReadStream; - /** - * `options` may also include a `start` option to allow writing data at some - * position past the beginning of the file, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than - * replacing it may require the `flags` `open` option to be set to `r+` rather than - * the default `r`. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, - * then the file descriptor won't be closed, even if there's an error. - * It is the application's responsibility to close it and make sure there's no - * file descriptor leak. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * @since v16.11.0 - */ - createWriteStream(options?: CreateWriteStreamOptions): WriteStream; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. - * - * Unlike `filehandle.sync` this method does not flush modified metadata. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - datasync(): Promise; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - sync(): Promise; - /** - * Reads data from the file and stores that in the given buffer. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * @since v10.0.0 - * @param buffer A buffer that will be filled with the file data read. - * @param offset The location in the buffer at which to start filling. - * @param length The number of bytes to read. - * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an - * integer, the current file position will remain unchanged. - * @return Fulfills upon success with an object with two properties: - */ - read( - buffer: T, - offset?: number | null, - length?: number | null, - position?: number | null, - ): Promise>; - read( - buffer: T, - options?: ReadOptions, - ): Promise>; - read( - options?: ReadOptionsWithBuffer, - ): Promise>; - /** - * Returns a `ReadableStream` that may be used to read the files data. - * - * An error will be thrown if this method is called more than once or is called - * after the `FileHandle` is closed or closing. - * - * ```js - * import { - * open, - * } from 'node:fs/promises'; - * - * const file = await open('./some/file/to/read'); - * - * for await (const chunk of file.readableWebStream()) - * console.log(chunk); - * - * await file.close(); - * ``` - * - * While the `ReadableStream` will read the file to completion, it will not - * close the `FileHandle` automatically. User code must still call the`fileHandle.close()` method. - * @since v17.0.0 - * @experimental - */ - readableWebStream(options?: ReadableWebStreamOptions): ReadableStream; - /** - * Asynchronously reads the entire contents of a file. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support reading. - * - * If one or more `filehandle.read()` calls are made on a file handle and then a `filehandle.readFile()` call is made, the data will be read from the current - * position till the end of the file. It doesn't always read from the beginning - * of the file. - * @since v10.0.0 - * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the - * data will be a string. - */ - readFile( - options?: - | ({ encoding?: null | undefined } & Abortable) - | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - */ - readFile( - options: - | ({ encoding: BufferEncoding } & Abortable) - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - */ - readFile( - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Convenience method to create a `readline` interface and stream over the file. - * See `filehandle.createReadStream()` for the options. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const file = await open('./some/file/to/read'); - * - * for await (const line of file.readLines()) { - * console.log(line); - * } - * ``` - * @since v18.11.0 - */ - readLines(options?: CreateReadStreamOptions): ReadlineInterface; - /** - * @since v10.0.0 - * @return Fulfills with an {fs.Stats} for the file. - */ - stat( - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - stat( - opts: StatOptions & { - bigint: true; - }, - ): Promise; - stat(opts?: StatOptions): Promise; - /** - * Truncates the file. - * - * If the file was larger than `len` bytes, only the first `len` bytes will be - * retained in the file. - * - * The following example retains only the first four bytes of the file: - * - * ```js - * import { open } from 'node:fs/promises'; - * - * let filehandle = null; - * try { - * filehandle = await open('temp.txt', 'r+'); - * await filehandle.truncate(4); - * } finally { - * await filehandle?.close(); - * } - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - truncate(len?: number): Promise; - /** - * Change the file system timestamps of the object referenced by the `FileHandle` then fulfills the promise with no arguments upon success. - * @since v10.0.0 - */ - utimes(atime: TimeLike, mtime: TimeLike): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an - * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an - * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. - * The promise is fulfilled with no arguments upon success. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support writing. - * - * It is unsafe to use `filehandle.writeFile()` multiple times on the same file - * without waiting for the promise to be fulfilled (or rejected). - * - * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the - * current position till the end of the file. It doesn't always write from the - * beginning of the file. - * @since v10.0.0 - */ - writeFile( - data: string | Uint8Array, - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Write `buffer` to the file. - * - * The promise is fulfilled with an object containing two properties: - * - * It is unsafe to use `filehandle.write()` multiple times on the same file - * without waiting for the promise to be fulfilled (or rejected). For this - * scenario, use `filehandle.createWriteStream()`. - * - * On Linux, positional writes do not work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v10.0.0 - * @param offset The start position from within `buffer` where the data to write begins. - * @param [length=buffer.byteLength - offset] The number of bytes from `buffer` to write. - * @param [position='null'] The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current - * position. See the POSIX pwrite(2) documentation for more detail. - */ - write( - buffer: TBuffer, - offset?: number | null, - length?: number | null, - position?: number | null, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - write( - data: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - /** - * Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file. - * - * The promise is fulfilled with an object containing a two properties: - * - * It is unsafe to call `writev()` multiple times on the same file without waiting - * for the promise to be fulfilled (or rejected). - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - * @param [position='null'] The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current - * position. - */ - writev( - buffers: TBuffers, - position?: number, - ): Promise>; - /** - * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s - * @since v13.13.0, v12.17.0 - * @param [position='null'] The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. - * @return Fulfills upon success an object containing two properties: - */ - readv( - buffers: TBuffers, - position?: number, - ): Promise>; - /** - * Closes the file handle after waiting for any pending operation on the handle to - * complete. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * let filehandle; - * try { - * filehandle = await open('thefile.txt', 'r'); - * } finally { - * await filehandle?.close(); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - close(): Promise; - /** - * An alias for {@link FileHandle.close()}. - * @since v20.4.0 - */ - [Symbol.asyncDispose](): Promise; - } - const constants: typeof fsConstants; - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` - * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * If the accessibility check is successful, the promise is fulfilled with no - * value. If any of the accessibility checks fail, the promise is rejected - * with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and - * written by the current process. - * - * ```js - * import { access, constants } from 'node:fs/promises'; - * - * try { - * await access('/etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can access'); - * } catch { - * console.error('cannot access'); - * } - * ``` - * - * Using `fsPromises.access()` to check for the accessibility of a file before - * calling `fsPromises.open()` is not recommended. Doing so introduces a race - * condition, since other processes may change the file's state between the two - * calls. Instead, user code should open/read/write the file directly and handle - * the error raised if the file is not accessible. - * @since v10.0.0 - * @param [mode=fs.constants.F_OK] - * @return Fulfills with `undefined` upon success. - */ - function access(path: PathLike, mode?: number): Promise; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. - * - * No guarantees are made about the atomicity of the copy operation. If an - * error occurs after the destination file has been opened for writing, an attempt - * will be made to remove the destination. - * - * ```js - * import { copyFile, constants } from 'node:fs/promises'; - * - * try { - * await copyFile('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.error('The file could not be copied'); - * } - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * try { - * await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.error('The file could not be copied'); - * } - * ``` - * @since v10.0.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g. - * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`) - * @return Fulfills with `undefined` upon success. - */ - function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise; - /** - * Opens a `FileHandle`. - * - * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * @since v10.0.0 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created. - * @return Fulfills with a {FileHandle} object. - */ - function open(path: PathLike, flags?: string | number, mode?: Mode): Promise; - /** - * Renames `oldPath` to `newPath`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rename(oldPath: PathLike, newPath: PathLike): Promise; - /** - * Truncates (shortens or extends the length) of the content at `path` to `len` bytes. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - function truncate(path: PathLike, len?: number): Promise; - /** - * Removes the directory identified by `path`. - * - * Using `fsPromises.rmdir()` on a file (not a directory) results in the - * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rmdir(path: PathLike, options?: RmDirOptions): Promise; - /** - * Removes files and directories (modeled on the standard POSIX `rm` utility). - * @since v14.14.0 - * @return Fulfills with `undefined` upon success. - */ - function rm(path: PathLike, options?: RmOptions): Promise; - /** - * Asynchronously creates a directory. - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fsPromises.mkdir()` when `path` is a directory - * that exists results in a - * rejection only when `recursive` is false. - * - * ```js - * import { mkdir } from 'node:fs/promises'; - * - * try { - * const projectFolder = new URL('./test/project/', import.meta.url); - * const createDir = await mkdir(projectFolder, { recursive: true }); - * - * console.log(`created ${createDir}`); - * } catch (err) { - * console.error(err.message); - * } - * ``` - * @since v10.0.0 - * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`. - */ - function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; - /** - * Reads the contents of a directory. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned - * will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the returned array will contain `fs.Dirent` objects. - * - * ```js - * import { readdir } from 'node:fs/promises'; - * - * try { - * const files = await readdir(path); - * for (const file of files) - * console.log(file); - * } catch (err) { - * console.error(err); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a directory. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - function readdir( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise[]>; - /** - * Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is - * fulfilled with the`linkString` upon success. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, the link path - * returned will be passed as a `Buffer` object. - * @since v10.0.0 - * @return Fulfills with the `linkString` upon success. - */ - function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink( - path: PathLike, - options?: ObjectEncodingOptions | string | null, - ): Promise; - /** - * Creates a symbolic link. - * - * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will - * autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not - * exist, `'file'` will be used. Windows junction points require the destination - * path to be absolute. When using `'junction'`, the `target` argument will - * automatically be normalized to absolute path. Junction points on NTFS volumes - * can only point to directories. - * @since v10.0.0 - * @param [type='null'] - * @return Fulfills with `undefined` upon success. - */ - function symlink(target: PathLike, path: PathLike, type?: string | null): Promise; - /** - * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link, - * in which case the link itself is stat-ed, not the file that it refers to. - * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail. - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`. - */ - function lstat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function lstat( - path: PathLike, - opts: StatOptions & { - bigint: true; - }, - ): Promise; - function lstat(path: PathLike, opts?: StatOptions): Promise; - /** - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given `path`. - */ - function stat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function stat( - path: PathLike, - opts: StatOptions & { - bigint: true; - }, - ): Promise; - function stat(path: PathLike, opts?: StatOptions): Promise; - /** - * @since v19.6.0, v18.15.0 - * @return Fulfills with the {fs.StatFs} object for the given `path`. - */ - function statfs( - path: PathLike, - opts?: StatFsOptions & { - bigint?: false | undefined; - }, - ): Promise; - function statfs( - path: PathLike, - opts: StatFsOptions & { - bigint: true; - }, - ): Promise; - function statfs(path: PathLike, opts?: StatFsOptions): Promise; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function link(existingPath: PathLike, newPath: PathLike): Promise; - /** - * If `path` refers to a symbolic link, then the link is removed without affecting - * the file or directory to which that link refers. If the `path` refers to a file - * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function unlink(path: PathLike): Promise; - /** - * Changes the permissions of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the permissions on a symbolic link. - * - * This method is only implemented on macOS. - * @deprecated Since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the ownership on a symbolic link. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchown(path: PathLike, uid: number, gid: number): Promise; - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a - * symbolic link, then the link is not dereferenced: instead, the timestamps of - * the symbolic link itself are changed. - * @since v14.5.0, v12.19.0 - * @return Fulfills with `undefined` upon success. - */ - function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - /** - * Changes the ownership of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chown(path: PathLike, uid: number, gid: number): Promise; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time, `Date`s, or a - * numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - /** - * Determines the actual location of `path` using the same semantics as the `fs.realpath.native()` function. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path. If the `encoding` is set to `'buffer'`, the path returned will be - * passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v10.0.0 - * @return Fulfills with the resolved path upon success. - */ - function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath( - path: PathLike, - options?: ObjectEncodingOptions | BufferEncoding | null, - ): Promise; - /** - * Creates a unique temporary directory. A unique directory name is generated by - * appending six random characters to the end of the provided `prefix`. Due to - * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some - * platforms, notably the BSDs, can return more than six random characters, and - * replace trailing `X` characters in `prefix` with random characters. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'node:fs/promises'; - * import { join } from 'node:path'; - * import { tmpdir } from 'node:os'; - * - * try { - * await mkdtemp(join(tmpdir(), 'foo-')); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * The `fsPromises.mkdtemp()` method will append the six randomly selected - * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing - * platform-specific path separator - * (`import { sep } from 'node:node:path'`). - * @since v10.0.0 - * @return Fulfills with a string containing the file system path of the newly created temporary directory. - */ - function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp( - prefix: string, - options?: ObjectEncodingOptions | BufferEncoding | null, - ): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an - * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an - * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * If `options` is a string, then it specifies the encoding. - * - * The `mode` option only affects the newly created file. See `fs.open()` for more details. - * - * Any specified `FileHandle` has to support writing. - * - * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file - * without waiting for the promise to be settled. - * - * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience - * method that performs multiple `write` calls internally to write the buffer - * passed to it. For performance sensitive code consider using `fs.createWriteStream()` or `filehandle.createWriteStream()`. - * - * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'node:fs/promises'; - * import { Buffer } from 'node:buffer'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * const promise = writeFile('message.txt', data, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v10.0.0 - * @param file filename or `FileHandle` - * @return Fulfills with `undefined` upon success. - */ - function writeFile( - file: PathLike | FileHandle, - data: - | string - | NodeJS.ArrayBufferView - | Iterable - | AsyncIterable - | Stream, - options?: - | (ObjectEncodingOptions & { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - /** - * If all data is successfully written to the file, and `flush` - * is `true`, `filehandle.sync()` is used to flush the data. - * @default false - */ - flush?: boolean | undefined; - } & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `mode` option only affects the newly created file. See `fs.open()` for more details. - * - * The `path` may be specified as a `FileHandle` that has been opened - * for appending (using `fsPromises.open()`). - * @since v10.0.0 - * @param path filename or {FileHandle} - * @return Fulfills with `undefined` upon success. - */ - function appendFile( - path: PathLike | FileHandle, - data: string | Uint8Array, - options?: (ObjectEncodingOptions & FlagAndOpenMode & { flush?: boolean | undefined }) | BufferEncoding | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * - * If no encoding is specified (using `options.encoding`), the data is returned - * as a `Buffer` object. Otherwise, the data will be a string. - * - * If `options` is a string, then it specifies the encoding. - * - * When the `path` is a directory, the behavior of `fsPromises.readFile()` is - * platform-specific. On macOS, Linux, and Windows, the promise will be rejected - * with an error. On FreeBSD, a representation of the directory's contents will be - * returned. - * - * An example of reading a `package.json` file located in the same directory of the - * running code: - * - * ```js - * import { readFile } from 'node:fs/promises'; - * try { - * const filePath = new URL('./package.json', import.meta.url); - * const contents = await readFile(filePath, { encoding: 'utf8' }); - * console.log(contents); - * } catch (err) { - * console.error(err.message); - * } - * ``` - * - * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a - * request is aborted the promise returned is rejected with an `AbortError`: - * - * ```js - * import { readFile } from 'node:fs/promises'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const promise = readFile(fileName, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * - * Any specified `FileHandle` has to support reading. - * @since v10.0.0 - * @param path filename or `FileHandle` - * @return Fulfills with the contents of the file. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | ({ - encoding?: null | undefined; - flag?: OpenMode | undefined; - } & Abortable) - | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options: - | ({ - encoding: BufferEncoding; - flag?: OpenMode | undefined; - } & Abortable) - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | ( - & ObjectEncodingOptions - & Abortable - & { - flag?: OpenMode | undefined; - } - ) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * - * Example using async iteration: - * - * ```js - * import { opendir } from 'node:fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - * @return Fulfills with an {fs.Dir}. - */ - function opendir(path: PathLike, options?: OpenDirOptions): Promise; - /** - * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory. - * - * ```js - * import { watch } from 'node:fs/promises'; - * - * const ac = new AbortController(); - * const { signal } = ac; - * setTimeout(() => ac.abort(), 10000); - * - * (async () => { - * try { - * const watcher = watch(__filename, { signal }); - * for await (const event of watcher) - * console.log(event); - * } catch (err) { - * if (err.name === 'AbortError') - * return; - * throw err; - * } - * })(); - * ``` - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`. - * @since v15.9.0, v14.18.0 - * @return of objects with the properties: - */ - function watch( - filename: PathLike, - options: - | (WatchOptions & { - encoding: "buffer"; - }) - | "buffer", - ): AsyncIterable>; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable>; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - function watch( - filename: PathLike, - options: WatchOptions | string, - ): AsyncIterable> | AsyncIterable>; - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - * @return Fulfills with `undefined` upon success. - */ - function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise; -} -declare module "node:fs/promises" { - export * from "fs/promises"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/globals.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/globals.d.ts deleted file mode 100644 index 3bff22a..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/globals.d.ts +++ /dev/null @@ -1,172 +0,0 @@ -declare var global: typeof globalThis; - -declare var process: NodeJS.Process; -declare var console: Console; - -interface ErrorConstructor { - /** - * Creates a `.stack` property on `targetObject`, which when accessed returns - * a string representing the location in the code at which - * `Error.captureStackTrace()` was called. - * - * ```js - * const myObject = {}; - * Error.captureStackTrace(myObject); - * myObject.stack; // Similar to `new Error().stack` - * ``` - * - * The first line of the trace will be prefixed with - * `${myObject.name}: ${myObject.message}`. - * - * The optional `constructorOpt` argument accepts a function. If given, all frames - * above `constructorOpt`, including `constructorOpt`, will be omitted from the - * generated stack trace. - * - * The `constructorOpt` argument is useful for hiding implementation - * details of error generation from the user. For instance: - * - * ```js - * function a() { - * b(); - * } - * - * function b() { - * c(); - * } - * - * function c() { - * // Create an error without stack trace to avoid calculating the stack trace twice. - * const { stackTraceLimit } = Error; - * Error.stackTraceLimit = 0; - * const error = new Error(); - * Error.stackTraceLimit = stackTraceLimit; - * - * // Capture the stack trace above function b - * Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace - * throw error; - * } - * - * a(); - * ``` - */ - captureStackTrace(targetObject: object, constructorOpt?: Function): void; - /** - * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces - */ - prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any; - /** - * The `Error.stackTraceLimit` property specifies the number of stack frames - * collected by a stack trace (whether generated by `new Error().stack` or - * `Error.captureStackTrace(obj)`). - * - * The default value is `10` but may be set to any valid JavaScript number. Changes - * will affect any stack trace captured _after_ the value has been changed. - * - * If set to a non-number value, or set to a negative number, stack traces will - * not capture any frames. - */ - stackTraceLimit: number; -} - -/** - * Enable this API with the `--expose-gc` CLI flag. - */ -declare var gc: NodeJS.GCFunction | undefined; - -declare namespace NodeJS { - interface CallSite { - getColumnNumber(): number | null; - getEnclosingColumnNumber(): number | null; - getEnclosingLineNumber(): number | null; - getEvalOrigin(): string | undefined; - getFileName(): string | null; - getFunction(): Function | undefined; - getFunctionName(): string | null; - getLineNumber(): number | null; - getMethodName(): string | null; - getPosition(): number; - getPromiseIndex(): number | null; - getScriptHash(): string; - getScriptNameOrSourceURL(): string | null; - getThis(): unknown; - getTypeName(): string | null; - isAsync(): boolean; - isConstructor(): boolean; - isEval(): boolean; - isNative(): boolean; - isPromiseAll(): boolean; - isToplevel(): boolean; - } - - interface ErrnoException extends Error { - errno?: number | undefined; - code?: string | undefined; - path?: string | undefined; - syscall?: string | undefined; - } - - interface ReadableStream extends EventEmitter { - readable: boolean; - read(size?: number): string | Buffer; - setEncoding(encoding: BufferEncoding): this; - pause(): this; - resume(): this; - isPaused(): boolean; - pipe(destination: T, options?: { end?: boolean | undefined }): T; - unpipe(destination?: WritableStream): this; - unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; - wrap(oldStream: ReadableStream): this; - [Symbol.asyncIterator](): AsyncIterableIterator; - } - - interface WritableStream extends EventEmitter { - writable: boolean; - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - end(cb?: () => void): this; - end(data: string | Uint8Array, cb?: () => void): this; - end(str: string, encoding?: BufferEncoding, cb?: () => void): this; - } - - interface ReadWriteStream extends ReadableStream, WritableStream {} - - interface RefCounted { - ref(): this; - unref(): this; - } - - interface Dict { - [key: string]: T | undefined; - } - - interface ReadOnlyDict { - readonly [key: string]: T | undefined; - } - - type PartialOptions = { [K in keyof T]?: T[K] | undefined }; - - interface GCFunction { - (minor?: boolean): void; - (options: NodeJS.GCOptions & { execution: "async" }): Promise; - (options: NodeJS.GCOptions): void; - } - - interface GCOptions { - execution?: "sync" | "async" | undefined; - flavor?: "regular" | "last-resort" | undefined; - type?: "major-snapshot" | "major" | "minor" | undefined; - filename?: string | undefined; - } - - /** An iterable iterator returned by the Node.js API. */ - // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used IterableIterator. - interface Iterator extends IteratorObject { - [Symbol.iterator](): NodeJS.Iterator; - } - - /** An async iterable iterator returned by the Node.js API. */ - // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used AsyncIterableIterator. - interface AsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - } -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/globals.typedarray.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/globals.typedarray.d.ts deleted file mode 100644 index 8eafc3b..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/globals.typedarray.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export {}; // Make this a module - -declare global { - namespace NodeJS { - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float32Array - | Float64Array; - type ArrayBufferView = - | TypedArray - | DataView; - - // The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node - // while maintaining compatibility with TS <=5.6. - type NonSharedUint8Array = Uint8Array; - type NonSharedUint8ClampedArray = Uint8ClampedArray; - type NonSharedUint16Array = Uint16Array; - type NonSharedUint32Array = Uint32Array; - type NonSharedInt8Array = Int8Array; - type NonSharedInt16Array = Int16Array; - type NonSharedInt32Array = Int32Array; - type NonSharedBigUint64Array = BigUint64Array; - type NonSharedBigInt64Array = BigInt64Array; - type NonSharedFloat32Array = Float32Array; - type NonSharedFloat64Array = Float64Array; - type NonSharedDataView = DataView; - type NonSharedTypedArray = TypedArray; - type NonSharedArrayBufferView = ArrayBufferView; - } -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/http.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/http.d.ts deleted file mode 100644 index 12261fa..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/http.d.ts +++ /dev/null @@ -1,2049 +0,0 @@ -/** - * To use the HTTP server and client one must import the `node:http` module. - * - * The HTTP interfaces in Node.js are designed to support many features - * of the protocol which have been traditionally difficult to use. - * In particular, large, possibly chunk-encoded, messages. The interface is - * careful to never buffer entire requests or responses, so the - * user is able to stream data. - * - * HTTP message headers are represented by an object like this: - * - * ```json - * { "content-length": "123", - * "content-type": "text/plain", - * "connection": "keep-alive", - * "host": "example.com", - * "accept": "*" } - * ``` - * - * Keys are lowercased. Values are not modified. - * - * In order to support the full spectrum of possible HTTP applications, the Node.js - * HTTP API is very low-level. It deals with stream handling and message - * parsing only. It parses a message into headers and body but it does not - * parse the actual headers or the body. - * - * See `message.headers` for details on how duplicate headers are handled. - * - * The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For - * example, the previous message header object might have a `rawHeaders` list like the following: - * - * ```js - * [ 'ConTent-Length', '123456', - * 'content-LENGTH', '123', - * 'content-type', 'text/plain', - * 'CONNECTION', 'keep-alive', - * 'Host', 'example.com', - * 'accepT', '*' ] - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http.js) - */ -declare module "http" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { URL } from "node:url"; - import { LookupOptions } from "node:dns"; - import { EventEmitter } from "node:events"; - import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net"; - // incoming headers will never contain number - interface IncomingHttpHeaders extends NodeJS.Dict { - accept?: string | undefined; - "accept-encoding"?: string | undefined; - "accept-language"?: string | undefined; - "accept-patch"?: string | undefined; - "accept-ranges"?: string | undefined; - "access-control-allow-credentials"?: string | undefined; - "access-control-allow-headers"?: string | undefined; - "access-control-allow-methods"?: string | undefined; - "access-control-allow-origin"?: string | undefined; - "access-control-expose-headers"?: string | undefined; - "access-control-max-age"?: string | undefined; - "access-control-request-headers"?: string | undefined; - "access-control-request-method"?: string | undefined; - age?: string | undefined; - allow?: string | undefined; - "alt-svc"?: string | undefined; - authorization?: string | undefined; - "cache-control"?: string | undefined; - connection?: string | undefined; - "content-disposition"?: string | undefined; - "content-encoding"?: string | undefined; - "content-language"?: string | undefined; - "content-length"?: string | undefined; - "content-location"?: string | undefined; - "content-range"?: string | undefined; - "content-type"?: string | undefined; - cookie?: string | undefined; - date?: string | undefined; - etag?: string | undefined; - expect?: string | undefined; - expires?: string | undefined; - forwarded?: string | undefined; - from?: string | undefined; - host?: string | undefined; - "if-match"?: string | undefined; - "if-modified-since"?: string | undefined; - "if-none-match"?: string | undefined; - "if-unmodified-since"?: string | undefined; - "last-modified"?: string | undefined; - location?: string | undefined; - origin?: string | undefined; - pragma?: string | undefined; - "proxy-authenticate"?: string | undefined; - "proxy-authorization"?: string | undefined; - "public-key-pins"?: string | undefined; - range?: string | undefined; - referer?: string | undefined; - "retry-after"?: string | undefined; - "sec-fetch-site"?: string | undefined; - "sec-fetch-mode"?: string | undefined; - "sec-fetch-user"?: string | undefined; - "sec-fetch-dest"?: string | undefined; - "sec-websocket-accept"?: string | undefined; - "sec-websocket-extensions"?: string | undefined; - "sec-websocket-key"?: string | undefined; - "sec-websocket-protocol"?: string | undefined; - "sec-websocket-version"?: string | undefined; - "set-cookie"?: string[] | undefined; - "strict-transport-security"?: string | undefined; - tk?: string | undefined; - trailer?: string | undefined; - "transfer-encoding"?: string | undefined; - upgrade?: string | undefined; - "user-agent"?: string | undefined; - vary?: string | undefined; - via?: string | undefined; - warning?: string | undefined; - "www-authenticate"?: string | undefined; - } - // outgoing headers allows numbers (as they are converted internally to strings) - type OutgoingHttpHeader = number | string | string[]; - interface OutgoingHttpHeaders extends NodeJS.Dict { - accept?: string | string[] | undefined; - "accept-charset"?: string | string[] | undefined; - "accept-encoding"?: string | string[] | undefined; - "accept-language"?: string | string[] | undefined; - "accept-ranges"?: string | undefined; - "access-control-allow-credentials"?: string | undefined; - "access-control-allow-headers"?: string | undefined; - "access-control-allow-methods"?: string | undefined; - "access-control-allow-origin"?: string | undefined; - "access-control-expose-headers"?: string | undefined; - "access-control-max-age"?: string | undefined; - "access-control-request-headers"?: string | undefined; - "access-control-request-method"?: string | undefined; - age?: string | undefined; - allow?: string | undefined; - authorization?: string | undefined; - "cache-control"?: string | undefined; - "cdn-cache-control"?: string | undefined; - connection?: string | string[] | undefined; - "content-disposition"?: string | undefined; - "content-encoding"?: string | undefined; - "content-language"?: string | undefined; - "content-length"?: string | number | undefined; - "content-location"?: string | undefined; - "content-range"?: string | undefined; - "content-security-policy"?: string | undefined; - "content-security-policy-report-only"?: string | undefined; - cookie?: string | string[] | undefined; - dav?: string | string[] | undefined; - dnt?: string | undefined; - date?: string | undefined; - etag?: string | undefined; - expect?: string | undefined; - expires?: string | undefined; - forwarded?: string | undefined; - from?: string | undefined; - host?: string | undefined; - "if-match"?: string | undefined; - "if-modified-since"?: string | undefined; - "if-none-match"?: string | undefined; - "if-range"?: string | undefined; - "if-unmodified-since"?: string | undefined; - "last-modified"?: string | undefined; - link?: string | string[] | undefined; - location?: string | undefined; - "max-forwards"?: string | undefined; - origin?: string | undefined; - pragma?: string | string[] | undefined; - "proxy-authenticate"?: string | string[] | undefined; - "proxy-authorization"?: string | undefined; - "public-key-pins"?: string | undefined; - "public-key-pins-report-only"?: string | undefined; - range?: string | undefined; - referer?: string | undefined; - "referrer-policy"?: string | undefined; - refresh?: string | undefined; - "retry-after"?: string | undefined; - "sec-websocket-accept"?: string | undefined; - "sec-websocket-extensions"?: string | string[] | undefined; - "sec-websocket-key"?: string | undefined; - "sec-websocket-protocol"?: string | string[] | undefined; - "sec-websocket-version"?: string | undefined; - server?: string | undefined; - "set-cookie"?: string | string[] | undefined; - "strict-transport-security"?: string | undefined; - te?: string | undefined; - trailer?: string | undefined; - "transfer-encoding"?: string | undefined; - "user-agent"?: string | undefined; - upgrade?: string | undefined; - "upgrade-insecure-requests"?: string | undefined; - vary?: string | undefined; - via?: string | string[] | undefined; - warning?: string | undefined; - "www-authenticate"?: string | string[] | undefined; - "x-content-type-options"?: string | undefined; - "x-dns-prefetch-control"?: string | undefined; - "x-frame-options"?: string | undefined; - "x-xss-protection"?: string | undefined; - } - interface ClientRequestArgs extends Pick { - _defaultAgent?: Agent | undefined; - agent?: Agent | boolean | undefined; - auth?: string | null | undefined; - createConnection?: - | (( - options: ClientRequestArgs, - oncreate: (err: Error | null, socket: stream.Duplex) => void, - ) => stream.Duplex | null | undefined) - | undefined; - defaultPort?: number | string | undefined; - family?: number | undefined; - headers?: OutgoingHttpHeaders | readonly string[] | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - insecureHTTPParser?: boolean | undefined; - localAddress?: string | undefined; - localPort?: number | undefined; - lookup?: LookupFunction | undefined; - /** - * @default 16384 - */ - maxHeaderSize?: number | undefined; - method?: string | undefined; - path?: string | null | undefined; - port?: number | string | null | undefined; - protocol?: string | null | undefined; - setHost?: boolean | undefined; - signal?: AbortSignal | undefined; - socketPath?: string | undefined; - timeout?: number | undefined; - uniqueHeaders?: Array | undefined; - joinDuplicateHeaders?: boolean | undefined; - } - interface ServerOptions< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > { - /** - * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`. - */ - IncomingMessage?: Request | undefined; - /** - * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`. - */ - ServerResponse?: Response | undefined; - /** - * Sets the timeout value in milliseconds for receiving the entire request from the client. - * @see Server.requestTimeout for more information. - * @default 300000 - * @since v18.0.0 - */ - requestTimeout?: number | undefined; - /** - * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates. - * @default false - * @since v18.14.0 - */ - joinDuplicateHeaders?: boolean | undefined; - /** - * The number of milliseconds of inactivity a server needs to wait for additional incoming data, - * after it has finished writing the last response, before a socket will be destroyed. - * @see Server.keepAliveTimeout for more information. - * @default 5000 - * @since v18.0.0 - */ - keepAliveTimeout?: number | undefined; - /** - * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests. - * @default 30000 - */ - connectionsCheckingInterval?: number | undefined; - /** - * Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client. - * See {@link Server.headersTimeout} for more information. - * @default 60000 - * @since 18.0.0 - */ - headersTimeout?: number | undefined; - /** - * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`. - * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`. - * Default: @see stream.getDefaultHighWaterMark(). - * @since v20.1.0 - */ - highWaterMark?: number | undefined; - /** - * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`. - * Using the insecure parser should be avoided. - * See --insecure-http-parser for more information. - * @default false - */ - insecureHTTPParser?: boolean | undefined; - /** - * Optionally overrides the value of `--max-http-header-size` for requests received by - * this server, i.e. the maximum length of request headers in bytes. - * @default 16384 - * @since v13.3.0 - */ - maxHeaderSize?: number | undefined; - /** - * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. - * @default true - * @since v16.5.0 - */ - noDelay?: boolean | undefined; - /** - * If set to `true`, it forces the server to respond with a 400 (Bad Request) status code - * to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification). - * @default true - * @since 20.0.0 - */ - requireHostHeader?: boolean | undefined; - /** - * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, - * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. - * @default false - * @since v16.5.0 - */ - keepAlive?: boolean | undefined; - /** - * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. - * @default 0 - * @since v16.5.0 - */ - keepAliveInitialDelay?: number | undefined; - /** - * A list of response headers that should be sent only once. - * If the header's value is an array, the items will be joined using `; `. - */ - uniqueHeaders?: Array | undefined; - /** - * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body. - * @default false - * @since v18.17.0, v20.2.0 - */ - rejectNonStandardBodyWrites?: boolean | undefined; - } - type RequestListener< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > = (req: InstanceType, res: InstanceType & { req: InstanceType }) => void; - /** - * @since v0.1.17 - */ - class Server< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > extends NetServer { - constructor(requestListener?: RequestListener); - constructor(options: ServerOptions, requestListener?: RequestListener); - /** - * Sets the timeout value for sockets, and emits a `'timeout'` event on - * the Server object, passing the socket as an argument, if a timeout - * occurs. - * - * If there is a `'timeout'` event listener on the Server object, then it - * will be called with the timed-out socket as an argument. - * - * By default, the Server does not timeout sockets. However, if a callback - * is assigned to the Server's `'timeout'` event, timeouts must be handled - * explicitly. - * @since v0.9.12 - * @param [msecs=0 (no timeout)] - */ - setTimeout(msecs?: number, callback?: (socket: Socket) => void): this; - setTimeout(callback: (socket: Socket) => void): this; - /** - * Limits maximum incoming headers count. If set to 0, no limit will be applied. - * @since v0.7.0 - */ - maxHeadersCount: number | null; - /** - * The maximum number of requests socket can handle - * before closing keep alive connection. - * - * A value of `0` will disable the limit. - * - * When the limit is reached it will set the `Connection` header value to `close`, - * but will not actually close the connection, subsequent requests sent - * after the limit is reached will get `503 Service Unavailable` as a response. - * @since v16.10.0 - */ - maxRequestsPerSocket: number | null; - /** - * The number of milliseconds of inactivity before a socket is presumed - * to have timed out. - * - * A value of `0` will disable the timeout behavior on incoming connections. - * - * The socket timeout logic is set up on connection, so changing this - * value only affects new connections to the server, not any existing connections. - * @since v0.9.12 - */ - timeout: number; - /** - * Limit the amount of time the parser will wait to receive the complete HTTP - * headers. - * - * If the timeout expires, the server responds with status 408 without - * forwarding the request to the request listener and then closes the connection. - * - * It must be set to a non-zero value (e.g. 120 seconds) to protect against - * potential Denial-of-Service attacks in case the server is deployed without a - * reverse proxy in front. - * @since v11.3.0, v10.14.0 - */ - headersTimeout: number; - /** - * The number of milliseconds of inactivity a server needs to wait for additional - * incoming data, after it has finished writing the last response, before a socket - * will be destroyed. If the server receives new data before the keep-alive - * timeout has fired, it will reset the regular inactivity timeout, i.e., `server.timeout`. - * - * A value of `0` will disable the keep-alive timeout behavior on incoming - * connections. - * A value of `0` makes the http server behave similarly to Node.js versions prior - * to 8.0.0, which did not have a keep-alive timeout. - * - * The socket timeout logic is set up on connection, so changing this value only - * affects new connections to the server, not any existing connections. - * @since v8.0.0 - */ - keepAliveTimeout: number; - /** - * Sets the timeout value in milliseconds for receiving the entire request from - * the client. - * - * If the timeout expires, the server responds with status 408 without - * forwarding the request to the request listener and then closes the connection. - * - * It must be set to a non-zero value (e.g. 120 seconds) to protect against - * potential Denial-of-Service attacks in case the server is deployed without a - * reverse proxy in front. - * @since v14.11.0 - */ - requestTimeout: number; - /** - * Closes all connections connected to this server. - * @since v18.2.0 - */ - closeAllConnections(): void; - /** - * Closes all connections connected to this server which are not sending a request - * or waiting for a response. - * @since v18.2.0 - */ - closeIdleConnections(): void; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Socket) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "checkContinue", listener: RequestListener): this; - addListener(event: "checkExpectation", listener: RequestListener): this; - addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - addListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - addListener(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - addListener(event: "request", listener: RequestListener): this; - addListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - emit(event: string, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Socket): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit( - event: "checkContinue", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit( - event: "checkExpectation", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit(event: "clientError", err: Error, socket: stream.Duplex): boolean; - emit(event: "connect", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; - emit(event: "dropRequest", req: InstanceType, socket: stream.Duplex): boolean; - emit( - event: "request", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit(event: "upgrade", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Socket) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "checkContinue", listener: RequestListener): this; - on(event: "checkExpectation", listener: RequestListener): this; - on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - on( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - on(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - on(event: "request", listener: RequestListener): this; - on( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Socket) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "checkContinue", listener: RequestListener): this; - once(event: "checkExpectation", listener: RequestListener): this; - once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - once( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - once(event: "request", listener: RequestListener): this; - once( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Socket) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "checkContinue", listener: RequestListener): this; - prependListener(event: "checkExpectation", listener: RequestListener): this; - prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - prependListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener( - event: "dropRequest", - listener: (req: InstanceType, socket: stream.Duplex) => void, - ): this; - prependListener(event: "request", listener: RequestListener): this; - prependListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "checkContinue", listener: RequestListener): this; - prependOnceListener(event: "checkExpectation", listener: RequestListener): this; - prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - prependOnceListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener( - event: "dropRequest", - listener: (req: InstanceType, socket: stream.Duplex) => void, - ): this; - prependOnceListener(event: "request", listener: RequestListener): this; - prependOnceListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - } - /** - * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from - * the perspective of the participants of an HTTP transaction. - * @since v0.1.17 - */ - class OutgoingMessage extends stream.Writable { - readonly req: Request; - chunkedEncoding: boolean; - shouldKeepAlive: boolean; - useChunkedEncodingByDefault: boolean; - sendDate: boolean; - /** - * @deprecated Use `writableEnded` instead. - */ - finished: boolean; - /** - * Read-only. `true` if the headers were sent, otherwise `false`. - * @since v0.9.3 - */ - readonly headersSent: boolean; - /** - * Alias of `outgoingMessage.socket`. - * @since v0.3.0 - * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead. - */ - readonly connection: Socket | null; - /** - * Reference to the underlying socket. Usually, users will not want to access - * this property. - * - * After calling `outgoingMessage.end()`, this property will be nulled. - * @since v0.3.0 - */ - readonly socket: Socket | null; - constructor(); - /** - * Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter. - * @since v0.9.12 - * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event. - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * Sets a single header value. If the header already exists in the to-be-sent - * headers, its value will be replaced. Use an array of strings to send multiple - * headers with the same name. - * @since v0.4.0 - * @param name Header name - * @param value Header value - */ - setHeader(name: string, value: number | string | readonly string[]): this; - /** - * Sets multiple header values for implicit headers. headers must be an instance of - * `Headers` or `Map`, if a header already exists in the to-be-sent headers, its - * value will be replaced. - * - * ```js - * const headers = new Headers({ foo: 'bar' }); - * outgoingMessage.setHeaders(headers); - * ``` - * - * or - * - * ```js - * const headers = new Map([['foo', 'bar']]); - * outgoingMessage.setHeaders(headers); - * ``` - * - * When headers have been set with `outgoingMessage.setHeaders()`, they will be - * merged with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http.createServer((req, res) => { - * const headers = new Headers({ 'Content-Type': 'text/html' }); - * res.setHeaders(headers); - * res.writeHead(200, { 'Content-Type': 'text/plain' }); - * res.end('ok'); - * }); - * ``` - * - * @since v19.6.0, v18.15.0 - * @param name Header name - * @param value Header value - */ - setHeaders(headers: Headers | Map): this; - /** - * Append a single header value to the header object. - * - * If the value is an array, this is equivalent to calling this method multiple - * times. - * - * If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`. - * - * Depending of the value of `options.uniqueHeaders` when the client request or the - * server were created, this will end up in the header being sent multiple times or - * a single time with values joined using `; `. - * @since v18.3.0, v16.17.0 - * @param name Header name - * @param value Header value - */ - appendHeader(name: string, value: string | readonly string[]): this; - /** - * Gets the value of the HTTP header with the given name. If that header is not - * set, the returned value will be `undefined`. - * @since v0.4.0 - * @param name Name of header - */ - getHeader(name: string): number | string | string[] | undefined; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow - * copy is used, array values may be mutated without additional calls to - * various header-related HTTP module methods. The keys of the returned - * object are the header names and the values are the respective header - * values. All header names are lowercase. - * - * The object returned by the `outgoingMessage.getHeaders()` method does - * not prototypically inherit from the JavaScript `Object`. This means that - * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`, - * and others are not defined and will not work. - * - * ```js - * outgoingMessage.setHeader('Foo', 'bar'); - * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = outgoingMessage.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v7.7.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns an array containing the unique names of the current outgoing headers. - * All names are lowercase. - * @since v7.7.0 - */ - getHeaderNames(): string[]; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name is case-insensitive. - * - * ```js - * const hasContentType = outgoingMessage.hasHeader('content-type'); - * ``` - * @since v7.7.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that is queued for implicit sending. - * - * ```js - * outgoingMessage.removeHeader('Content-Encoding'); - * ``` - * @since v0.4.0 - * @param name Header name - */ - removeHeader(name: string): void; - /** - * Adds HTTP trailers (headers but at the end of the message) to the message. - * - * Trailers will **only** be emitted if the message is chunked encoded. If not, - * the trailers will be silently discarded. - * - * HTTP requires the `Trailer` header to be sent to emit trailers, - * with a list of header field names in its value, e.g. - * - * ```js - * message.writeHead(200, { 'Content-Type': 'text/plain', - * 'Trailer': 'Content-MD5' }); - * message.write(fileData); - * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' }); - * message.end(); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v0.3.0 - */ - addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; - /** - * Flushes the message headers. - * - * For efficiency reason, Node.js normally buffers the message headers - * until `outgoingMessage.end()` is called or the first chunk of message data - * is written. It then tries to pack the headers and data into a single TCP - * packet. - * - * It is usually desired (it saves a TCP round-trip), but not when the first - * data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message. - * @since v1.6.0 - */ - flushHeaders(): void; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v0.1.17 - */ - class ServerResponse extends OutgoingMessage { - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v0.4.0 - */ - statusCode: number; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status message that will be sent to the client when - * the headers get flushed. If this is left as `undefined` then the standard - * message for the status code will be used. - * - * ```js - * response.statusMessage = 'Not found'; - * ``` - * - * After response header was sent to the client, this property indicates the - * status message which was sent out. - * @since v0.11.8 - */ - statusMessage: string; - /** - * If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal. - * Mismatching the `Content-Length` header value will result - * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. - * @since v18.10.0, v16.18.0 - */ - strictContentLength: boolean; - constructor(req: Request); - assignSocket(socket: Socket): void; - detachSocket(socket: Socket): void; - /** - * Sends an HTTP/1.1 100 Continue message to the client, indicating that - * the request body should be sent. See the `'checkContinue'` event on `Server`. - * @since v0.3.0 - */ - writeContinue(callback?: () => void): void; - /** - * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header, - * indicating that the user agent can preload/preconnect the linked resources. - * The `hints` is an object containing the values of headers to be sent with - * early hints message. The optional `callback` argument will be called when - * the response message has been written. - * - * **Example** - * - * ```js - * const earlyHintsLink = '; rel=preload; as=style'; - * response.writeEarlyHints({ - * 'link': earlyHintsLink, - * }); - * - * const earlyHintsLinks = [ - * '; rel=preload; as=style', - * '; rel=preload; as=script', - * ]; - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * 'x-trace-id': 'id for diagnostics', - * }); - * - * const earlyHintsCallback = () => console.log('early hints message sent'); - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * }, earlyHintsCallback); - * ``` - * @since v18.11.0 - * @param hints An object containing the values of headers - * @param callback Will be called when the response message has been written - */ - writeEarlyHints(hints: Record, callback?: () => void): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * Optionally one can give a human-readable `statusMessage` as the second - * argument. - * - * `headers` may be an `Array` where the keys and values are in the same list. - * It is _not_ a list of tuples. So, the even-numbered offsets are key values, - * and the odd-numbered offsets are the associated values. The array is in the same - * format as `request.rawHeaders`. - * - * Returns a reference to the `ServerResponse`, so that calls can be chained. - * - * ```js - * const body = 'hello world'; - * response - * .writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain', - * }) - * .end(body); - * ``` - * - * This method must only be called once on a message and it must - * be called before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * If this method is called and `response.setHeader()` has not been called, - * it will directly write the supplied header values onto the network channel - * without caching internally, and the `response.getHeader()` on the header - * will not yield the expected result. If progressive population of headers is - * desired with potential future retrieval and modification, use `response.setHeader()` instead. - * - * ```js - * // Returns content-type = text/plain - * const server = http.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain' }); - * res.end('ok'); - * }); - * ``` - * - * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js - * will check whether `Content-Length` and the length of the body which has - * been transmitted are equal or not. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a \[`Error`\]\[\] being thrown. - * @since v0.1.30 - */ - writeHead( - statusCode: number, - statusMessage?: string, - headers?: OutgoingHttpHeaders | OutgoingHttpHeader[], - ): this; - writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; - /** - * Sends a HTTP/1.1 102 Processing message to the client, indicating that - * the request body should be sent. - * @since v10.0.0 - */ - writeProcessing(callback?: () => void): void; - } - interface InformationEvent { - statusCode: number; - statusMessage: string; - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - headers: IncomingHttpHeaders; - rawHeaders: string[]; - } - /** - * This object is created internally and returned from {@link request}. It - * represents an _in-progress_ request whose header has already been queued. The - * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will - * be sent along with the first data chunk or when calling `request.end()`. - * - * To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response - * headers have been received. The `'response'` event is executed with one - * argument which is an instance of {@link IncomingMessage}. - * - * During the `'response'` event, one can add listeners to the - * response object; particularly to listen for the `'data'` event. - * - * If no `'response'` handler is added, then the response will be - * entirely discarded. However, if a `'response'` event handler is added, - * then the data from the response object **must** be consumed, either by - * calling `response.read()` whenever there is a `'readable'` event, or - * by adding a `'data'` handler, or by calling the `.resume()` method. - * Until the data is consumed, the `'end'` event will not fire. Also, until - * the data is read it will consume memory that can eventually lead to a - * 'process out of memory' error. - * - * For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered. - * - * Set `Content-Length` header to limit the response body size. - * If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown, - * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. - * - * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. - * @since v0.1.17 - */ - class ClientRequest extends OutgoingMessage { - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v0.11.14 - * @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead. - */ - aborted: boolean; - /** - * The request host. - * @since v14.5.0, v12.19.0 - */ - host: string; - /** - * The request protocol. - * @since v14.5.0, v12.19.0 - */ - protocol: string; - /** - * When sending request through a keep-alive enabled agent, the underlying socket - * might be reused. But if server closes connection at unfortunate time, client - * may run into a 'ECONNRESET' error. - * - * ```js - * import http from 'node:http'; - * - * // Server has a 5 seconds keep-alive timeout by default - * http - * .createServer((req, res) => { - * res.write('hello\n'); - * res.end(); - * }) - * .listen(3000); - * - * setInterval(() => { - * // Adapting a keep-alive agent - * http.get('http://localhost:3000', { agent }, (res) => { - * res.on('data', (data) => { - * // Do nothing - * }); - * }); - * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout - * ``` - * - * By marking a request whether it reused socket or not, we can do - * automatic error retry base on it. - * - * ```js - * import http from 'node:http'; - * const agent = new http.Agent({ keepAlive: true }); - * - * function retriableRequest() { - * const req = http - * .get('http://localhost:3000', { agent }, (res) => { - * // ... - * }) - * .on('error', (err) => { - * // Check if retry is needed - * if (req.reusedSocket && err.code === 'ECONNRESET') { - * retriableRequest(); - * } - * }); - * } - * - * retriableRequest(); - * ``` - * @since v13.0.0, v12.16.0 - */ - reusedSocket: boolean; - /** - * Limits maximum response headers count. If set to 0, no limit will be applied. - */ - maxHeadersCount: number; - constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); - /** - * The request method. - * @since v0.1.97 - */ - method: string; - /** - * The request path. - * @since v0.4.0 - */ - path: string; - /** - * Marks the request as aborting. Calling this will cause remaining data - * in the response to be dropped and the socket to be destroyed. - * @since v0.3.8 - * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead. - */ - abort(): void; - onSocket(socket: Socket): void; - /** - * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called. - * @since v0.5.9 - * @param timeout Milliseconds before a request times out. - * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called. - * @since v0.5.9 - */ - setNoDelay(noDelay?: boolean): void; - /** - * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called. - * @since v0.5.9 - */ - setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; - /** - * Returns an array containing the unique names of the current outgoing raw - * headers. Header names are returned with their exact casing being set. - * - * ```js - * request.setHeader('Foo', 'bar'); - * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = request.getRawHeaderNames(); - * // headerNames === ['Foo', 'Set-Cookie'] - * ``` - * @since v15.13.0, v14.17.0 - */ - getRawHeaderNames(): string[]; - /** - * @deprecated - */ - addListener(event: "abort", listener: () => void): this; - addListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - addListener(event: "continue", listener: () => void): this; - addListener(event: "information", listener: (info: InformationEvent) => void): this; - addListener(event: "response", listener: (response: IncomingMessage) => void): this; - addListener(event: "socket", listener: (socket: Socket) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - on(event: "abort", listener: () => void): this; - on( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - on(event: "continue", listener: () => void): this; - on(event: "information", listener: (info: InformationEvent) => void): this; - on(event: "response", listener: (response: IncomingMessage) => void): this; - on(event: "socket", listener: (socket: Socket) => void): this; - on(event: "timeout", listener: () => void): this; - on( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - once(event: "abort", listener: () => void): this; - once( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - once(event: "continue", listener: () => void): this; - once(event: "information", listener: (info: InformationEvent) => void): this; - once(event: "response", listener: (response: IncomingMessage) => void): this; - once(event: "socket", listener: (socket: Socket) => void): this; - once(event: "timeout", listener: () => void): this; - once( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - prependListener(event: "abort", listener: () => void): this; - prependListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "continue", listener: () => void): this; - prependListener(event: "information", listener: (info: InformationEvent) => void): this; - prependListener(event: "response", listener: (response: IncomingMessage) => void): this; - prependListener(event: "socket", listener: (socket: Socket) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - prependOnceListener(event: "abort", listener: () => void): this; - prependOnceListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "continue", listener: () => void): this; - prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this; - prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this; - prependOnceListener(event: "socket", listener: (socket: Socket) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to - * access response - * status, headers, and data. - * - * Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to - * parse and emit the incoming HTTP headers and payload, as the underlying socket - * may be reused multiple times in case of keep-alive. - * @since v0.1.17 - */ - class IncomingMessage extends stream.Readable { - constructor(socket: Socket); - /** - * The `message.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from stream.Readable. - */ - aborted: boolean; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. - * Probably either `'1.1'` or `'1.0'`. - * - * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. - * @since v0.1.1 - */ - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - /** - * The `message.complete` property will be `true` if a complete HTTP message has - * been received and successfully parsed. - * - * This property is particularly useful as a means of determining if a client or - * server fully transmitted a message before a connection was terminated: - * - * ```js - * const req = http.request({ - * host: '127.0.0.1', - * port: 8080, - * method: 'POST', - * }, (res) => { - * res.resume(); - * res.on('end', () => { - * if (!res.complete) - * console.error( - * 'The connection was terminated while the message was still being sent'); - * }); - * }); - * ``` - * @since v0.3.0 - */ - complete: boolean; - /** - * Alias for `message.socket`. - * @since v0.1.90 - * @deprecated Since v16.0.0 - Use `socket`. - */ - connection: Socket; - /** - * The `net.Socket` object associated with the connection. - * - * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the - * client's authentication details. - * - * This property is guaranteed to be an instance of the `net.Socket` class, - * a subclass of `stream.Duplex`, unless the user specified a socket - * type other than `net.Socket` or internally nulled. - * @since v0.3.0 - */ - socket: Socket; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * Duplicates in raw headers are handled in the following ways, depending on the - * header name: - * - * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`, - * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded. - * To allow duplicate values of the headers listed above to be joined, - * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more - * information. - * * `set-cookie` is always an array. Duplicates are added to the array. - * * For duplicate `cookie` headers, the values are joined together with `; `. - * * For all other headers, the values are joined together with `, `. - * @since v0.1.5 - */ - headers: IncomingHttpHeaders; - /** - * Similar to `message.headers`, but there is no join logic and the values are - * always arrays of strings, even for headers received just once. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': ['curl/7.22.0'], - * // host: ['127.0.0.1:8000'], - * // accept: ['*'] } - * console.log(request.headersDistinct); - * ``` - * @since v18.3.0, v16.17.0 - */ - headersDistinct: NodeJS.Dict; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v0.11.6 - */ - rawHeaders: string[]; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v0.3.0 - */ - trailers: NodeJS.Dict; - /** - * Similar to `message.trailers`, but there is no join logic and the values are - * always arrays of strings, even for headers received just once. - * Only populated at the `'end'` event. - * @since v18.3.0, v16.17.0 - */ - trailersDistinct: NodeJS.Dict; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v0.11.6 - */ - rawTrailers: string[]; - /** - * Calls `message.socket.setTimeout(msecs, callback)`. - * @since v0.5.9 - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * **Only valid for request obtained from {@link Server}.** - * - * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`. - * @since v0.1.1 - */ - method?: string | undefined; - /** - * **Only valid for request obtained from {@link Server}.** - * - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. Take the following request: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * To parse the URL into its parts: - * - * ```js - * new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); - * ``` - * - * When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined: - * - * ```console - * $ node - * > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); - * URL { - * href: 'http://localhost/status?name=ryan', - * origin: 'http://localhost', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'localhost', - * hostname: 'localhost', - * port: '', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * - * Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper - * validation is used, as clients may specify a custom `Host` header. - * @since v0.1.90 - */ - url?: string | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The 3-digit HTTP response status code. E.G. `404`. - * @since v0.1.1 - */ - statusCode?: number | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`. - * @since v0.11.10 - */ - statusMessage?: string | undefined; - /** - * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed - * as an argument to any listeners on the event. - * @since v0.3.0 - */ - destroy(error?: Error): this; - } - interface AgentOptions extends NodeJS.PartialOptions { - /** - * Keep sockets around in a pool to be used by other requests in the future. Default = false - */ - keepAlive?: boolean | undefined; - /** - * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. - * Only relevant if keepAlive is set to true. - */ - keepAliveMsecs?: number | undefined; - /** - * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity - */ - maxSockets?: number | undefined; - /** - * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity. - */ - maxTotalSockets?: number | undefined; - /** - * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256. - */ - maxFreeSockets?: number | undefined; - /** - * Socket timeout in milliseconds. This will set the timeout after the socket is connected. - */ - timeout?: number | undefined; - /** - * Scheduling strategy to apply when picking the next free socket to use. - * @default `lifo` - */ - scheduling?: "fifo" | "lifo" | undefined; - } - /** - * An `Agent` is responsible for managing connection persistence - * and reuse for HTTP clients. It maintains a queue of pending requests - * for a given host and port, reusing a single socket connection for each - * until the queue is empty, at which time the socket is either destroyed - * or put into a pool where it is kept to be used again for requests to the - * same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`. - * - * Pooled connections have TCP Keep-Alive enabled for them, but servers may - * still close idle connections, in which case they will be removed from the - * pool and a new connection will be made when a new HTTP request is made for - * that host and port. Servers may also refuse to allow multiple requests - * over the same connection, in which case the connection will have to be - * remade for every request and cannot be pooled. The `Agent` will still make - * the requests to that server, but each one will occur over a new connection. - * - * When a connection is closed by the client or the server, it is removed - * from the pool. Any unused sockets in the pool will be unrefed so as not - * to keep the Node.js process running when there are no outstanding requests. - * (see `socket.unref()`). - * - * It is good practice, to `destroy()` an `Agent` instance when it is no - * longer in use, because unused sockets consume OS resources. - * - * Sockets are removed from an agent when the socket emits either - * a `'close'` event or an `'agentRemove'` event. When intending to keep one - * HTTP request open for a long time without keeping it in the agent, something - * like the following may be done: - * - * ```js - * http.get(options, (res) => { - * // Do stuff - * }).on('socket', (socket) => { - * socket.emit('agentRemove'); - * }); - * ``` - * - * An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options - * will be used - * for the client connection. - * - * `agent:false`: - * - * ```js - * http.get({ - * hostname: 'localhost', - * port: 80, - * path: '/', - * agent: false, // Create a new agent just for this one request - * }, (res) => { - * // Do stuff with response - * }); - * ``` - * - * `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v20.x/api/net.html#socketconnectoptions-connectlistener) are also supported. - * - * To configure any of them, a custom {@link Agent} instance must be created. - * - * ```js - * import http from 'node:http'; - * const keepAliveAgent = new http.Agent({ keepAlive: true }); - * options.agent = keepAliveAgent; - * http.request(options, onResponseCallback) - * ``` - * @since v0.3.4 - */ - class Agent extends EventEmitter { - /** - * By default set to 256. For agents with `keepAlive` enabled, this - * sets the maximum number of sockets that will be left open in the free - * state. - * @since v0.11.7 - */ - maxFreeSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open per origin. Origin is the returned value of `agent.getName()`. - * @since v0.3.6 - */ - maxSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open. Unlike `maxSockets`, this parameter applies across all origins. - * @since v14.5.0, v12.19.0 - */ - maxTotalSockets: number; - /** - * An object which contains arrays of sockets currently awaiting use by - * the agent when `keepAlive` is enabled. Do not modify. - * - * Sockets in the `freeSockets` list will be automatically destroyed and - * removed from the array on `'timeout'`. - * @since v0.11.4 - */ - readonly freeSockets: NodeJS.ReadOnlyDict; - /** - * An object which contains arrays of sockets currently in use by the - * agent. Do not modify. - * @since v0.3.6 - */ - readonly sockets: NodeJS.ReadOnlyDict; - /** - * An object which contains queues of requests that have not yet been assigned to - * sockets. Do not modify. - * @since v0.5.9 - */ - readonly requests: NodeJS.ReadOnlyDict; - constructor(opts?: AgentOptions); - /** - * Destroy any sockets that are currently in use by the agent. - * - * It is usually not necessary to do this. However, if using an - * agent with `keepAlive` enabled, then it is best to explicitly shut down - * the agent when it is no longer needed. Otherwise, - * sockets might stay open for quite a long time before the server - * terminates them. - * @since v0.11.4 - */ - destroy(): void; - /** - * Produces a socket/stream to be used for HTTP requests. - * - * By default, this function is the same as `net.createConnection()`. However, - * custom agents may override this method in case greater flexibility is desired. - * - * A socket/stream can be supplied in one of two ways: by returning the - * socket/stream from this function, or by passing the socket/stream to `callback`. - * - * This method is guaranteed to return an instance of the `net.Socket` class, - * a subclass of `stream.Duplex`, unless the user specifies a socket - * type other than `net.Socket`. - * - * `callback` has a signature of `(err, stream)`. - * @since v0.11.4 - * @param options Options containing connection details. Check `createConnection` for the format of the options - * @param callback Callback function that receives the created socket - */ - createConnection( - options: ClientRequestArgs, - callback?: (err: Error | null, stream: stream.Duplex) => void, - ): stream.Duplex | null | undefined; - /** - * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to: - * - * ```js - * socket.setKeepAlive(true, this.keepAliveMsecs); - * socket.unref(); - * return true; - * ``` - * - * This method can be overridden by a particular `Agent` subclass. If this - * method returns a falsy value, the socket will be destroyed instead of persisting - * it for use with the next request. - * - * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. - * @since v8.1.0 - */ - keepSocketAlive(socket: stream.Duplex): void; - /** - * Called when `socket` is attached to `request` after being persisted because of - * the keep-alive options. Default behavior is to: - * - * ```js - * socket.ref(); - * ``` - * - * This method can be overridden by a particular `Agent` subclass. - * - * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. - * @since v8.1.0 - */ - reuseSocket(socket: stream.Duplex, request: ClientRequest): void; - /** - * Get a unique name for a set of request options, to determine whether a - * connection can be reused. For an HTTP agent, this returns`host:port:localAddress` or `host:port:localAddress:family`. For an HTTPS agent, - * the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options - * that determine socket reusability. - * @since v0.11.4 - * @param options A set of options providing information for name generation - */ - getName(options?: ClientRequestArgs): string; - } - const METHODS: string[]; - const STATUS_CODES: { - [errorCode: number]: string | undefined; - [errorCode: string]: string | undefined; - }; - /** - * Returns a new instance of {@link Server}. - * - * The `requestListener` is a function which is automatically - * added to the `'request'` event. - * - * ```js - * import http from 'node:http'; - * - * // Create a local server to receive data from - * const server = http.createServer((req, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * - * ```js - * import http from 'node:http'; - * - * // Create a local server to receive data from - * const server = http.createServer(); - * - * // Listen to the request event - * server.on('request', (request, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * @since v0.1.13 - */ - function createServer< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - >(requestListener?: RequestListener): Server; - function createServer< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - >( - options: ServerOptions, - requestListener?: RequestListener, - ): Server; - // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly, - // create interface RequestOptions would make the naming more clear to developers - interface RequestOptions extends ClientRequestArgs {} - /** - * `options` in `socket.connect()` are also supported. - * - * Node.js maintains several connections per server to make HTTP requests. - * This function allows one to transparently issue requests. - * - * `url` can be a string or a `URL` object. If `url` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence. - * - * The optional `callback` parameter will be added as a one-time listener for - * the `'response'` event. - * - * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * import http from 'node:http'; - * import { Buffer } from 'node:buffer'; - * - * const postData = JSON.stringify({ - * 'msg': 'Hello World!', - * }); - * - * const options = { - * hostname: 'www.google.com', - * port: 80, - * path: '/upload', - * method: 'POST', - * headers: { - * 'Content-Type': 'application/json', - * 'Content-Length': Buffer.byteLength(postData), - * }, - * }; - * - * const req = http.request(options, (res) => { - * console.log(`STATUS: ${res.statusCode}`); - * console.log(`HEADERS: ${JSON.stringify(res.headers)}`); - * res.setEncoding('utf8'); - * res.on('data', (chunk) => { - * console.log(`BODY: ${chunk}`); - * }); - * res.on('end', () => { - * console.log('No more data in response.'); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(`problem with request: ${e.message}`); - * }); - * - * // Write data to request body - * req.write(postData); - * req.end(); - * ``` - * - * In the example `req.end()` was called. With `http.request()` one - * must always call `req.end()` to signify the end of the request - - * even if there is no data being written to the request body. - * - * If any error is encountered during the request (be that with DNS resolution, - * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted - * on the returned request object. As with all `'error'` events, if no listeners - * are registered the error will be thrown. - * - * There are a few special headers that should be noted. - * - * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to - * the server should be persisted until the next request. - * * Sending a 'Content-Length' header will disable the default chunked encoding. - * * Sending an 'Expect' header will immediately send the request headers. - * Usually, when sending 'Expect: 100-continue', both a timeout and a listener - * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more - * information. - * * Sending an Authorization header will override using the `auth` option - * to compute basic authentication. - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('http://abc:xyz@example.com'); - * - * const req = http.request(options, (res) => { - * // ... - * }); - * ``` - * - * In a successful request, the following events will be emitted in the following - * order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * (`'data'` will not be emitted at all if the response body is empty, for - * instance, in most redirects) - * * `'end'` on the `res` object - * * `'close'` - * - * In the case of a connection error, the following events will be emitted: - * - * * `'socket'` - * * `'error'` - * * `'close'` - * - * In the case of a premature connection close before the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` - * * `'close'` - * - * In the case of a premature connection close after the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (connection closed here) - * * `'aborted'` on the `res` object - * * `'close'` - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'` - * * `'close'` on the `res` object - * - * If `req.destroy()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` - * - * If `req.destroy()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` - * - * If `req.destroy()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.destroy()` called here) - * * `'aborted'` on the `res` object - * * `'close'` - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` on the `res` object - * - * If `req.abort()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.abort()` called here) - * * `'abort'` - * * `'close'` - * - * If `req.abort()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.abort()` called here) - * * `'abort'` - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` - * * `'close'` - * - * If `req.abort()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.abort()` called here) - * * `'abort'` - * * `'aborted'` on the `res` object - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`. - * * `'close'` - * * `'close'` on the `res` object - * - * Setting the `timeout` option or using the `setTimeout()` function will - * not abort the request or do anything besides add a `'timeout'` event. - * - * Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the - * request. Specifically, the `'error'` event will be emitted with an error with - * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided. - * @since v0.3.6 - */ - function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function request( - url: string | URL, - options: RequestOptions, - callback?: (res: IncomingMessage) => void, - ): ClientRequest; - /** - * Since most requests are GET requests without bodies, Node.js provides this - * convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to - * consume the response - * data for reasons stated in {@link ClientRequest} section. - * - * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}. - * - * JSON fetching example: - * - * ```js - * http.get('http://localhost:8000/', (res) => { - * const { statusCode } = res; - * const contentType = res.headers['content-type']; - * - * let error; - * // Any 2xx status code signals a successful response but - * // here we're only checking for 200. - * if (statusCode !== 200) { - * error = new Error('Request Failed.\n' + - * `Status Code: ${statusCode}`); - * } else if (!/^application\/json/.test(contentType)) { - * error = new Error('Invalid content-type.\n' + - * `Expected application/json but received ${contentType}`); - * } - * if (error) { - * console.error(error.message); - * // Consume response data to free up memory - * res.resume(); - * return; - * } - * - * res.setEncoding('utf8'); - * let rawData = ''; - * res.on('data', (chunk) => { rawData += chunk; }); - * res.on('end', () => { - * try { - * const parsedData = JSON.parse(rawData); - * console.log(parsedData); - * } catch (e) { - * console.error(e.message); - * } - * }); - * }).on('error', (e) => { - * console.error(`Got error: ${e.message}`); - * }); - * - * // Create a local server to receive data from - * const server = http.createServer((req, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the method set to GET by default. - */ - function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; - /** - * Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called. - * - * Passing illegal value as `name` will result in a `TypeError` being thrown, - * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`. - * - * It is not necessary to use this method before passing headers to an HTTP request - * or response. The HTTP module will automatically validate such headers. - * - * Example: - * - * ```js - * import { validateHeaderName } from 'node:http'; - * - * try { - * validateHeaderName(''); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN' - * console.error(err.message); // --> 'Header name must be a valid HTTP token [""]' - * } - * ``` - * @since v14.3.0 - * @param [label='Header name'] Label for error message. - */ - function validateHeaderName(name: string): void; - /** - * Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called. - * - * Passing illegal value as `value` will result in a `TypeError` being thrown. - * - * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`. - * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`. - * - * It is not necessary to use this method before passing headers to an HTTP request - * or response. The HTTP module will automatically validate such headers. - * - * Examples: - * - * ```js - * import { validateHeaderValue } from 'node:http'; - * - * try { - * validateHeaderValue('x-my-header', undefined); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true - * console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"' - * } - * - * try { - * validateHeaderValue('x-my-header', 'oʊmɪɡə'); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code === 'ERR_INVALID_CHAR'); // --> true - * console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]' - * } - * ``` - * @since v14.3.0 - * @param name Header name - * @param value Header value - */ - function validateHeaderValue(name: string, value: string): void; - /** - * Set the maximum number of idle HTTP parsers. - * @since v18.8.0, v16.18.0 - * @param [max=1000] - */ - function setMaxIdleHTTPParsers(max: number): void; - /** - * Global instance of `Agent` which is used as the default for all HTTP client - * requests. Diverges from a default `Agent` configuration by having `keepAlive` - * enabled and a `timeout` of 5 seconds. - * @since v0.5.9 - */ - let globalAgent: Agent; - /** - * Read-only property specifying the maximum allowed size of HTTP headers in bytes. - * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option. - */ - const maxHeaderSize: number; -} -declare module "node:http" { - export * from "http"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/http2.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/http2.d.ts deleted file mode 100644 index 9c69a19..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/http2.d.ts +++ /dev/null @@ -1,2631 +0,0 @@ -/** - * The `node:http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol. - * It can be accessed using: - * - * ```js - * import http2 from 'node:http2'; - * ``` - * @since v8.4.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http2.js) - */ -declare module "http2" { - import { NonSharedBuffer } from "node:buffer"; - import EventEmitter = require("node:events"); - import * as fs from "node:fs"; - import * as net from "node:net"; - import * as stream from "node:stream"; - import * as tls from "node:tls"; - import * as url from "node:url"; - import { - IncomingHttpHeaders as Http1IncomingHttpHeaders, - IncomingMessage, - OutgoingHttpHeaders, - ServerResponse, - } from "node:http"; - export { OutgoingHttpHeaders } from "node:http"; - export interface IncomingHttpStatusHeader { - ":status"?: number | undefined; - } - export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders { - ":path"?: string | undefined; - ":method"?: string | undefined; - ":authority"?: string | undefined; - ":scheme"?: string | undefined; - } - // Http2Stream - export interface StreamPriorityOptions { - exclusive?: boolean | undefined; - parent?: number | undefined; - weight?: number | undefined; - silent?: boolean | undefined; - } - export interface StreamState { - localWindowSize?: number | undefined; - state?: number | undefined; - localClose?: number | undefined; - remoteClose?: number | undefined; - sumDependencyWeight?: number | undefined; - weight?: number | undefined; - } - export interface ServerStreamResponseOptions { - endStream?: boolean | undefined; - waitForTrailers?: boolean | undefined; - } - export interface StatOptions { - offset: number; - length: number; - } - export interface ServerStreamFileResponseOptions { - statCheck?: - | ((stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions) => void) - | undefined; - waitForTrailers?: boolean | undefined; - offset?: number | undefined; - length?: number | undefined; - } - export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { - onError?: ((err: NodeJS.ErrnoException) => void) | undefined; - } - export interface Http2Stream extends stream.Duplex { - /** - * Set to `true` if the `Http2Stream` instance was aborted abnormally. When set, - * the `'aborted'` event will have been emitted. - * @since v8.4.0 - */ - readonly aborted: boolean; - /** - * This property shows the number of characters currently buffered to be written. - * See `net.Socket.bufferSize` for details. - * @since v11.2.0, v10.16.0 - */ - readonly bufferSize: number; - /** - * Set to `true` if the `Http2Stream` instance has been closed. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Set to `true` if the `Http2Stream` instance has been destroyed and is no longer - * usable. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Set to `true` if the `END_STREAM` flag was set in the request or response - * HEADERS frame received, indicating that no additional data should be received - * and the readable side of the `Http2Stream` will be closed. - * @since v10.11.0 - */ - readonly endAfterHeaders: boolean; - /** - * The numeric stream identifier of this `Http2Stream` instance. Set to `undefined` if the stream identifier has not yet been assigned. - * @since v8.4.0 - */ - readonly id?: number | undefined; - /** - * Set to `true` if the `Http2Stream` instance has not yet been assigned a - * numeric stream identifier. - * @since v9.4.0 - */ - readonly pending: boolean; - /** - * Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is - * destroyed after either receiving an `RST_STREAM` frame from the connected peer, - * calling `http2stream.close()`, or `http2stream.destroy()`. Will be `undefined` if the `Http2Stream` has not been closed. - * @since v8.4.0 - */ - readonly rstCode: number; - /** - * An object containing the outbound headers sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentHeaders: OutgoingHttpHeaders; - /** - * An array of objects containing the outbound informational (additional) headers - * sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined; - /** - * An object containing the outbound trailers sent for this `HttpStream`. - * @since v9.5.0 - */ - readonly sentTrailers?: OutgoingHttpHeaders | undefined; - /** - * A reference to the `Http2Session` instance that owns this `Http2Stream`. The - * value will be `undefined` after the `Http2Stream` instance is destroyed. - * @since v8.4.0 - */ - readonly session: Http2Session | undefined; - /** - * Provides miscellaneous information about the current state of the `Http2Stream`. - * - * A current state of this `Http2Stream`. - * @since v8.4.0 - */ - readonly state: StreamState; - /** - * Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the - * connected HTTP/2 peer. - * @since v8.4.0 - * @param [code=http2.constants.NGHTTP2_NO_ERROR] Unsigned 32-bit integer identifying the error code. - * @param callback An optional function registered to listen for the `'close'` event. - */ - close(code?: number, callback?: () => void): void; - /** - * Updates the priority for this `Http2Stream` instance. - * @since v8.4.0 - */ - priority(options: StreamPriorityOptions): void; - /** - * ```js - * import http2 from 'node:http2'; - * const client = http2.connect('http://example.org:8000'); - * const { NGHTTP2_CANCEL } = http2.constants; - * const req = client.request({ ':path': '/' }); - * - * // Cancel the stream if there's no activity after 5 seconds - * req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL)); - * ``` - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method - * will cause the `Http2Stream` to be immediately closed and must only be - * called after the `'wantTrailers'` event has been emitted. When sending a - * request or sending a response, the `options.waitForTrailers` option must be set - * in order to keep the `Http2Stream` open after the final `DATA` frame so that - * trailers can be sent. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond(undefined, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ xyz: 'abc' }); - * }); - * stream.end('Hello World'); - * }); - * ``` - * - * The HTTP/1 specification forbids trailers from containing HTTP/2 pseudo-header - * fields (e.g. `':method'`, `':path'`, etc). - * @since v10.0.0 - */ - sendTrailers(headers: OutgoingHttpHeaders): void; - addListener(event: "aborted", listener: () => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: "streamClosed", listener: (code: number) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: "wantTrailers", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "aborted"): boolean; - emit(event: "close"): boolean; - emit(event: "data", chunk: NonSharedBuffer | string): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "frameError", frameType: number, errorCode: number): boolean; - emit(event: "pipe", src: stream.Readable): boolean; - emit(event: "unpipe", src: stream.Readable): boolean; - emit(event: "streamClosed", code: number): boolean; - emit(event: "timeout"): boolean; - emit(event: "trailers", trailers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "wantTrailers"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "aborted", listener: () => void): this; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: "streamClosed", listener: (code: number) => void): this; - on(event: "timeout", listener: () => void): this; - on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - on(event: "wantTrailers", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "aborted", listener: () => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: "streamClosed", listener: (code: number) => void): this; - once(event: "timeout", listener: () => void): this; - once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - once(event: "wantTrailers", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "aborted", listener: () => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "streamClosed", listener: (code: number) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: "wantTrailers", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "aborted", listener: () => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "streamClosed", listener: (code: number) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: "wantTrailers", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Stream extends Http2Stream { - addListener(event: "continue", listener: () => {}): this; - addListener( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - addListener( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "continue"): boolean; - emit(event: "headers", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; - emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "response", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "continue", listener: () => {}): this; - on( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - on( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "continue", listener: () => {}): this; - once( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - once( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "continue", listener: () => {}): this; - prependListener( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependListener( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "continue", listener: () => {}): this; - prependOnceListener( - event: "headers", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener( - event: "response", - listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ServerHttp2Stream extends Http2Stream { - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote - * client's most recent `SETTINGS` frame. Will be `true` if the remote peer - * accepts push streams, `false` otherwise. Settings are the same for every `Http2Stream` in the same `Http2Session`. - * @since v8.4.0 - */ - readonly pushAllowed: boolean; - /** - * Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer. - * @since v8.4.0 - */ - additionalHeaders(headers: OutgoingHttpHeaders): void; - /** - * Initiates a push stream. The callback is invoked with the new `Http2Stream` instance created for the push stream passed as the second argument, or an `Error` passed as the first argument. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => { - * if (err) throw err; - * pushStream.respond({ ':status': 200 }); - * pushStream.end('some pushed data'); - * }); - * stream.end('some data'); - * }); - * ``` - * - * Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass - * a `weight` value to `http2stream.priority` with the `silent` option set to `true` to enable server-side bandwidth balancing between concurrent streams. - * - * Calling `http2stream.pushStream()` from within a pushed stream is not permitted - * and will throw an error. - * @since v8.4.0 - * @param callback Callback that is called once the push stream has been initiated. - */ - pushStream( - headers: OutgoingHttpHeaders, - callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, - ): void; - pushStream( - headers: OutgoingHttpHeaders, - options?: StreamPriorityOptions, - callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, - ): void; - /** - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.end('some data'); - * }); - * ``` - * - * Initiates a response. When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be sent. - * The `http2stream.sendTrailers()` method can then be used to send trailing header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either `http2stream.sendTrailers()` or `http2stream.close()` to close the `Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * stream.end('some data'); - * }); - * ``` - * @since v8.4.0 - */ - respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void; - /** - * Initiates a response whose data is read from the given file descriptor. No - * validation is performed on the given file descriptor. If an error occurs while - * attempting to read data using the file descriptor, the `Http2Stream` will be - * closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8', - * }; - * stream.respondWithFD(fd, headers); - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given fd. If the `statCheck` function is provided, the `http2stream.respondWithFD()` method will - * perform an `fs.fstat()` call to collect details on the provided file descriptor. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The file descriptor or `FileHandle` is not closed when the stream is closed, - * so it will need to be closed manually once it is no longer needed. - * Using the same file descriptor concurrently for multiple streams - * is not supported and may result in data loss. Re-using a file descriptor - * after a stream has finished is supported. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code _must_ call either `http2stream.sendTrailers()` - * or `http2stream.close()` to close the `Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8', - * }; - * stream.respondWithFD(fd, headers, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * @since v8.4.0 - * @param fd A readable file descriptor. - */ - respondWithFD( - fd: number | fs.promises.FileHandle, - headers?: OutgoingHttpHeaders, - options?: ServerStreamFileResponseOptions, - ): void; - /** - * Sends a regular file as the response. The `path` must specify a regular file - * or an `'error'` event will be emitted on the `Http2Stream` object. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given file: - * - * If an error occurs while attempting to read the file data, the `Http2Stream` will be closed using an - * `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. - * If the `onError` callback is defined, then it will be called. Otherwise, the stream will be destroyed. - * - * Example using a file path: - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * headers['last-modified'] = stat.mtime.toUTCString(); - * } - * - * function onError(err) { - * // stream.respond() can throw if the stream has been destroyed by - * // the other side. - * try { - * if (err.code === 'ENOENT') { - * stream.respond({ ':status': 404 }); - * } else { - * stream.respond({ ':status': 500 }); - * } - * } catch (err) { - * // Perform actual error handling. - * console.error(err); - * } - * stream.end(); - * } - * - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck, onError }); - * }); - * ``` - * - * The `options.statCheck` function may also be used to cancel the send operation - * by returning `false`. For instance, a conditional request may check the stat - * results to determine if the file has been modified to return an appropriate `304` response: - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * // Check the stat here... - * stream.respond({ ':status': 304 }); - * return false; // Cancel the send operation - * } - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck }); - * }); - * ``` - * - * The `content-length` header field will be automatically set. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The `options.onError` function may also be used to handle all the errors - * that could happen before the delivery of the file is initiated. The - * default behavior is to destroy the stream. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * }); - * ``` - * @since v8.4.0 - */ - respondWithFile( - path: string, - headers?: OutgoingHttpHeaders, - options?: ServerStreamFileResponseOptionsWithError, - ): void; - } - // Http2Session - export interface Settings { - headerTableSize?: number | undefined; - enablePush?: boolean | undefined; - initialWindowSize?: number | undefined; - maxFrameSize?: number | undefined; - maxConcurrentStreams?: number | undefined; - maxHeaderListSize?: number | undefined; - enableConnectProtocol?: boolean | undefined; - } - export interface ClientSessionRequestOptions { - endStream?: boolean | undefined; - exclusive?: boolean | undefined; - parent?: number | undefined; - weight?: number | undefined; - waitForTrailers?: boolean | undefined; - signal?: AbortSignal | undefined; - } - export interface SessionState { - effectiveLocalWindowSize?: number | undefined; - effectiveRecvDataLength?: number | undefined; - nextStreamID?: number | undefined; - localWindowSize?: number | undefined; - lastProcStreamID?: number | undefined; - remoteWindowSize?: number | undefined; - outboundQueueSize?: number | undefined; - deflateDynamicTableSize?: number | undefined; - inflateDynamicTableSize?: number | undefined; - } - export interface Http2Session extends EventEmitter { - /** - * Value will be `undefined` if the `Http2Session` is not yet connected to a - * socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or - * will return the value of the connected `TLSSocket`'s own `alpnProtocol` property. - * @since v9.4.0 - */ - readonly alpnProtocol?: string | undefined; - /** - * Will be `true` if this `Http2Session` instance has been closed, otherwise `false`. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Will be `true` if this `Http2Session` instance is still connecting, will be set - * to `false` before emitting `connect` event and/or calling the `http2.connect` callback. - * @since v10.0.0 - */ - readonly connecting: boolean; - /** - * Will be `true` if this `Http2Session` instance has been destroyed and must no - * longer be used, otherwise `false`. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Value is `undefined` if the `Http2Session` session socket has not yet been - * connected, `true` if the `Http2Session` is connected with a `TLSSocket`, - * and `false` if the `Http2Session` is connected to any other kind of socket - * or stream. - * @since v9.4.0 - */ - readonly encrypted?: boolean | undefined; - /** - * A prototype-less object describing the current local settings of this `Http2Session`. - * The local settings are local to _this_`Http2Session` instance. - * @since v8.4.0 - */ - readonly localSettings: Settings; - /** - * If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property - * will return an `Array` of origins for which the `Http2Session` may be - * considered authoritative. - * - * The `originSet` property is only available when using a secure TLS connection. - * @since v9.4.0 - */ - readonly originSet?: string[] | undefined; - /** - * Indicates whether the `Http2Session` is currently waiting for acknowledgment of - * a sent `SETTINGS` frame. Will be `true` after calling the `http2session.settings()` method. - * Will be `false` once all sent `SETTINGS` frames have been acknowledged. - * @since v8.4.0 - */ - readonly pendingSettingsAck: boolean; - /** - * A prototype-less object describing the current remote settings of this`Http2Session`. - * The remote settings are set by the _connected_ HTTP/2 peer. - * @since v8.4.0 - */ - readonly remoteSettings: Settings; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * limits available methods to ones safe to use with HTTP/2. - * - * `destroy`, `emit`, `end`, `pause`, `read`, `resume`, and `write` will throw - * an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for more information. - * - * `setTimeout` method will be called on this `Http2Session`. - * - * All other interactions will be routed directly to the socket. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * Provides miscellaneous information about the current state of the`Http2Session`. - * - * An object describing the current status of this `Http2Session`. - * @since v8.4.0 - */ - readonly state: SessionState; - /** - * The `http2session.type` will be equal to `http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a - * server, and `http2.constants.NGHTTP2_SESSION_CLIENT` if the instance is a - * client. - * @since v8.4.0 - */ - readonly type: number; - /** - * Gracefully closes the `Http2Session`, allowing any existing streams to - * complete on their own and preventing new `Http2Stream` instances from being - * created. Once closed, `http2session.destroy()`_might_ be called if there - * are no open `Http2Stream` instances. - * - * If specified, the `callback` function is registered as a handler for the`'close'` event. - * @since v9.4.0 - */ - close(callback?: () => void): void; - /** - * Immediately terminates the `Http2Session` and the associated `net.Socket` or `tls.TLSSocket`. - * - * Once destroyed, the `Http2Session` will emit the `'close'` event. If `error` is not undefined, an `'error'` event will be emitted immediately before the `'close'` event. - * - * If there are any remaining open `Http2Streams` associated with the `Http2Session`, those will also be destroyed. - * @since v8.4.0 - * @param error An `Error` object if the `Http2Session` is being destroyed due to an error. - * @param code The HTTP/2 error code to send in the final `GOAWAY` frame. If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`, otherwise defaults to `NO_ERROR`. - */ - destroy(error?: Error, code?: number): void; - /** - * Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`. - * @since v9.4.0 - * @param code An HTTP/2 error code - * @param lastStreamID The numeric ID of the last processed `Http2Stream` - * @param opaqueData A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame. - */ - goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void; - /** - * Sends a `PING` frame to the connected HTTP/2 peer. A `callback` function must - * be provided. The method will return `true` if the `PING` was sent, `false` otherwise. - * - * The maximum number of outstanding (unacknowledged) pings is determined by the `maxOutstandingPings` configuration option. The default maximum is 10. - * - * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and - * returned with the ping acknowledgment. - * - * The callback will be invoked with three arguments: an error argument that will - * be `null` if the `PING` was successfully acknowledged, a `duration` argument - * that reports the number of milliseconds elapsed since the ping was sent and the - * acknowledgment was received, and a `Buffer` containing the 8-byte `PING` payload. - * - * ```js - * session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => { - * if (!err) { - * console.log(`Ping acknowledged in ${duration} milliseconds`); - * console.log(`With payload '${payload.toString()}'`); - * } - * }); - * ``` - * - * If the `payload` argument is not specified, the default payload will be the - * 64-bit timestamp (little endian) marking the start of the `PING` duration. - * @since v8.9.3 - * @param payload Optional ping payload. - */ - ping(callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void): boolean; - ping( - payload: NodeJS.ArrayBufferView, - callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void, - ): boolean; - /** - * Calls `ref()` on this `Http2Session` instance's underlying `net.Socket`. - * @since v9.4.0 - */ - ref(): void; - /** - * Sets the local endpoint's window size. - * The `windowSize` is the total window size to set, not - * the delta. - * - * ```js - * import http2 from 'node:http2'; - * - * const server = http2.createServer(); - * const expectedWindowSize = 2 ** 20; - * server.on('connect', (session) => { - * - * // Set local window size to be 2 ** 20 - * session.setLocalWindowSize(expectedWindowSize); - * }); - * ``` - * @since v15.3.0, v14.18.0 - */ - setLocalWindowSize(windowSize: number): void; - /** - * Used to set a callback function that is called when there is no activity on - * the `Http2Session` after `msecs` milliseconds. The given `callback` is - * registered as a listener on the `'timeout'` event. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Updates the current local settings for this `Http2Session` and sends a new `SETTINGS` frame to the connected HTTP/2 peer. - * - * Once called, the `http2session.pendingSettingsAck` property will be `true` while the session is waiting for the remote peer to acknowledge the new - * settings. - * - * The new settings will not become effective until the `SETTINGS` acknowledgment - * is received and the `'localSettings'` event is emitted. It is possible to send - * multiple `SETTINGS` frames while acknowledgment is still pending. - * @since v8.4.0 - * @param callback Callback that is called once the session is connected or right away if the session is already connected. - */ - settings( - settings: Settings, - callback?: (err: Error | null, settings: Settings, duration: number) => void, - ): void; - /** - * Calls `unref()` on this `Http2Session`instance's underlying `net.Socket`. - * @since v9.4.0 - */ - unref(): void; - addListener(event: "close", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - addListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - addListener(event: "localSettings", listener: (settings: Settings) => void): this; - addListener(event: "ping", listener: () => void): this; - addListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean; - emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer): boolean; - emit(event: "localSettings", settings: Settings): boolean; - emit(event: "ping"): boolean; - emit(event: "remoteSettings", settings: Settings): boolean; - emit(event: "timeout"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - on( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - on(event: "localSettings", listener: (settings: Settings) => void): this; - on(event: "ping", listener: () => void): this; - on(event: "remoteSettings", listener: (settings: Settings) => void): this; - on(event: "timeout", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - once( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - once(event: "localSettings", listener: (settings: Settings) => void): this; - once(event: "ping", listener: () => void): this; - once(event: "remoteSettings", listener: (settings: Settings) => void): this; - once(event: "timeout", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - prependListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - prependListener(event: "localSettings", listener: (settings: Settings) => void): this; - prependListener(event: "ping", listener: () => void): this; - prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - prependOnceListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this; - prependOnceListener(event: "ping", listener: () => void): this; - prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Session extends Http2Session { - /** - * For HTTP/2 Client `Http2Session` instances only, the `http2session.request()` creates and returns an `Http2Stream` instance that can be used to send an - * HTTP/2 request to the connected server. - * - * When a `ClientHttp2Session` is first created, the socket may not yet be - * connected. if `clienthttp2session.request()` is called during this time, the - * actual request will be deferred until the socket is ready to go. - * If the `session` is closed before the actual request be executed, an `ERR_HTTP2_GOAWAY_SESSION` is thrown. - * - * This method is only available if `http2session.type` is equal to `http2.constants.NGHTTP2_SESSION_CLIENT`. - * - * ```js - * import http2 from 'node:http2'; - * const clientSession = http2.connect('https://localhost:1234'); - * const { - * HTTP2_HEADER_PATH, - * HTTP2_HEADER_STATUS, - * } = http2.constants; - * - * const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' }); - * req.on('response', (headers) => { - * console.log(headers[HTTP2_HEADER_STATUS]); - * req.on('data', (chunk) => { // .. }); - * req.on('end', () => { // .. }); - * }); - * ``` - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * is emitted immediately after queuing the last chunk of payload data to be sent. - * The `http2stream.sendTrailers()` method can then be called to send trailing - * headers to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * When `options.signal` is set with an `AbortSignal` and then `abort` on the - * corresponding `AbortController` is called, the request will emit an `'error'`event with an `AbortError` error. - * - * The `:method` and `:path` pseudo-headers are not specified within `headers`, - * they respectively default to: - * - * * `:method` \= `'GET'` - * * `:path` \= `/` - * @since v8.4.0 - */ - request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream; - addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - addListener(event: "origin", listener: (origins: string[]) => void): this; - addListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - addListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "altsvc", alt: string, origin: string, stream: number): boolean; - emit(event: "origin", origins: readonly string[]): boolean; - emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; - emit( - event: "stream", - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - on(event: "origin", listener: (origins: string[]) => void): this; - on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - on( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - once(event: "origin", listener: (origins: string[]) => void): this; - once( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - once( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - prependListener(event: "origin", listener: (origins: string[]) => void): this; - prependListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - prependListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - prependOnceListener(event: "origin", listener: (origins: string[]) => void): this; - prependOnceListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - prependOnceListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - ) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface AlternativeServiceOptions { - origin: number | string | url.URL; - } - export interface ServerHttp2Session< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends Http2Session { - readonly server: - | Http2Server - | Http2SecureServer; - /** - * Submits an `ALTSVC` frame (as defined by [RFC 7838](https://tools.ietf.org/html/rfc7838)) to the connected client. - * - * ```js - * import http2 from 'node:http2'; - * - * const server = http2.createServer(); - * server.on('session', (session) => { - * // Set altsvc for origin https://example.org:80 - * session.altsvc('h2=":8000"', 'https://example.org:80'); - * }); - * - * server.on('stream', (stream) => { - * // Set altsvc for a specific stream - * stream.session.altsvc('h2=":8000"', stream.id); - * }); - * ``` - * - * Sending an `ALTSVC` frame with a specific stream ID indicates that the alternate - * service is associated with the origin of the given `Http2Stream`. - * - * The `alt` and origin string _must_ contain only ASCII bytes and are - * strictly interpreted as a sequence of ASCII bytes. The special value `'clear'`may be passed to clear any previously set alternative service for a given - * domain. - * - * When a string is passed for the `originOrStream` argument, it will be parsed as - * a URL and the origin will be derived. For instance, the origin for the - * HTTP URL `'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as`originOrStream`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * @since v9.4.0 - * @param alt A description of the alternative service configuration as defined by `RFC 7838`. - * @param originOrStream Either a URL string specifying the origin (or an `Object` with an `origin` property) or the numeric identifier of an active `Http2Stream` as given by the - * `http2stream.id` property. - */ - altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void; - /** - * Submits an `ORIGIN` frame (as defined by [RFC 8336](https://tools.ietf.org/html/rfc8336)) to the connected client - * to advertise the set of origins for which the server is capable of providing - * authoritative responses. - * - * ```js - * import http2 from 'node:http2'; - * const options = getSecureOptionsSomehow(); - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * server.on('session', (session) => { - * session.origin('https://example.com', 'https://example.org'); - * }); - * ``` - * - * When a string is passed as an `origin`, it will be parsed as a URL and the - * origin will be derived. For instance, the origin for the HTTP URL `'https://example.org/foo/bar'` is the ASCII string` 'https://example.org'`. An error will be thrown if either the given - * string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as - * an `origin`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * - * Alternatively, the `origins` option may be used when creating a new HTTP/2 - * server using the `http2.createSecureServer()` method: - * - * ```js - * import http2 from 'node:http2'; - * const options = getSecureOptionsSomehow(); - * options.origins = ['https://example.com', 'https://example.org']; - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * ``` - * @since v10.12.0 - * @param origins One or more URL Strings passed as separate arguments. - */ - origin( - ...origins: Array< - | string - | url.URL - | { - origin: string; - } - > - ): void; - addListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - addListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "connect", - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ): boolean; - emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - on( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - once( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - prependListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - prependOnceListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - // Http2Server - export interface SessionOptions { - /** - * Sets the maximum dynamic table size for deflating header fields. - * @default 4Kib - */ - maxDeflateDynamicTableSize?: number | undefined; - /** - * Sets the maximum number of settings entries per `SETTINGS` frame. - * The minimum value allowed is `1`. - * @default 32 - */ - maxSettings?: number | undefined; - /** - * Sets the maximum memory that the `Http2Session` is permitted to use. - * The value is expressed in terms of number of megabytes, e.g. `1` equal 1 megabyte. - * The minimum value allowed is `1`. - * This is a credit based limit, existing `Http2Stream`s may cause this limit to be exceeded, - * but new `Http2Stream` instances will be rejected while this limit is exceeded. - * The current number of `Http2Stream` sessions, the current memory use of the header compression tables, - * current data queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all counted towards the current limit. - * @default 10 - */ - maxSessionMemory?: number | undefined; - /** - * Sets the maximum number of header entries. - * This is similar to `server.maxHeadersCount` or `request.maxHeadersCount` in the `node:http` module. - * The minimum value is `1`. - * @default 128 - */ - maxHeaderListPairs?: number | undefined; - /** - * Sets the maximum number of outstanding, unacknowledged pings. - * @default 10 - */ - maxOutstandingPings?: number | undefined; - /** - * Sets the maximum allowed size for a serialized, compressed block of headers. - * Attempts to send headers that exceed this limit will result in - * a `'frameError'` event being emitted and the stream being closed and destroyed. - */ - maxSendHeaderBlockLength?: number | undefined; - /** - * Strategy used for determining the amount of padding to use for `HEADERS` and `DATA` frames. - * @default http2.constants.PADDING_STRATEGY_NONE - */ - paddingStrategy?: number | undefined; - /** - * Sets the maximum number of concurrent streams for the remote peer as if a `SETTINGS` frame had been received. - * Will be overridden if the remote peer sets its own value for `maxConcurrentStreams`. - * @default 100 - */ - peerMaxConcurrentStreams?: number | undefined; - /** - * The initial settings to send to the remote peer upon connection. - */ - settings?: Settings | undefined; - /** - * The array of integer values determines the settings types, - * which are included in the `CustomSettings`-property of the received remoteSettings. - * Please see the `CustomSettings`-property of the `Http2Settings` object for more information, on the allowed setting types. - */ - remoteCustomSettings?: number[] | undefined; - /** - * Specifies a timeout in milliseconds that - * a server should wait when an [`'unknownProtocol'`][] is emitted. If the - * socket has not been destroyed by that time the server will destroy it. - * @default 100000 - */ - unknownProtocolTimeout?: number | undefined; - } - export interface ClientSessionOptions extends SessionOptions { - /** - * Sets the maximum number of reserved push streams the client will accept at any given time. - * Once the current number of currently reserved push streams exceeds reaches this limit, - * new push streams sent by the server will be automatically rejected. - * The minimum allowed value is 0. The maximum allowed value is 232-1. - * A negative value sets this option to the maximum allowed value. - * @default 200 - */ - maxReservedRemoteStreams?: number | undefined; - /** - * An optional callback that receives the `URL` instance passed to `connect` and the `options` object, - * and returns any `Duplex` stream that is to be used as the connection for this session. - */ - createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined; - /** - * The protocol to connect with, if not set in the `authority`. - * Value may be either `'http:'` or `'https:'`. - * @default 'https:' - */ - protocol?: "http:" | "https:" | undefined; - } - export interface ServerSessionOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends SessionOptions { - Http1IncomingMessage?: Http1Request | undefined; - Http1ServerResponse?: Http1Response | undefined; - Http2ServerRequest?: Http2Request | undefined; - Http2ServerResponse?: Http2Response | undefined; - } - export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {} - export interface SecureServerSessionOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends ServerSessionOptions, tls.TlsOptions {} - export interface ServerOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends ServerSessionOptions {} - export interface SecureServerOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends SecureServerSessionOptions { - allowHTTP1?: boolean | undefined; - origins?: string[] | undefined; - } - interface HTTP2ServerCommon { - setTimeout(msec?: number, callback?: () => void): this; - /** - * Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values. - * Throws ERR_INVALID_ARG_TYPE for invalid settings argument. - */ - updateSettings(settings: Settings): void; - } - export interface Http2Server< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends net.Server, HTTP2ServerCommon { - addListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - addListener(event: "sessionError", listener: (err: Error) => void): this; - addListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "checkContinue", - request: InstanceType, - response: InstanceType, - ): boolean; - emit(event: "request", request: InstanceType, response: InstanceType): boolean; - emit( - event: "session", - session: ServerHttp2Session, - ): boolean; - emit(event: "sessionError", err: Error): boolean; - emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "timeout"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - on(event: "sessionError", listener: (err: Error) => void): this; - on( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - on(event: "timeout", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - once(event: "sessionError", listener: (err: Error) => void): this; - once( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - once(event: "timeout", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependListener(event: "sessionError", listener: (err: Error) => void): this; - prependListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; - prependOnceListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface Http2SecureServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends tls.Server, HTTP2ServerCommon { - addListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - addListener(event: "sessionError", listener: (err: Error) => void): this; - addListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "checkContinue", - request: InstanceType, - response: InstanceType, - ): boolean; - emit(event: "request", request: InstanceType, response: InstanceType): boolean; - emit( - event: "session", - session: ServerHttp2Session, - ): boolean; - emit(event: "sessionError", err: Error): boolean; - emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "timeout"): boolean; - emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - on(event: "sessionError", listener: (err: Error) => void): this; - on( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - on(event: "timeout", listener: () => void): this; - on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - once(event: "sessionError", listener: (err: Error) => void): this; - once( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - once(event: "timeout", listener: () => void): this; - once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependListener(event: "sessionError", listener: (err: Error) => void): this; - prependListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; - prependOnceListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status, - * headers, and - * data. - * @since v8.4.0 - */ - export class Http2ServerRequest extends stream.Readable { - constructor( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - options: stream.ReadableOptions, - rawHeaders: readonly string[], - ); - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - */ - readonly aborted: boolean; - /** - * The request authority pseudo header field. Because HTTP/2 allows requests - * to set either `:authority` or `host`, this value is derived from `req.headers[':authority']` if present. Otherwise, it is derived from `req.headers['host']`. - * @since v8.4.0 - */ - readonly authority: string; - /** - * See `request.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * The `request.complete` property will be `true` if the request has - * been completed, aborted, or destroyed. - * @since v12.10.0 - */ - readonly complete: boolean; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * See `HTTP/2 Headers Object`. - * - * In HTTP/2, the request path, host name, protocol, and method are represented as - * special headers prefixed with the `:` character (e.g. `':path'`). These special - * headers will be included in the `request.headers` object. Care must be taken not - * to inadvertently modify these special headers or errors may occur. For instance, - * removing all headers from the request will cause errors to occur: - * - * ```js - * removeAllHeaders(request.headers); - * assert(request.url); // Fails because the :path header has been removed - * ``` - * @since v8.4.0 - */ - readonly headers: IncomingHttpHeaders; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. Returns `'2.0'`. - * - * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. - * @since v8.4.0 - */ - readonly httpVersion: string; - readonly httpVersionMinor: number; - readonly httpVersionMajor: number; - /** - * The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`. - * @since v8.4.0 - */ - readonly method: string; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v8.4.0 - */ - readonly rawHeaders: string[]; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly rawTrailers: string[]; - /** - * The request scheme pseudo header field indicating the scheme - * portion of the target URL. - * @since v8.4.0 - */ - readonly scheme: string; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `request.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `request.stream`. - * - * `setTimeout` method will be called on `request.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. With TLS support, - * use `request.socket.getPeerCertificate()` to obtain the client's - * authentication details. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the request. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly trailers: IncomingHttpHeaders; - /** - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. If the request is: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * Then `request.url` will be: - * - * ```js - * '/status?name=ryan' - * ``` - * - * To parse the url into its parts, `new URL()` can be used: - * - * ```console - * $ node - * > new URL('/status?name=ryan', 'http://example.com') - * URL { - * href: 'http://example.com/status?name=ryan', - * origin: 'http://example.com', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'example.com', - * hostname: 'example.com', - * port: '', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * @since v8.4.0 - */ - url: string; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream`s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - read(size?: number): NonSharedBuffer | string | null; - addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "aborted", hadError: boolean, code: number): boolean; - emit(event: "close"): boolean; - emit(event: "data", chunk: NonSharedBuffer | string): boolean; - emit(event: "end"): boolean; - emit(event: "readable"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - on(event: "end", listener: () => void): this; - on(event: "readable", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - once(event: "end", listener: () => void): this; - once(event: "readable", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v8.4.0 - */ - export class Http2ServerResponse extends stream.Writable { - constructor(stream: ServerHttp2Stream); - /** - * See `response.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * Append a single header value to the header object. - * - * If the value is an array, this is equivalent to calling this method multiple times. - * - * If there were no previous values for the header, this is equivalent to calling {@link setHeader}. - * - * Attempting to set a header field name or value that contains invalid characters will result in a - * [TypeError](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-typeerror) being thrown. - * - * ```js - * // Returns headers including "set-cookie: a" and "set-cookie: b" - * const server = http2.createServer((req, res) => { - * res.setHeader('set-cookie', 'a'); - * res.appendHeader('set-cookie', 'b'); - * res.writeHead(200); - * res.end('ok'); - * }); - * ``` - * @since v20.12.0 - */ - appendHeader(name: string, value: string | string[]): void; - /** - * Boolean value that indicates whether the response has completed. Starts - * as `false`. After `response.end()` executes, the value will be `true`. - * @since v8.4.0 - * @deprecated Since v13.4.0,v12.16.0 - Use `writableEnded`. - */ - readonly finished: boolean; - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * A reference to the original HTTP2 `request` object. - * @since v15.7.0 - */ - readonly req: Request; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `response.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `response.stream`. - * - * `setTimeout` method will be called on `response.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer((req, res) => { - * const ip = req.socket.remoteAddress; - * const port = req.socket.remotePort; - * res.end(`Your IP address is ${ip} and your source port is ${port}.`); - * }).listen(3000); - * ``` - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the response. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * When true, the Date header will be automatically generated and sent in - * the response if it is not already present in the headers. Defaults to true. - * - * This should only be disabled for testing; HTTP requires the Date header - * in responses. - * @since v8.4.0 - */ - sendDate: boolean; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v8.4.0 - */ - statusCode: number; - /** - * Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns - * an empty string. - * @since v8.4.0 - */ - statusMessage: ""; - /** - * This method adds HTTP trailing headers (a header but at the end of the - * message) to the response. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - addTrailers(trailers: OutgoingHttpHeaders): void; - /** - * This method signals to the server that all of the response headers and body - * have been sent; that server should consider this message complete. - * The method, `response.end()`, MUST be called on each response. - * - * If `data` is specified, it is equivalent to calling `response.write(data, encoding)` followed by `response.end(callback)`. - * - * If `callback` is specified, it will be called when the response stream - * is finished. - * @since v8.4.0 - */ - end(callback?: () => void): this; - end(data: string | Uint8Array, callback?: () => void): this; - end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this; - /** - * Reads out a header that has already been queued but not sent to the client. - * The name is case-insensitive. - * - * ```js - * const contentType = response.getHeader('content-type'); - * ``` - * @since v8.4.0 - */ - getHeader(name: string): string; - /** - * Returns an array containing the unique names of the current outgoing headers. - * All header names are lowercase. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = response.getHeaderNames(); - * // headerNames === ['foo', 'set-cookie'] - * ``` - * @since v8.4.0 - */ - getHeaderNames(): string[]; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow copy - * is used, array values may be mutated without additional calls to various - * header-related http module methods. The keys of the returned object are the - * header names and the values are the respective header values. All header names - * are lowercase. - * - * The object returned by the `response.getHeaders()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = response.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v8.4.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name matching is case-insensitive. - * - * ```js - * const hasContentType = response.hasHeader('content-type'); - * ``` - * @since v8.4.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that has been queued for implicit sending. - * - * ```js - * response.removeHeader('Content-Encoding'); - * ``` - * @since v8.4.0 - */ - removeHeader(name: string): void; - /** - * Sets a single header value for implicit headers. If this header already exists - * in the to-be-sent headers, its value will be replaced. Use an array of strings - * here to send multiple headers with the same name. - * - * ```js - * response.setHeader('Content-Type', 'text/html; charset=utf-8'); - * ``` - * - * or - * - * ```js - * response.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * @since v8.4.0 - */ - setHeader(name: string, value: number | string | readonly string[]): void; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream` s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'` events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * If this method is called and `response.writeHead()` has not been called, - * it will switch to implicit header mode and flush the implicit headers. - * - * This sends a chunk of the response body. This method may - * be called multiple times to provide successive parts of the body. - * - * In the `node:http` module, the response body is omitted when the - * request is a HEAD request. Similarly, the `204` and `304` responses _must not_ include a message body. - * - * `chunk` can be a string or a buffer. If `chunk` is a string, - * the second parameter specifies how to encode it into a byte stream. - * By default the `encoding` is `'utf8'`. `callback` will be called when this chunk - * of data is flushed. - * - * This is the raw HTTP body and has nothing to do with higher-level multi-part - * body encodings that may be used. - * - * The first time `response.write()` is called, it will send the buffered - * header information and the first chunk of the body to the client. The second - * time `response.write()` is called, Node.js assumes data will be streamed, - * and sends the new data separately. That is, the response is buffered up to the - * first chunk of the body. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is free again. - * @since v8.4.0 - */ - write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean; - write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; - /** - * Sends a status `100 Continue` to the client, indicating that the request body - * should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`. - * @since v8.4.0 - */ - writeContinue(): void; - /** - * Sends a status `103 Early Hints` to the client with a Link header, - * indicating that the user agent can preload/preconnect the linked resources. - * The `hints` is an object containing the values of headers to be sent with - * early hints message. - * - * **Example** - * - * ```js - * const earlyHintsLink = '; rel=preload; as=style'; - * response.writeEarlyHints({ - * 'link': earlyHintsLink, - * }); - * - * const earlyHintsLinks = [ - * '; rel=preload; as=style', - * '; rel=preload; as=script', - * ]; - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * }); - * ``` - * @since v18.11.0 - */ - writeEarlyHints(hints: Record): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * - * Returns a reference to the `Http2ServerResponse`, so that calls can be chained. - * - * For compatibility with `HTTP/1`, a human-readable `statusMessage` may be - * passed as the second argument. However, because the `statusMessage` has no - * meaning within HTTP/2, the argument will have no effect and a process warning - * will be emitted. - * - * ```js - * const body = 'hello world'; - * response.writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain; charset=utf-8', - * }); - * ``` - * - * `Content-Length` is given in bytes not characters. The`Buffer.byteLength()` API may be used to determine the number of bytes in a - * given encoding. On outbound messages, Node.js does not check if Content-Length - * and the length of the body being transmitted are equal or not. However, when - * receiving messages, Node.js will automatically reject messages when the `Content-Length` does not match the actual payload size. - * - * This method may be called at most one time on a message before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; - writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this; - /** - * Call `http2stream.pushStream()` with the given headers, and wrap the - * given `Http2Stream` on a newly created `Http2ServerResponse` as the callback - * parameter if successful. When `Http2ServerRequest` is closed, the callback is - * called with an error `ERR_HTTP2_INVALID_STREAM`. - * @since v8.4.0 - * @param headers An object describing the headers - * @param callback Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or has been rejected, or the state of - * `Http2ServerRequest` is closed prior to calling the `http2stream.pushStream()` method - */ - createPushResponse( - headers: OutgoingHttpHeaders, - callback: (err: Error | null, res: Http2ServerResponse) => void, - ): void; - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "drain"): boolean; - emit(event: "error", error: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pipe", src: stream.Readable): boolean; - emit(event: "unpipe", src: stream.Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export namespace constants { - const NGHTTP2_SESSION_SERVER: number; - const NGHTTP2_SESSION_CLIENT: number; - const NGHTTP2_STREAM_STATE_IDLE: number; - const NGHTTP2_STREAM_STATE_OPEN: number; - const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number; - const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number; - const NGHTTP2_STREAM_STATE_CLOSED: number; - const NGHTTP2_NO_ERROR: number; - const NGHTTP2_PROTOCOL_ERROR: number; - const NGHTTP2_INTERNAL_ERROR: number; - const NGHTTP2_FLOW_CONTROL_ERROR: number; - const NGHTTP2_SETTINGS_TIMEOUT: number; - const NGHTTP2_STREAM_CLOSED: number; - const NGHTTP2_FRAME_SIZE_ERROR: number; - const NGHTTP2_REFUSED_STREAM: number; - const NGHTTP2_CANCEL: number; - const NGHTTP2_COMPRESSION_ERROR: number; - const NGHTTP2_CONNECT_ERROR: number; - const NGHTTP2_ENHANCE_YOUR_CALM: number; - const NGHTTP2_INADEQUATE_SECURITY: number; - const NGHTTP2_HTTP_1_1_REQUIRED: number; - const NGHTTP2_ERR_FRAME_SIZE_ERROR: number; - const NGHTTP2_FLAG_NONE: number; - const NGHTTP2_FLAG_END_STREAM: number; - const NGHTTP2_FLAG_END_HEADERS: number; - const NGHTTP2_FLAG_ACK: number; - const NGHTTP2_FLAG_PADDED: number; - const NGHTTP2_FLAG_PRIORITY: number; - const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number; - const DEFAULT_SETTINGS_ENABLE_PUSH: number; - const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number; - const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number; - const MAX_MAX_FRAME_SIZE: number; - const MIN_MAX_FRAME_SIZE: number; - const MAX_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_DEFAULT_WEIGHT: number; - const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number; - const NGHTTP2_SETTINGS_ENABLE_PUSH: number; - const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number; - const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number; - const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number; - const PADDING_STRATEGY_NONE: number; - const PADDING_STRATEGY_MAX: number; - const PADDING_STRATEGY_CALLBACK: number; - const HTTP2_HEADER_STATUS: string; - const HTTP2_HEADER_METHOD: string; - const HTTP2_HEADER_AUTHORITY: string; - const HTTP2_HEADER_SCHEME: string; - const HTTP2_HEADER_PATH: string; - const HTTP2_HEADER_ACCEPT_CHARSET: string; - const HTTP2_HEADER_ACCEPT_ENCODING: string; - const HTTP2_HEADER_ACCEPT_LANGUAGE: string; - const HTTP2_HEADER_ACCEPT_RANGES: string; - const HTTP2_HEADER_ACCEPT: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string; - const HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD: string; - const HTTP2_HEADER_AGE: string; - const HTTP2_HEADER_ALLOW: string; - const HTTP2_HEADER_AUTHORIZATION: string; - const HTTP2_HEADER_CACHE_CONTROL: string; - const HTTP2_HEADER_CONNECTION: string; - const HTTP2_HEADER_CONTENT_DISPOSITION: string; - const HTTP2_HEADER_CONTENT_ENCODING: string; - const HTTP2_HEADER_CONTENT_LANGUAGE: string; - const HTTP2_HEADER_CONTENT_LENGTH: string; - const HTTP2_HEADER_CONTENT_LOCATION: string; - const HTTP2_HEADER_CONTENT_MD5: string; - const HTTP2_HEADER_CONTENT_RANGE: string; - const HTTP2_HEADER_CONTENT_TYPE: string; - const HTTP2_HEADER_COOKIE: string; - const HTTP2_HEADER_DATE: string; - const HTTP2_HEADER_ETAG: string; - const HTTP2_HEADER_EXPECT: string; - const HTTP2_HEADER_EXPIRES: string; - const HTTP2_HEADER_FROM: string; - const HTTP2_HEADER_HOST: string; - const HTTP2_HEADER_IF_MATCH: string; - const HTTP2_HEADER_IF_MODIFIED_SINCE: string; - const HTTP2_HEADER_IF_NONE_MATCH: string; - const HTTP2_HEADER_IF_RANGE: string; - const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string; - const HTTP2_HEADER_LAST_MODIFIED: string; - const HTTP2_HEADER_LINK: string; - const HTTP2_HEADER_LOCATION: string; - const HTTP2_HEADER_MAX_FORWARDS: string; - const HTTP2_HEADER_PREFER: string; - const HTTP2_HEADER_PROXY_AUTHENTICATE: string; - const HTTP2_HEADER_PROXY_AUTHORIZATION: string; - const HTTP2_HEADER_RANGE: string; - const HTTP2_HEADER_REFERER: string; - const HTTP2_HEADER_REFRESH: string; - const HTTP2_HEADER_RETRY_AFTER: string; - const HTTP2_HEADER_SERVER: string; - const HTTP2_HEADER_SET_COOKIE: string; - const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string; - const HTTP2_HEADER_TRANSFER_ENCODING: string; - const HTTP2_HEADER_TE: string; - const HTTP2_HEADER_UPGRADE: string; - const HTTP2_HEADER_USER_AGENT: string; - const HTTP2_HEADER_VARY: string; - const HTTP2_HEADER_VIA: string; - const HTTP2_HEADER_WWW_AUTHENTICATE: string; - const HTTP2_HEADER_HTTP2_SETTINGS: string; - const HTTP2_HEADER_KEEP_ALIVE: string; - const HTTP2_HEADER_PROXY_CONNECTION: string; - const HTTP2_METHOD_ACL: string; - const HTTP2_METHOD_BASELINE_CONTROL: string; - const HTTP2_METHOD_BIND: string; - const HTTP2_METHOD_CHECKIN: string; - const HTTP2_METHOD_CHECKOUT: string; - const HTTP2_METHOD_CONNECT: string; - const HTTP2_METHOD_COPY: string; - const HTTP2_METHOD_DELETE: string; - const HTTP2_METHOD_GET: string; - const HTTP2_METHOD_HEAD: string; - const HTTP2_METHOD_LABEL: string; - const HTTP2_METHOD_LINK: string; - const HTTP2_METHOD_LOCK: string; - const HTTP2_METHOD_MERGE: string; - const HTTP2_METHOD_MKACTIVITY: string; - const HTTP2_METHOD_MKCALENDAR: string; - const HTTP2_METHOD_MKCOL: string; - const HTTP2_METHOD_MKREDIRECTREF: string; - const HTTP2_METHOD_MKWORKSPACE: string; - const HTTP2_METHOD_MOVE: string; - const HTTP2_METHOD_OPTIONS: string; - const HTTP2_METHOD_ORDERPATCH: string; - const HTTP2_METHOD_PATCH: string; - const HTTP2_METHOD_POST: string; - const HTTP2_METHOD_PRI: string; - const HTTP2_METHOD_PROPFIND: string; - const HTTP2_METHOD_PROPPATCH: string; - const HTTP2_METHOD_PUT: string; - const HTTP2_METHOD_REBIND: string; - const HTTP2_METHOD_REPORT: string; - const HTTP2_METHOD_SEARCH: string; - const HTTP2_METHOD_TRACE: string; - const HTTP2_METHOD_UNBIND: string; - const HTTP2_METHOD_UNCHECKOUT: string; - const HTTP2_METHOD_UNLINK: string; - const HTTP2_METHOD_UNLOCK: string; - const HTTP2_METHOD_UPDATE: string; - const HTTP2_METHOD_UPDATEREDIRECTREF: string; - const HTTP2_METHOD_VERSION_CONTROL: string; - const HTTP_STATUS_CONTINUE: number; - const HTTP_STATUS_SWITCHING_PROTOCOLS: number; - const HTTP_STATUS_PROCESSING: number; - const HTTP_STATUS_OK: number; - const HTTP_STATUS_CREATED: number; - const HTTP_STATUS_ACCEPTED: number; - const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number; - const HTTP_STATUS_NO_CONTENT: number; - const HTTP_STATUS_RESET_CONTENT: number; - const HTTP_STATUS_PARTIAL_CONTENT: number; - const HTTP_STATUS_MULTI_STATUS: number; - const HTTP_STATUS_ALREADY_REPORTED: number; - const HTTP_STATUS_IM_USED: number; - const HTTP_STATUS_MULTIPLE_CHOICES: number; - const HTTP_STATUS_MOVED_PERMANENTLY: number; - const HTTP_STATUS_FOUND: number; - const HTTP_STATUS_SEE_OTHER: number; - const HTTP_STATUS_NOT_MODIFIED: number; - const HTTP_STATUS_USE_PROXY: number; - const HTTP_STATUS_TEMPORARY_REDIRECT: number; - const HTTP_STATUS_PERMANENT_REDIRECT: number; - const HTTP_STATUS_BAD_REQUEST: number; - const HTTP_STATUS_UNAUTHORIZED: number; - const HTTP_STATUS_PAYMENT_REQUIRED: number; - const HTTP_STATUS_FORBIDDEN: number; - const HTTP_STATUS_NOT_FOUND: number; - const HTTP_STATUS_METHOD_NOT_ALLOWED: number; - const HTTP_STATUS_NOT_ACCEPTABLE: number; - const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number; - const HTTP_STATUS_REQUEST_TIMEOUT: number; - const HTTP_STATUS_CONFLICT: number; - const HTTP_STATUS_GONE: number; - const HTTP_STATUS_LENGTH_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_FAILED: number; - const HTTP_STATUS_PAYLOAD_TOO_LARGE: number; - const HTTP_STATUS_URI_TOO_LONG: number; - const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number; - const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number; - const HTTP_STATUS_EXPECTATION_FAILED: number; - const HTTP_STATUS_TEAPOT: number; - const HTTP_STATUS_MISDIRECTED_REQUEST: number; - const HTTP_STATUS_UNPROCESSABLE_ENTITY: number; - const HTTP_STATUS_LOCKED: number; - const HTTP_STATUS_FAILED_DEPENDENCY: number; - const HTTP_STATUS_UNORDERED_COLLECTION: number; - const HTTP_STATUS_UPGRADE_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_REQUIRED: number; - const HTTP_STATUS_TOO_MANY_REQUESTS: number; - const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number; - const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number; - const HTTP_STATUS_INTERNAL_SERVER_ERROR: number; - const HTTP_STATUS_NOT_IMPLEMENTED: number; - const HTTP_STATUS_BAD_GATEWAY: number; - const HTTP_STATUS_SERVICE_UNAVAILABLE: number; - const HTTP_STATUS_GATEWAY_TIMEOUT: number; - const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number; - const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number; - const HTTP_STATUS_INSUFFICIENT_STORAGE: number; - const HTTP_STATUS_LOOP_DETECTED: number; - const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number; - const HTTP_STATUS_NOT_EXTENDED: number; - const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number; - } - /** - * This symbol can be set as a property on the HTTP/2 headers object with - * an array value in order to provide a list of headers considered sensitive. - */ - export const sensitiveHeaders: symbol; - /** - * Returns an object containing the default settings for an `Http2Session` instance. This method returns a new object instance every time it is called - * so instances returned may be safely modified for use. - * @since v8.4.0 - */ - export function getDefaultSettings(): Settings; - /** - * Returns a `Buffer` instance containing serialized representation of the given - * HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended - * for use with the `HTTP2-Settings` header field. - * - * ```js - * import http2 from 'node:http2'; - * - * const packed = http2.getPackedSettings({ enablePush: false }); - * - * console.log(packed.toString('base64')); - * // Prints: AAIAAAAA - * ``` - * @since v8.4.0 - */ - export function getPackedSettings(settings: Settings): NonSharedBuffer; - /** - * Returns a `HTTP/2 Settings Object` containing the deserialized settings from - * the given `Buffer` as generated by `http2.getPackedSettings()`. - * @since v8.4.0 - * @param buf The packed settings. - */ - export function getUnpackedSettings(buf: Uint8Array): Settings; - /** - * Returns a `net.Server` instance that creates and manages `Http2Session` instances. - * - * Since there are no browsers known that support [unencrypted HTTP/2](https://http2.github.io/faq/#does-http2-require-encryption), the use of {@link createSecureServer} is necessary when - * communicating - * with browser clients. - * - * ```js - * import http2 from 'node:http2'; - * - * // Create an unencrypted HTTP/2 server. - * // Since there are no browsers known that support - * // unencrypted HTTP/2, the use of `http2.createSecureServer()` - * // is necessary when communicating with browser clients. - * const server = http2.createServer(); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200, - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(8000); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createServer( - onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, - ): Http2Server; - export function createServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - options: ServerOptions, - onRequestHandler?: (request: InstanceType, response: InstanceType) => void, - ): Http2Server; - /** - * Returns a `tls.Server` instance that creates and manages `Http2Session` instances. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem'), - * }; - * - * // Create a secure HTTP/2 server - * const server = http2.createSecureServer(options); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200, - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(8443); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createSecureServer( - onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, - ): Http2SecureServer; - export function createSecureServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - options: SecureServerOptions, - onRequestHandler?: (request: InstanceType, response: InstanceType) => void, - ): Http2SecureServer; - /** - * Returns a `ClientHttp2Session` instance. - * - * ```js - * import http2 from 'node:http2'; - * const client = http2.connect('https://localhost:1234'); - * - * // Use the client - * - * client.close(); - * ``` - * @since v8.4.0 - * @param authority The remote HTTP/2 server to connect to. This must be in the form of a minimal, valid URL with the `http://` or `https://` prefix, host name, and IP port (if a non-default port - * is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored. - * @param listener Will be registered as a one-time listener of the {@link 'connect'} event. - */ - export function connect( - authority: string | url.URL, - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): ClientHttp2Session; - export function connect( - authority: string | url.URL, - options?: ClientSessionOptions | SecureClientSessionOptions, - listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): ClientHttp2Session; - /** - * Create an HTTP/2 server session from an existing socket. - * @param socket A Duplex Stream - * @param options Any `{@link createServer}` options can be provided. - * @since v20.12.0 - */ - export function performServerHandshake< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - socket: stream.Duplex, - options?: ServerOptions, - ): ServerHttp2Session; -} -declare module "node:http2" { - export * from "http2"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/https.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/https.d.ts deleted file mode 100644 index 5ac4581..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/https.d.ts +++ /dev/null @@ -1,578 +0,0 @@ -/** - * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a - * separate module. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/https.js) - */ -declare module "https" { - import { NonSharedBuffer } from "node:buffer"; - import { Duplex } from "node:stream"; - import * as tls from "node:tls"; - import * as http from "node:http"; - import { URL } from "node:url"; - interface ServerOptions< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends http.ServerOptions, tls.TlsOptions {} - interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions { - checkServerIdentity?: typeof tls.checkServerIdentity | undefined; - rejectUnauthorized?: boolean | undefined; // Defaults to true - servername?: string | undefined; // SNI TLS Extension - } - interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { - rejectUnauthorized?: boolean | undefined; - maxCachedSessions?: number | undefined; - } - /** - * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information. - * @since v0.4.5 - */ - class Agent extends http.Agent { - constructor(options?: AgentOptions); - options: AgentOptions; - createConnection( - options: RequestOptions, - callback?: (err: Error | null, stream: Duplex) => void, - ): Duplex | null | undefined; - getName(options?: RequestOptions): string; - } - interface Server< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends http.Server {} - /** - * See `http.Server` for more information. - * @since v0.3.4 - */ - class Server< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends tls.Server { - constructor(requestListener?: http.RequestListener); - constructor( - options: ServerOptions, - requestListener?: http.RequestListener, - ); - /** - * Closes all connections connected to this server. - * @since v18.2.0 - */ - closeAllConnections(): void; - /** - * Closes all connections connected to this server which are not sending a request or waiting for a response. - * @since v18.2.0 - */ - closeIdleConnections(): void; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - addListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - addListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - addListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Duplex) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "checkContinue", listener: http.RequestListener): this; - addListener(event: "checkExpectation", listener: http.RequestListener): this; - addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - addListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - addListener(event: "request", listener: http.RequestListener): this; - addListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - emit(event: string, ...args: any[]): boolean; - emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean; - emit( - event: "newSession", - sessionId: NonSharedBuffer, - sessionData: NonSharedBuffer, - callback: () => void, - ): boolean; - emit( - event: "OCSPRequest", - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ): boolean; - emit( - event: "resumeSession", - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ): boolean; - emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean; - emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Duplex): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit( - event: "checkContinue", - req: InstanceType, - res: InstanceType, - ): boolean; - emit( - event: "checkExpectation", - req: InstanceType, - res: InstanceType, - ): boolean; - emit(event: "clientError", err: Error, socket: Duplex): boolean; - emit(event: "connect", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; - emit( - event: "request", - req: InstanceType, - res: InstanceType, - ): boolean; - emit(event: "upgrade", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - on( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - on( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - on( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Duplex) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "checkContinue", listener: http.RequestListener): this; - on(event: "checkExpectation", listener: http.RequestListener): this; - on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - on( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - on(event: "request", listener: http.RequestListener): this; - on( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - once( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - once( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - once( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Duplex) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "checkContinue", listener: http.RequestListener): this; - once(event: "checkExpectation", listener: http.RequestListener): this; - once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - once( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: "request", listener: http.RequestListener): this; - once( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - prependListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Duplex) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "checkContinue", listener: http.RequestListener): this; - prependListener(event: "checkExpectation", listener: http.RequestListener): this; - prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - prependListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "request", listener: http.RequestListener): this; - prependListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependOnceListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "checkContinue", listener: http.RequestListener): this; - prependOnceListener(event: "checkExpectation", listener: http.RequestListener): this; - prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - prependOnceListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "request", listener: http.RequestListener): this; - prependOnceListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - } - /** - * ```js - * // curl -k https://localhost:8000/ - * import https from 'node:https'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * - * Or - * - * ```js - * import https from 'node:https'; - * import fs from 'node:fs'; - * - * const options = { - * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'), - * passphrase: 'sample', - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * @since v0.3.4 - * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`. - * @param requestListener A listener to be added to the `'request'` event. - */ - function createServer< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - >(requestListener?: http.RequestListener): Server; - function createServer< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - >( - options: ServerOptions, - requestListener?: http.RequestListener, - ): Server; - /** - * Makes a request to a secure web server. - * - * The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`, - * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * import https from 'node:https'; - * - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * }; - * - * const req = https.request(options, (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(e); - * }); - * req.end(); - * ``` - * - * Example using options from `tls.connect()`: - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * }; - * options.agent = new https.Agent(options); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Alternatively, opt out of connection pooling by not using an `Agent`. - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * agent: false, - * }; - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('https://abc:xyz@example.com'); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`): - * - * ```js - * import tls from 'node:tls'; - * import https from 'node:https'; - * import crypto from 'node:crypto'; - * - * function sha256(s) { - * return crypto.createHash('sha256').update(s).digest('base64'); - * } - * const options = { - * hostname: 'github.com', - * port: 443, - * path: '/', - * method: 'GET', - * checkServerIdentity: function(host, cert) { - * // Make sure the certificate is issued to the host we are connected to - * const err = tls.checkServerIdentity(host, cert); - * if (err) { - * return err; - * } - * - * // Pin the public key, similar to HPKP pin-sha256 pinning - * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU='; - * if (sha256(cert.pubkey) !== pubkey256) { - * const msg = 'Certificate verification error: ' + - * `The public key of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // Pin the exact certificate, rather than the pub key - * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' + - * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16'; - * if (cert.fingerprint256 !== cert256) { - * const msg = 'Certificate verification error: ' + - * `The certificate of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // This loop is informational only. - * // Print the certificate and public key fingerprints of all certs in the - * // chain. Its common to pin the public key of the issuer on the public - * // internet, while pinning the public key of the service in sensitive - * // environments. - * do { - * console.log('Subject Common Name:', cert.subject.CN); - * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256); - * - * hash = crypto.createHash('sha256'); - * console.log(' Public key ping-sha256:', sha256(cert.pubkey)); - * - * lastprint256 = cert.fingerprint256; - * cert = cert.issuerCertificate; - * } while (cert.fingerprint256 !== lastprint256); - * - * }, - * }; - * - * options.agent = new https.Agent(options); - * const req = https.request(options, (res) => { - * console.log('All OK. Server matched our pinned cert or public key'); - * console.log('statusCode:', res.statusCode); - * // Print the HPKP values - * console.log('headers:', res.headers['public-key-pins']); - * - * res.on('data', (d) => {}); - * }); - * - * req.on('error', (e) => { - * console.error(e.message); - * }); - * req.end(); - * ``` - * - * Outputs for example: - * - * ```text - * Subject Common Name: github.com - * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16 - * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU= - * Subject Common Name: DigiCert SHA2 Extended Validation Server CA - * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A - * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho= - * Subject Common Name: DigiCert High Assurance EV Root CA - * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF - * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18= - * All OK. Server matched our pinned cert or public key - * statusCode: 200 - * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho="; - * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4="; - * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains - * ``` - * @since v0.3.6 - * @param options Accepts all `options` from `request`, with some differences in default values: - */ - function request( - options: RequestOptions | string | URL, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - function request( - url: string | URL, - options: RequestOptions, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - /** - * Like `http.get()` but for HTTPS. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * ```js - * import https from 'node:https'; - * - * https.get('https://encrypted.google.com/', (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * - * }).on('error', (e) => { - * console.error(e); - * }); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. - */ - function get( - options: RequestOptions | string | URL, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - function get( - url: string | URL, - options: RequestOptions, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - let globalAgent: Agent; -} -declare module "node:https" { - export * from "https"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/index.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/index.d.ts deleted file mode 100644 index 4676281..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/index.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support Node.js and TypeScript 5.7+. - -// Reference required TypeScript libs: -/// - -// TypeScript backwards-compatibility definitions: -/// - -// Definitions specific to TypeScript 5.7+: -/// -/// - -// Definitions for Node.js modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/inspector.generated.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/inspector.generated.d.ts deleted file mode 100644 index 3303dba..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/inspector.generated.d.ts +++ /dev/null @@ -1,3966 +0,0 @@ -// These definitions are automatically generated by the generate-inspector script. -// Do not edit this file directly. -// See scripts/generate-inspector/README.md for information on how to update the protocol definitions. -// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template). - -/** - * The `node:inspector` module provides an API for interacting with the V8 - * inspector. - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector.js) - */ -declare module 'inspector' { - import EventEmitter = require('node:events'); - - interface InspectorNotification { - method: string; - params: T; - } - - namespace Schema { - /** - * Description of the protocol domain. - */ - interface Domain { - /** - * Domain name. - */ - name: string; - /** - * Domain version. - */ - version: string; - } - interface GetDomainsReturnType { - /** - * List of supported domains. - */ - domains: Domain[]; - } - } - namespace Runtime { - /** - * Unique script identifier. - */ - type ScriptId = string; - /** - * Unique object identifier. - */ - type RemoteObjectId = string; - /** - * Primitive value which cannot be JSON-stringified. - */ - type UnserializableValue = string; - /** - * Mirror object referencing original JavaScript object. - */ - interface RemoteObject { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * Object class (constructor) name. Specified for object type values only. - */ - className?: string | undefined; - /** - * Remote object value in case of primitive values or JSON values (if it was requested). - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified does not have value, but gets this property. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * Unique object identifier (for non-primitive values). - */ - objectId?: RemoteObjectId | undefined; - /** - * Preview containing abbreviated property values. Specified for object type values only. - * @experimental - */ - preview?: ObjectPreview | undefined; - /** - * @experimental - */ - customPreview?: CustomPreview | undefined; - } - /** - * @experimental - */ - interface CustomPreview { - header: string; - hasBody: boolean; - formatterObjectId: RemoteObjectId; - bindRemoteObjectFunctionId: RemoteObjectId; - configObjectId?: RemoteObjectId | undefined; - } - /** - * Object containing abbreviated remote object value. - * @experimental - */ - interface ObjectPreview { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * True iff some of the properties or entries of the original object did not fit. - */ - overflow: boolean; - /** - * List of the properties. - */ - properties: PropertyPreview[]; - /** - * List of the entries. Specified for map and set subtype values only. - */ - entries?: EntryPreview[] | undefined; - } - /** - * @experimental - */ - interface PropertyPreview { - /** - * Property name. - */ - name: string; - /** - * Object type. Accessor means that the property itself is an accessor property. - */ - type: string; - /** - * User-friendly property value string. - */ - value?: string | undefined; - /** - * Nested value preview. - */ - valuePreview?: ObjectPreview | undefined; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - } - /** - * @experimental - */ - interface EntryPreview { - /** - * Preview of the key. Specified for map-like collection entries. - */ - key?: ObjectPreview | undefined; - /** - * Preview of the value. - */ - value: ObjectPreview; - } - /** - * Object property descriptor. - */ - interface PropertyDescriptor { - /** - * Property name or symbol description. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - /** - * True if the value associated with the property may be changed (data descriptors only). - */ - writable?: boolean | undefined; - /** - * A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only). - */ - get?: RemoteObject | undefined; - /** - * A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only). - */ - set?: RemoteObject | undefined; - /** - * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object. - */ - configurable: boolean; - /** - * True if this property shows up during enumeration of the properties on the corresponding object. - */ - enumerable: boolean; - /** - * True if the result was thrown during the evaluation. - */ - wasThrown?: boolean | undefined; - /** - * True if the property is owned for the object. - */ - isOwn?: boolean | undefined; - /** - * Property symbol object, if the property is of the symbol type. - */ - symbol?: RemoteObject | undefined; - } - /** - * Object internal property descriptor. This property isn't normally visible in JavaScript code. - */ - interface InternalPropertyDescriptor { - /** - * Conventional property name. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - } - /** - * Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. - */ - interface CallArgument { - /** - * Primitive value or serializable javascript object. - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * Remote object handle. - */ - objectId?: RemoteObjectId | undefined; - } - /** - * Id of an execution context. - */ - type ExecutionContextId = number; - /** - * Description of an isolated world. - */ - interface ExecutionContextDescription { - /** - * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed. - */ - id: ExecutionContextId; - /** - * Execution context origin. - */ - origin: string; - /** - * Human readable name describing given context. - */ - name: string; - /** - * Embedder-specific auxiliary data. - */ - auxData?: {} | undefined; - } - /** - * Detailed information about exception (or error) that was thrown during script compilation or execution. - */ - interface ExceptionDetails { - /** - * Exception id. - */ - exceptionId: number; - /** - * Exception text, which should be used together with exception object when available. - */ - text: string; - /** - * Line number of the exception location (0-based). - */ - lineNumber: number; - /** - * Column number of the exception location (0-based). - */ - columnNumber: number; - /** - * Script ID of the exception location. - */ - scriptId?: ScriptId | undefined; - /** - * URL of the exception location, to be used when the script was not reported. - */ - url?: string | undefined; - /** - * JavaScript stack trace if available. - */ - stackTrace?: StackTrace | undefined; - /** - * Exception object if available. - */ - exception?: RemoteObject | undefined; - /** - * Identifier of the context where exception happened. - */ - executionContextId?: ExecutionContextId | undefined; - } - /** - * Number of milliseconds since epoch. - */ - type Timestamp = number; - /** - * Stack entry for runtime errors and assertions. - */ - interface CallFrame { - /** - * JavaScript function name. - */ - functionName: string; - /** - * JavaScript script id. - */ - scriptId: ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * JavaScript script line number (0-based). - */ - lineNumber: number; - /** - * JavaScript script column number (0-based). - */ - columnNumber: number; - } - /** - * Call frames for assertions or error messages. - */ - interface StackTrace { - /** - * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. - */ - description?: string | undefined; - /** - * JavaScript function name. - */ - callFrames: CallFrame[]; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - */ - parent?: StackTrace | undefined; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - * @experimental - */ - parentId?: StackTraceId | undefined; - } - /** - * Unique identifier of current debugger. - * @experimental - */ - type UniqueDebuggerId = string; - /** - * If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages. - * @experimental - */ - interface StackTraceId { - id: string; - debuggerId?: UniqueDebuggerId | undefined; - } - interface EvaluateParameterType { - /** - * Expression to evaluate. - */ - expression: string; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - contextId?: ExecutionContextId | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface AwaitPromiseParameterType { - /** - * Identifier of the promise. - */ - promiseObjectId: RemoteObjectId; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - } - interface CallFunctionOnParameterType { - /** - * Declaration of the function to call. - */ - functionDeclaration: string; - /** - * Identifier of the object to call function on. Either objectId or executionContextId should be specified. - */ - objectId?: RemoteObjectId | undefined; - /** - * Call arguments. All call arguments must belong to the same JavaScript world as the target object. - */ - arguments?: CallArgument[] | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - /** - * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. - */ - objectGroup?: string | undefined; - } - interface GetPropertiesParameterType { - /** - * Identifier of the object to return properties for. - */ - objectId: RemoteObjectId; - /** - * If true, returns properties belonging only to the element itself, not to its prototype chain. - */ - ownProperties?: boolean | undefined; - /** - * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either. - * @experimental - */ - accessorPropertiesOnly?: boolean | undefined; - /** - * Whether preview should be generated for the results. - * @experimental - */ - generatePreview?: boolean | undefined; - } - interface ReleaseObjectParameterType { - /** - * Identifier of the object to release. - */ - objectId: RemoteObjectId; - } - interface ReleaseObjectGroupParameterType { - /** - * Symbolic object group name. - */ - objectGroup: string; - } - interface SetCustomObjectFormatterEnabledParameterType { - enabled: boolean; - } - interface CompileScriptParameterType { - /** - * Expression to compile. - */ - expression: string; - /** - * Source url to be set for the script. - */ - sourceURL: string; - /** - * Specifies whether the compiled script should be persisted. - */ - persistScript: boolean; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface RunScriptParameterType { - /** - * Id of the script to run. - */ - scriptId: ScriptId; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface QueryObjectsParameterType { - /** - * Identifier of the prototype to return objects for. - */ - prototypeObjectId: RemoteObjectId; - } - interface GlobalLexicalScopeNamesParameterType { - /** - * Specifies in which execution context to lookup global scope variables. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface EvaluateReturnType { - /** - * Evaluation result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface AwaitPromiseReturnType { - /** - * Promise result. Will contain rejected value if promise was rejected. - */ - result: RemoteObject; - /** - * Exception details if stack strace is available. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CallFunctionOnReturnType { - /** - * Call result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface GetPropertiesReturnType { - /** - * Object properties. - */ - result: PropertyDescriptor[]; - /** - * Internal object properties (only of the element itself). - */ - internalProperties?: InternalPropertyDescriptor[] | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CompileScriptReturnType { - /** - * Id of the script. - */ - scriptId?: ScriptId | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface RunScriptReturnType { - /** - * Run result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface QueryObjectsReturnType { - /** - * Array with objects. - */ - objects: RemoteObject; - } - interface GlobalLexicalScopeNamesReturnType { - names: string[]; - } - interface ExecutionContextCreatedEventDataType { - /** - * A newly created execution context. - */ - context: ExecutionContextDescription; - } - interface ExecutionContextDestroyedEventDataType { - /** - * Id of the destroyed context - */ - executionContextId: ExecutionContextId; - } - interface ExceptionThrownEventDataType { - /** - * Timestamp of the exception. - */ - timestamp: Timestamp; - exceptionDetails: ExceptionDetails; - } - interface ExceptionRevokedEventDataType { - /** - * Reason describing why exception was revoked. - */ - reason: string; - /** - * The id of revoked exception, as reported in exceptionThrown. - */ - exceptionId: number; - } - interface ConsoleAPICalledEventDataType { - /** - * Type of the call. - */ - type: string; - /** - * Call arguments. - */ - args: RemoteObject[]; - /** - * Identifier of the context where the call was made. - */ - executionContextId: ExecutionContextId; - /** - * Call timestamp. - */ - timestamp: Timestamp; - /** - * Stack trace captured when the call was made. - */ - stackTrace?: StackTrace | undefined; - /** - * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context. - * @experimental - */ - context?: string | undefined; - } - interface InspectRequestedEventDataType { - object: RemoteObject; - hints: {}; - } - } - namespace Debugger { - /** - * Breakpoint identifier. - */ - type BreakpointId = string; - /** - * Call frame identifier. - */ - type CallFrameId = string; - /** - * Location in the source code. - */ - interface Location { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - } - /** - * Location in the source code. - * @experimental - */ - interface ScriptPosition { - lineNumber: number; - columnNumber: number; - } - /** - * JavaScript call frame. Array of call frames form the call stack. - */ - interface CallFrame { - /** - * Call frame identifier. This identifier is only valid while the virtual machine is paused. - */ - callFrameId: CallFrameId; - /** - * Name of the JavaScript function called on this call frame. - */ - functionName: string; - /** - * Location in the source code. - */ - functionLocation?: Location | undefined; - /** - * Location in the source code. - */ - location: Location; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Scope chain for this call frame. - */ - scopeChain: Scope[]; - /** - * this object for this call frame. - */ - this: Runtime.RemoteObject; - /** - * The value being returned, if the function is at return point. - */ - returnValue?: Runtime.RemoteObject | undefined; - } - /** - * Scope description. - */ - interface Scope { - /** - * Scope type. - */ - type: string; - /** - * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. - */ - object: Runtime.RemoteObject; - name?: string | undefined; - /** - * Location in the source code where scope starts - */ - startLocation?: Location | undefined; - /** - * Location in the source code where scope ends - */ - endLocation?: Location | undefined; - } - /** - * Search match for resource. - */ - interface SearchMatch { - /** - * Line number in resource content. - */ - lineNumber: number; - /** - * Line with match content. - */ - lineContent: string; - } - interface BreakLocation { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - type?: string | undefined; - } - interface SetBreakpointsActiveParameterType { - /** - * New value for breakpoints active state. - */ - active: boolean; - } - interface SetSkipAllPausesParameterType { - /** - * New value for skip pauses state. - */ - skip: boolean; - } - interface SetBreakpointByUrlParameterType { - /** - * Line number to set breakpoint at. - */ - lineNumber: number; - /** - * URL of the resources to set breakpoint on. - */ - url?: string | undefined; - /** - * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. - */ - urlRegex?: string | undefined; - /** - * Script hash of the resources to set breakpoint on. - */ - scriptHash?: string | undefined; - /** - * Offset in the line to set breakpoint at. - */ - columnNumber?: number | undefined; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface SetBreakpointParameterType { - /** - * Location to set breakpoint in. - */ - location: Location; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface RemoveBreakpointParameterType { - breakpointId: BreakpointId; - } - interface GetPossibleBreakpointsParameterType { - /** - * Start of range to search possible breakpoint locations in. - */ - start: Location; - /** - * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. - */ - end?: Location | undefined; - /** - * Only consider locations which are in the same (non-nested) function as start. - */ - restrictToFunction?: boolean | undefined; - } - interface ContinueToLocationParameterType { - /** - * Location to continue to. - */ - location: Location; - targetCallFrames?: string | undefined; - } - interface PauseOnAsyncCallParameterType { - /** - * Debugger will pause when async call with given stack trace is started. - */ - parentStackTraceId: Runtime.StackTraceId; - } - interface StepIntoParameterType { - /** - * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause. - * @experimental - */ - breakOnAsyncCall?: boolean | undefined; - } - interface GetStackTraceParameterType { - stackTraceId: Runtime.StackTraceId; - } - interface SearchInContentParameterType { - /** - * Id of the script to search in. - */ - scriptId: Runtime.ScriptId; - /** - * String to search for. - */ - query: string; - /** - * If true, search is case sensitive. - */ - caseSensitive?: boolean | undefined; - /** - * If true, treats string parameter as regex. - */ - isRegex?: boolean | undefined; - } - interface SetScriptSourceParameterType { - /** - * Id of the script to edit. - */ - scriptId: Runtime.ScriptId; - /** - * New content of the script. - */ - scriptSource: string; - /** - * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. - */ - dryRun?: boolean | undefined; - } - interface RestartFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - } - interface GetScriptSourceParameterType { - /** - * Id of the script to get source for. - */ - scriptId: Runtime.ScriptId; - } - interface SetPauseOnExceptionsParameterType { - /** - * Pause on exceptions mode. - */ - state: string; - } - interface EvaluateOnCallFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - /** - * Expression to evaluate. - */ - expression: string; - /** - * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). - */ - objectGroup?: string | undefined; - /** - * Specifies whether command line API should be available to the evaluated expression, defaults to false. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether to throw an exception if side effect cannot be ruled out during evaluation. - */ - throwOnSideEffect?: boolean | undefined; - } - interface SetVariableValueParameterType { - /** - * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. - */ - scopeNumber: number; - /** - * Variable name. - */ - variableName: string; - /** - * New variable value. - */ - newValue: Runtime.CallArgument; - /** - * Id of callframe that holds variable. - */ - callFrameId: CallFrameId; - } - interface SetReturnValueParameterType { - /** - * New return value. - */ - newValue: Runtime.CallArgument; - } - interface SetAsyncCallStackDepthParameterType { - /** - * Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). - */ - maxDepth: number; - } - interface SetBlackboxPatternsParameterType { - /** - * Array of regexps that will be used to check script url for blackbox state. - */ - patterns: string[]; - } - interface SetBlackboxedRangesParameterType { - /** - * Id of the script. - */ - scriptId: Runtime.ScriptId; - positions: ScriptPosition[]; - } - interface EnableReturnType { - /** - * Unique identifier of the debugger. - * @experimental - */ - debuggerId: Runtime.UniqueDebuggerId; - } - interface SetBreakpointByUrlReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * List of the locations this breakpoint resolved into upon addition. - */ - locations: Location[]; - } - interface SetBreakpointReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * Location this breakpoint resolved into. - */ - actualLocation: Location; - } - interface GetPossibleBreakpointsReturnType { - /** - * List of the possible breakpoint locations. - */ - locations: BreakLocation[]; - } - interface GetStackTraceReturnType { - stackTrace: Runtime.StackTrace; - } - interface SearchInContentReturnType { - /** - * List of search matches. - */ - result: SearchMatch[]; - } - interface SetScriptSourceReturnType { - /** - * New stack trace in case editing has happened while VM was stopped. - */ - callFrames?: CallFrame[] | undefined; - /** - * Whether current call stack was modified after applying the changes. - */ - stackChanged?: boolean | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Exception details if any. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface RestartFrameReturnType { - /** - * New stack trace. - */ - callFrames: CallFrame[]; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - } - interface GetScriptSourceReturnType { - /** - * Script source. - */ - scriptSource: string; - } - interface EvaluateOnCallFrameReturnType { - /** - * Object wrapper for the evaluation result. - */ - result: Runtime.RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface ScriptParsedEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: {} | undefined; - /** - * True, if this script is generated as a result of the live edit operation. - * @experimental - */ - isLiveEdit?: boolean | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface ScriptFailedToParseEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: {} | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface BreakpointResolvedEventDataType { - /** - * Breakpoint unique identifier. - */ - breakpointId: BreakpointId; - /** - * Actual breakpoint location. - */ - location: Location; - } - interface PausedEventDataType { - /** - * Call stack the virtual machine stopped on. - */ - callFrames: CallFrame[]; - /** - * Pause reason. - */ - reason: string; - /** - * Object containing break-specific auxiliary properties. - */ - data?: {} | undefined; - /** - * Hit breakpoints IDs - */ - hitBreakpoints?: string[] | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag. - * @experimental - */ - asyncCallStackTraceId?: Runtime.StackTraceId | undefined; - } - } - namespace Console { - /** - * Console message. - */ - interface ConsoleMessage { - /** - * Message source. - */ - source: string; - /** - * Message severity. - */ - level: string; - /** - * Message text. - */ - text: string; - /** - * URL of the message origin. - */ - url?: string | undefined; - /** - * Line number in the resource that generated this message (1-based). - */ - line?: number | undefined; - /** - * Column number in the resource that generated this message (1-based). - */ - column?: number | undefined; - } - interface MessageAddedEventDataType { - /** - * Console message that has been added. - */ - message: ConsoleMessage; - } - } - namespace Profiler { - /** - * Profile node. Holds callsite information, execution statistics and child nodes. - */ - interface ProfileNode { - /** - * Unique id of the node. - */ - id: number; - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Number of samples where this node was on top of the call stack. - */ - hitCount?: number | undefined; - /** - * Child node ids. - */ - children?: number[] | undefined; - /** - * The reason of being not optimized. The function may be deoptimized or marked as don't optimize. - */ - deoptReason?: string | undefined; - /** - * An array of source position ticks. - */ - positionTicks?: PositionTickInfo[] | undefined; - } - /** - * Profile. - */ - interface Profile { - /** - * The list of profile nodes. First item is the root node. - */ - nodes: ProfileNode[]; - /** - * Profiling start timestamp in microseconds. - */ - startTime: number; - /** - * Profiling end timestamp in microseconds. - */ - endTime: number; - /** - * Ids of samples top nodes. - */ - samples?: number[] | undefined; - /** - * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. - */ - timeDeltas?: number[] | undefined; - } - /** - * Specifies a number of samples attributed to a certain source position. - */ - interface PositionTickInfo { - /** - * Source line number (1-based). - */ - line: number; - /** - * Number of samples attributed to the source line. - */ - ticks: number; - } - /** - * Coverage data for a source range. - */ - interface CoverageRange { - /** - * JavaScript script source offset for the range start. - */ - startOffset: number; - /** - * JavaScript script source offset for the range end. - */ - endOffset: number; - /** - * Collected execution count of the source range. - */ - count: number; - } - /** - * Coverage data for a JavaScript function. - */ - interface FunctionCoverage { - /** - * JavaScript function name. - */ - functionName: string; - /** - * Source ranges inside the function with coverage data. - */ - ranges: CoverageRange[]; - /** - * Whether coverage data for this function has block granularity. - */ - isBlockCoverage: boolean; - } - /** - * Coverage data for a JavaScript script. - */ - interface ScriptCoverage { - /** - * JavaScript script id. - */ - scriptId: Runtime.ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Functions contained in the script that has coverage data. - */ - functions: FunctionCoverage[]; - } - interface SetSamplingIntervalParameterType { - /** - * New sampling interval in microseconds. - */ - interval: number; - } - interface StartPreciseCoverageParameterType { - /** - * Collect accurate call counts beyond simple 'covered' or 'not covered'. - */ - callCount?: boolean | undefined; - /** - * Collect block-based coverage. - */ - detailed?: boolean | undefined; - } - interface StopReturnType { - /** - * Recorded profile. - */ - profile: Profile; - } - interface TakePreciseCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface GetBestEffortCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface ConsoleProfileStartedEventDataType { - id: string; - /** - * Location of console.profile(). - */ - location: Debugger.Location; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - interface ConsoleProfileFinishedEventDataType { - id: string; - /** - * Location of console.profileEnd(). - */ - location: Debugger.Location; - profile: Profile; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - } - namespace HeapProfiler { - /** - * Heap snapshot object id. - */ - type HeapSnapshotObjectId = string; - /** - * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. - */ - interface SamplingHeapProfileNode { - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Allocations size in bytes for the node excluding children. - */ - selfSize: number; - /** - * Child nodes. - */ - children: SamplingHeapProfileNode[]; - } - /** - * Profile. - */ - interface SamplingHeapProfile { - head: SamplingHeapProfileNode; - } - interface StartTrackingHeapObjectsParameterType { - trackAllocations?: boolean | undefined; - } - interface StopTrackingHeapObjectsParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. - */ - reportProgress?: boolean | undefined; - } - interface TakeHeapSnapshotParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. - */ - reportProgress?: boolean | undefined; - } - interface GetObjectByHeapObjectIdParameterType { - objectId: HeapSnapshotObjectId; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - } - interface AddInspectedHeapObjectParameterType { - /** - * Heap snapshot object id to be accessible by means of $x command line API. - */ - heapObjectId: HeapSnapshotObjectId; - } - interface GetHeapObjectIdParameterType { - /** - * Identifier of the object to get heap object id for. - */ - objectId: Runtime.RemoteObjectId; - } - interface StartSamplingParameterType { - /** - * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. - */ - samplingInterval?: number | undefined; - } - interface GetObjectByHeapObjectIdReturnType { - /** - * Evaluation result. - */ - result: Runtime.RemoteObject; - } - interface GetHeapObjectIdReturnType { - /** - * Id of the heap snapshot object corresponding to the passed remote object id. - */ - heapSnapshotObjectId: HeapSnapshotObjectId; - } - interface StopSamplingReturnType { - /** - * Recorded sampling heap profile. - */ - profile: SamplingHeapProfile; - } - interface GetSamplingProfileReturnType { - /** - * Return the sampling profile being collected. - */ - profile: SamplingHeapProfile; - } - interface AddHeapSnapshotChunkEventDataType { - chunk: string; - } - interface ReportHeapSnapshotProgressEventDataType { - done: number; - total: number; - finished?: boolean | undefined; - } - interface LastSeenObjectIdEventDataType { - lastSeenObjectId: number; - timestamp: number; - } - interface HeapStatsUpdateEventDataType { - /** - * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment. - */ - statsUpdate: number[]; - } - } - namespace NodeTracing { - interface TraceConfig { - /** - * Controls how the trace buffer stores data. - */ - recordMode?: string | undefined; - /** - * Included category filters. - */ - includedCategories: string[]; - } - interface StartParameterType { - traceConfig: TraceConfig; - } - interface GetCategoriesReturnType { - /** - * A list of supported tracing categories. - */ - categories: string[]; - } - interface DataCollectedEventDataType { - value: Array<{}>; - } - } - namespace NodeWorker { - type WorkerID = string; - /** - * Unique identifier of attached debugging session. - */ - type SessionID = string; - interface WorkerInfo { - workerId: WorkerID; - type: string; - title: string; - url: string; - } - interface SendMessageToWorkerParameterType { - message: string; - /** - * Identifier of the session. - */ - sessionId: SessionID; - } - interface EnableParameterType { - /** - * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` - * message to run them. - */ - waitForDebuggerOnStart: boolean; - } - interface DetachParameterType { - sessionId: SessionID; - } - interface AttachedToWorkerEventDataType { - /** - * Identifier assigned to the session used to send/receive messages. - */ - sessionId: SessionID; - workerInfo: WorkerInfo; - waitingForDebugger: boolean; - } - interface DetachedFromWorkerEventDataType { - /** - * Detached session identifier. - */ - sessionId: SessionID; - } - interface ReceivedMessageFromWorkerEventDataType { - /** - * Identifier of a session which sends a message. - */ - sessionId: SessionID; - message: string; - } - } - namespace Network { - /** - * Resource type as it was perceived by the rendering engine. - */ - type ResourceType = string; - /** - * Unique request identifier. - */ - type RequestId = string; - /** - * UTC time in seconds, counted from January 1, 1970. - */ - type TimeSinceEpoch = number; - /** - * Monotonically increasing time in seconds since an arbitrary point in the past. - */ - type MonotonicTime = number; - /** - * HTTP request data. - */ - interface Request { - url: string; - method: string; - headers: Headers; - } - /** - * HTTP response data. - */ - interface Response { - url: string; - status: number; - statusText: string; - headers: Headers; - } - /** - * Request / response headers as keys / values of JSON object. - */ - interface Headers { - } - interface RequestWillBeSentEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Request data. - */ - request: Request; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Timestamp. - */ - wallTime: TimeSinceEpoch; - } - interface ResponseReceivedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Resource type. - */ - type: ResourceType; - /** - * Response data. - */ - response: Response; - } - interface LoadingFailedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Resource type. - */ - type: ResourceType; - /** - * Error message. - */ - errorText: string; - } - interface LoadingFinishedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - } - } - namespace NodeRuntime { - interface NotifyWhenWaitingForDisconnectParameterType { - enabled: boolean; - } - } - - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - */ - class Session extends EventEmitter { - /** - * Create a new instance of the inspector.Session class. - * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. - */ - constructor(); - - /** - * Connects a session to the inspector back-end. - */ - connect(): void; - - /** - * Connects a session to the inspector back-end. - * An exception will be thrown if this API was not called on a Worker thread. - * @since v12.11.0 - */ - connectToMainThread(): void; - - /** - * Immediately close the session. All pending message callbacks will be called with an error. - * `session.connect()` will need to be called to be able to send messages again. - * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. - */ - disconnect(): void; - - /** - * Posts a message to the inspector back-end. `callback` will be notified when - * a response is received. `callback` is a function that accepts two optional - * arguments: error and message-specific result. - * - * ```js - * session.post('Runtime.evaluate', { expression: '2 + 2' }, - * (error, { result }) => console.log(result)); - * // Output: { type: 'number', value: 4, description: '4' } - * ``` - * - * The latest version of the V8 inspector protocol is published on the - * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). - * - * Node.js inspector supports all the Chrome DevTools Protocol domains declared - * by V8. Chrome DevTools Protocol domain provides an interface for interacting - * with one of the runtime agents used to inspect the application state and listen - * to the run-time events. - */ - post(method: string, callback?: (err: Error | null, params?: object) => void): void; - post(method: string, params?: object, callback?: (err: Error | null, params?: object) => void): void; - /** - * Returns supported domains. - */ - post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void; - /** - * Evaluates expression on global object. - */ - post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - /** - * Add handler to promise with given promise object id. - */ - post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - /** - * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - /** - * Returns properties of a given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - /** - * Releases remote object with given id. - */ - post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void; - /** - * Releases all remote objects that belong to a given group. - */ - post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void; - /** - * Tells inspected instance to run if it was waiting for debugger to attach. - */ - post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void; - /** - * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. - */ - post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void; - /** - * Disables reporting of execution contexts creation. - */ - post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void; - /** - * Discards collected exceptions and console API calls. - */ - post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void; - /** - * Compiles expression. - */ - post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - /** - * Runs script with given id in a given context. - */ - post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - /** - * Returns all let, const and class variables from global scope. - */ - post( - method: 'Runtime.globalLexicalScopeNames', - params?: Runtime.GlobalLexicalScopeNamesParameterType, - callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void - ): void; - post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void; - /** - * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. - */ - post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void; - /** - * Disables debugger for given page. - */ - post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void; - /** - * Activates / deactivates all breakpoints on the page. - */ - post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void; - /** - * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). - */ - post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void; - /** - * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. - */ - post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - /** - * Sets JavaScript breakpoint at a given location. - */ - post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - /** - * Removes JavaScript breakpoint. - */ - post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void; - /** - * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. - */ - post( - method: 'Debugger.getPossibleBreakpoints', - params?: Debugger.GetPossibleBreakpointsParameterType, - callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void - ): void; - post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void; - /** - * Continues execution until specific location is reached. - */ - post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void; - /** - * Steps over the statement. - */ - post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void; - /** - * Steps into the function call. - */ - post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void; - /** - * Steps out of the function call. - */ - post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void; - /** - * Stops on the next JavaScript statement. - */ - post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void; - /** - * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. - * @experimental - */ - post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void; - /** - * Resumes JavaScript execution. - */ - post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void; - /** - * Returns stack trace with given stackTraceId. - * @experimental - */ - post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - /** - * Searches for given string in script content. - */ - post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - /** - * Edits JavaScript source live. - */ - post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - /** - * Restarts particular call frame from the beginning. - */ - post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - /** - * Returns source for the script with given id. - */ - post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - /** - * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. - */ - post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void; - /** - * Evaluates expression on a given call frame. - */ - post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - /** - * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. - */ - post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void; - /** - * Changes return value in top frame. Available only at return break position. - * @experimental - */ - post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void; - /** - * Enables or disables async call stacks tracking. - */ - post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void; - /** - * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - * @experimental - */ - post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void; - /** - * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. - * @experimental - */ - post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void; - /** - * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. - */ - post(method: 'Console.enable', callback?: (err: Error | null) => void): void; - /** - * Disables console domain, prevents further console messages from being reported to the client. - */ - post(method: 'Console.disable', callback?: (err: Error | null) => void): void; - /** - * Does nothing. - */ - post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void; - /** - * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. - */ - post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.start', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void; - /** - * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. - */ - post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void; - /** - * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. - */ - post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void; - /** - * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. - */ - post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void; - /** - * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. - */ - post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void; - post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void; - post( - method: 'HeapProfiler.getObjectByHeapObjectId', - params?: HeapProfiler.GetObjectByHeapObjectIdParameterType, - callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void - ): void; - post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void; - /** - * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). - */ - post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void; - post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void; - /** - * Gets supported tracing categories. - */ - post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void; - /** - * Start trace events collection. - */ - post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void; - /** - * Stop trace events collection. Remaining collected events will be sent as a sequence of - * dataCollected events followed by tracingComplete event. - */ - post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void; - /** - * Sends protocol message over session with given id. - */ - post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void; - /** - * Instructs the inspector to attach to running workers. Will also attach to new workers - * as they start - */ - post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void; - /** - * Detaches from all running workers and disables attaching to new workers as they are started. - */ - post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void; - /** - * Detached from the worker with given sessionId. - */ - post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void; - /** - * Disables network tracking, prevents network events from being sent to the client. - */ - post(method: 'Network.disable', callback?: (err: Error | null) => void): void; - /** - * Enables network tracking, network events will now be delivered to the client. - */ - post(method: 'Network.enable', callback?: (err: Error | null) => void): void; - /** - * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.enable', callback?: (err: Error | null) => void): void; - /** - * Disable NodeRuntime events - */ - post(method: 'NodeRuntime.disable', callback?: (err: Error | null) => void): void; - /** - * Enable the `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void; - - addListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - addListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - addListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'inspectorNotification', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextsCleared'): boolean; - emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; - emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; - emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; - emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; - emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; - emit(event: 'Debugger.paused', message: InspectorNotification): boolean; - emit(event: 'Debugger.resumed'): boolean; - emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.resetProfiles'): boolean; - emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.tracingComplete'): boolean; - emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; - emit(event: 'Network.requestWillBeSent', message: InspectorNotification): boolean; - emit(event: 'Network.responseReceived', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFailed', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFinished', message: InspectorNotification): boolean; - emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; - emit(event: 'NodeRuntime.waitingForDebugger'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - on(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - on(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - on(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - on(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - on(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - once(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - once(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - once(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - once(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - once(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - } - - /** - * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has - * started. - * - * If wait is `true`, will block until a client has connected to the inspect port - * and flow control has been passed to the debugger client. - * - * See the [security warning](https://nodejs.org/docs/latest-v20.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure) - * regarding the `host` parameter usage. - * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI. - * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI. - * @param wait Block until a client has connected. Defaults to what was specified on the CLI. - * @returns Disposable that calls `inspector.close()`. - */ - function open(port?: number, host?: string, wait?: boolean): Disposable; - - /** - * Deactivate the inspector. Blocks until there are no active connections. - */ - function close(): void; - - /** - * Return the URL of the active inspector, or `undefined` if there is none. - * - * ```console - * $ node --inspect -p 'inspector.url()' - * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * For help, see: https://nodejs.org/en/docs/inspector - * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * - * $ node --inspect=localhost:3000 -p 'inspector.url()' - * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * For help, see: https://nodejs.org/en/docs/inspector - * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * - * $ node -p 'inspector.url()' - * undefined - * ``` - */ - function url(): string | undefined; - - /** - * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command. - * - * An exception will be thrown if there is no active inspector. - * @since v12.7.0 - */ - function waitForDebugger(): void; - - // These methods are exposed by the V8 inspector console API (inspector/v8-console.h). - // The method signatures differ from those of the Node.js console, and are deliberately - // typed permissively. - interface InspectorConsole { - debug(...data: any[]): void; - error(...data: any[]): void; - info(...data: any[]): void; - log(...data: any[]): void; - warn(...data: any[]): void; - dir(...data: any[]): void; - dirxml(...data: any[]): void; - table(...data: any[]): void; - trace(...data: any[]): void; - group(...data: any[]): void; - groupCollapsed(...data: any[]): void; - groupEnd(...data: any[]): void; - clear(...data: any[]): void; - count(label?: any): void; - countReset(label?: any): void; - assert(value?: any, ...data: any[]): void; - profile(label?: any): void; - profileEnd(label?: any): void; - time(label?: any): void; - timeLog(label?: any): void; - timeStamp(label?: any): void; - } - - /** - * An object to send messages to the remote inspector console. - * @since v11.0.0 - */ - const console: InspectorConsole; - - // DevTools protocol event broadcast methods - namespace Network { - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that - * the application is about to send an HTTP request. - * @since v22.6.0 - * @experimental - */ - function requestWillBeSent(params: RequestWillBeSentEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that - * HTTP response is available. - * @since v22.6.0 - * @experimental - */ - function responseReceived(params: ResponseReceivedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that - * HTTP request has finished loading. - * @since v22.6.0 - * @experimental - */ - function loadingFinished(params: LoadingFinishedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that - * HTTP request has failed to load. - * @since v22.7.0 - * @experimental - */ - function loadingFailed(params: LoadingFailedEventDataType): void; - } -} - -/** - * The `node:inspector` module provides an API for interacting with the V8 - * inspector. - */ -declare module 'node:inspector' { - export * from 'inspector'; -} - -/** - * The `node:inspector/promises` module provides an API for interacting with the V8 - * inspector. - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector/promises.js) - * @since v19.0.0 - */ -declare module 'inspector/promises' { - import EventEmitter = require('node:events'); - import { - open, - close, - url, - waitForDebugger, - console, - InspectorNotification, - Schema, - Runtime, - Debugger, - Console, - Profiler, - HeapProfiler, - NodeTracing, - NodeWorker, - Network, - NodeRuntime, - } from 'inspector'; - - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - * @since v19.0.0 - */ - class Session extends EventEmitter { - /** - * Create a new instance of the `inspector.Session` class. - * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. - */ - constructor(); - - /** - * Connects a session to the inspector back-end. - */ - connect(): void; - - /** - * Connects a session to the inspector back-end. - * An exception will be thrown if this API was not called on a Worker thread. - */ - connectToMainThread(): void; - - /** - * Immediately close the session. All pending message callbacks will be called with an error. - * `session.connect()` will need to be called to be able to send messages again. - * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. - */ - disconnect(): void; - - /** - * Posts a message to the inspector back-end. - * - * ```js - * import { Session } from 'node:inspector/promises'; - * try { - * const session = new Session(); - * session.connect(); - * const result = await session.post('Runtime.evaluate', { expression: '2 + 2' }); - * console.log(result); - * } catch (error) { - * console.error(error); - * } - * // Output: { result: { type: 'number', value: 4, description: '4' } } - * ``` - * - * The latest version of the V8 inspector protocol is published on the - * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). - * - * Node.js inspector supports all the Chrome DevTools Protocol domains declared - * by V8. Chrome DevTools Protocol domain provides an interface for interacting - * with one of the runtime agents used to inspect the application state and listen - * to the run-time events. - */ - post(method: string, params?: object): Promise; - /** - * Returns supported domains. - */ - post(method: 'Schema.getDomains'): Promise; - /** - * Evaluates expression on global object. - */ - post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType): Promise; - /** - * Add handler to promise with given promise object id. - */ - post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType): Promise; - /** - * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType): Promise; - /** - * Returns properties of a given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType): Promise; - /** - * Releases remote object with given id. - */ - post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType): Promise; - /** - * Releases all remote objects that belong to a given group. - */ - post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType): Promise; - /** - * Tells inspected instance to run if it was waiting for debugger to attach. - */ - post(method: 'Runtime.runIfWaitingForDebugger'): Promise; - /** - * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. - */ - post(method: 'Runtime.enable'): Promise; - /** - * Disables reporting of execution contexts creation. - */ - post(method: 'Runtime.disable'): Promise; - /** - * Discards collected exceptions and console API calls. - */ - post(method: 'Runtime.discardConsoleEntries'): Promise; - /** - * @experimental - */ - post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType): Promise; - /** - * Compiles expression. - */ - post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType): Promise; - /** - * Runs script with given id in a given context. - */ - post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType): Promise; - post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType): Promise; - /** - * Returns all let, const and class variables from global scope. - */ - post(method: 'Runtime.globalLexicalScopeNames', params?: Runtime.GlobalLexicalScopeNamesParameterType): Promise; - /** - * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. - */ - post(method: 'Debugger.enable'): Promise; - /** - * Disables debugger for given page. - */ - post(method: 'Debugger.disable'): Promise; - /** - * Activates / deactivates all breakpoints on the page. - */ - post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType): Promise; - /** - * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). - */ - post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType): Promise; - /** - * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. - */ - post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType): Promise; - /** - * Sets JavaScript breakpoint at a given location. - */ - post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType): Promise; - /** - * Removes JavaScript breakpoint. - */ - post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType): Promise; - /** - * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. - */ - post(method: 'Debugger.getPossibleBreakpoints', params?: Debugger.GetPossibleBreakpointsParameterType): Promise; - /** - * Continues execution until specific location is reached. - */ - post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType): Promise; - /** - * @experimental - */ - post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType): Promise; - /** - * Steps over the statement. - */ - post(method: 'Debugger.stepOver'): Promise; - /** - * Steps into the function call. - */ - post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType): Promise; - /** - * Steps out of the function call. - */ - post(method: 'Debugger.stepOut'): Promise; - /** - * Stops on the next JavaScript statement. - */ - post(method: 'Debugger.pause'): Promise; - /** - * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. - * @experimental - */ - post(method: 'Debugger.scheduleStepIntoAsync'): Promise; - /** - * Resumes JavaScript execution. - */ - post(method: 'Debugger.resume'): Promise; - /** - * Returns stack trace with given stackTraceId. - * @experimental - */ - post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType): Promise; - /** - * Searches for given string in script content. - */ - post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType): Promise; - /** - * Edits JavaScript source live. - */ - post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType): Promise; - /** - * Restarts particular call frame from the beginning. - */ - post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType): Promise; - /** - * Returns source for the script with given id. - */ - post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType): Promise; - /** - * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. - */ - post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType): Promise; - /** - * Evaluates expression on a given call frame. - */ - post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType): Promise; - /** - * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. - */ - post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType): Promise; - /** - * Changes return value in top frame. Available only at return break position. - * @experimental - */ - post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType): Promise; - /** - * Enables or disables async call stacks tracking. - */ - post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType): Promise; - /** - * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - * @experimental - */ - post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType): Promise; - /** - * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. - * @experimental - */ - post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType): Promise; - /** - * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. - */ - post(method: 'Console.enable'): Promise; - /** - * Disables console domain, prevents further console messages from being reported to the client. - */ - post(method: 'Console.disable'): Promise; - /** - * Does nothing. - */ - post(method: 'Console.clearMessages'): Promise; - post(method: 'Profiler.enable'): Promise; - post(method: 'Profiler.disable'): Promise; - /** - * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. - */ - post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType): Promise; - post(method: 'Profiler.start'): Promise; - post(method: 'Profiler.stop'): Promise; - /** - * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. - */ - post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType): Promise; - /** - * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. - */ - post(method: 'Profiler.stopPreciseCoverage'): Promise; - /** - * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. - */ - post(method: 'Profiler.takePreciseCoverage'): Promise; - /** - * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. - */ - post(method: 'Profiler.getBestEffortCoverage'): Promise; - post(method: 'HeapProfiler.enable'): Promise; - post(method: 'HeapProfiler.disable'): Promise; - post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType): Promise; - post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType): Promise; - post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType): Promise; - post(method: 'HeapProfiler.collectGarbage'): Promise; - post(method: 'HeapProfiler.getObjectByHeapObjectId', params?: HeapProfiler.GetObjectByHeapObjectIdParameterType): Promise; - /** - * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). - */ - post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType): Promise; - post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType): Promise; - post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType): Promise; - post(method: 'HeapProfiler.stopSampling'): Promise; - post(method: 'HeapProfiler.getSamplingProfile'): Promise; - /** - * Gets supported tracing categories. - */ - post(method: 'NodeTracing.getCategories'): Promise; - /** - * Start trace events collection. - */ - post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType): Promise; - /** - * Stop trace events collection. Remaining collected events will be sent as a sequence of - * dataCollected events followed by tracingComplete event. - */ - post(method: 'NodeTracing.stop'): Promise; - /** - * Sends protocol message over session with given id. - */ - post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType): Promise; - /** - * Instructs the inspector to attach to running workers. Will also attach to new workers - * as they start - */ - post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType): Promise; - /** - * Detaches from all running workers and disables attaching to new workers as they are started. - */ - post(method: 'NodeWorker.disable'): Promise; - /** - * Detached from the worker with given sessionId. - */ - post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType): Promise; - /** - * Disables network tracking, prevents network events from being sent to the client. - */ - post(method: 'Network.disable'): Promise; - /** - * Enables network tracking, network events will now be delivered to the client. - */ - post(method: 'Network.enable'): Promise; - /** - * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.enable'): Promise; - /** - * Disable NodeRuntime events - */ - post(method: 'NodeRuntime.disable'): Promise; - /** - * Enable the `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise; - - addListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - addListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - addListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'inspectorNotification', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextsCleared'): boolean; - emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; - emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; - emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; - emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; - emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; - emit(event: 'Debugger.paused', message: InspectorNotification): boolean; - emit(event: 'Debugger.resumed'): boolean; - emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.resetProfiles'): boolean; - emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.tracingComplete'): boolean; - emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; - emit(event: 'Network.requestWillBeSent', message: InspectorNotification): boolean; - emit(event: 'Network.responseReceived', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFailed', message: InspectorNotification): boolean; - emit(event: 'Network.loadingFinished', message: InspectorNotification): boolean; - emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; - emit(event: 'NodeRuntime.waitingForDebugger'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - on(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - on(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - on(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - on(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - on(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - on(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - once(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - once(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - once(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - once(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - once(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - once(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this; - } - - export { - Session, - open, - close, - url, - waitForDebugger, - console, - InspectorNotification, - Schema, - Runtime, - Debugger, - Console, - Profiler, - HeapProfiler, - NodeTracing, - NodeWorker, - Network, - NodeRuntime, - }; -} - -/** - * The `node:inspector/promises` module provides an API for interacting with the V8 - * inspector. - * @since v19.0.0 - */ -declare module 'node:inspector/promises' { - export * from 'inspector/promises'; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/module.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/module.d.ts deleted file mode 100644 index 36b86ff..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/module.d.ts +++ /dev/null @@ -1,539 +0,0 @@ -/** - * @since v0.3.7 - */ -declare module "module" { - import { URL } from "node:url"; - import { MessagePort } from "node:worker_threads"; - class Module { - constructor(id: string, parent?: Module); - } - interface Module extends NodeJS.Module {} - namespace Module { - export { Module }; - } - namespace Module { - /** - * A list of the names of all modules provided by Node.js. Can be used to verify - * if a module is maintained by a third party or not. - * - * Note: the list doesn't contain prefix-only modules like `node:test`. - * @since v9.3.0, v8.10.0, v6.13.0 - */ - const builtinModules: readonly string[]; - /** - * @since v12.2.0 - * @param path Filename to be used to construct the require - * function. Must be a file URL object, file URL string, or absolute path - * string. - */ - function createRequire(path: string | URL): NodeJS.Require; - /** - * @since v18.6.0, v16.17.0 - */ - function isBuiltin(moduleName: string): boolean; - interface RegisterOptions { - /** - * If you want to resolve `specifier` relative to a - * base URL, such as `import.meta.url`, you can pass that URL here. This - * property is ignored if the `parentURL` is supplied as the second argument. - * @default 'data:' - */ - parentURL?: string | URL | undefined; - /** - * Any arbitrary, cloneable JavaScript value to pass into the - * {@link initialize} hook. - */ - data?: Data | undefined; - /** - * [Transferable objects](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html#portpostmessagevalue-transferlist) - * to be passed into the `initialize` hook. - */ - transferList?: any[] | undefined; - } - /* eslint-disable @definitelytyped/no-unnecessary-generics */ - /** - * Register a module that exports hooks that customize Node.js module - * resolution and loading behavior. See - * [Customization hooks](https://nodejs.org/docs/latest-v20.x/api/module.html#customization-hooks). - * @since v20.6.0, v18.19.0 - * @param specifier Customization hooks to be registered; this should be - * the same string that would be passed to `import()`, except that if it is - * relative, it is resolved relative to `parentURL`. - * @param parentURL f you want to resolve `specifier` relative to a base - * URL, such as `import.meta.url`, you can pass that URL here. - */ - function register( - specifier: string | URL, - parentURL?: string | URL, - options?: RegisterOptions, - ): void; - function register(specifier: string | URL, options?: RegisterOptions): void; - /* eslint-enable @definitelytyped/no-unnecessary-generics */ - /** - * The `module.syncBuiltinESMExports()` method updates all the live bindings for - * builtin `ES Modules` to match the properties of the `CommonJS` exports. It - * does not add or remove exported names from the `ES Modules`. - * - * ```js - * import fs from 'node:fs'; - * import assert from 'node:assert'; - * import { syncBuiltinESMExports } from 'node:module'; - * - * fs.readFile = newAPI; - * - * delete fs.readFileSync; - * - * function newAPI() { - * // ... - * } - * - * fs.newAPI = newAPI; - * - * syncBuiltinESMExports(); - * - * import('node:fs').then((esmFS) => { - * // It syncs the existing readFile property with the new value - * assert.strictEqual(esmFS.readFile, newAPI); - * // readFileSync has been deleted from the required fs - * assert.strictEqual('readFileSync' in fs, false); - * // syncBuiltinESMExports() does not remove readFileSync from esmFS - * assert.strictEqual('readFileSync' in esmFS, true); - * // syncBuiltinESMExports() does not add names - * assert.strictEqual(esmFS.newAPI, undefined); - * }); - * ``` - * @since v12.12.0 - */ - function syncBuiltinESMExports(): void; - /** @deprecated Use `ImportAttributes` instead */ - interface ImportAssertions extends ImportAttributes {} - interface ImportAttributes extends NodeJS.Dict { - type?: string | undefined; - } - type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm"; - type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray; - /** - * The `initialize` hook provides a way to define a custom function that runs in - * the hooks thread when the hooks module is initialized. Initialization happens - * when the hooks module is registered via {@link register}. - * - * This hook can receive data from a {@link register} invocation, including - * ports and other transferable objects. The return value of `initialize` can be a - * `Promise`, in which case it will be awaited before the main application thread - * execution resumes. - */ - type InitializeHook = (data: Data) => void | Promise; - interface ResolveHookContext { - /** - * Export conditions of the relevant `package.json` - */ - conditions: string[]; - /** - * @deprecated Use `importAttributes` instead - */ - importAssertions: ImportAttributes; - /** - * An object whose key-value pairs represent the assertions for the module to import - */ - importAttributes: ImportAttributes; - /** - * The module importing this one, or undefined if this is the Node.js entry point - */ - parentURL: string | undefined; - } - interface ResolveFnOutput { - /** - * A hint to the load hook (it might be ignored) - */ - format?: ModuleFormat | null | undefined; - /** - * @deprecated Use `importAttributes` instead - */ - importAssertions?: ImportAttributes | undefined; - /** - * The import attributes to use when caching the module (optional; if excluded the input will be used) - */ - importAttributes?: ImportAttributes | undefined; - /** - * A signal that this hook intends to terminate the chain of `resolve` hooks. - * @default false - */ - shortCircuit?: boolean | undefined; - /** - * The absolute URL to which this input resolves - */ - url: string; - } - /** - * The `resolve` hook chain is responsible for telling Node.js where to find and - * how to cache a given `import` statement or expression, or `require` call. It can - * optionally return a format (such as `'module'`) as a hint to the `load` hook. If - * a format is specified, the `load` hook is ultimately responsible for providing - * the final `format` value (and it is free to ignore the hint provided by - * `resolve`); if `resolve` provides a `format`, a custom `load` hook is required - * even if only to pass the value to the Node.js default `load` hook. - */ - type ResolveHook = ( - specifier: string, - context: ResolveHookContext, - nextResolve: ( - specifier: string, - context?: Partial, - ) => ResolveFnOutput | Promise, - ) => ResolveFnOutput | Promise; - interface LoadHookContext { - /** - * Export conditions of the relevant `package.json` - */ - conditions: string[]; - /** - * The format optionally supplied by the `resolve` hook chain - */ - format: ModuleFormat | null | undefined; - /** - * @deprecated Use `importAttributes` instead - */ - importAssertions: ImportAttributes; - /** - * An object whose key-value pairs represent the assertions for the module to import - */ - importAttributes: ImportAttributes; - } - interface LoadFnOutput { - format: string | null | undefined; - /** - * A signal that this hook intends to terminate the chain of `resolve` hooks. - * @default false - */ - shortCircuit?: boolean | undefined; - /** - * The source for Node.js to evaluate - */ - source?: ModuleSource | undefined; - } - /** - * The `load` hook provides a way to define a custom method of determining how a - * URL should be interpreted, retrieved, and parsed. It is also in charge of - * validating the import attributes. - */ - type LoadHook = ( - url: string, - context: LoadHookContext, - nextLoad: ( - url: string, - context?: Partial, - ) => LoadFnOutput | Promise, - ) => LoadFnOutput | Promise; - interface GlobalPreloadContext { - port: MessagePort; - } - /** - * Sometimes it might be necessary to run some code inside of the same global - * scope that the application runs in. This hook allows the return of a string - * that is run as a sloppy-mode script on startup. - * @deprecated This hook will be removed in a future version. Use - * `initialize` instead. When a hooks module has an `initialize` export, - * `globalPreload` will be ignored. - */ - type GlobalPreloadHook = (context: GlobalPreloadContext) => string; - /** - * `path` is the resolved path for the file for which a corresponding source map - * should be fetched. - * @since v13.7.0, v12.17.0 - * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise. - */ - function findSourceMap(path: string): SourceMap | undefined; - interface SourceMapConstructorOptions { - /** - * @since v20.5.0 - */ - lineLengths?: readonly number[] | undefined; - } - interface SourceMapPayload { - file: string; - version: number; - sources: string[]; - sourcesContent: string[]; - names: string[]; - mappings: string; - sourceRoot: string; - } - interface SourceMapping { - generatedLine: number; - generatedColumn: number; - originalSource: string; - originalLine: number; - originalColumn: number; - } - interface SourceOrigin { - /** - * The name of the range in the source map, if one was provided - */ - name: string | undefined; - /** - * The file name of the original source, as reported in the SourceMap - */ - fileName: string; - /** - * The 1-indexed lineNumber of the corresponding call site in the original source - */ - lineNumber: number; - /** - * The 1-indexed columnNumber of the corresponding call site in the original source - */ - columnNumber: number; - } - /** - * @since v13.7.0, v12.17.0 - */ - class SourceMap { - constructor(payload: SourceMapPayload, options?: SourceMapConstructorOptions); - /** - * Getter for the payload used to construct the `SourceMap` instance. - */ - readonly payload: SourceMapPayload; - /** - * Given a line offset and column offset in the generated source - * file, returns an object representing the SourceMap range in the - * original file if found, or an empty object if not. - * - * The object returned contains the following keys: - * - * The returned value represents the raw range as it appears in the - * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and - * column numbers as they appear in Error messages and CallSite - * objects. - * - * To get the corresponding 1-indexed line and column numbers from a - * lineNumber and columnNumber as they are reported by Error stacks - * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)` - * @param lineOffset The zero-indexed line number offset in the generated source - * @param columnOffset The zero-indexed column number offset in the generated source - */ - findEntry(lineOffset: number, columnOffset: number): SourceMapping | {}; - /** - * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source, - * find the corresponding call site location in the original source. - * - * If the `lineNumber` and `columnNumber` provided are not found in any source map, - * then an empty object is returned. - * @param lineNumber The 1-indexed line number of the call site in the generated source - * @param columnNumber The 1-indexed column number of the call site in the generated source - */ - findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {}; - } - function runMain(main?: string): void; - function wrap(script: string): string; - } - global { - interface ImportMeta { - /** - * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`. - * **Caveat:** only present on `file:` modules. - */ - dirname: string; - /** - * The full absolute path and filename of the current module, with symlinks resolved. - * This is the same as the `url.fileURLToPath()` of the `import.meta.url`. - * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it. - */ - filename: string; - /** - * The absolute `file:` URL of the module. - */ - url: string; - /** - * Provides a module-relative resolution function scoped to each module, returning - * the URL string. - * - * Second `parent` parameter is only used when the `--experimental-import-meta-resolve` - * command flag enabled. - * - * @since v20.6.0 - * - * @param specifier The module specifier to resolve relative to `parent`. - * @param parent The absolute parent module URL to resolve from. - * @returns The absolute (`file:`) URL string for the resolved module. - */ - resolve(specifier: string, parent?: string | URL | undefined): string; - } - namespace NodeJS { - interface Module { - /** - * The module objects required for the first time by this one. - * @since v0.1.16 - */ - children: Module[]; - /** - * The `module.exports` object is created by the `Module` system. Sometimes this is - * not acceptable; many want their module to be an instance of some class. To do - * this, assign the desired export object to `module.exports`. - * @since v0.1.16 - */ - exports: any; - /** - * The fully resolved filename of the module. - * @since v0.1.16 - */ - filename: string; - /** - * The identifier for the module. Typically this is the fully resolved - * filename. - * @since v0.1.16 - */ - id: string; - /** - * `true` if the module is running during the Node.js preload - * phase. - * @since v15.4.0, v14.17.0 - */ - isPreloading: boolean; - /** - * Whether or not the module is done loading, or is in the process of - * loading. - * @since v0.1.16 - */ - loaded: boolean; - /** - * The module that first required this one, or `null` if the current module is the - * entry point of the current process, or `undefined` if the module was loaded by - * something that is not a CommonJS module (e.g. REPL or `import`). - * @since v0.1.16 - * @deprecated Please use `require.main` and `module.children` instead. - */ - parent: Module | null | undefined; - /** - * The directory name of the module. This is usually the same as the - * `path.dirname()` of the `module.id`. - * @since v11.14.0 - */ - path: string; - /** - * The search paths for the module. - * @since v0.4.0 - */ - paths: string[]; - /** - * The `module.require()` method provides a way to load a module as if - * `require()` was called from the original module. - * @since v0.5.1 - */ - require(id: string): any; - } - interface Require { - /** - * Used to import modules, `JSON`, and local files. - * @since v0.1.13 - */ - (id: string): any; - /** - * Modules are cached in this object when they are required. By deleting a key - * value from this object, the next `require` will reload the module. - * This does not apply to - * [native addons](https://nodejs.org/docs/latest-v20.x/api/addons.html), - * for which reloading will result in an error. - * @since v0.3.0 - */ - cache: Dict; - /** - * Instruct `require` on how to handle certain file extensions. - * @since v0.3.0 - * @deprecated - */ - extensions: RequireExtensions; - /** - * The `Module` object representing the entry script loaded when the Node.js - * process launched, or `undefined` if the entry point of the program is not a - * CommonJS module. - * @since v0.1.17 - */ - main: Module | undefined; - /** - * @since v0.3.0 - */ - resolve: RequireResolve; - } - /** @deprecated */ - interface RequireExtensions extends Dict<(module: Module, filename: string) => any> { - ".js": (module: Module, filename: string) => any; - ".json": (module: Module, filename: string) => any; - ".node": (module: Module, filename: string) => any; - } - interface RequireResolveOptions { - /** - * Paths to resolve module location from. If present, these - * paths are used instead of the default resolution paths, with the exception - * of - * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-from-the-global-folders) - * like `$HOME/.node_modules`, which are - * always included. Each of these paths is used as a starting point for - * the module resolution algorithm, meaning that the `node_modules` hierarchy - * is checked from this location. - * @since v8.9.0 - */ - paths?: string[] | undefined; - } - interface RequireResolve { - /** - * Use the internal `require()` machinery to look up the location of a module, - * but rather than loading the module, just return the resolved filename. - * - * If the module can not be found, a `MODULE_NOT_FOUND` error is thrown. - * @since v0.3.0 - * @param request The module path to resolve. - */ - (id: string, options?: RequireResolveOptions): string; - /** - * Returns an array containing the paths searched during resolution of `request` or - * `null` if the `request` string references a core module, for example `http` or - * `fs`. - * @since v8.9.0 - * @param request The module path whose lookup paths are being retrieved. - */ - paths(request: string): string[] | null; - } - } - /** - * The directory name of the current module. This is the same as the - * `path.dirname()` of the `__filename`. - * @since v0.1.27 - */ - var __dirname: string; - /** - * The file name of the current module. This is the current module file's absolute - * path with symlinks resolved. - * - * For a main program this is not necessarily the same as the file name used in the - * command line. - * @since v0.0.1 - */ - var __filename: string; - /** - * The `exports` variable is available within a module's file-level scope, and is - * assigned the value of `module.exports` before the module is evaluated. - * @since v0.1.16 - */ - var exports: NodeJS.Module["exports"]; - /** - * A reference to the current module. - * @since v0.1.16 - */ - var module: NodeJS.Module; - /** - * @since v0.1.13 - */ - var require: NodeJS.Require; - // Global-scope aliases for backwards compatibility with @types/node <13.0.x - /** @deprecated Use `NodeJS.Module` instead. */ - interface NodeModule extends NodeJS.Module {} - /** @deprecated Use `NodeJS.Require` instead. */ - interface NodeRequire extends NodeJS.Require {} - /** @deprecated Use `NodeJS.RequireResolve` instead. */ - interface RequireResolve extends NodeJS.RequireResolve {} - } - export = Module; -} -declare module "node:module" { - import module = require("module"); - export = module; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/net.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/net.d.ts deleted file mode 100644 index 0689472..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/net.d.ts +++ /dev/null @@ -1,1012 +0,0 @@ -/** - * > Stability: 2 - Stable - * - * The `node:net` module provides an asynchronous network API for creating stream-based - * TCP or `IPC` servers ({@link createServer}) and clients - * ({@link createConnection}). - * - * It can be accessed using: - * - * ```js - * import net from 'node:net'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/net.js) - */ -declare module "net" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { Abortable, EventEmitter } from "node:events"; - import * as dns from "node:dns"; - type LookupFunction = ( - hostname: string, - options: dns.LookupOptions, - callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void, - ) => void; - interface AddressInfo { - address: string; - family: string; - port: number; - } - interface SocketConstructorOpts { - fd?: number | undefined; - allowHalfOpen?: boolean | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - signal?: AbortSignal | undefined; - } - interface OnReadOpts { - buffer: Uint8Array | (() => Uint8Array); - /** - * This function is called for every chunk of incoming data. - * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. - * Return false from this function to implicitly pause() the socket. - */ - callback(bytesWritten: number, buf: Uint8Array): boolean; - } - interface ConnectOpts { - /** - * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. - * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will - * still be emitted as normal and methods like pause() and resume() will also behave as expected. - */ - onread?: OnReadOpts | undefined; - } - interface TcpSocketConnectOpts extends ConnectOpts { - port: number; - host?: string | undefined; - localAddress?: string | undefined; - localPort?: number | undefined; - hints?: number | undefined; - family?: number | undefined; - lookup?: LookupFunction | undefined; - noDelay?: boolean | undefined; - keepAlive?: boolean | undefined; - keepAliveInitialDelay?: number | undefined; - /** - * @since v18.13.0 - */ - autoSelectFamily?: boolean | undefined; - /** - * @since v18.13.0 - */ - autoSelectFamilyAttemptTimeout?: number | undefined; - } - interface IpcSocketConnectOpts extends ConnectOpts { - path: string; - } - type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; - type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed"; - /** - * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint - * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also - * an `EventEmitter`. - * - * A `net.Socket` can be created by the user and used directly to interact with - * a server. For example, it is returned by {@link createConnection}, - * so the user can use it to talk to the server. - * - * It can also be created by Node.js and passed to the user when a connection - * is received. For example, it is passed to the listeners of a `'connection'` event emitted on a {@link Server}, so the user can use - * it to interact with the client. - * @since v0.3.4 - */ - class Socket extends stream.Duplex { - constructor(options?: SocketConstructorOpts); - /** - * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. - * If the socket is still writable it implicitly calls `socket.end()`. - * @since v0.3.4 - */ - destroySoon(): void; - /** - * Sends data on the socket. The second parameter specifies the encoding in the - * case of a string. It defaults to UTF8 encoding. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is again free. - * - * The optional `callback` parameter will be executed when the data is finally - * written out, which may not be immediately. - * - * See `Writable` stream `write()` method for more - * information. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - */ - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - /** - * Initiate a connection on a given socket. - * - * Possible signatures: - * - * * `socket.connect(options[, connectListener])` - * * `socket.connect(path[, connectListener])` for `IPC` connections. - * * `socket.connect(port[, host][, connectListener])` for TCP connections. - * * Returns: `net.Socket` The socket itself. - * - * This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting, - * instead of a `'connect'` event, an `'error'` event will be emitted with - * the error passed to the `'error'` listener. - * The last parameter `connectListener`, if supplied, will be added as a listener - * for the `'connect'` event **once**. - * - * This function should only be used for reconnecting a socket after`'close'` has been emitted or otherwise it may lead to undefined - * behavior. - */ - connect(options: SocketConnectOpts, connectionListener?: () => void): this; - connect(port: number, host: string, connectionListener?: () => void): this; - connect(port: number, connectionListener?: () => void): this; - connect(path: string, connectionListener?: () => void): this; - /** - * Set the encoding for the socket as a `Readable Stream`. See `readable.setEncoding()` for more information. - * @since v0.1.90 - * @return The socket itself. - */ - setEncoding(encoding?: BufferEncoding): this; - /** - * Pauses the reading of data. That is, `'data'` events will not be emitted. - * Useful to throttle back an upload. - * @return The socket itself. - */ - pause(): this; - /** - * Close the TCP connection by sending an RST packet and destroy the stream. - * If this TCP socket is in connecting status, it will send an RST packet and destroy this TCP socket once it is connected. - * Otherwise, it will call `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. - * If this is not a TCP socket (for example, a pipe), calling this method will immediately throw an `ERR_INVALID_HANDLE_TYPE` Error. - * @since v18.3.0, v16.17.0 - */ - resetAndDestroy(): this; - /** - * Resumes reading after a call to `socket.pause()`. - * @return The socket itself. - */ - resume(): this; - /** - * Sets the socket to timeout after `timeout` milliseconds of inactivity on - * the socket. By default `net.Socket` do not have a timeout. - * - * When an idle timeout is triggered the socket will receive a `'timeout'` event but the connection will not be severed. The user must manually call `socket.end()` or `socket.destroy()` to - * end the connection. - * - * ```js - * socket.setTimeout(3000); - * socket.on('timeout', () => { - * console.log('socket timeout'); - * socket.end(); - * }); - * ``` - * - * If `timeout` is 0, then the existing idle timeout is disabled. - * - * The optional `callback` parameter will be added as a one-time listener for the `'timeout'` event. - * @since v0.1.90 - * @return The socket itself. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Enable/disable the use of Nagle's algorithm. - * - * When a TCP connection is created, it will have Nagle's algorithm enabled. - * - * Nagle's algorithm delays data before it is sent via the network. It attempts - * to optimize throughput at the expense of latency. - * - * Passing `true` for `noDelay` or not passing an argument will disable Nagle's - * algorithm for the socket. Passing `false` for `noDelay` will enable Nagle's - * algorithm. - * @since v0.1.90 - * @param [noDelay=true] - * @return The socket itself. - */ - setNoDelay(noDelay?: boolean): this; - /** - * Enable/disable keep-alive functionality, and optionally set the initial - * delay before the first keepalive probe is sent on an idle socket. - * - * Set `initialDelay` (in milliseconds) to set the delay between the last - * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default - * (or previous) setting. - * - * Enabling the keep-alive functionality will set the following socket options: - * - * * `SO_KEEPALIVE=1` - * * `TCP_KEEPIDLE=initialDelay` - * * `TCP_KEEPCNT=10` - * * `TCP_KEEPINTVL=1` - * @since v0.1.92 - * @param [enable=false] - * @param [initialDelay=0] - * @return The socket itself. - */ - setKeepAlive(enable?: boolean, initialDelay?: number): this; - /** - * Returns the bound `address`, the address `family` name and `port` of the - * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }` - * @since v0.1.90 - */ - address(): AddressInfo | {}; - /** - * Calling `unref()` on a socket will allow the program to exit if this is the only - * active socket in the event system. If the socket is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - unref(): this; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior). - * If the socket is `ref`ed calling `ref` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - ref(): this; - /** - * This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)` - * and it is an array of the addresses that have been attempted. - * - * Each address is a string in the form of `$IP:$PORT`. - * If the connection was successful, then the last address is the one that the socket is currently connected to. - * @since v19.4.0 - */ - readonly autoSelectFamilyAttemptedAddresses: string[]; - /** - * This property shows the number of characters buffered for writing. The buffer - * may contain strings whose length after encoding is not yet known. So this number - * is only an approximation of the number of bytes in the buffer. - * - * `net.Socket` has the property that `socket.write()` always works. This is to - * help users get up and running quickly. The computer cannot always keep up - * with the amount of data that is written to a socket. The network connection - * simply might be too slow. Node.js will internally queue up the data written to a - * socket and send it out over the wire when it is possible. - * - * The consequence of this internal buffering is that memory may grow. - * Users who experience large or growing `bufferSize` should attempt to - * "throttle" the data flows in their program with `socket.pause()` and `socket.resume()`. - * @since v0.3.8 - * @deprecated Since v14.6.0 - Use `writableLength` instead. - */ - readonly bufferSize: number; - /** - * The amount of received bytes. - * @since v0.5.3 - */ - readonly bytesRead: number; - /** - * The amount of bytes sent. - * @since v0.5.3 - */ - readonly bytesWritten: number; - /** - * If `true`, `socket.connect(options[, connectListener])` was - * called and has not yet finished. It will stay `true` until the socket becomes - * connected, then it is set to `false` and the `'connect'` event is emitted. Note - * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. - * @since v6.1.0 - */ - readonly connecting: boolean; - /** - * This is `true` if the socket is not connected yet, either because `.connect()`has not yet been called or because it is still in the process of connecting - * (see `socket.connecting`). - * @since v11.2.0, v10.16.0 - */ - readonly pending: boolean; - /** - * See `writable.destroyed` for further details. - */ - readonly destroyed: boolean; - /** - * The string representation of the local IP address the remote client is - * connecting on. For example, in a server listening on `'0.0.0.0'`, if a client - * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`. - * @since v0.9.6 - */ - readonly localAddress?: string; - /** - * The numeric representation of the local port. For example, `80` or `21`. - * @since v0.9.6 - */ - readonly localPort?: number; - /** - * The string representation of the local IP family. `'IPv4'` or `'IPv6'`. - * @since v18.8.0, v16.18.0 - */ - readonly localFamily?: string; - /** - * This property represents the state of the connection as a string. - * - * * If the stream is connecting `socket.readyState` is `opening`. - * * If the stream is readable and writable, it is `open`. - * * If the stream is readable and not writable, it is `readOnly`. - * * If the stream is not readable and writable, it is `writeOnly`. - * @since v0.5.0 - */ - readonly readyState: SocketReadyState; - /** - * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.5.10 - */ - readonly remoteAddress: string | undefined; - /** - * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.11.14 - */ - readonly remoteFamily: string | undefined; - /** - * The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.5.10 - */ - readonly remotePort: number | undefined; - /** - * The socket timeout in milliseconds as set by `socket.setTimeout()`. - * It is `undefined` if a timeout has not been set. - * @since v10.7.0 - */ - readonly timeout?: number; - /** - * Half-closes the socket. i.e., it sends a FIN packet. It is possible the - * server will still send some data. - * - * See `writable.end()` for further details. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - * @param callback Optional callback for when the socket is finished. - * @return The socket itself. - */ - end(callback?: () => void): this; - end(buffer: Uint8Array | string, callback?: () => void): this; - end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. connectionAttempt - * 4. connectionAttemptFailed - * 5. connectionAttemptTimeout - * 6. data - * 7. drain - * 8. end - * 9. error - * 10. lookup - * 11. ready - * 12. timeout - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: (hadError: boolean) => void): this; - addListener(event: "connect", listener: () => void): this; - addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - addListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - addListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - addListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - addListener(event: "ready", listener: () => void): this; - addListener(event: "timeout", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close", hadError: boolean): boolean; - emit(event: "connect"): boolean; - emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean; - emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean; - emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean; - emit(event: "data", data: NonSharedBuffer): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean; - emit(event: "ready"): boolean; - emit(event: "timeout"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: (hadError: boolean) => void): this; - on(event: "connect", listener: () => void): this; - on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - on( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; - on(event: "data", listener: (data: NonSharedBuffer) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - on(event: "ready", listener: () => void): this; - on(event: "timeout", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: (hadError: boolean) => void): this; - once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - once( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; - once(event: "connect", listener: () => void): this; - once(event: "data", listener: (data: NonSharedBuffer) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - once(event: "ready", listener: () => void): this; - once(event: "timeout", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: (hadError: boolean) => void): this; - prependListener(event: "connect", listener: () => void): this; - prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - prependListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - prependListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - prependListener(event: "ready", listener: () => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: (hadError: boolean) => void): this; - prependOnceListener(event: "connect", listener: () => void): this; - prependOnceListener( - event: "connectionAttempt", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependOnceListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - prependOnceListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - prependOnceListener(event: "ready", listener: () => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - } - interface ListenOptions extends Abortable { - port?: number | undefined; - host?: string | undefined; - backlog?: number | undefined; - path?: string | undefined; - exclusive?: boolean | undefined; - readableAll?: boolean | undefined; - writableAll?: boolean | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - } - interface ServerOpts { - /** - * Indicates whether half-opened TCP connections are allowed. - * @default false - */ - allowHalfOpen?: boolean | undefined; - /** - * Indicates whether the socket should be paused on incoming connections. - * @default false - */ - pauseOnConnect?: boolean | undefined; - /** - * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. - * @default false - * @since v16.5.0 - */ - noDelay?: boolean | undefined; - /** - * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, - * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. - * @default false - * @since v16.5.0 - */ - keepAlive?: boolean | undefined; - /** - * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. - * @default 0 - * @since v16.5.0 - */ - keepAliveInitialDelay?: number | undefined; - /** - * Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`. - * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode). - * @since v18.17.0, v20.1.0 - */ - highWaterMark?: number | undefined; - } - interface DropArgument { - localAddress?: string; - localPort?: number; - localFamily?: string; - remoteAddress?: string; - remotePort?: number; - remoteFamily?: string; - } - /** - * This class is used to create a TCP or `IPC` server. - * @since v0.1.90 - */ - class Server extends EventEmitter { - constructor(connectionListener?: (socket: Socket) => void); - constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void); - /** - * Start a server listening for connections. A `net.Server` can be a TCP or - * an `IPC` server depending on what it listens to. - * - * Possible signatures: - * - * * `server.listen(handle[, backlog][, callback])` - * * `server.listen(options[, callback])` - * * `server.listen(path[, backlog][, callback])` for `IPC` servers - * * `server.listen([port[, host[, backlog]]][, callback])` for TCP servers - * - * This function is asynchronous. When the server starts listening, the `'listening'` event will be emitted. The last parameter `callback`will be added as a listener for the `'listening'` - * event. - * - * All `listen()` methods can take a `backlog` parameter to specify the maximum - * length of the queue of pending connections. The actual length will be determined - * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512). - * - * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for - * details). - * - * The `server.listen()` method can be called again if and only if there was an - * error during the first `server.listen()` call or `server.close()` has been - * called. Otherwise, an `ERR_SERVER_ALREADY_LISTEN` error will be thrown. - * - * One of the most common errors raised when listening is `EADDRINUSE`. - * This happens when another server is already listening on the requested`port`/`path`/`handle`. One way to handle this would be to retry - * after a certain amount of time: - * - * ```js - * server.on('error', (e) => { - * if (e.code === 'EADDRINUSE') { - * console.error('Address in use, retrying...'); - * setTimeout(() => { - * server.close(); - * server.listen(PORT, HOST); - * }, 1000); - * } - * }); - * ``` - */ - listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, hostname?: string, listeningListener?: () => void): this; - listen(port?: number, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, listeningListener?: () => void): this; - listen(path: string, backlog?: number, listeningListener?: () => void): this; - listen(path: string, listeningListener?: () => void): this; - listen(options: ListenOptions, listeningListener?: () => void): this; - listen(handle: any, backlog?: number, listeningListener?: () => void): this; - listen(handle: any, listeningListener?: () => void): this; - /** - * Stops the server from accepting new connections and keeps existing - * connections. This function is asynchronous, the server is finally closed - * when all connections are ended and the server emits a `'close'` event. - * The optional `callback` will be called once the `'close'` event occurs. Unlike - * that event, it will be called with an `Error` as its only argument if the server - * was not open when it was closed. - * @since v0.1.90 - * @param callback Called when the server is closed. - */ - close(callback?: (err?: Error) => void): this; - /** - * Returns the bound `address`, the address `family` name, and `port` of the server - * as reported by the operating system if listening on an IP socket - * (useful to find which port was assigned when getting an OS-assigned address):`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`. - * - * For a server listening on a pipe or Unix domain socket, the name is returned - * as a string. - * - * ```js - * const server = net.createServer((socket) => { - * socket.end('goodbye\n'); - * }).on('error', (err) => { - * // Handle errors here. - * throw err; - * }); - * - * // Grab an arbitrary unused port. - * server.listen(() => { - * console.log('opened server on', server.address()); - * }); - * ``` - * - * `server.address()` returns `null` before the `'listening'` event has been - * emitted or after calling `server.close()`. - * @since v0.1.90 - */ - address(): AddressInfo | string | null; - /** - * Asynchronously get the number of concurrent connections on the server. Works - * when sockets were sent to forks. - * - * Callback should take two arguments `err` and `count`. - * @since v0.9.7 - */ - getConnections(cb: (error: Error | null, count: number) => void): this; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior). - * If the server is `ref`ed calling `ref()` again will have no effect. - * @since v0.9.1 - */ - ref(): this; - /** - * Calling `unref()` on a server will allow the program to exit if this is the only - * active server in the event system. If the server is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - */ - unref(): this; - /** - * Set this property to reject connections when the server's connection count gets - * high. - * - * It is not recommended to use this option once a socket has been sent to a child - * with `child_process.fork()`. - * @since v0.2.0 - */ - maxConnections: number; - connections: number; - /** - * Indicates whether or not the server is listening for connections. - * @since v5.7.0 - */ - readonly listening: boolean; - /** - * events.EventEmitter - * 1. close - * 2. connection - * 3. error - * 4. listening - * 5. drop - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Socket) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "drop", listener: (data?: DropArgument) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Socket): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit(event: "drop", data?: DropArgument): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Socket) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "drop", listener: (data?: DropArgument) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Socket) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "drop", listener: (data?: DropArgument) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Socket) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "drop", listener: (data?: DropArgument) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this; - /** - * Calls {@link Server.close()} and returns a promise that fulfills when the server has closed. - * @since v20.5.0 - */ - [Symbol.asyncDispose](): Promise; - } - type IPVersion = "ipv4" | "ipv6"; - /** - * The `BlockList` object can be used with some network APIs to specify rules for - * disabling inbound or outbound access to specific IP addresses, IP ranges, or - * IP subnets. - * @since v15.0.0, v14.18.0 - */ - class BlockList { - /** - * Adds a rule to block the given IP address. - * @since v15.0.0, v14.18.0 - * @param address An IPv4 or IPv6 address. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addAddress(address: string, type?: IPVersion): void; - addAddress(address: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (inclusive). - * @since v15.0.0, v14.18.0 - * @param start The starting IPv4 or IPv6 address in the range. - * @param end The ending IPv4 or IPv6 address in the range. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addRange(start: string, end: string, type?: IPVersion): void; - addRange(start: SocketAddress, end: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses specified as a subnet mask. - * @since v15.0.0, v14.18.0 - * @param net The network IPv4 or IPv6 address. - * @param prefix The number of CIDR prefix bits. For IPv4, this must be a value between `0` and `32`. For IPv6, this must be between `0` and `128`. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addSubnet(net: SocketAddress, prefix: number): void; - addSubnet(net: string, prefix: number, type?: IPVersion): void; - /** - * Returns `true` if the given IP address matches any of the rules added to the`BlockList`. - * - * ```js - * const blockList = new net.BlockList(); - * blockList.addAddress('123.123.123.123'); - * blockList.addRange('10.0.0.1', '10.0.0.10'); - * blockList.addSubnet('8592:757c:efae:4e45::', 64, 'ipv6'); - * - * console.log(blockList.check('123.123.123.123')); // Prints: true - * console.log(blockList.check('10.0.0.3')); // Prints: true - * console.log(blockList.check('222.111.111.222')); // Prints: false - * - * // IPv6 notation for IPv4 addresses works: - * console.log(blockList.check('::ffff:7b7b:7b7b', 'ipv6')); // Prints: true - * console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true - * ``` - * @since v15.0.0, v14.18.0 - * @param address The IP address to check - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - check(address: SocketAddress): boolean; - check(address: string, type?: IPVersion): boolean; - /** - * The list of rules added to the blocklist. - * @since v15.0.0, v14.18.0 - */ - rules: readonly string[]; - } - interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; - /** - * Creates a new TCP or `IPC` server. - * - * If `allowHalfOpen` is set to `true`, when the other end of the socket - * signals the end of transmission, the server will only send back the end of - * transmission when `socket.end()` is explicitly called. For example, in the - * context of TCP, when a FIN packed is received, a FIN packed is sent - * back only when `socket.end()` is explicitly called. Until then the - * connection is half-closed (non-readable but still writable). See `'end'` event and [RFC 1122](https://tools.ietf.org/html/rfc1122) (section 4.2.2.13) for more information. - * - * If `pauseOnConnect` is set to `true`, then the socket associated with each - * incoming connection will be paused, and no data will be read from its handle. - * This allows connections to be passed between processes without any data being - * read by the original process. To begin reading data from a paused socket, call `socket.resume()`. - * - * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to. - * - * Here is an example of a TCP echo server which listens for connections - * on port 8124: - * - * ```js - * import net from 'node:net'; - * const server = net.createServer((c) => { - * // 'connection' listener. - * console.log('client connected'); - * c.on('end', () => { - * console.log('client disconnected'); - * }); - * c.write('hello\r\n'); - * c.pipe(c); - * }); - * server.on('error', (err) => { - * throw err; - * }); - * server.listen(8124, () => { - * console.log('server bound'); - * }); - * ``` - * - * Test this by using `telnet`: - * - * ```bash - * telnet localhost 8124 - * ``` - * - * To listen on the socket `/tmp/echo.sock`: - * - * ```js - * server.listen('/tmp/echo.sock', () => { - * console.log('server bound'); - * }); - * ``` - * - * Use `nc` to connect to a Unix domain socket server: - * - * ```bash - * nc -U /tmp/echo.sock - * ``` - * @since v0.5.0 - * @param connectionListener Automatically set as a listener for the {@link 'connection'} event. - */ - function createServer(connectionListener?: (socket: Socket) => void): Server; - function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server; - /** - * Aliases to {@link createConnection}. - * - * Possible signatures: - * - * * {@link connect} - * * {@link connect} for `IPC` connections. - * * {@link connect} for TCP connections. - */ - function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; - function connect(port: number, host?: string, connectionListener?: () => void): Socket; - function connect(path: string, connectionListener?: () => void): Socket; - /** - * A factory function, which creates a new {@link Socket}, - * immediately initiates connection with `socket.connect()`, - * then returns the `net.Socket` that starts the connection. - * - * When the connection is established, a `'connect'` event will be emitted - * on the returned socket. The last parameter `connectListener`, if supplied, - * will be added as a listener for the `'connect'` event **once**. - * - * Possible signatures: - * - * * {@link createConnection} - * * {@link createConnection} for `IPC` connections. - * * {@link createConnection} for TCP connections. - * - * The {@link connect} function is an alias to this function. - */ - function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; - function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; - function createConnection(path: string, connectionListener?: () => void): Socket; - /** - * Gets the current default value of the `autoSelectFamily` option of `socket.connect(options)`. - * The initial default value is `true`, unless the command line option`--no-network-family-autoselection` is provided. - * @since v19.4.0 - */ - function getDefaultAutoSelectFamily(): boolean; - /** - * Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`. - * @since v19.4.0 - */ - function setDefaultAutoSelectFamily(value: boolean): void; - /** - * Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. - * The initial default value is `250` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`. - * @returns The current default value of the `autoSelectFamilyAttemptTimeout` option. - * @since v19.8.0, v18.8.0 - */ - function getDefaultAutoSelectFamilyAttemptTimeout(): number; - /** - * Sets the default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. - * @param value The new default value, which must be a positive number. If the number is less than `10`, the value `10` is used instead. The initial default value is `250` or the value specified via the command line - * option `--network-family-autoselection-attempt-timeout`. - * @since v19.8.0, v18.8.0 - */ - function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void; - /** - * Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4 - * address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`. - * - * ```js - * net.isIP('::1'); // returns 6 - * net.isIP('127.0.0.1'); // returns 4 - * net.isIP('127.000.000.001'); // returns 0 - * net.isIP('127.0.0.1/24'); // returns 0 - * net.isIP('fhqwhgads'); // returns 0 - * ``` - * @since v0.3.0 - */ - function isIP(input: string): number; - /** - * Returns `true` if `input` is an IPv4 address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no - * leading zeroes. Otherwise, returns `false`. - * - * ```js - * net.isIPv4('127.0.0.1'); // returns true - * net.isIPv4('127.000.000.001'); // returns false - * net.isIPv4('127.0.0.1/24'); // returns false - * net.isIPv4('fhqwhgads'); // returns false - * ``` - * @since v0.3.0 - */ - function isIPv4(input: string): boolean; - /** - * Returns `true` if `input` is an IPv6 address. Otherwise, returns `false`. - * - * ```js - * net.isIPv6('::1'); // returns true - * net.isIPv6('fhqwhgads'); // returns false - * ``` - * @since v0.3.0 - */ - function isIPv6(input: string): boolean; - interface SocketAddressInitOptions { - /** - * The network address as either an IPv4 or IPv6 string. - * @default 127.0.0.1 - */ - address?: string | undefined; - /** - * @default `'ipv4'` - */ - family?: IPVersion | undefined; - /** - * An IPv6 flow-label used only if `family` is `'ipv6'`. - * @default 0 - */ - flowlabel?: number | undefined; - /** - * An IP port. - * @default 0 - */ - port?: number | undefined; - } - /** - * @since v15.14.0, v14.18.0 - */ - class SocketAddress { - constructor(options: SocketAddressInitOptions); - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0, v14.18.0 - */ - readonly address: string; - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0, v14.18.0 - */ - readonly family: IPVersion; - /** - * @since v15.14.0, v14.18.0 - */ - readonly port: number; - /** - * @since v15.14.0, v14.18.0 - */ - readonly flowlabel: number; - } -} -declare module "node:net" { - export * from "net"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/os.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/os.d.ts deleted file mode 100644 index 331df6e..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/os.d.ts +++ /dev/null @@ -1,506 +0,0 @@ -/** - * The `node:os` module provides operating system-related utility methods and - * properties. It can be accessed using: - * - * ```js - * import os from 'node:os'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/os.js) - */ -declare module "os" { - import { NonSharedBuffer } from "buffer"; - interface CpuInfo { - model: string; - speed: number; - times: { - /** The number of milliseconds the CPU has spent in user mode. */ - user: number; - /** The number of milliseconds the CPU has spent in nice mode. */ - nice: number; - /** The number of milliseconds the CPU has spent in sys mode. */ - sys: number; - /** The number of milliseconds the CPU has spent in idle mode. */ - idle: number; - /** The number of milliseconds the CPU has spent in irq mode. */ - irq: number; - }; - } - interface NetworkInterfaceBase { - address: string; - netmask: string; - mac: string; - internal: boolean; - cidr: string | null; - scopeid?: number; - } - interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { - family: "IPv4"; - } - interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { - family: "IPv6"; - scopeid: number; - } - interface UserInfo { - username: T; - uid: number; - gid: number; - shell: T | null; - homedir: T; - } - type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; - /** - * Returns the host name of the operating system as a string. - * @since v0.3.3 - */ - function hostname(): string; - /** - * Returns an array containing the 1, 5, and 15 minute load averages. - * - * The load average is a measure of system activity calculated by the operating - * system and expressed as a fractional number. - * - * The load average is a Unix-specific concept. On Windows, the return value is - * always `[0, 0, 0]`. - * @since v0.3.3 - */ - function loadavg(): number[]; - /** - * Returns the system uptime in number of seconds. - * @since v0.3.3 - */ - function uptime(): number; - /** - * Returns the amount of free system memory in bytes as an integer. - * @since v0.3.3 - */ - function freemem(): number; - /** - * Returns the total amount of system memory in bytes as an integer. - * @since v0.3.3 - */ - function totalmem(): number; - /** - * Returns an array of objects containing information about each logical CPU core. - * The array will be empty if no CPU information is available, such as if the `/proc` file system is unavailable. - * - * The properties included on each object include: - * - * ```js - * [ - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 252020, - * nice: 0, - * sys: 30340, - * idle: 1070356870, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 306960, - * nice: 0, - * sys: 26980, - * idle: 1071569080, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 248450, - * nice: 0, - * sys: 21750, - * idle: 1070919370, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 256880, - * nice: 0, - * sys: 19430, - * idle: 1070905480, - * irq: 20, - * }, - * }, - * ] - * ``` - * - * `nice` values are POSIX-only. On Windows, the `nice` values of all processors - * are always 0. - * - * `os.cpus().length` should not be used to calculate the amount of parallelism - * available to an application. Use {@link availableParallelism} for this purpose. - * @since v0.3.3 - */ - function cpus(): CpuInfo[]; - /** - * Returns an estimate of the default amount of parallelism a program should use. - * Always returns a value greater than zero. - * - * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism). - * @since v19.4.0, v18.14.0 - */ - function availableParallelism(): number; - /** - * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it - * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows. - * - * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information - * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems. - * @since v0.3.3 - */ - function type(): string; - /** - * Returns the operating system as a string. - * - * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. See - * [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v0.3.3 - */ - function release(): string; - /** - * Returns an object containing network interfaces that have been assigned a - * network address. - * - * Each key on the returned object identifies a network interface. The associated - * value is an array of objects that each describe an assigned network address. - * - * The properties available on the assigned network address object include: - * - * ```js - * { - * lo: [ - * { - * address: '127.0.0.1', - * netmask: '255.0.0.0', - * family: 'IPv4', - * mac: '00:00:00:00:00:00', - * internal: true, - * cidr: '127.0.0.1/8' - * }, - * { - * address: '::1', - * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', - * family: 'IPv6', - * mac: '00:00:00:00:00:00', - * scopeid: 0, - * internal: true, - * cidr: '::1/128' - * } - * ], - * eth0: [ - * { - * address: '192.168.1.108', - * netmask: '255.255.255.0', - * family: 'IPv4', - * mac: '01:02:03:0a:0b:0c', - * internal: false, - * cidr: '192.168.1.108/24' - * }, - * { - * address: 'fe80::a00:27ff:fe4e:66a1', - * netmask: 'ffff:ffff:ffff:ffff::', - * family: 'IPv6', - * mac: '01:02:03:0a:0b:0c', - * scopeid: 1, - * internal: false, - * cidr: 'fe80::a00:27ff:fe4e:66a1/64' - * } - * ] - * } - * ``` - * @since v0.6.0 - */ - function networkInterfaces(): NodeJS.Dict; - /** - * Returns the string path of the current user's home directory. - * - * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it - * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory. - * - * On Windows, it uses the `USERPROFILE` environment variable if defined. - * Otherwise it uses the path to the profile directory of the current user. - * @since v2.3.0 - */ - function homedir(): string; - interface UserInfoOptions { - encoding?: BufferEncoding | "buffer" | undefined; - } - interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions { - encoding: "buffer"; - } - interface UserInfoOptionsWithStringEncoding extends UserInfoOptions { - encoding?: BufferEncoding | undefined; - } - /** - * Returns information about the currently effective user. On POSIX platforms, - * this is typically a subset of the password file. The returned object includes - * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`. - * - * The value of `homedir` returned by `os.userInfo()` is provided by the operating - * system. This differs from the result of `os.homedir()`, which queries - * environment variables for the home directory before falling back to the - * operating system response. - * - * Throws a [`SystemError`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`. - * @since v6.0.0 - */ - function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo; - function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo; - function userInfo(options: UserInfoOptions): UserInfo; - type SignalConstants = { - [key in NodeJS.Signals]: number; - }; - namespace constants { - const UV_UDP_REUSEADDR: number; - namespace signals {} - const signals: SignalConstants; - namespace errno { - const E2BIG: number; - const EACCES: number; - const EADDRINUSE: number; - const EADDRNOTAVAIL: number; - const EAFNOSUPPORT: number; - const EAGAIN: number; - const EALREADY: number; - const EBADF: number; - const EBADMSG: number; - const EBUSY: number; - const ECANCELED: number; - const ECHILD: number; - const ECONNABORTED: number; - const ECONNREFUSED: number; - const ECONNRESET: number; - const EDEADLK: number; - const EDESTADDRREQ: number; - const EDOM: number; - const EDQUOT: number; - const EEXIST: number; - const EFAULT: number; - const EFBIG: number; - const EHOSTUNREACH: number; - const EIDRM: number; - const EILSEQ: number; - const EINPROGRESS: number; - const EINTR: number; - const EINVAL: number; - const EIO: number; - const EISCONN: number; - const EISDIR: number; - const ELOOP: number; - const EMFILE: number; - const EMLINK: number; - const EMSGSIZE: number; - const EMULTIHOP: number; - const ENAMETOOLONG: number; - const ENETDOWN: number; - const ENETRESET: number; - const ENETUNREACH: number; - const ENFILE: number; - const ENOBUFS: number; - const ENODATA: number; - const ENODEV: number; - const ENOENT: number; - const ENOEXEC: number; - const ENOLCK: number; - const ENOLINK: number; - const ENOMEM: number; - const ENOMSG: number; - const ENOPROTOOPT: number; - const ENOSPC: number; - const ENOSR: number; - const ENOSTR: number; - const ENOSYS: number; - const ENOTCONN: number; - const ENOTDIR: number; - const ENOTEMPTY: number; - const ENOTSOCK: number; - const ENOTSUP: number; - const ENOTTY: number; - const ENXIO: number; - const EOPNOTSUPP: number; - const EOVERFLOW: number; - const EPERM: number; - const EPIPE: number; - const EPROTO: number; - const EPROTONOSUPPORT: number; - const EPROTOTYPE: number; - const ERANGE: number; - const EROFS: number; - const ESPIPE: number; - const ESRCH: number; - const ESTALE: number; - const ETIME: number; - const ETIMEDOUT: number; - const ETXTBSY: number; - const EWOULDBLOCK: number; - const EXDEV: number; - const WSAEINTR: number; - const WSAEBADF: number; - const WSAEACCES: number; - const WSAEFAULT: number; - const WSAEINVAL: number; - const WSAEMFILE: number; - const WSAEWOULDBLOCK: number; - const WSAEINPROGRESS: number; - const WSAEALREADY: number; - const WSAENOTSOCK: number; - const WSAEDESTADDRREQ: number; - const WSAEMSGSIZE: number; - const WSAEPROTOTYPE: number; - const WSAENOPROTOOPT: number; - const WSAEPROTONOSUPPORT: number; - const WSAESOCKTNOSUPPORT: number; - const WSAEOPNOTSUPP: number; - const WSAEPFNOSUPPORT: number; - const WSAEAFNOSUPPORT: number; - const WSAEADDRINUSE: number; - const WSAEADDRNOTAVAIL: number; - const WSAENETDOWN: number; - const WSAENETUNREACH: number; - const WSAENETRESET: number; - const WSAECONNABORTED: number; - const WSAECONNRESET: number; - const WSAENOBUFS: number; - const WSAEISCONN: number; - const WSAENOTCONN: number; - const WSAESHUTDOWN: number; - const WSAETOOMANYREFS: number; - const WSAETIMEDOUT: number; - const WSAECONNREFUSED: number; - const WSAELOOP: number; - const WSAENAMETOOLONG: number; - const WSAEHOSTDOWN: number; - const WSAEHOSTUNREACH: number; - const WSAENOTEMPTY: number; - const WSAEPROCLIM: number; - const WSAEUSERS: number; - const WSAEDQUOT: number; - const WSAESTALE: number; - const WSAEREMOTE: number; - const WSASYSNOTREADY: number; - const WSAVERNOTSUPPORTED: number; - const WSANOTINITIALISED: number; - const WSAEDISCON: number; - const WSAENOMORE: number; - const WSAECANCELLED: number; - const WSAEINVALIDPROCTABLE: number; - const WSAEINVALIDPROVIDER: number; - const WSAEPROVIDERFAILEDINIT: number; - const WSASYSCALLFAILURE: number; - const WSASERVICE_NOT_FOUND: number; - const WSATYPE_NOT_FOUND: number; - const WSA_E_NO_MORE: number; - const WSA_E_CANCELLED: number; - const WSAEREFUSED: number; - } - namespace dlopen { - const RTLD_LAZY: number; - const RTLD_NOW: number; - const RTLD_GLOBAL: number; - const RTLD_LOCAL: number; - const RTLD_DEEPBIND: number; - } - namespace priority { - const PRIORITY_LOW: number; - const PRIORITY_BELOW_NORMAL: number; - const PRIORITY_NORMAL: number; - const PRIORITY_ABOVE_NORMAL: number; - const PRIORITY_HIGH: number; - const PRIORITY_HIGHEST: number; - } - } - const devNull: string; - /** - * The operating system-specific end-of-line marker. - * * `\n` on POSIX - * * `\r\n` on Windows - */ - const EOL: string; - /** - * Returns the operating system CPU architecture for which the Node.js binary was - * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, - * and `'x64'`. - * - * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v20.x/api/process.html#processarch). - * @since v0.5.0 - */ - function arch(): string; - /** - * Returns a string identifying the kernel version. - * - * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not - * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v13.11.0, v12.17.0 - */ - function version(): string; - /** - * Returns a string identifying the operating system platform for which - * the Node.js binary was compiled. The value is set at compile time. - * Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. - * - * The return value is equivalent to `process.platform`. - * - * The value `'android'` may also be returned if Node.js is built on the Android - * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.5.0 - */ - function platform(): NodeJS.Platform; - /** - * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, `mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`. - * - * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not - * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v18.9.0, v16.18.0 - */ - function machine(): string; - /** - * Returns the operating system's default directory for temporary files as a - * string. - * @since v0.9.9 - */ - function tmpdir(): string; - /** - * Returns a string identifying the endianness of the CPU for which the Node.js - * binary was compiled. - * - * Possible values are `'BE'` for big endian and `'LE'` for little endian. - * @since v0.9.4 - */ - function endianness(): "BE" | "LE"; - /** - * Returns the scheduling priority for the process specified by `pid`. If `pid` is - * not provided or is `0`, the priority of the current process is returned. - * @since v10.10.0 - * @param [pid=0] The process ID to retrieve scheduling priority for. - */ - function getPriority(pid?: number): number; - /** - * Attempts to set the scheduling priority for the process specified by `pid`. If `pid` is not provided or is `0`, the process ID of the current process is used. - * - * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows - * priority classes, `priority` is mapped to one of six priority constants in `os.constants.priority`. When retrieving a process priority level, this range - * mapping may cause the return value to be slightly different on Windows. To avoid - * confusion, set `priority` to one of the priority constants. - * - * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user - * privileges. Otherwise the set priority will be silently reduced to `PRIORITY_HIGH`. - * @since v10.10.0 - * @param [pid=0] The process ID to set scheduling priority for. - * @param priority The scheduling priority to assign to the process. - */ - function setPriority(priority: number): void; - function setPriority(pid: number, priority: number): void; -} -declare module "node:os" { - export * from "os"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/package.json b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/package.json deleted file mode 100644 index 16f62f4..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/package.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "name": "@types/node", - "version": "20.19.33", - "description": "TypeScript definitions for node", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", - "license": "MIT", - "contributors": [ - { - "name": "Microsoft TypeScript", - "githubUsername": "Microsoft", - "url": "https://github.com/Microsoft" - }, - { - "name": "Alberto Schiabel", - "githubUsername": "jkomyno", - "url": "https://github.com/jkomyno" - }, - { - "name": "Andrew Makarov", - "githubUsername": "r3nya", - "url": "https://github.com/r3nya" - }, - { - "name": "Benjamin Toueg", - "githubUsername": "btoueg", - "url": "https://github.com/btoueg" - }, - { - "name": "David Junger", - "githubUsername": "touffy", - "url": "https://github.com/touffy" - }, - { - "name": "Mohsen Azimi", - "githubUsername": "mohsen1", - "url": "https://github.com/mohsen1" - }, - { - "name": "Nikita Galkin", - "githubUsername": "galkin", - "url": "https://github.com/galkin" - }, - { - "name": "Sebastian Silbermann", - "githubUsername": "eps1lon", - "url": "https://github.com/eps1lon" - }, - { - "name": "Wilco Bakker", - "githubUsername": "WilcoBakker", - "url": "https://github.com/WilcoBakker" - }, - { - "name": "Marcin Kopacz", - "githubUsername": "chyzwar", - "url": "https://github.com/chyzwar" - }, - { - "name": "Trivikram Kamat", - "githubUsername": "trivikr", - "url": "https://github.com/trivikr" - }, - { - "name": "Junxiao Shi", - "githubUsername": "yoursunny", - "url": "https://github.com/yoursunny" - }, - { - "name": "Ilia Baryshnikov", - "githubUsername": "qwelias", - "url": "https://github.com/qwelias" - }, - { - "name": "ExE Boss", - "githubUsername": "ExE-Boss", - "url": "https://github.com/ExE-Boss" - }, - { - "name": "Piotr Błażejewicz", - "githubUsername": "peterblazejewicz", - "url": "https://github.com/peterblazejewicz" - }, - { - "name": "Anna Henningsen", - "githubUsername": "addaleax", - "url": "https://github.com/addaleax" - }, - { - "name": "Victor Perin", - "githubUsername": "victorperin", - "url": "https://github.com/victorperin" - }, - { - "name": "NodeJS Contributors", - "githubUsername": "NodeJS", - "url": "https://github.com/NodeJS" - }, - { - "name": "Linus Unnebäck", - "githubUsername": "LinusU", - "url": "https://github.com/LinusU" - }, - { - "name": "wafuwafu13", - "githubUsername": "wafuwafu13", - "url": "https://github.com/wafuwafu13" - }, - { - "name": "Matteo Collina", - "githubUsername": "mcollina", - "url": "https://github.com/mcollina" - }, - { - "name": "Dmitry Semigradsky", - "githubUsername": "Semigradsky", - "url": "https://github.com/Semigradsky" - } - ], - "main": "", - "types": "index.d.ts", - "typesVersions": { - "<=5.6": { - "*": [ - "ts5.6/*" - ] - } - }, - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/node" - }, - "scripts": {}, - "dependencies": { - "undici-types": "~6.21.0" - }, - "peerDependencies": {}, - "typesPublisherContentHash": "d4cd30c43a08f690617e195e57a46fefea3c5b57689407429ba7a4f30c8f1b83", - "typeScriptVersion": "5.2" -} \ No newline at end of file diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/path.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/path.d.ts deleted file mode 100644 index dd69692..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/path.d.ts +++ /dev/null @@ -1,200 +0,0 @@ -declare module "path/posix" { - import path = require("path"); - export = path; -} -declare module "path/win32" { - import path = require("path"); - export = path; -} -/** - * The `node:path` module provides utilities for working with file and directory - * paths. It can be accessed using: - * - * ```js - * import path from 'node:path'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/path.js) - */ -declare module "path" { - namespace path { - /** - * A parsed path object generated by path.parse() or consumed by path.format(). - */ - interface ParsedPath { - /** - * The root of the path such as '/' or 'c:\' - */ - root: string; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir: string; - /** - * The file name including extension (if any) such as 'index.html' - */ - base: string; - /** - * The file extension (if any) such as '.html' - */ - ext: string; - /** - * The file name without extension (if any) such as 'index' - */ - name: string; - } - interface FormatInputPathObject { - /** - * The root of the path such as '/' or 'c:\' - */ - root?: string | undefined; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir?: string | undefined; - /** - * The file name including extension (if any) such as 'index.html' - */ - base?: string | undefined; - /** - * The file extension (if any) such as '.html' - */ - ext?: string | undefined; - /** - * The file name without extension (if any) such as 'index' - */ - name?: string | undefined; - } - interface PlatformPath { - /** - * Normalize a string path, reducing '..' and '.' parts. - * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. If the path is a zero-length string, '.' is returned, representing the current working directory. - * - * @param path string path to normalize. - * @throws {TypeError} if `path` is not a string. - */ - normalize(path: string): string; - /** - * Join all arguments together and normalize the resulting path. - * - * @param paths paths to join. - * @throws {TypeError} if any of the path segments is not a string. - */ - join(...paths: string[]): string; - /** - * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. - * - * Starting from leftmost {from} parameter, resolves {to} to an absolute path. - * - * If {to} isn't already absolute, {from} arguments are prepended in right to left order, - * until an absolute path is found. If after using all {from} paths still no absolute path is found, - * the current working directory is used as well. The resulting path is normalized, - * and trailing slashes are removed unless the path gets resolved to the root directory. - * - * @param paths A sequence of paths or path segments. - * @throws {TypeError} if any of the arguments is not a string. - */ - resolve(...paths: string[]): string; - /** - * The `path.matchesGlob()` method determines if `path` matches the `pattern`. - * @param path The path to glob-match against. - * @param pattern The glob to check the path against. - * @returns Whether or not the `path` matched the `pattern`. - * @throws {TypeError} if `path` or `pattern` are not strings. - * @since v20.17.0 - */ - matchesGlob(path: string, pattern: string): boolean; - /** - * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. - * - * If the given {path} is a zero-length string, `false` will be returned. - * - * @param path path to test. - * @throws {TypeError} if `path` is not a string. - */ - isAbsolute(path: string): boolean; - /** - * Solve the relative path from {from} to {to} based on the current working directory. - * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. - * - * @throws {TypeError} if either `from` or `to` is not a string. - */ - relative(from: string, to: string): string; - /** - * Return the directory name of a path. Similar to the Unix dirname command. - * - * @param path the path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - dirname(path: string): string; - /** - * Return the last portion of a path. Similar to the Unix basename command. - * Often used to extract the file name from a fully qualified path. - * - * @param path the path to evaluate. - * @param suffix optionally, an extension to remove from the result. - * @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string. - */ - basename(path: string, suffix?: string): string; - /** - * Return the extension of the path, from the last '.' to end of string in the last portion of the path. - * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string. - * - * @param path the path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - extname(path: string): string; - /** - * The platform-specific file separator. '\\' or '/'. - */ - readonly sep: "\\" | "/"; - /** - * The platform-specific file delimiter. ';' or ':'. - */ - readonly delimiter: ";" | ":"; - /** - * Returns an object from a path string - the opposite of format(). - * - * @param path path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - parse(path: string): ParsedPath; - /** - * Returns a path string from an object - the opposite of parse(). - * - * @param pathObject path to evaluate. - */ - format(pathObject: FormatInputPathObject): string; - /** - * On Windows systems only, returns an equivalent namespace-prefixed path for the given path. - * If path is not a string, path will be returned without modifications. - * This method is meaningful only on Windows system. - * On POSIX systems, the method is non-operational and always returns path without modifications. - */ - toNamespacedPath(path: string): string; - /** - * Posix specific pathing. - * Same as parent object on posix. - */ - readonly posix: PlatformPath; - /** - * Windows specific pathing. - * Same as parent object on windows - */ - readonly win32: PlatformPath; - } - } - const path: path.PlatformPath; - export = path; -} -declare module "node:path" { - import path = require("path"); - export = path; -} -declare module "node:path/posix" { - import path = require("path/posix"); - export = path; -} -declare module "node:path/win32" { - import path = require("path/win32"); - export = path; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/perf_hooks.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/perf_hooks.d.ts deleted file mode 100644 index 730af9b..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/perf_hooks.d.ts +++ /dev/null @@ -1,961 +0,0 @@ -/** - * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for - * Node.js-specific performance measurements. - * - * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/): - * - * * [High Resolution Time](https://www.w3.org/TR/hr-time-2) - * * [Performance Timeline](https://w3c.github.io/performance-timeline/) - * * [User Timing](https://www.w3.org/TR/user-timing/) - * * [Resource Timing](https://www.w3.org/TR/resource-timing-2/) - * - * ```js - * import { PerformanceObserver, performance } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((items) => { - * console.log(items.getEntries()[0].duration); - * performance.clearMarks(); - * }); - * obs.observe({ type: 'measure' }); - * performance.measure('Start to Now'); - * - * performance.mark('A'); - * doSomeLongRunningProcess(() => { - * performance.measure('A to Now', 'A'); - * - * performance.mark('B'); - * performance.measure('A to B', 'A', 'B'); - * }); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/perf_hooks.js) - */ -declare module "perf_hooks" { - import { AsyncResource } from "node:async_hooks"; - type EntryType = - | "dns" // Node.js only - | "function" // Node.js only - | "gc" // Node.js only - | "http2" // Node.js only - | "http" // Node.js only - | "mark" // available on the Web - | "measure" // available on the Web - | "net" // Node.js only - | "node" // Node.js only - | "resource"; // available on the Web - interface NodeGCPerformanceDetail { - /** - * When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies - * the type of garbage collection operation that occurred. - * See perf_hooks.constants for valid values. - */ - readonly kind: number; - /** - * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags` - * property contains additional information about garbage collection operation. - * See perf_hooks.constants for valid values. - */ - readonly flags: number; - } - /** - * The constructor of this class is not exposed to users directly. - * @since v8.5.0 - */ - class PerformanceEntry { - protected constructor(); - /** - * The total number of milliseconds elapsed for this entry. This value will not - * be meaningful for all Performance Entry types. - * @since v8.5.0 - */ - readonly duration: number; - /** - * The name of the performance entry. - * @since v8.5.0 - */ - readonly name: string; - /** - * The high resolution millisecond timestamp marking the starting time of the - * Performance Entry. - * @since v8.5.0 - */ - readonly startTime: number; - /** - * The type of the performance entry. It may be one of: - * - * * `'node'` (Node.js only) - * * `'mark'` (available on the Web) - * * `'measure'` (available on the Web) - * * `'gc'` (Node.js only) - * * `'function'` (Node.js only) - * * `'http2'` (Node.js only) - * * `'http'` (Node.js only) - * @since v8.5.0 - */ - readonly entryType: EntryType; - toJSON(): any; - } - /** - * Exposes marks created via the `Performance.mark()` method. - * @since v18.2.0, v16.17.0 - */ - class PerformanceMark extends PerformanceEntry { - readonly detail: any; - readonly duration: 0; - readonly entryType: "mark"; - } - /** - * Exposes measures created via the `Performance.measure()` method. - * - * The constructor of this class is not exposed to users directly. - * @since v18.2.0, v16.17.0 - */ - class PerformanceMeasure extends PerformanceEntry { - readonly detail: any; - readonly entryType: "measure"; - } - interface UVMetrics { - /** - * Number of event loop iterations. - */ - readonly loopCount: number; - /** - * Number of events that have been processed by the event handler. - */ - readonly events: number; - /** - * Number of events that were waiting to be processed when the event provider was called. - */ - readonly eventsWaiting: number; - } - // TODO: PerformanceNodeEntry is missing - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Provides timing details for Node.js itself. The constructor of this class - * is not exposed to users. - * @since v8.5.0 - */ - class PerformanceNodeTiming extends PerformanceEntry { - /** - * The high resolution millisecond timestamp at which the Node.js process - * completed bootstrapping. If bootstrapping has not yet finished, the property - * has the value of -1. - * @since v8.5.0 - */ - readonly bootstrapComplete: number; - /** - * The high resolution millisecond timestamp at which the Node.js environment was - * initialized. - * @since v8.5.0 - */ - readonly environment: number; - /** - * The high resolution millisecond timestamp of the amount of time the event loop - * has been idle within the event loop's event provider (e.g. `epoll_wait`). This - * does not take CPU usage into consideration. If the event loop has not yet - * started (e.g., in the first tick of the main script), the property has the - * value of 0. - * @since v14.10.0, v12.19.0 - */ - readonly idleTime: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * exited. If the event loop has not yet exited, the property has the value of -1\. - * It can only have a value of not -1 in a handler of the `'exit'` event. - * @since v8.5.0 - */ - readonly loopExit: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * started. If the event loop has not yet started (e.g., in the first tick of the - * main script), the property has the value of -1. - * @since v8.5.0 - */ - readonly loopStart: number; - /** - * The high resolution millisecond timestamp at which the Node.js process was initialized. - * @since v8.5.0 - */ - readonly nodeStart: number; - /** - * This is a wrapper to the `uv_metrics_info` function. - * It returns the current set of event loop metrics. - * - * It is recommended to use this property inside a function whose execution was - * scheduled using `setImmediate` to avoid collecting metrics before finishing all - * operations scheduled during the current loop iteration. - * @since v20.18.0 - */ - readonly uvMetricsInfo: UVMetrics; - /** - * The high resolution millisecond timestamp at which the V8 platform was - * initialized. - * @since v8.5.0 - */ - readonly v8Start: number; - } - interface EventLoopUtilization { - idle: number; - active: number; - utilization: number; - } - /** - * @param utilization1 The result of a previous call to `eventLoopUtilization()`. - * @param utilization2 The result of a previous call to `eventLoopUtilization()` prior to `utilization1`. - */ - type EventLoopUtilityFunction = ( - utilization1?: EventLoopUtilization, - utilization2?: EventLoopUtilization, - ) => EventLoopUtilization; - interface MarkOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown | undefined; - /** - * An optional timestamp to be used as the mark time. - * @default `performance.now()` - */ - startTime?: number | undefined; - } - interface MeasureOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown; - /** - * Duration between start and end times. - */ - duration?: number | undefined; - /** - * Timestamp to be used as the end time, or a string identifying a previously recorded mark. - */ - end?: number | string | undefined; - /** - * Timestamp to be used as the start time, or a string identifying a previously recorded mark. - */ - start?: number | string | undefined; - } - interface TimerifyOptions { - /** - * A histogram object created using `perf_hooks.createHistogram()` that will record runtime - * durations in nanoseconds. - */ - histogram?: RecordableHistogram | undefined; - } - interface Performance { - /** - * If `name` is not provided, removes all `PerformanceMark` objects from the Performance Timeline. - * If `name` is provided, removes only the named mark. - * @since v8.5.0 - */ - clearMarks(name?: string): void; - /** - * If `name` is not provided, removes all `PerformanceMeasure` objects from the Performance Timeline. - * If `name` is provided, removes only the named measure. - * @since v16.7.0 - */ - clearMeasures(name?: string): void; - /** - * If `name` is not provided, removes all `PerformanceResourceTiming` objects from the Resource Timeline. - * If `name` is provided, removes only the named resource. - * @since v18.2.0, v16.17.0 - */ - clearResourceTimings(name?: string): void; - /** - * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time. - * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). - * No other CPU idle time is taken into consideration. - */ - eventLoopUtilization: EventLoopUtilityFunction; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`. - * If you are only interested in performance entries of certain types or that have certain names, see - * `performance.getEntriesByType()` and `performance.getEntriesByName()`. - * @since v16.7.0 - */ - getEntries(): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` - * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`. - * @param name - * @param type - * @since v16.7.0 - */ - getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` - * whose `performanceEntry.entryType` is equal to `type`. - * @param type - * @since v16.7.0 - */ - getEntriesByType(type: EntryType): PerformanceEntry[]; - /** - * Creates a new `PerformanceMark` entry in the Performance Timeline. - * A `PerformanceMark` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'mark'`, - * and whose `performanceEntry.duration` is always `0`. - * Performance marks are used to mark specific significant moments in the Performance Timeline. - * - * The created `PerformanceMark` entry is put in the global Performance Timeline and can be queried with - * `performance.getEntries`, `performance.getEntriesByName`, and `performance.getEntriesByType`. When the observation is - * performed, the entries should be cleared from the global Performance Timeline manually with `performance.clearMarks`. - * @param name - */ - mark(name: string, options?: MarkOptions): PerformanceMark; - /** - * Creates a new `PerformanceResourceTiming` entry in the Resource Timeline. - * A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`. - * Performance resources are used to mark moments in the Resource Timeline. - * @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info) - * @param requestedUrl The resource url - * @param initiatorType The initiator name, e.g: 'fetch' - * @param global - * @param cacheMode The cache mode must be an empty string ('') or 'local' - * @since v18.2.0, v16.17.0 - */ - markResourceTiming( - timingInfo: object, - requestedUrl: string, - initiatorType: string, - global: object, - cacheMode: "" | "local", - ): PerformanceResourceTiming; - /** - * Creates a new PerformanceMeasure entry in the Performance Timeline. - * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure', - * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark. - * - * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify - * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist, - * then startMark is set to timeOrigin by default. - * - * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp - * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown. - * @param name - * @param startMark - * @param endMark - * @return The PerformanceMeasure entry that was created - */ - measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure; - measure(name: string, options: MeasureOptions): PerformanceMeasure; - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * An instance of the `PerformanceNodeTiming` class that provides performance metrics for specific Node.js operational milestones. - * @since v8.5.0 - */ - readonly nodeTiming: PerformanceNodeTiming; - /** - * Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process. - * @since v8.5.0 - */ - now(): number; - /** - * Sets the global performance resource timing buffer size to the specified number of "resource" type performance entry objects. - * - * By default the max buffer size is set to 250. - * @since v18.8.0 - */ - setResourceTimingBufferSize(maxSize: number): void; - /** - * The [`timeOrigin`](https://w3c.github.io/hr-time/#dom-performance-timeorigin) specifies the high resolution millisecond timestamp - * at which the current `node` process began, measured in Unix time. - * @since v8.5.0 - */ - readonly timeOrigin: number; - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Wraps a function within a new function that measures the running time of the wrapped function. - * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * function someFunction() { - * console.log('hello world'); - * } - * - * const wrapped = performance.timerify(someFunction); - * - * const obs = new PerformanceObserver((list) => { - * console.log(list.getEntries()[0].duration); - * - * performance.clearMarks(); - * performance.clearMeasures(); - * obs.disconnect(); - * }); - * obs.observe({ entryTypes: ['function'] }); - * - * // A performance timeline entry will be created - * wrapped(); - * ``` - * - * If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported - * once the finally handler is invoked. - * @param fn - */ - timerify any>(fn: T, options?: TimerifyOptions): T; - /** - * An object which is JSON representation of the performance object. It is similar to - * [`window.performance.toJSON`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON) in browsers. - * @since v16.1.0 - */ - toJSON(): any; - } - class PerformanceObserverEntryList { - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntries()); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 81.465639, - * * duration: 0, - * * detail: null - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 81.860064, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntries(): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is - * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByName('meow')); - * - * * [ - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 98.545991, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('nope')); // [] - * - * console.log(perfObserverList.getEntriesByName('test', 'mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 63.518931, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('test', 'measure')); // [] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ entryTypes: ['mark', 'measure'] }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByType('mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 55.897834, - * * duration: 0, - * * detail: null - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 56.350146, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByType(type: EntryType): PerformanceEntry[]; - } - type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void; - /** - * @since v8.5.0 - */ - class PerformanceObserver extends AsyncResource { - constructor(callback: PerformanceObserverCallback); - /** - * Disconnects the `PerformanceObserver` instance from all notifications. - * @since v8.5.0 - */ - disconnect(): void; - /** - * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`: - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((list, observer) => { - * // Called once asynchronously. `list` contains three items. - * }); - * obs.observe({ type: 'mark' }); - * - * for (let n = 0; n < 3; n++) - * performance.mark(`test${n}`); - * ``` - * @since v8.5.0 - */ - observe( - options: - | { - entryTypes: readonly EntryType[]; - buffered?: boolean | undefined; - } - | { - type: EntryType; - buffered?: boolean | undefined; - }, - ): void; - /** - * @since v16.0.0 - * @returns Current list of entries stored in the performance observer, emptying it out. - */ - takeRecords(): PerformanceEntry[]; - } - /** - * Provides detailed network timing data regarding the loading of an application's resources. - * - * The constructor of this class is not exposed to users directly. - * @since v18.2.0, v16.17.0 - */ - class PerformanceResourceTiming extends PerformanceEntry { - readonly entryType: "resource"; - protected constructor(); - /** - * The high resolution millisecond timestamp at immediately before dispatching the `fetch` - * request. If the resource is not intercepted by a worker the property will always return 0. - * @since v18.2.0, v16.17.0 - */ - readonly workerStart: number; - /** - * The high resolution millisecond timestamp that represents the start time of the fetch which - * initiates the redirect. - * @since v18.2.0, v16.17.0 - */ - readonly redirectStart: number; - /** - * The high resolution millisecond timestamp that will be created immediately after receiving - * the last byte of the response of the last redirect. - * @since v18.2.0, v16.17.0 - */ - readonly redirectEnd: number; - /** - * The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource. - * @since v18.2.0, v16.17.0 - */ - readonly fetchStart: number; - /** - * The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup - * for the resource. - * @since v18.2.0, v16.17.0 - */ - readonly domainLookupStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after the Node.js finished - * the domain name lookup for the resource. - * @since v18.2.0, v16.17.0 - */ - readonly domainLookupEnd: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js starts to - * establish the connection to the server to retrieve the resource. - * @since v18.2.0, v16.17.0 - */ - readonly connectStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after Node.js finishes - * establishing the connection to the server to retrieve the resource. - * @since v18.2.0, v16.17.0 - */ - readonly connectEnd: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js starts the - * handshake process to secure the current connection. - * @since v18.2.0, v16.17.0 - */ - readonly secureConnectionStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js receives the - * first byte of the response from the server. - * @since v18.2.0, v16.17.0 - */ - readonly requestStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after Node.js receives the - * last byte of the resource or immediately before the transport connection is closed, whichever comes first. - * @since v18.2.0, v16.17.0 - */ - readonly responseEnd: number; - /** - * A number representing the size (in octets) of the fetched resource. The size includes the response header - * fields plus the response payload body. - * @since v18.2.0, v16.17.0 - */ - readonly transferSize: number; - /** - * A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before - * removing any applied content-codings. - * @since v18.2.0, v16.17.0 - */ - readonly encodedBodySize: number; - /** - * A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after - * removing any applied content-codings. - * @since v18.2.0, v16.17.0 - */ - readonly decodedBodySize: number; - /** - * Returns a `object` that is the JSON representation of the `PerformanceResourceTiming` object - * @since v18.2.0, v16.17.0 - */ - toJSON(): any; - } - namespace constants { - const NODE_PERFORMANCE_GC_MAJOR: number; - const NODE_PERFORMANCE_GC_MINOR: number; - const NODE_PERFORMANCE_GC_INCREMENTAL: number; - const NODE_PERFORMANCE_GC_WEAKCB: number; - const NODE_PERFORMANCE_GC_FLAGS_NO: number; - const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; - const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; - const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; - const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; - } - const performance: Performance; - interface EventLoopMonitorOptions { - /** - * The sampling rate in milliseconds. - * Must be greater than zero. - * @default 10 - */ - resolution?: number | undefined; - } - interface Histogram { - /** - * The number of samples recorded by the histogram. - * @since v17.4.0, v16.14.0 - */ - readonly count: number; - /** - * The number of samples recorded by the histogram. - * v17.4.0, v16.14.0 - */ - readonly countBigInt: bigint; - /** - * The number of times the event loop delay exceeded the maximum 1 hour event - * loop delay threshold. - * @since v11.10.0 - */ - readonly exceeds: number; - /** - * The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold. - * @since v17.4.0, v16.14.0 - */ - readonly exceedsBigInt: bigint; - /** - * The maximum recorded event loop delay. - * @since v11.10.0 - */ - readonly max: number; - /** - * The maximum recorded event loop delay. - * v17.4.0, v16.14.0 - */ - readonly maxBigInt: number; - /** - * The mean of the recorded event loop delays. - * @since v11.10.0 - */ - readonly mean: number; - /** - * The minimum recorded event loop delay. - * @since v11.10.0 - */ - readonly min: number; - /** - * The minimum recorded event loop delay. - * v17.4.0, v16.14.0 - */ - readonly minBigInt: bigint; - /** - * Returns the value at the given percentile. - * @since v11.10.0 - * @param percentile A percentile value in the range (0, 100]. - */ - percentile(percentile: number): number; - /** - * Returns the value at the given percentile. - * @since v17.4.0, v16.14.0 - * @param percentile A percentile value in the range (0, 100]. - */ - percentileBigInt(percentile: number): bigint; - /** - * Returns a `Map` object detailing the accumulated percentile distribution. - * @since v11.10.0 - */ - readonly percentiles: Map; - /** - * Returns a `Map` object detailing the accumulated percentile distribution. - * @since v17.4.0, v16.14.0 - */ - readonly percentilesBigInt: Map; - /** - * Resets the collected histogram data. - * @since v11.10.0 - */ - reset(): void; - /** - * The standard deviation of the recorded event loop delays. - * @since v11.10.0 - */ - readonly stddev: number; - } - interface IntervalHistogram extends Histogram { - /** - * Enables the update interval timer. Returns `true` if the timer was - * started, `false` if it was already started. - * @since v11.10.0 - */ - enable(): boolean; - /** - * Disables the update interval timer. Returns `true` if the timer was - * stopped, `false` if it was already stopped. - * @since v11.10.0 - */ - disable(): boolean; - } - interface RecordableHistogram extends Histogram { - /** - * @since v15.9.0, v14.18.0 - * @param val The amount to record in the histogram. - */ - record(val: number | bigint): void; - /** - * Calculates the amount of time (in nanoseconds) that has passed since the - * previous call to `recordDelta()` and records that amount in the histogram. - * @since v15.9.0, v14.18.0 - */ - recordDelta(): void; - /** - * Adds the values from `other` to this histogram. - * @since v17.4.0, v16.14.0 - */ - add(other: RecordableHistogram): void; - } - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Creates an `IntervalHistogram` object that samples and reports the event loop - * delay over time. The delays will be reported in nanoseconds. - * - * Using a timer to detect approximate event loop delay works because the - * execution of timers is tied specifically to the lifecycle of the libuv - * event loop. That is, a delay in the loop will cause a delay in the execution - * of the timer, and those delays are specifically what this API is intended to - * detect. - * - * ```js - * import { monitorEventLoopDelay } from 'node:perf_hooks'; - * const h = monitorEventLoopDelay({ resolution: 20 }); - * h.enable(); - * // Do something. - * h.disable(); - * console.log(h.min); - * console.log(h.max); - * console.log(h.mean); - * console.log(h.stddev); - * console.log(h.percentiles); - * console.log(h.percentile(50)); - * console.log(h.percentile(99)); - * ``` - * @since v11.10.0 - */ - function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram; - interface CreateHistogramOptions { - /** - * The minimum recordable value. Must be an integer value greater than 0. - * @default 1 - */ - lowest?: number | bigint | undefined; - /** - * The maximum recordable value. Must be an integer value greater than min. - * @default Number.MAX_SAFE_INTEGER - */ - highest?: number | bigint | undefined; - /** - * The number of accuracy digits. Must be a number between 1 and 5. - * @default 3 - */ - figures?: number | undefined; - } - /** - * Returns a `RecordableHistogram`. - * @since v15.9.0, v14.18.0 - */ - function createHistogram(options?: CreateHistogramOptions): RecordableHistogram; - import { - performance as _performance, - PerformanceEntry as _PerformanceEntry, - PerformanceMark as _PerformanceMark, - PerformanceMeasure as _PerformanceMeasure, - PerformanceObserver as _PerformanceObserver, - PerformanceObserverEntryList as _PerformanceObserverEntryList, - PerformanceResourceTiming as _PerformanceResourceTiming, - } from "perf_hooks"; - global { - /** - * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceentry - * @since v19.0.0 - */ - var PerformanceEntry: typeof globalThis extends { - onmessage: any; - PerformanceEntry: infer T; - } ? T - : typeof _PerformanceEntry; - /** - * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemark - * @since v19.0.0 - */ - var PerformanceMark: typeof globalThis extends { - onmessage: any; - PerformanceMark: infer T; - } ? T - : typeof _PerformanceMark; - /** - * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemeasure - * @since v19.0.0 - */ - var PerformanceMeasure: typeof globalThis extends { - onmessage: any; - PerformanceMeasure: infer T; - } ? T - : typeof _PerformanceMeasure; - /** - * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserver - * @since v19.0.0 - */ - var PerformanceObserver: typeof globalThis extends { - onmessage: any; - PerformanceObserver: infer T; - } ? T - : typeof _PerformanceObserver; - /** - * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserverentrylist - * @since v19.0.0 - */ - var PerformanceObserverEntryList: typeof globalThis extends { - onmessage: any; - PerformanceObserverEntryList: infer T; - } ? T - : typeof _PerformanceObserverEntryList; - /** - * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceresourcetiming - * @since v19.0.0 - */ - var PerformanceResourceTiming: typeof globalThis extends { - onmessage: any; - PerformanceResourceTiming: infer T; - } ? T - : typeof _PerformanceResourceTiming; - /** - * `performance` is a global reference for `import { performance } from 'node:node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performance - * @since v16.0.0 - */ - var performance: typeof globalThis extends { - onmessage: any; - performance: infer T; - } ? T - : typeof _performance; - } -} -declare module "node:perf_hooks" { - export * from "perf_hooks"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/process.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/process.d.ts deleted file mode 100644 index a120b0e..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/process.d.ts +++ /dev/null @@ -1,1966 +0,0 @@ -declare module "process" { - import { Control, MessageOptions, SendHandle } from "node:child_process"; - import { PathLike } from "node:fs"; - import * as tty from "node:tty"; - import { Worker } from "node:worker_threads"; - - interface BuiltInModule { - "assert": typeof import("assert"); - "node:assert": typeof import("node:assert"); - "assert/strict": typeof import("assert/strict"); - "node:assert/strict": typeof import("node:assert/strict"); - "async_hooks": typeof import("async_hooks"); - "node:async_hooks": typeof import("node:async_hooks"); - "buffer": typeof import("buffer"); - "node:buffer": typeof import("node:buffer"); - "child_process": typeof import("child_process"); - "node:child_process": typeof import("node:child_process"); - "cluster": typeof import("cluster"); - "node:cluster": typeof import("node:cluster"); - "console": typeof import("console"); - "node:console": typeof import("node:console"); - "constants": typeof import("constants"); - "node:constants": typeof import("node:constants"); - "crypto": typeof import("crypto"); - "node:crypto": typeof import("node:crypto"); - "dgram": typeof import("dgram"); - "node:dgram": typeof import("node:dgram"); - "diagnostics_channel": typeof import("diagnostics_channel"); - "node:diagnostics_channel": typeof import("node:diagnostics_channel"); - "dns": typeof import("dns"); - "node:dns": typeof import("node:dns"); - "dns/promises": typeof import("dns/promises"); - "node:dns/promises": typeof import("node:dns/promises"); - "domain": typeof import("domain"); - "node:domain": typeof import("node:domain"); - "events": typeof import("events"); - "node:events": typeof import("node:events"); - "fs": typeof import("fs"); - "node:fs": typeof import("node:fs"); - "fs/promises": typeof import("fs/promises"); - "node:fs/promises": typeof import("node:fs/promises"); - "http": typeof import("http"); - "node:http": typeof import("node:http"); - "http2": typeof import("http2"); - "node:http2": typeof import("node:http2"); - "https": typeof import("https"); - "node:https": typeof import("node:https"); - "inspector": typeof import("inspector"); - "node:inspector": typeof import("node:inspector"); - "inspector/promises": typeof import("inspector/promises"); - "node:inspector/promises": typeof import("node:inspector/promises"); - "module": typeof import("module"); - "node:module": typeof import("node:module"); - "net": typeof import("net"); - "node:net": typeof import("node:net"); - "os": typeof import("os"); - "node:os": typeof import("node:os"); - "path": typeof import("path"); - "node:path": typeof import("node:path"); - "path/posix": typeof import("path/posix"); - "node:path/posix": typeof import("node:path/posix"); - "path/win32": typeof import("path/win32"); - "node:path/win32": typeof import("node:path/win32"); - "perf_hooks": typeof import("perf_hooks"); - "node:perf_hooks": typeof import("node:perf_hooks"); - "process": typeof import("process"); - "node:process": typeof import("node:process"); - "punycode": typeof import("punycode"); - "node:punycode": typeof import("node:punycode"); - "querystring": typeof import("querystring"); - "node:querystring": typeof import("node:querystring"); - "readline": typeof import("readline"); - "node:readline": typeof import("node:readline"); - "readline/promises": typeof import("readline/promises"); - "node:readline/promises": typeof import("node:readline/promises"); - "repl": typeof import("repl"); - "node:repl": typeof import("node:repl"); - "node:sea": typeof import("node:sea"); - "stream": typeof import("stream"); - "node:stream": typeof import("node:stream"); - "stream/consumers": typeof import("stream/consumers"); - "node:stream/consumers": typeof import("node:stream/consumers"); - "stream/promises": typeof import("stream/promises"); - "node:stream/promises": typeof import("node:stream/promises"); - "stream/web": typeof import("stream/web"); - "node:stream/web": typeof import("node:stream/web"); - "string_decoder": typeof import("string_decoder"); - "node:string_decoder": typeof import("node:string_decoder"); - "node:test": typeof import("node:test"); - "node:test/reporters": typeof import("node:test/reporters"); - "timers": typeof import("timers"); - "node:timers": typeof import("node:timers"); - "timers/promises": typeof import("timers/promises"); - "node:timers/promises": typeof import("node:timers/promises"); - "tls": typeof import("tls"); - "node:tls": typeof import("node:tls"); - "trace_events": typeof import("trace_events"); - "node:trace_events": typeof import("node:trace_events"); - "tty": typeof import("tty"); - "node:tty": typeof import("node:tty"); - "url": typeof import("url"); - "node:url": typeof import("node:url"); - "util": typeof import("util"); - "node:util": typeof import("node:util"); - "sys": typeof import("util"); - "node:sys": typeof import("node:util"); - "util/types": typeof import("util/types"); - "node:util/types": typeof import("node:util/types"); - "v8": typeof import("v8"); - "node:v8": typeof import("node:v8"); - "vm": typeof import("vm"); - "node:vm": typeof import("node:vm"); - "wasi": typeof import("wasi"); - "node:wasi": typeof import("node:wasi"); - "worker_threads": typeof import("worker_threads"); - "node:worker_threads": typeof import("node:worker_threads"); - "zlib": typeof import("zlib"); - "node:zlib": typeof import("node:zlib"); - } - - global { - var process: NodeJS.Process; - namespace NodeJS { - // this namespace merge is here because these are specifically used - // as the type for process.stdin, process.stdout, and process.stderr. - // they can't live in tty.d.ts because we need to disambiguate the imported name. - interface ReadStream extends tty.ReadStream {} - interface WriteStream extends tty.WriteStream {} - interface MemoryUsageFn { - /** - * The `process.memoryUsage()` method iterate over each page to gather informations about memory - * usage which can be slow depending on the program memory allocations. - */ - (): MemoryUsage; - /** - * method returns an integer representing the Resident Set Size (RSS) in bytes. - */ - rss(): number; - } - interface MemoryUsage { - /** - * Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the - * process, including all C++ and JavaScript objects and code. - */ - rss: number; - /** - * Refers to V8's memory usage. - */ - heapTotal: number; - /** - * Refers to V8's memory usage. - */ - heapUsed: number; - external: number; - /** - * Refers to memory allocated for `ArrayBuffer`s and `SharedArrayBuffer`s, including all Node.js Buffers. This is also included - * in the external value. When Node.js is used as an embedded library, this value may be `0` because allocations for `ArrayBuffer`s - * may not be tracked in that case. - */ - arrayBuffers: number; - } - interface CpuUsage { - user: number; - system: number; - } - interface ProcessRelease { - name: string; - sourceUrl?: string | undefined; - headersUrl?: string | undefined; - libUrl?: string | undefined; - lts?: string | undefined; - } - interface ProcessFeatures { - /** - * A boolean value that is `true` if the current Node.js build is caching builtin modules. - * @since v12.0.0 - */ - readonly cached_builtins: boolean; - /** - * A boolean value that is `true` if the current Node.js build is a debug build. - * @since v0.5.5 - */ - readonly debug: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes the inspector. - * @since v11.10.0 - */ - readonly inspector: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for IPv6. - * @since v0.5.3 - */ - readonly ipv6: boolean; - /** - * A boolean value that is `true` if the current Node.js build supports - * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require). - * @since v20.19.0 - */ - readonly require_module: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for TLS. - * @since v0.5.3 - */ - readonly tls: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS. - * @since v4.8.0 - */ - readonly tls_alpn: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS. - * @since v0.11.13 - */ - readonly tls_ocsp: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for SNI in TLS. - * @since v0.5.3 - */ - readonly tls_sni: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for libuv. - * @since v0.5.3 - */ - readonly uv: boolean; - } - interface ProcessVersions extends Dict { - http_parser: string; - node: string; - v8: string; - ares: string; - uv: string; - zlib: string; - modules: string; - openssl: string; - } - type Platform = - | "aix" - | "android" - | "darwin" - | "freebsd" - | "haiku" - | "linux" - | "openbsd" - | "sunos" - | "win32" - | "cygwin" - | "netbsd"; - type Architecture = - | "arm" - | "arm64" - | "ia32" - | "loong64" - | "mips" - | "mipsel" - | "ppc" - | "ppc64" - | "riscv64" - | "s390" - | "s390x" - | "x64"; - type Signals = - | "SIGABRT" - | "SIGALRM" - | "SIGBUS" - | "SIGCHLD" - | "SIGCONT" - | "SIGFPE" - | "SIGHUP" - | "SIGILL" - | "SIGINT" - | "SIGIO" - | "SIGIOT" - | "SIGKILL" - | "SIGPIPE" - | "SIGPOLL" - | "SIGPROF" - | "SIGPWR" - | "SIGQUIT" - | "SIGSEGV" - | "SIGSTKFLT" - | "SIGSTOP" - | "SIGSYS" - | "SIGTERM" - | "SIGTRAP" - | "SIGTSTP" - | "SIGTTIN" - | "SIGTTOU" - | "SIGUNUSED" - | "SIGURG" - | "SIGUSR1" - | "SIGUSR2" - | "SIGVTALRM" - | "SIGWINCH" - | "SIGXCPU" - | "SIGXFSZ" - | "SIGBREAK" - | "SIGLOST" - | "SIGINFO"; - type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection"; - type MultipleResolveType = "resolve" | "reject"; - type BeforeExitListener = (code: number) => void; - type DisconnectListener = () => void; - type ExitListener = (code: number) => void; - type RejectionHandledListener = (promise: Promise) => void; - type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void; - /** - * Most of the time the unhandledRejection will be an Error, but this should not be relied upon - * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error. - */ - type UnhandledRejectionListener = (reason: unknown, promise: Promise) => void; - type WarningListener = (warning: Error) => void; - type MessageListener = (message: unknown, sendHandle: SendHandle) => void; - type SignalsListener = (signal: Signals) => void; - type MultipleResolveListener = ( - type: MultipleResolveType, - promise: Promise, - value: unknown, - ) => void; - type WorkerListener = (worker: Worker) => void; - interface Socket extends ReadWriteStream { - isTTY?: true | undefined; - } - // Alias for compatibility - interface ProcessEnv extends Dict { - /** - * Can be used to change the default timezone at runtime - */ - TZ?: string | undefined; - } - interface HRTime { - /** - * This is the legacy version of {@link process.hrtime.bigint()} - * before bigint was introduced in JavaScript. - * - * The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`, - * where `nanoseconds` is the remaining part of the real time that can't be represented in second precision. - * - * `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time. - * If the parameter passed in is not a tuple `Array`, a TypeError will be thrown. - * Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior. - * - * These times are relative to an arbitrary time in the past, - * and not related to the time of day and therefore not subject to clock drift. - * The primary use is for measuring performance between intervals: - * ```js - * const { hrtime } = require('node:process'); - * const NS_PER_SEC = 1e9; - * const time = hrtime(); - * // [ 1800216, 25 ] - * - * setTimeout(() => { - * const diff = hrtime(time); - * // [ 1, 552 ] - * - * console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`); - * // Benchmark took 1000000552 nanoseconds - * }, 1000); - * ``` - * @since 0.7.6 - * @legacy Use {@link process.hrtime.bigint()} instead. - * @param time The result of a previous call to `process.hrtime()` - */ - (time?: [number, number]): [number, number]; - /** - * The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`. - * - * Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s. - * ```js - * import { hrtime } from 'node:process'; - * - * const start = hrtime.bigint(); - * // 191051479007711n - * - * setTimeout(() => { - * const end = hrtime.bigint(); - * // 191052633396993n - * - * console.log(`Benchmark took ${end - start} nanoseconds`); - * // Benchmark took 1154389282 nanoseconds - * }, 1000); - * ``` - * @since v10.7.0 - */ - bigint(): bigint; - } - interface ProcessPermission { - /** - * Verifies that the process is able to access the given scope and reference. - * If no reference is provided, a global scope is assumed, for instance, `process.permission.has('fs.read')` - * will check if the process has ALL file system read permissions. - * - * The reference has a meaning based on the provided scope. For example, the reference when the scope is File System means files and folders. - * - * The available scopes are: - * - * * `fs` - All File System - * * `fs.read` - File System read operations - * * `fs.write` - File System write operations - * * `child` - Child process spawning operations - * * `worker` - Worker thread spawning operation - * - * ```js - * // Check if the process has permission to read the README file - * process.permission.has('fs.read', './README.md'); - * // Check if the process has read permission operations - * process.permission.has('fs.read'); - * ``` - * @since v20.0.0 - */ - has(scope: string, reference?: string): boolean; - } - interface ProcessReport { - /** - * Write reports in a compact format, single-line JSON, more easily consumable by log processing systems - * than the default multi-line format designed for human consumption. - * @since v13.12.0, v12.17.0 - */ - compact: boolean; - /** - * Directory where the report is written. - * The default value is the empty string, indicating that reports are written to the current - * working directory of the Node.js process. - */ - directory: string; - /** - * Filename where the report is written. If set to the empty string, the output filename will be comprised - * of a timestamp, PID, and sequence number. The default value is the empty string. - */ - filename: string; - /** - * Returns a JavaScript Object representation of a diagnostic report for the running process. - * The report's JavaScript stack trace is taken from `err`, if present. - */ - getReport(err?: Error): object; - /** - * If true, a diagnostic report is generated on fatal errors, - * such as out of memory errors or failed C++ assertions. - * @default false - */ - reportOnFatalError: boolean; - /** - * If true, a diagnostic report is generated when the process - * receives the signal specified by process.report.signal. - * @default false - */ - reportOnSignal: boolean; - /** - * If true, a diagnostic report is generated on uncaught exception. - * @default false - */ - reportOnUncaughtException: boolean; - /** - * The signal used to trigger the creation of a diagnostic report. - * @default 'SIGUSR2' - */ - signal: Signals; - /** - * Writes a diagnostic report to a file. If filename is not provided, the default filename - * includes the date, time, PID, and a sequence number. - * The report's JavaScript stack trace is taken from `err`, if present. - * - * If the value of filename is set to `'stdout'` or `'stderr'`, the report is written - * to the stdout or stderr of the process respectively. - * @param fileName Name of the file where the report is written. - * This should be a relative path, that will be appended to the directory specified in - * `process.report.directory`, or the current working directory of the Node.js process, - * if unspecified. - * @param err A custom error used for reporting the JavaScript stack. - * @return Filename of the generated report. - */ - writeReport(fileName?: string, err?: Error): string; - writeReport(err?: Error): string; - } - interface ResourceUsage { - fsRead: number; - fsWrite: number; - involuntaryContextSwitches: number; - ipcReceived: number; - ipcSent: number; - majorPageFault: number; - maxRSS: number; - minorPageFault: number; - sharedMemorySize: number; - signalsCount: number; - swappedOut: number; - systemCPUTime: number; - unsharedDataSize: number; - unsharedStackSize: number; - userCPUTime: number; - voluntaryContextSwitches: number; - } - interface EmitWarningOptions { - /** - * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. - * - * @default 'Warning' - */ - type?: string | undefined; - /** - * A unique identifier for the warning instance being emitted. - */ - code?: string | undefined; - /** - * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. - * - * @default process.emitWarning - */ - ctor?: Function | undefined; - /** - * Additional text to include with the error. - */ - detail?: string | undefined; - } - interface ProcessConfig { - readonly target_defaults: { - readonly cflags: any[]; - readonly default_configuration: string; - readonly defines: string[]; - readonly include_dirs: string[]; - readonly libraries: string[]; - }; - readonly variables: { - readonly clang: number; - readonly host_arch: string; - readonly node_install_npm: boolean; - readonly node_install_waf: boolean; - readonly node_prefix: string; - readonly node_shared_openssl: boolean; - readonly node_shared_v8: boolean; - readonly node_shared_zlib: boolean; - readonly node_use_dtrace: boolean; - readonly node_use_etw: boolean; - readonly node_use_openssl: boolean; - readonly target_arch: string; - readonly v8_no_strict_aliasing: number; - readonly v8_use_snapshot: boolean; - readonly visibility: string; - }; - } - interface Process extends EventEmitter { - /** - * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is - * a `Writable` stream. - * - * For example, to copy `process.stdin` to `process.stdout`: - * - * ```js - * import { stdin, stdout } from 'node:process'; - * - * stdin.pipe(stdout); - * ``` - * - * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stdout: WriteStream & { - fd: 1; - }; - /** - * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is - * a `Writable` stream. - * - * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stderr: WriteStream & { - fd: 2; - }; - /** - * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is - * a `Readable` stream. - * - * For details of how to read from `stdin` see `readable.read()`. - * - * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that - * is compatible with scripts written for Node.js prior to v0.10\. - * For more information see `Stream compatibility`. - * - * In "old" streams mode the `stdin` stream is paused by default, so one - * must call `process.stdin.resume()` to read from it. Note also that calling `process.stdin.resume()` itself would switch stream to "old" mode. - */ - stdin: ReadStream & { - fd: 0; - }; - /** - * The `process.argv` property returns an array containing the command-line - * arguments passed when the Node.js process was launched. The first element will - * be {@link execPath}. See `process.argv0` if access to the original value - * of `argv[0]` is needed. The second element will be the path to the JavaScript - * file being executed. The remaining elements will be any additional command-line - * arguments. - * - * For example, assuming the following script for `process-args.js`: - * - * ```js - * import { argv } from 'node:process'; - * - * // print process.argv - * argv.forEach((val, index) => { - * console.log(`${index}: ${val}`); - * }); - * ``` - * - * Launching the Node.js process as: - * - * ```bash - * node process-args.js one two=three four - * ``` - * - * Would generate the output: - * - * ```text - * 0: /usr/local/bin/node - * 1: /Users/mjr/work/node/process-args.js - * 2: one - * 3: two=three - * 4: four - * ``` - * @since v0.1.27 - */ - argv: string[]; - /** - * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts. - * - * ```console - * $ bash -c 'exec -a customArgv0 ./node' - * > process.argv[0] - * '/Volumes/code/external/node/out/Release/node' - * > process.argv0 - * 'customArgv0' - * ``` - * @since v6.4.0 - */ - argv0: string; - /** - * The `process.execArgv` property returns the set of Node.js-specific command-line - * options passed when the Node.js process was launched. These options do not - * appear in the array returned by the {@link argv} property, and do not - * include the Node.js executable, the name of the script, or any options following - * the script name. These options are useful in order to spawn child processes with - * the same execution environment as the parent. - * - * ```bash - * node --icu-data-dir=./foo --require ./bar.js script.js --version - * ``` - * - * Results in `process.execArgv`: - * - * ```js - * ["--icu-data-dir=./foo", "--require", "./bar.js"] - * ``` - * - * And `process.argv`: - * - * ```js - * ['/usr/local/bin/node', 'script.js', '--version'] - * ``` - * - * Refer to `Worker constructor` for the detailed behavior of worker - * threads with this property. - * @since v0.7.7 - */ - execArgv: string[]; - /** - * The `process.execPath` property returns the absolute pathname of the executable - * that started the Node.js process. Symbolic links, if any, are resolved. - * - * ```js - * '/usr/local/bin/node' - * ``` - * @since v0.1.100 - */ - execPath: string; - /** - * The `process.abort()` method causes the Node.js process to exit immediately and - * generate a core file. - * - * This feature is not available in `Worker` threads. - * @since v0.7.0 - */ - abort(): never; - /** - * The `process.chdir()` method changes the current working directory of the - * Node.js process or throws an exception if doing so fails (for instance, if - * the specified `directory` does not exist). - * - * ```js - * import { chdir, cwd } from 'node:process'; - * - * console.log(`Starting directory: ${cwd()}`); - * try { - * chdir('/tmp'); - * console.log(`New directory: ${cwd()}`); - * } catch (err) { - * console.error(`chdir: ${err}`); - * } - * ``` - * - * This feature is not available in `Worker` threads. - * @since v0.1.17 - */ - chdir(directory: string): void; - /** - * The `process.cwd()` method returns the current working directory of the Node.js - * process. - * - * ```js - * import { cwd } from 'node:process'; - * - * console.log(`Current directory: ${cwd()}`); - * ``` - * @since v0.1.8 - */ - cwd(): string; - /** - * The port used by the Node.js debugger when enabled. - * - * ```js - * import process from 'node:process'; - * - * process.debugPort = 5858; - * ``` - * @since v0.7.2 - */ - debugPort: number; - /** - * The `process.dlopen()` method allows dynamically loading shared objects. It is primarily used by `require()` to load C++ Addons, and - * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()` - * unless there are specific reasons such as custom dlopen flags or loading from ES modules. - * - * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v20.x/api/os.html#dlopen-constants)` - * documentation for details. - * - * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon - * are then accessible via `module.exports`. - * - * The example below shows how to load a C++ Addon, named `local.node`, that exports a `foo` function. All the symbols are loaded before the call returns, by passing the `RTLD_NOW` constant. - * In this example the constant is assumed to be available. - * - * ```js - * import { dlopen } from 'node:process'; - * import { constants } from 'node:os'; - * import { fileURLToPath } from 'node:url'; - * - * const module = { exports: {} }; - * dlopen(module, fileURLToPath(new URL('local.node', import.meta.url)), - * constants.dlopen.RTLD_NOW); - * module.exports.foo(); - * ``` - */ - dlopen(module: object, filename: string, flags?: number): void; - /** - * The `process.emitWarning()` method can be used to emit custom or application - * specific process warnings. These can be listened for by adding a handler to the `'warning'` event. - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using a string. - * emitWarning('Something happened!'); - * // Emits: (node: 56338) Warning: Something happened! - * ``` - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using a string and a type. - * emitWarning('Something Happened!', 'CustomWarning'); - * // Emits: (node:56338) CustomWarning: Something Happened! - * ``` - * - * ```js - * import { emitWarning } from 'node:process'; - * - * emitWarning('Something happened!', 'CustomWarning', 'WARN001'); - * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! - * ```js - * - * In each of the previous examples, an `Error` object is generated internally by `process.emitWarning()` and passed through to the `'warning'` handler. - * - * ```js - * import process from 'node:process'; - * - * process.on('warning', (warning) => { - * console.warn(warning.name); // 'Warning' - * console.warn(warning.message); // 'Something happened!' - * console.warn(warning.code); // 'MY_WARNING' - * console.warn(warning.stack); // Stack trace - * console.warn(warning.detail); // 'This is some additional information' - * }); - * ``` - * - * If `warning` is passed as an `Error` object, it will be passed through to the `'warning'` event handler - * unmodified (and the optional `type`, `code` and `ctor` arguments will be ignored): - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using an Error object. - * const myWarning = new Error('Something happened!'); - * // Use the Error name property to specify the type name - * myWarning.name = 'CustomWarning'; - * myWarning.code = 'WARN001'; - * - * emitWarning(myWarning); - * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! - * ``` - * - * A `TypeError` is thrown if `warning` is anything other than a string or `Error` object. - * - * While process warnings use `Error` objects, the process warning mechanism is not a replacement for normal error handling mechanisms. - * - * The following additional handling is implemented if the warning `type` is `'DeprecationWarning'`: - * * If the `--throw-deprecation` command-line flag is used, the deprecation warning is thrown as an exception rather than being emitted as an event. - * * If the `--no-deprecation` command-line flag is used, the deprecation warning is suppressed. - * * If the `--trace-deprecation` command-line flag is used, the deprecation warning is printed to `stderr` along with the full stack trace. - * @since v8.0.0 - * @param warning The warning to emit. - */ - emitWarning(warning: string | Error, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void; - emitWarning(warning: string | Error, options?: EmitWarningOptions): void; - /** - * The `process.env` property returns an object containing the user environment. - * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html). - * - * An example of this object looks like: - * - * ```js - * { - * TERM: 'xterm-256color', - * SHELL: '/usr/local/bin/bash', - * USER: 'maciej', - * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', - * PWD: '/Users/maciej', - * EDITOR: 'vim', - * SHLVL: '1', - * HOME: '/Users/maciej', - * LOGNAME: 'maciej', - * _: '/usr/local/bin/node' - * } - * ``` - * - * It is possible to modify this object, but such modifications will not be - * reflected outside the Node.js process, or (unless explicitly requested) - * to other `Worker` threads. - * In other words, the following example would not work: - * - * ```bash - * node -e 'process.env.foo = "bar"' && echo $foo - * ``` - * - * While the following will: - * - * ```js - * import { env } from 'node:process'; - * - * env.foo = 'bar'; - * console.log(env.foo); - * ``` - * - * Assigning a property on `process.env` will implicitly convert the value - * to a string. **This behavior is deprecated.** Future versions of Node.js may - * throw an error when the value is not a string, number, or boolean. - * - * ```js - * import { env } from 'node:process'; - * - * env.test = null; - * console.log(env.test); - * // => 'null' - * env.test = undefined; - * console.log(env.test); - * // => 'undefined' - * ``` - * - * Use `delete` to delete a property from `process.env`. - * - * ```js - * import { env } from 'node:process'; - * - * env.TEST = 1; - * delete env.TEST; - * console.log(env.TEST); - * // => undefined - * ``` - * - * On Windows operating systems, environment variables are case-insensitive. - * - * ```js - * import { env } from 'node:process'; - * - * env.TEST = 1; - * console.log(env.test); - * // => 1 - * ``` - * - * Unless explicitly specified when creating a `Worker` instance, - * each `Worker` thread has its own copy of `process.env`, based on its - * parent thread's `process.env`, or whatever was specified as the `env` option - * to the `Worker` constructor. Changes to `process.env` will not be visible - * across `Worker` threads, and only the main thread can make changes that - * are visible to the operating system or to native add-ons. On Windows, a copy of `process.env` on a `Worker` instance operates in a case-sensitive manner - * unlike the main thread. - * @since v0.1.27 - */ - env: ProcessEnv; - /** - * The `process.exit()` method instructs Node.js to terminate the process - * synchronously with an exit status of `code`. If `code` is omitted, exit uses - * either the 'success' code `0` or the value of `process.exitCode` if it has been - * set. Node.js will not terminate until all the `'exit'` event listeners are - * called. - * - * To exit with a 'failure' code: - * - * ```js - * import { exit } from 'node:process'; - * - * exit(1); - * ``` - * - * The shell that executed Node.js should see the exit code as `1`. - * - * Calling `process.exit()` will force the process to exit as quickly as possible - * even if there are still asynchronous operations pending that have not yet - * completed fully, including I/O operations to `process.stdout` and `process.stderr`. - * - * In most situations, it is not actually necessary to call `process.exit()` explicitly. The Node.js process will exit on its own _if there is no additional_ - * _work pending_ in the event loop. The `process.exitCode` property can be set to - * tell the process which exit code to use when the process exits gracefully. - * - * For instance, the following example illustrates a _misuse_ of the `process.exit()` method that could lead to data printed to stdout being - * truncated and lost: - * - * ```js - * import { exit } from 'node:process'; - * - * // This is an example of what *not* to do: - * if (someConditionNotMet()) { - * printUsageToStdout(); - * exit(1); - * } - * ``` - * - * The reason this is problematic is because writes to `process.stdout` in Node.js - * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js - * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed. - * - * Rather than calling `process.exit()` directly, the code _should_ set the `process.exitCode` and allow the process to exit naturally by avoiding - * scheduling any additional work for the event loop: - * - * ```js - * import process from 'node:process'; - * - * // How to properly set the exit code while letting - * // the process exit gracefully. - * if (someConditionNotMet()) { - * printUsageToStdout(); - * process.exitCode = 1; - * } - * ``` - * - * If it is necessary to terminate the Node.js process due to an error condition, - * throwing an _uncaught_ error and allowing the process to terminate accordingly - * is safer than calling `process.exit()`. - * - * In `Worker` threads, this function stops the current thread rather - * than the current process. - * @since v0.1.13 - * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed. - */ - exit(code?: number | string | null): never; - /** - * A number which will be the process exit code, when the process either - * exits gracefully, or is exited via {@link exit} without specifying - * a code. - * - * Specifying a code to {@link exit} will override any - * previous setting of `process.exitCode`. - * @default undefined - * @since v0.11.8 - */ - exitCode: number | string | number | undefined; - /** - * The `process.getActiveResourcesInfo()` method returns an array of strings containing - * the types of the active resources that are currently keeping the event loop alive. - * - * ```js - * import { getActiveResourcesInfo } from 'node:process'; - * import { setTimeout } from 'node:timers'; - - * console.log('Before:', getActiveResourcesInfo()); - * setTimeout(() => {}, 1000); - * console.log('After:', getActiveResourcesInfo()); - * // Prints: - * // Before: [ 'TTYWrap', 'TTYWrap', 'TTYWrap' ] - * // After: [ 'TTYWrap', 'TTYWrap', 'TTYWrap', 'Timeout' ] - * ``` - * @since v17.3.0, v16.14.0 - */ - getActiveResourcesInfo(): string[]; - /** - * Provides a way to load built-in modules in a globally available function. - * @param id ID of the built-in module being requested. - * @since v20.16.0 - */ - getBuiltinModule(id: ID): BuiltInModule[ID]; - getBuiltinModule(id: string): object | undefined; - /** - * The `process.getgid()` method returns the numerical group identity of the - * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getgid) { - * console.log(`Current gid: ${process.getgid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.31 - */ - getgid?: () => number; - /** - * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a - * numeric ID or a group name - * string. If a group name is specified, this method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgid && process.setgid) { - * console.log(`Current gid: ${process.getgid()}`); - * try { - * process.setgid(501); - * console.log(`New gid: ${process.getgid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.31 - * @param id The group name or ID - */ - setgid?: (id: number | string) => void; - /** - * The `process.getuid()` method returns the numeric user identity of the process. - * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getuid) { - * console.log(`Current uid: ${process.getuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.28 - */ - getuid?: () => number; - /** - * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a - * numeric ID or a username string. - * If a username is specified, the method blocks while resolving the associated - * numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getuid && process.setuid) { - * console.log(`Current uid: ${process.getuid()}`); - * try { - * process.setuid(501); - * console.log(`New uid: ${process.getuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.28 - */ - setuid?: (id: number | string) => void; - /** - * The `process.geteuid()` method returns the numerical effective user identity of - * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.geteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - geteuid?: () => number; - /** - * The `process.seteuid()` method sets the effective user identity of the process. - * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username - * string. If a username is specified, the method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.geteuid && process.seteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * try { - * process.seteuid(501); - * console.log(`New uid: ${process.geteuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A user name or ID - */ - seteuid?: (id: number | string) => void; - /** - * The `process.getegid()` method returns the numerical effective group identity - * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getegid) { - * console.log(`Current gid: ${process.getegid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - getegid?: () => number; - /** - * The `process.setegid()` method sets the effective group identity of the process. - * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group - * name string. If a group name is specified, this method blocks while resolving - * the associated a numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getegid && process.setegid) { - * console.log(`Current gid: ${process.getegid()}`); - * try { - * process.setegid(501); - * console.log(`New gid: ${process.getegid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A group name or ID - */ - setegid?: (id: number | string) => void; - /** - * The `process.getgroups()` method returns an array with the supplementary group - * IDs. POSIX leaves it unspecified if the effective group ID is included but - * Node.js ensures it always is. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgroups) { - * console.log(process.getgroups()); // [ 16, 21, 297 ] - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.9.4 - */ - getgroups?: () => number[]; - /** - * The `process.setgroups()` method sets the supplementary group IDs for the - * Node.js process. This is a privileged operation that requires the Node.js - * process to have `root` or the `CAP_SETGID` capability. - * - * The `groups` array can contain numeric group IDs, group names, or both. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgroups && process.setgroups) { - * try { - * process.setgroups([501]); - * console.log(process.getgroups()); // new groups - * } catch (err) { - * console.log(`Failed to set groups: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.9.4 - */ - setgroups?: (groups: ReadonlyArray) => void; - /** - * The `process.setUncaughtExceptionCaptureCallback()` function sets a function - * that will be invoked when an uncaught exception occurs, which will receive the - * exception value itself as its first argument. - * - * If such a function is set, the `'uncaughtException'` event will - * not be emitted. If `--abort-on-uncaught-exception` was passed from the - * command line or set through `v8.setFlagsFromString()`, the process will - * not abort. Actions configured to take place on exceptions such as report - * generations will be affected too - * - * To unset the capture function, `process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this - * method with a non-`null` argument while another capture function is set will - * throw an error. - * - * Using this function is mutually exclusive with using the deprecated `domain` built-in module. - * @since v9.3.0 - */ - setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void; - /** - * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}. - * @since v9.3.0 - */ - hasUncaughtExceptionCaptureCallback(): boolean; - /** - * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled. - * @since v20.7.0 - * @experimental - */ - readonly sourceMapsEnabled: boolean; - /** - * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for - * stack traces. - * - * It provides same features as launching Node.js process with commandline options `--enable-source-maps`. - * - * Only source maps in JavaScript files that are loaded after source maps has been - * enabled will be parsed and loaded. - * @since v16.6.0, v14.18.0 - * @experimental - */ - setSourceMapsEnabled(value: boolean): void; - /** - * The `process.version` property contains the Node.js version string. - * - * ```js - * import { version } from 'node:process'; - * - * console.log(`Version: ${version}`); - * // Version: v14.8.0 - * ``` - * - * To get the version string without the prepended _v_, use`process.versions.node`. - * @since v0.1.3 - */ - readonly version: string; - /** - * The `process.versions` property returns an object listing the version strings of - * Node.js and its dependencies. `process.versions.modules` indicates the current - * ABI version, which is increased whenever a C++ API changes. Node.js will refuse - * to load modules that were compiled against a different module ABI version. - * - * ```js - * import { versions } from 'node:process'; - * - * console.log(versions); - * ``` - * - * Will generate an object similar to: - * - * ```console - * { node: '20.2.0', - * acorn: '8.8.2', - * ada: '2.4.0', - * ares: '1.19.0', - * base64: '0.5.0', - * brotli: '1.0.9', - * cjs_module_lexer: '1.2.2', - * cldr: '43.0', - * icu: '73.1', - * llhttp: '8.1.0', - * modules: '115', - * napi: '8', - * nghttp2: '1.52.0', - * nghttp3: '0.7.0', - * ngtcp2: '0.8.1', - * openssl: '3.0.8+quic', - * simdutf: '3.2.9', - * tz: '2023c', - * undici: '5.22.0', - * unicode: '15.0', - * uv: '1.44.2', - * uvwasi: '0.0.16', - * v8: '11.3.244.8-node.9', - * zlib: '1.2.13' } - * ``` - * @since v0.2.0 - */ - readonly versions: ProcessVersions; - /** - * The `process.config` property returns a frozen `Object` containing the - * JavaScript representation of the configure options used to compile the current - * Node.js executable. This is the same as the `config.gypi` file that was produced - * when running the `./configure` script. - * - * An example of the possible output looks like: - * - * ```js - * { - * target_defaults: - * { cflags: [], - * default_configuration: 'Release', - * defines: [], - * include_dirs: [], - * libraries: [] }, - * variables: - * { - * host_arch: 'x64', - * napi_build_version: 5, - * node_install_npm: 'true', - * node_prefix: '', - * node_shared_cares: 'false', - * node_shared_http_parser: 'false', - * node_shared_libuv: 'false', - * node_shared_zlib: 'false', - * node_use_openssl: 'true', - * node_shared_openssl: 'false', - * strict_aliasing: 'true', - * target_arch: 'x64', - * v8_use_snapshot: 1 - * } - * } - * ``` - * @since v0.7.7 - */ - readonly config: ProcessConfig; - /** - * The `process.kill()` method sends the `signal` to the process identified by`pid`. - * - * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information. - * - * This method will throw an error if the target `pid` does not exist. As a special - * case, a signal of `0` can be used to test for the existence of a process. - * Windows platforms will throw an error if the `pid` is used to kill a process - * group. - * - * Even though the name of this function is `process.kill()`, it is really just a - * signal sender, like the `kill` system call. The signal sent may do something - * other than kill the target process. - * - * ```js - * import process, { kill } from 'node:process'; - * - * process.on('SIGHUP', () => { - * console.log('Got SIGHUP signal.'); - * }); - * - * setTimeout(() => { - * console.log('Exiting.'); - * process.exit(0); - * }, 100); - * - * kill(process.pid, 'SIGHUP'); - * ``` - * - * When `SIGUSR1` is received by a Node.js process, Node.js will start the - * debugger. See `Signal Events`. - * @since v0.0.6 - * @param pid A process ID - * @param [signal='SIGTERM'] The signal to send, either as a string or number. - */ - kill(pid: number, signal?: string | number): true; - /** - * Loads the environment configuration from a `.env` file into `process.env`. If - * the file is not found, error will be thrown. - * - * To load a specific .env file by specifying its path, use the following code: - * - * ```js - * import { loadEnvFile } from 'node:process'; - * - * loadEnvFile('./development.env') - * ``` - * @since v20.12.0 - * @param path The path to the .env file - */ - loadEnvFile(path?: PathLike): void; - /** - * The `process.pid` property returns the PID of the process. - * - * ```js - * import { pid } from 'node:process'; - * - * console.log(`This process is pid ${pid}`); - * ``` - * @since v0.1.15 - */ - readonly pid: number; - /** - * The `process.ppid` property returns the PID of the parent of the - * current process. - * - * ```js - * import { ppid } from 'node:process'; - * - * console.log(`The parent process is pid ${ppid}`); - * ``` - * @since v9.2.0, v8.10.0, v6.13.0 - */ - readonly ppid: number; - /** - * The `process.title` property returns the current process title (i.e. returns - * the current value of `ps`). Assigning a new value to `process.title` modifies - * the current value of `ps`. - * - * When a new value is assigned, different platforms will impose different maximum - * length restrictions on the title. Usually such restrictions are quite limited. - * For instance, on Linux and macOS, `process.title` is limited to the size of the - * binary name plus the length of the command-line arguments because setting the `process.title` overwrites the `argv` memory of the process. Node.js v0.8 - * allowed for longer process title strings by also overwriting the `environ` memory but that was potentially insecure and confusing in some (rather obscure) - * cases. - * - * Assigning a value to `process.title` might not result in an accurate label - * within process manager applications such as macOS Activity Monitor or Windows - * Services Manager. - * @since v0.1.104 - */ - title: string; - /** - * The operating system CPU architecture for which the Node.js binary was compiled. - * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`. - * - * ```js - * import { arch } from 'node:process'; - * - * console.log(`This processor architecture is ${arch}`); - * ``` - * @since v0.5.0 - */ - readonly arch: Architecture; - /** - * The `process.platform` property returns a string identifying the operating - * system platform for which the Node.js binary was compiled. - * - * Currently possible values are: - * - * * `'aix'` - * * `'darwin'` - * * `'freebsd'` - * * `'linux'` - * * `'openbsd'` - * * `'sunos'` - * * `'win32'` - * - * ```js - * import { platform } from 'node:process'; - * - * console.log(`This platform is ${platform}`); - * ``` - * - * The value `'android'` may also be returned if the Node.js is built on the - * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.1.16 - */ - readonly platform: Platform; - /** - * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at - * runtime, `require.main` may still refer to the original main module in - * modules that were required before the change occurred. Generally, it's - * safe to assume that the two refer to the same module. - * - * As with `require.main`, `process.mainModule` will be `undefined` if there - * is no entry script. - * @since v0.1.17 - * @deprecated Since v14.0.0 - Use `main` instead. - */ - mainModule?: Module; - memoryUsage: MemoryUsageFn; - /** - * Gets the amount of memory available to the process (in bytes) based on - * limits imposed by the OS. If there is no such constraint, or the constraint - * is unknown, `0` is returned. - * - * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more - * information. - * @since v19.6.0, v18.15.0 - * @experimental - */ - constrainedMemory(): number; - /** - * Gets the amount of free memory that is still available to the process (in bytes). - * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v20.x/api/process.html#processavailablememory) for more information. - * @experimental - * @since v20.13.0 - */ - availableMemory(): number; - /** - * The `process.cpuUsage()` method returns the user and system CPU time usage of - * the current process, in an object with properties `user` and `system`, whose - * values are microsecond values (millionth of a second). These values measure time - * spent in user and system code respectively, and may end up being greater than - * actual elapsed time if multiple CPU cores are performing work for this process. - * - * The result of a previous call to `process.cpuUsage()` can be passed as the - * argument to the function, to get a diff reading. - * - * ```js - * import { cpuUsage } from 'node:process'; - * - * const startUsage = cpuUsage(); - * // { user: 38579, system: 6986 } - * - * // spin the CPU for 500 milliseconds - * const now = Date.now(); - * while (Date.now() - now < 500); - * - * console.log(cpuUsage(startUsage)); - * // { user: 514883, system: 11226 } - * ``` - * @since v6.1.0 - * @param previousValue A previous return value from calling `process.cpuUsage()` - */ - cpuUsage(previousValue?: CpuUsage): CpuUsage; - /** - * `process.nextTick()` adds `callback` to the "next tick queue". This queue is - * fully drained after the current operation on the JavaScript stack runs to - * completion and before the event loop is allowed to continue. It's possible to - * create an infinite loop if one were to recursively call `process.nextTick()`. - * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background. - * - * ```js - * import { nextTick } from 'node:process'; - * - * console.log('start'); - * nextTick(() => { - * console.log('nextTick callback'); - * }); - * console.log('scheduled'); - * // Output: - * // start - * // scheduled - * // nextTick callback - * ``` - * - * This is important when developing APIs in order to give users the opportunity - * to assign event handlers _after_ an object has been constructed but before any - * I/O has occurred: - * - * ```js - * import { nextTick } from 'node:process'; - * - * function MyThing(options) { - * this.setupOptions(options); - * - * nextTick(() => { - * this.startDoingStuff(); - * }); - * } - * - * const thing = new MyThing(); - * thing.getReadyForStuff(); - * - * // thing.startDoingStuff() gets called now, not before. - * ``` - * - * It is very important for APIs to be either 100% synchronous or 100% - * asynchronous. Consider this example: - * - * ```js - * // WARNING! DO NOT USE! BAD UNSAFE HAZARD! - * function maybeSync(arg, cb) { - * if (arg) { - * cb(); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * - * This API is hazardous because in the following case: - * - * ```js - * const maybeTrue = Math.random() > 0.5; - * - * maybeSync(maybeTrue, () => { - * foo(); - * }); - * - * bar(); - * ``` - * - * It is not clear whether `foo()` or `bar()` will be called first. - * - * The following approach is much better: - * - * ```js - * import { nextTick } from 'node:process'; - * - * function definitelyAsync(arg, cb) { - * if (arg) { - * nextTick(cb); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * @since v0.1.26 - * @param args Additional arguments to pass when invoking the `callback` - */ - nextTick(callback: Function, ...args: any[]): void; - /** - * The process.noDeprecation property indicates whether the --no-deprecation flag is set on the current Node.js process. - * See the documentation for the ['warning' event](https://nodejs.org/docs/latest/api/process.html#event-warning) and the [emitWarning()](https://nodejs.org/docs/latest/api/process.html#processemitwarningwarning-type-code-ctor) method for more information about this flag's behavior. - */ - noDeprecation?: boolean; - /** - * This API is available through the [--experimental-permission](https://nodejs.org/api/cli.html#--experimental-permission) flag. - * - * `process.permission` is an object whose methods are used to manage permissions for the current process. - * Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model). - * @since v20.0.0 - */ - permission: ProcessPermission; - /** - * The `process.release` property returns an `Object` containing metadata related - * to the current release, including URLs for the source tarball and headers-only - * tarball. - * - * `process.release` contains the following properties: - * - * ```js - * { - * name: 'node', - * lts: 'Hydrogen', - * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz', - * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz', - * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib' - * } - * ``` - * - * In custom builds from non-release versions of the source tree, only the `name` property may be present. The additional properties should not be - * relied upon to exist. - * @since v3.0.0 - */ - readonly release: ProcessRelease; - readonly features: ProcessFeatures; - /** - * `process.umask()` returns the Node.js process's file mode creation mask. Child - * processes inherit the mask from the parent process. - * @since v0.1.19 - * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential - * security vulnerability. There is no safe, cross-platform alternative API. - */ - umask(): number; - /** - * Can only be set if not in worker thread. - */ - umask(mask: string | number): number; - /** - * The `process.uptime()` method returns the number of seconds the current Node.js - * process has been running. - * - * The return value includes fractions of a second. Use `Math.floor()` to get whole - * seconds. - * @since v0.5.0 - */ - uptime(): number; - hrtime: HRTime; - /** - * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel. - * If no IPC channel exists, this property is undefined. - * @since v7.1.0 - */ - channel?: Control; - /** - * If Node.js is spawned with an IPC channel, the `process.send()` method can be - * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. - * - * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`. - * - * The message goes through serialization and parsing. The resulting message might - * not be the same as what is originally sent. - * @since v0.5.9 - * @param options used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send?( - message: any, - sendHandle?: SendHandle, - options?: MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - send?( - message: any, - sendHandle: SendHandle, - callback?: (error: Error | null) => void, - ): boolean; - send?( - message: any, - callback: (error: Error | null) => void, - ): boolean; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the - * IPC channel to the parent process, allowing the child process to exit gracefully - * once there are no other connections keeping it alive. - * - * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process. - * - * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`. - * @since v0.7.2 - */ - disconnect(): void; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC - * channel is connected and will return `false` after `process.disconnect()` is called. - * - * Once `process.connected` is `false`, it is no longer possible to send messages - * over the IPC channel using `process.send()`. - * @since v0.7.2 - */ - connected: boolean; - /** - * The `process.allowedNodeEnvironmentFlags` property is a special, - * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable. - * - * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides `Set.prototype.has` to recognize several different possible flag - * representations. `process.allowedNodeEnvironmentFlags.has()` will - * return `true` in the following cases: - * - * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., `inspect-brk` for `--inspect-brk`, or `r` for `-r`. - * * Flags passed through to V8 (as listed in `--v8-options`) may replace - * one or more _non-leading_ dashes for an underscore, or vice-versa; - * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`, - * etc. - * * Flags may contain one or more equals (`=`) characters; all - * characters after and including the first equals will be ignored; - * e.g., `--stack-trace-limit=100`. - * * Flags _must_ be allowable within `NODE_OPTIONS`. - * - * When iterating over `process.allowedNodeEnvironmentFlags`, flags will - * appear only _once_; each will begin with one or more dashes. Flags - * passed through to V8 will contain underscores instead of non-leading - * dashes: - * - * ```js - * import { allowedNodeEnvironmentFlags } from 'node:process'; - * - * allowedNodeEnvironmentFlags.forEach((flag) => { - * // -r - * // --inspect-brk - * // --abort_on_uncaught_exception - * // ... - * }); - * ``` - * - * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail - * silently. - * - * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will - * contain what _would have_ been allowable. - * @since v10.10.0 - */ - allowedNodeEnvironmentFlags: ReadonlySet; - /** - * `process.report` is an object whose methods are used to generate diagnostic reports for the current process. - * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v20.x/api/report.html). - * @since v11.8.0 - */ - report: ProcessReport; - /** - * ```js - * import { resourceUsage } from 'node:process'; - * - * console.log(resourceUsage()); - * /* - * Will output: - * { - * userCPUTime: 82872, - * systemCPUTime: 4143, - * maxRSS: 33164, - * sharedMemorySize: 0, - * unsharedDataSize: 0, - * unsharedStackSize: 0, - * minorPageFault: 2469, - * majorPageFault: 0, - * swappedOut: 0, - * fsRead: 0, - * fsWrite: 8, - * ipcSent: 0, - * ipcReceived: 0, - * signalsCount: 0, - * voluntaryContextSwitches: 79, - * involuntaryContextSwitches: 1 - * } - * - * ``` - * @since v12.6.0 - * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t]. - */ - resourceUsage(): ResourceUsage; - /** - * The initial value of `process.throwDeprecation` indicates whether the `--throw-deprecation` flag is set on the current Node.js process. `process.throwDeprecation` - * is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning() - * method for more information. - * - * ```bash - * $ node --throw-deprecation -p "process.throwDeprecation" - * true - * $ node -p "process.throwDeprecation" - * undefined - * $ node - * > process.emitWarning('test', 'DeprecationWarning'); - * undefined - * > (node:26598) DeprecationWarning: test - * > process.throwDeprecation = true; - * true - * > process.emitWarning('test', 'DeprecationWarning'); - * Thrown: - * [DeprecationWarning: test] { name: 'DeprecationWarning' } - * ``` - * @since v0.9.12 - */ - throwDeprecation: boolean; - /** - * The `process.traceDeprecation` property indicates whether the `--trace-deprecation` flag is set on the current Node.js process. See the - * documentation for the `'warning' event` and the `emitWarning() method` for more information about this - * flag's behavior. - * @since v0.8.0 - */ - traceDeprecation: boolean; - /* EventEmitter */ - addListener(event: "beforeExit", listener: BeforeExitListener): this; - addListener(event: "disconnect", listener: DisconnectListener): this; - addListener(event: "exit", listener: ExitListener): this; - addListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - addListener(event: "warning", listener: WarningListener): this; - addListener(event: "message", listener: MessageListener): this; - addListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - addListener(event: Signals, listener: SignalsListener): this; - addListener(event: "multipleResolves", listener: MultipleResolveListener): this; - addListener(event: "worker", listener: WorkerListener): this; - emit(event: "beforeExit", code: number): boolean; - emit(event: "disconnect"): boolean; - emit(event: "exit", code: number): boolean; - emit(event: "rejectionHandled", promise: Promise): boolean; - emit(event: "uncaughtException", error: Error): boolean; - emit(event: "uncaughtExceptionMonitor", error: Error): boolean; - emit(event: "unhandledRejection", reason: unknown, promise: Promise): boolean; - emit(event: "warning", warning: Error): boolean; - emit(event: "message", message: unknown, sendHandle: SendHandle): this; - emit(event: "workerMessage", value: any, source: number): this; - emit(event: Signals, signal?: Signals): boolean; - emit( - event: "multipleResolves", - type: MultipleResolveType, - promise: Promise, - value: unknown, - ): this; - emit(event: "worker", listener: WorkerListener): this; - on(event: "beforeExit", listener: BeforeExitListener): this; - on(event: "disconnect", listener: DisconnectListener): this; - on(event: "exit", listener: ExitListener): this; - on(event: "rejectionHandled", listener: RejectionHandledListener): this; - on(event: "uncaughtException", listener: UncaughtExceptionListener): this; - on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - on(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - on(event: "warning", listener: WarningListener): this; - on(event: "message", listener: MessageListener): this; - on(event: "workerMessage", listener: (value: any, source: number) => void): this; - on(event: Signals, listener: SignalsListener): this; - on(event: "multipleResolves", listener: MultipleResolveListener): this; - on(event: "worker", listener: WorkerListener): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "beforeExit", listener: BeforeExitListener): this; - once(event: "disconnect", listener: DisconnectListener): this; - once(event: "exit", listener: ExitListener): this; - once(event: "rejectionHandled", listener: RejectionHandledListener): this; - once(event: "uncaughtException", listener: UncaughtExceptionListener): this; - once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - once(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - once(event: "warning", listener: WarningListener): this; - once(event: "message", listener: MessageListener): this; - once(event: "workerMessage", listener: (value: any, source: number) => void): this; - once(event: Signals, listener: SignalsListener): this; - once(event: "multipleResolves", listener: MultipleResolveListener): this; - once(event: "worker", listener: WorkerListener): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "beforeExit", listener: BeforeExitListener): this; - prependListener(event: "disconnect", listener: DisconnectListener): this; - prependListener(event: "exit", listener: ExitListener): this; - prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - prependListener(event: "warning", listener: WarningListener): this; - prependListener(event: "message", listener: MessageListener): this; - prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - prependListener(event: Signals, listener: SignalsListener): this; - prependListener(event: "multipleResolves", listener: MultipleResolveListener): this; - prependListener(event: "worker", listener: WorkerListener): this; - prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this; - prependOnceListener(event: "disconnect", listener: DisconnectListener): this; - prependOnceListener(event: "exit", listener: ExitListener): this; - prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - prependOnceListener(event: "warning", listener: WarningListener): this; - prependOnceListener(event: "message", listener: MessageListener): this; - prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - prependOnceListener(event: Signals, listener: SignalsListener): this; - prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this; - prependOnceListener(event: "worker", listener: WorkerListener): this; - listeners(event: "beforeExit"): BeforeExitListener[]; - listeners(event: "disconnect"): DisconnectListener[]; - listeners(event: "exit"): ExitListener[]; - listeners(event: "rejectionHandled"): RejectionHandledListener[]; - listeners(event: "uncaughtException"): UncaughtExceptionListener[]; - listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[]; - listeners(event: "unhandledRejection"): UnhandledRejectionListener[]; - listeners(event: "warning"): WarningListener[]; - listeners(event: "message"): MessageListener[]; - listeners(event: "workerMessage"): ((value: any, source: number) => void)[]; - listeners(event: Signals): SignalsListener[]; - listeners(event: "multipleResolves"): MultipleResolveListener[]; - listeners(event: "worker"): WorkerListener[]; - } - } - } - export = process; -} -declare module "node:process" { - import process = require("process"); - export = process; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/punycode.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/punycode.d.ts deleted file mode 100644 index 394d611..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/punycode.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -/** - * **The version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users - * currently depending on the `punycode` module should switch to using the - * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL - * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`. - * - * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It - * can be accessed using: - * - * ```js - * import punycode from 'node:punycode'; - * ``` - * - * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is - * primarily intended for use in Internationalized Domain Names. Because host - * names in URLs are limited to ASCII characters only, Domain Names that contain - * non-ASCII characters must be converted into ASCII using the Punycode scheme. - * For instance, the Japanese character that translates into the English word, `'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent - * to `'example.com'`) is represented by Punycode as the ASCII string `'xn--fsq.com'`. - * - * The `punycode` module provides a simple implementation of the Punycode standard. - * - * The `punycode` module is a third-party dependency used by Node.js and - * made available to developers as a convenience. Fixes or other modifications to - * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project. - * @deprecated Since v7.0.0 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/punycode.js) - */ -declare module "punycode" { - /** - * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only - * characters to the equivalent string of Unicode codepoints. - * - * ```js - * punycode.decode('maana-pta'); // 'mañana' - * punycode.decode('--dqo34k'); // '☃-⌘' - * ``` - * @since v0.5.1 - */ - function decode(string: string): string; - /** - * The `punycode.encode()` method converts a string of Unicode codepoints to a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters. - * - * ```js - * punycode.encode('mañana'); // 'maana-pta' - * punycode.encode('☃-⌘'); // '--dqo34k' - * ``` - * @since v0.5.1 - */ - function encode(string: string): string; - /** - * The `punycode.toUnicode()` method converts a string representing a domain name - * containing [Punycode](https://tools.ietf.org/html/rfc3492) encoded characters into Unicode. Only the [Punycode](https://tools.ietf.org/html/rfc3492) encoded parts of the domain name are be - * converted. - * - * ```js - * // decode domain names - * punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com' - * punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com' - * punycode.toUnicode('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toUnicode(domain: string): string; - /** - * The `punycode.toASCII()` method converts a Unicode string representing an - * Internationalized Domain Name to [Punycode](https://tools.ietf.org/html/rfc3492). Only the non-ASCII parts of the - * domain name will be converted. Calling `punycode.toASCII()` on a string that - * already only contains ASCII characters will have no effect. - * - * ```js - * // encode domain names - * punycode.toASCII('mañana.com'); // 'xn--maana-pta.com' - * punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com' - * punycode.toASCII('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toASCII(domain: string): string; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const ucs2: ucs2; - interface ucs2 { - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - decode(string: string): number[]; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - encode(codePoints: readonly number[]): string; - } - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const version: string; -} -declare module "node:punycode" { - export * from "punycode"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/querystring.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/querystring.d.ts deleted file mode 100644 index 27eaed2..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/querystring.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * The `node:querystring` module provides utilities for parsing and formatting URL - * query strings. It can be accessed using: - * - * ```js - * import querystring from 'node:querystring'; - * ``` - * - * `querystring` is more performant than `URLSearchParams` but is not a - * standardized API. Use `URLSearchParams` when performance is not critical or - * when compatibility with browser code is desirable. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/querystring.js) - */ -declare module "querystring" { - interface StringifyOptions { - /** - * The function to use when converting URL-unsafe characters to percent-encoding in the query string. - * @default `querystring.escape()` - */ - encodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParseOptions { - /** - * Specifies the maximum number of keys to parse. Specify `0` to remove key counting limitations. - * @default 1000 - */ - maxKeys?: number | undefined; - /** - * The function to use when decoding percent-encoded characters in the query string. - * @default `querystring.unescape()` - */ - decodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParsedUrlQuery extends NodeJS.Dict {} - interface ParsedUrlQueryInput extends - NodeJS.Dict< - | string - | number - | boolean - | bigint - | ReadonlyArray - | null - > - {} - /** - * The `querystring.stringify()` method produces a URL query string from a - * given `obj` by iterating through the object's "own properties". - * - * It serializes the following types of values passed in `obj`: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) | - * [string\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [number\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [bigint\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [boolean\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) The numeric values must be finite. Any other input values will be coerced to - * empty strings. - * - * ```js - * querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' }); - * // Returns 'foo=bar&baz=qux&baz=quux&corge=' - * - * querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':'); - * // Returns 'foo:bar;baz:qux' - * ``` - * - * By default, characters requiring percent-encoding within the query string will - * be encoded as UTF-8\. If an alternative encoding is required, then an alternative `encodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkEncodeURIComponent function already exists, - * - * querystring.stringify({ w: '中文', foo: 'bar' }, null, null, - * { encodeURIComponent: gbkEncodeURIComponent }); - * ``` - * @since v0.1.25 - * @param obj The object to serialize into a URL query string - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] . The substring used to delimit keys and values in the query string. - */ - function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; - /** - * The `querystring.parse()` method parses a URL query string (`str`) into a - * collection of key and value pairs. - * - * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: - * - * ```json - * { - * "foo": "bar", - * "abc": ["xyz", "123"] - * } - * ``` - * - * The object returned by the `querystring.parse()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * By default, percent-encoded characters within the query string will be assumed - * to use UTF-8 encoding. If an alternative character encoding is used, then an - * alternative `decodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkDecodeURIComponent function already exists... - * - * querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null, - * { decodeURIComponent: gbkDecodeURIComponent }); - * ``` - * @since v0.1.25 - * @param str The URL query string to parse - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] The substring used to delimit keys and values in the query string. - */ - function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; - /** - * The querystring.encode() function is an alias for querystring.stringify(). - */ - const encode: typeof stringify; - /** - * The querystring.decode() function is an alias for querystring.parse(). - */ - const decode: typeof parse; - /** - * The `querystring.escape()` method performs URL percent-encoding on the given `str` in a manner that is optimized for the specific requirements of URL - * query strings. - * - * The `querystring.escape()` method is used by `querystring.stringify()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement percent-encoding implementation if - * necessary by assigning `querystring.escape` to an alternative function. - * @since v0.1.25 - */ - function escape(str: string): string; - /** - * The `querystring.unescape()` method performs decoding of URL percent-encoded - * characters on the given `str`. - * - * The `querystring.unescape()` method is used by `querystring.parse()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement decoding implementation if - * necessary by assigning `querystring.unescape` to an alternative function. - * - * By default, the `querystring.unescape()` method will attempt to use the - * JavaScript built-in `decodeURIComponent()` method to decode. If that fails, - * a safer equivalent that does not throw on malformed URLs will be used. - * @since v0.1.25 - */ - function unescape(str: string): string; -} -declare module "node:querystring" { - export * from "querystring"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/readline.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/readline.d.ts deleted file mode 100644 index 1504c26..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/readline.d.ts +++ /dev/null @@ -1,589 +0,0 @@ -/** - * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream - * (such as [`process.stdin`](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/process.html#processstdin)) one line at a time. - * - * To use the promise-based APIs: - * - * ```js - * import * as readline from 'node:readline/promises'; - * ``` - * - * To use the callback and sync APIs: - * - * ```js - * import * as readline from 'node:readline'; - * ``` - * - * The following simple example illustrates the basic use of the `node:readline` module. - * - * ```js - * import * as readline from 'node:readline/promises'; - * import { stdin as input, stdout as output } from 'node:process'; - * - * const rl = readline.createInterface({ input, output }); - * - * const answer = await rl.question('What do you think of Node.js? '); - * - * console.log(`Thank you for your valuable feedback: ${answer}`); - * - * rl.close(); - * ``` - * - * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be - * received on the `input` stream. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/readline.js) - */ -declare module "readline" { - import { Abortable, EventEmitter } from "node:events"; - import * as promises from "node:readline/promises"; - export { promises }; - export interface Key { - sequence?: string | undefined; - name?: string | undefined; - ctrl?: boolean | undefined; - meta?: boolean | undefined; - shift?: boolean | undefined; - } - /** - * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a - * single `input` [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream. - * The `output` stream is used to print prompts for user input that arrives on, - * and is read from, the `input` stream. - * @since v0.1.104 - */ - export class Interface extends EventEmitter { - readonly terminal: boolean; - /** - * The current input data being processed by node. - * - * This can be used when collecting input from a TTY stream to retrieve the - * current value that has been processed thus far, prior to the `line` event - * being emitted. Once the `line` event has been emitted, this property will - * be an empty string. - * - * Be aware that modifying the value during the instance runtime may have - * unintended consequences if `rl.cursor` is not also controlled. - * - * **If not using a TTY stream for input, use the `'line'` event.** - * - * One possible use case would be as follows: - * - * ```js - * const values = ['lorem ipsum', 'dolor sit amet']; - * const rl = readline.createInterface(process.stdin); - * const showResults = debounce(() => { - * console.log( - * '\n', - * values.filter((val) => val.startsWith(rl.line)).join(' '), - * ); - * }, 300); - * process.stdin.on('keypress', (c, k) => { - * showResults(); - * }); - * ``` - * @since v0.1.98 - */ - readonly line: string; - /** - * The cursor position relative to `rl.line`. - * - * This will track where the current cursor lands in the input string, when - * reading input from a TTY stream. The position of cursor determines the - * portion of the input string that will be modified as input is processed, - * as well as the column where the terminal caret will be rendered. - * @since v0.1.98 - */ - readonly cursor: number; - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor - */ - protected constructor( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer | AsyncCompleter, - terminal?: boolean, - ); - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor - */ - protected constructor(options: ReadLineOptions); - /** - * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`. - * @since v15.3.0, v14.17.0 - * @return the current prompt string - */ - getPrompt(): string; - /** - * The `rl.setPrompt()` method sets the prompt that will be written to `output` whenever `rl.prompt()` is called. - * @since v0.1.98 - */ - setPrompt(prompt: string): void; - /** - * The `rl.prompt()` method writes the `Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new - * location at which to provide input. - * - * When called, `rl.prompt()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the prompt is not written. - * @since v0.1.98 - * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`. - */ - prompt(preserveCursor?: boolean): void; - /** - * The `rl.question()` method displays the `query` by writing it to the `output`, - * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. - * - * When called, `rl.question()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. - * - * The `callback` function passed to `rl.question()` does not follow the typical - * pattern of accepting an `Error` object or `null` as the first argument. - * The `callback` is called with the provided answer as the only argument. - * - * An error will be thrown if calling `rl.question()` after `rl.close()`. - * - * Example usage: - * - * ```js - * rl.question('What is your favorite food? ', (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * ``` - * - * Using an `AbortController` to cancel a question. - * - * ```js - * const ac = new AbortController(); - * const signal = ac.signal; - * - * rl.question('What is your favorite food? ', { signal }, (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * - * signal.addEventListener('abort', () => { - * console.log('The food question timed out'); - * }, { once: true }); - * - * setTimeout(() => ac.abort(), 10000); - * ``` - * @since v0.3.3 - * @param query A statement or query to write to `output`, prepended to the prompt. - * @param callback A callback function that is invoked with the user's input in response to the `query`. - */ - question(query: string, callback: (answer: string) => void): void; - question(query: string, options: Abortable, callback: (answer: string) => void): void; - /** - * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed - * later if necessary. - * - * Calling `rl.pause()` does not immediately pause other events (including `'line'`) from being emitted by the `Interface` instance. - * @since v0.3.4 - */ - pause(): this; - /** - * The `rl.resume()` method resumes the `input` stream if it has been paused. - * @since v0.3.4 - */ - resume(): this; - /** - * The `rl.close()` method closes the `Interface` instance and - * relinquishes control over the `input` and `output` streams. When called, - * the `'close'` event will be emitted. - * - * Calling `rl.close()` does not immediately stop other events (including `'line'`) - * from being emitted by the `Interface` instance. - * @since v0.1.98 - */ - close(): void; - /** - * The `rl.write()` method will write either `data` or a key sequence identified - * by `key` to the `output`. The `key` argument is supported only if `output` is - * a `TTY` text terminal. See `TTY keybindings` for a list of key - * combinations. - * - * If `key` is specified, `data` is ignored. - * - * When called, `rl.write()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `data` and `key` are not written. - * - * ```js - * rl.write('Delete this!'); - * // Simulate Ctrl+U to delete the line written previously - * rl.write(null, { ctrl: true, name: 'u' }); - * ``` - * - * The `rl.write()` method will write the data to the `readline` `Interface`'s `input` _as if it were provided by the user_. - * @since v0.1.98 - */ - write(data: string | Buffer, key?: Key): void; - write(data: undefined | null | string | Buffer, key: Key): void; - /** - * Returns the real position of the cursor in relation to the input - * prompt + string. Long input (wrapping) strings, as well as multiple - * line prompts are included in the calculations. - * @since v13.5.0, v12.16.0 - */ - getCursorPos(): CursorPos; - /** - * events.EventEmitter - * 1. close - * 2. line - * 3. pause - * 4. resume - * 5. SIGCONT - * 6. SIGINT - * 7. SIGTSTP - * 8. history - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "line", listener: (input: string) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "SIGCONT", listener: () => void): this; - addListener(event: "SIGINT", listener: () => void): this; - addListener(event: "SIGTSTP", listener: () => void): this; - addListener(event: "history", listener: (history: string[]) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "line", input: string): boolean; - emit(event: "pause"): boolean; - emit(event: "resume"): boolean; - emit(event: "SIGCONT"): boolean; - emit(event: "SIGINT"): boolean; - emit(event: "SIGTSTP"): boolean; - emit(event: "history", history: string[]): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "line", listener: (input: string) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "SIGCONT", listener: () => void): this; - on(event: "SIGINT", listener: () => void): this; - on(event: "SIGTSTP", listener: () => void): this; - on(event: "history", listener: (history: string[]) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "line", listener: (input: string) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "SIGCONT", listener: () => void): this; - once(event: "SIGINT", listener: () => void): this; - once(event: "SIGTSTP", listener: () => void): this; - once(event: "history", listener: (history: string[]) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "line", listener: (input: string) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "SIGCONT", listener: () => void): this; - prependListener(event: "SIGINT", listener: () => void): this; - prependListener(event: "SIGTSTP", listener: () => void): this; - prependListener(event: "history", listener: (history: string[]) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "line", listener: (input: string) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "SIGCONT", listener: () => void): this; - prependOnceListener(event: "SIGINT", listener: () => void): this; - prependOnceListener(event: "SIGTSTP", listener: () => void): this; - prependOnceListener(event: "history", listener: (history: string[]) => void): this; - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - } - export type ReadLine = Interface; // type forwarded for backwards compatibility - export type Completer = (line: string) => CompleterResult; - export type AsyncCompleter = ( - line: string, - callback: (err?: null | Error, result?: CompleterResult) => void, - ) => void; - export type CompleterResult = [string[], string]; - export interface ReadLineOptions { - /** - * The [`Readable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream to listen to - */ - input: NodeJS.ReadableStream; - /** - * The [`Writable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream to write readline data to. - */ - output?: NodeJS.WritableStream | undefined; - /** - * An optional function used for Tab autocompletion. - */ - completer?: Completer | AsyncCompleter | undefined; - /** - * `true` if the `input` and `output` streams should be treated like a TTY, - * and have ANSI/VT100 escape codes written to it. - * Default: checking `isTTY` on the `output` stream upon instantiation. - */ - terminal?: boolean | undefined; - /** - * Initial list of history lines. - * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, - * otherwise the history caching mechanism is not initialized at all. - * @default [] - */ - history?: string[] | undefined; - /** - * Maximum number of history lines retained. - * To disable the history set this value to `0`. - * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, - * otherwise the history caching mechanism is not initialized at all. - * @default 30 - */ - historySize?: number | undefined; - /** - * If `true`, when a new input line added to the history list duplicates an older one, - * this removes the older line from the list. - * @default false - */ - removeHistoryDuplicates?: boolean | undefined; - /** - * The prompt string to use. - * @default "> " - */ - prompt?: string | undefined; - /** - * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds, - * both `\r` and `\n` will be treated as separate end-of-line input. - * `crlfDelay` will be coerced to a number no less than `100`. - * It can be set to `Infinity`, in which case - * `\r` followed by `\n` will always be considered a single newline - * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v20.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter). - * @default 100 - */ - crlfDelay?: number | undefined; - /** - * The duration `readline` will wait for a character - * (when reading an ambiguous key sequence in milliseconds - * one that can both form a complete key sequence using the input read so far - * and can take additional input to complete a longer key sequence). - * @default 500 - */ - escapeCodeTimeout?: number | undefined; - /** - * The number of spaces a tab is equal to (minimum 1). - * @default 8 - */ - tabSize?: number | undefined; - /** - * Allows closing the interface using an AbortSignal. - * Aborting the signal will internally call `close` on the interface. - */ - signal?: AbortSignal | undefined; - } - /** - * The `readline.createInterface()` method creates a new `readline.Interface` instance. - * - * ```js - * import readline from 'node:readline'; - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout, - * }); - * ``` - * - * Once the `readline.Interface` instance is created, the most common case is to - * listen for the `'line'` event: - * - * ```js - * rl.on('line', (line) => { - * console.log(`Received: ${line}`); - * }); - * ``` - * - * If `terminal` is `true` for this instance then the `output` stream will get - * the best compatibility if it defines an `output.columns` property and emits - * a `'resize'` event on the `output` if or when the columns ever change - * (`process.stdout` does this automatically when it is a TTY). - * - * When creating a `readline.Interface` using `stdin` as input, the program - * will not terminate until it receives an [EOF character](https://en.wikipedia.org/wiki/End-of-file#EOF_character). To exit without - * waiting for user input, call `process.stdin.unref()`. - * @since v0.1.98 - */ - export function createInterface( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer | AsyncCompleter, - terminal?: boolean, - ): Interface; - export function createInterface(options: ReadLineOptions): Interface; - /** - * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input. - * - * Optionally, `interface` specifies a `readline.Interface` instance for which - * autocompletion is disabled when copy-pasted input is detected. - * - * If the `stream` is a `TTY`, then it must be in raw mode. - * - * This is automatically called by any readline instance on its `input` if the `input` is a terminal. Closing the `readline` instance does not stop - * the `input` from emitting `'keypress'` events. - * - * ```js - * readline.emitKeypressEvents(process.stdin); - * if (process.stdin.isTTY) - * process.stdin.setRawMode(true); - * ``` - * - * ## Example: Tiny CLI - * - * The following example illustrates the use of `readline.Interface` class to - * implement a small command-line interface: - * - * ```js - * import readline from 'node:readline'; - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout, - * prompt: 'OHAI> ', - * }); - * - * rl.prompt(); - * - * rl.on('line', (line) => { - * switch (line.trim()) { - * case 'hello': - * console.log('world!'); - * break; - * default: - * console.log(`Say what? I might have heard '${line.trim()}'`); - * break; - * } - * rl.prompt(); - * }).on('close', () => { - * console.log('Have a great day!'); - * process.exit(0); - * }); - * ``` - * - * ## Example: Read file stream line-by-Line - * - * A common use case for `readline` is to consume an input file one line at a - * time. The easiest way to do so is leveraging the `fs.ReadStream` API as - * well as a `for await...of` loop: - * - * ```js - * import fs from 'node:fs'; - * import readline from 'node:readline'; - * - * async function processLineByLine() { - * const fileStream = fs.createReadStream('input.txt'); - * - * const rl = readline.createInterface({ - * input: fileStream, - * crlfDelay: Infinity, - * }); - * // Note: we use the crlfDelay option to recognize all instances of CR LF - * // ('\r\n') in input.txt as a single line break. - * - * for await (const line of rl) { - * // Each line in input.txt will be successively available here as `line`. - * console.log(`Line from file: ${line}`); - * } - * } - * - * processLineByLine(); - * ``` - * - * Alternatively, one could use the `'line'` event: - * - * ```js - * import fs from 'node:fs'; - * import readline from 'node:readline'; - * - * const rl = readline.createInterface({ - * input: fs.createReadStream('sample.txt'), - * crlfDelay: Infinity, - * }); - * - * rl.on('line', (line) => { - * console.log(`Line from file: ${line}`); - * }); - * ``` - * - * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied: - * - * ```js - * import { once } from 'node:events'; - * import { createReadStream } from 'node:fs'; - * import { createInterface } from 'node:readline'; - * - * (async function processLineByLine() { - * try { - * const rl = createInterface({ - * input: createReadStream('big-file.txt'), - * crlfDelay: Infinity, - * }); - * - * rl.on('line', (line) => { - * // Process the line. - * }); - * - * await once(rl, 'close'); - * - * console.log('File processed.'); - * } catch (err) { - * console.error(err); - * } - * })(); - * ``` - * @since v0.7.7 - */ - export function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void; - export type Direction = -1 | 0 | 1; - export interface CursorPos { - rows: number; - cols: number; - } - /** - * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream - * in a specified direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; - /** - * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream from - * the current position of the cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; - /** - * The `readline.cursorTo()` method moves cursor to the specified position in a - * given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; - /** - * The `readline.moveCursor()` method moves the cursor _relative_ to its current - * position in a given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; -} -declare module "node:readline" { - export * from "readline"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/readline/promises.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/readline/promises.d.ts deleted file mode 100644 index f6cdf66..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/readline/promises.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * @since v17.0.0 - * @experimental - */ -declare module "readline/promises" { - import { Abortable } from "node:events"; - import { - CompleterResult, - Direction, - Interface as _Interface, - ReadLineOptions as _ReadLineOptions, - } from "node:readline"; - /** - * Instances of the `readlinePromises.Interface` class are constructed using the `readlinePromises.createInterface()` method. Every instance is associated with a - * single `input` `Readable` stream and a single `output` `Writable` stream. - * The `output` stream is used to print prompts for user input that arrives on, - * and is read from, the `input` stream. - * @since v17.0.0 - */ - class Interface extends _Interface { - /** - * The `rl.question()` method displays the `query` by writing it to the `output`, - * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. - * - * When called, `rl.question()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. - * - * If the question is called after `rl.close()`, it returns a rejected promise. - * - * Example usage: - * - * ```js - * const answer = await rl.question('What is your favorite food? '); - * console.log(`Oh, so your favorite food is ${answer}`); - * ``` - * - * Using an `AbortSignal` to cancel a question. - * - * ```js - * const signal = AbortSignal.timeout(10_000); - * - * signal.addEventListener('abort', () => { - * console.log('The food question timed out'); - * }, { once: true }); - * - * const answer = await rl.question('What is your favorite food? ', { signal }); - * console.log(`Oh, so your favorite food is ${answer}`); - * ``` - * @since v17.0.0 - * @param query A statement or query to write to `output`, prepended to the prompt. - * @return A promise that is fulfilled with the user's input in response to the `query`. - */ - question(query: string): Promise; - question(query: string, options: Abortable): Promise; - } - /** - * @since v17.0.0 - */ - class Readline { - /** - * @param stream A TTY stream. - */ - constructor( - stream: NodeJS.WritableStream, - options?: { - autoCommit?: boolean | undefined; - }, - ); - /** - * The `rl.clearLine()` method adds to the internal list of pending action an - * action that clears current line of the associated `stream` in a specified - * direction identified by `dir`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - clearLine(dir: Direction): this; - /** - * The `rl.clearScreenDown()` method adds to the internal list of pending action an - * action that clears the associated stream from the current position of the - * cursor down. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - clearScreenDown(): this; - /** - * The `rl.commit()` method sends all the pending actions to the associated `stream` and clears the internal list of pending actions. - * @since v17.0.0 - */ - commit(): Promise; - /** - * The `rl.cursorTo()` method adds to the internal list of pending action an action - * that moves cursor to the specified position in the associated `stream`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - cursorTo(x: number, y?: number): this; - /** - * The `rl.moveCursor()` method adds to the internal list of pending action an - * action that moves the cursor _relative_ to its current position in the - * associated `stream`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - moveCursor(dx: number, dy: number): this; - /** - * The `rl.rollback` methods clears the internal list of pending actions without - * sending it to the associated `stream`. - * @since v17.0.0 - * @return this - */ - rollback(): this; - } - type Completer = (line: string) => CompleterResult | Promise; - interface ReadLineOptions extends Omit<_ReadLineOptions, "completer"> { - /** - * An optional function used for Tab autocompletion. - */ - completer?: Completer | undefined; - } - /** - * The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance. - * - * ```js - * import readlinePromises from 'node:readline/promises'; - * const rl = readlinePromises.createInterface({ - * input: process.stdin, - * output: process.stdout, - * }); - * ``` - * - * Once the `readlinePromises.Interface` instance is created, the most common case - * is to listen for the `'line'` event: - * - * ```js - * rl.on('line', (line) => { - * console.log(`Received: ${line}`); - * }); - * ``` - * - * If `terminal` is `true` for this instance then the `output` stream will get - * the best compatibility if it defines an `output.columns` property and emits - * a `'resize'` event on the `output` if or when the columns ever change - * (`process.stdout` does this automatically when it is a TTY). - * @since v17.0.0 - */ - function createInterface( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer, - terminal?: boolean, - ): Interface; - function createInterface(options: ReadLineOptions): Interface; -} -declare module "node:readline/promises" { - export * from "readline/promises"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/repl.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/repl.d.ts deleted file mode 100644 index 8b1bb6b..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/repl.d.ts +++ /dev/null @@ -1,430 +0,0 @@ -/** - * The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation - * that is available both as a standalone program or includible in other - * applications. It can be accessed using: - * - * ```js - * import repl from 'node:repl'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/repl.js) - */ -declare module "repl" { - import { AsyncCompleter, Completer, Interface } from "node:readline"; - import { Context } from "node:vm"; - import { InspectOptions } from "node:util"; - interface ReplOptions { - /** - * The input prompt to display. - * @default "> " - */ - prompt?: string | undefined; - /** - * The `Readable` stream from which REPL input will be read. - * @default process.stdin - */ - input?: NodeJS.ReadableStream | undefined; - /** - * The `Writable` stream to which REPL output will be written. - * @default process.stdout - */ - output?: NodeJS.WritableStream | undefined; - /** - * If `true`, specifies that the output should be treated as a TTY terminal, and have - * ANSI/VT100 escape codes written to it. - * Default: checking the value of the `isTTY` property on the output stream upon - * instantiation. - */ - terminal?: boolean | undefined; - /** - * The function to be used when evaluating each given line of input. - * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can - * error with `repl.Recoverable` to indicate the input was incomplete and prompt for - * additional lines. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_default_evaluation - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_custom_evaluation_functions - */ - eval?: REPLEval | undefined; - /** - * Defines if the repl prints output previews or not. - * @default `true` Always `false` in case `terminal` is falsy. - */ - preview?: boolean | undefined; - /** - * If `true`, specifies that the default `writer` function should include ANSI color - * styling to REPL output. If a custom `writer` function is provided then this has no - * effect. - * @default the REPL instance's `terminal` value - */ - useColors?: boolean | undefined; - /** - * If `true`, specifies that the default evaluation function will use the JavaScript - * `global` as the context as opposed to creating a new separate context for the REPL - * instance. The node CLI REPL sets this value to `true`. - * @default false - */ - useGlobal?: boolean | undefined; - /** - * If `true`, specifies that the default writer will not output the return value of a - * command if it evaluates to `undefined`. - * @default false - */ - ignoreUndefined?: boolean | undefined; - /** - * The function to invoke to format the output of each command before writing to `output`. - * @default a wrapper for `util.inspect` - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_customizing_repl_output - */ - writer?: REPLWriter | undefined; - /** - * An optional function used for custom Tab auto completion. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/readline.html#readline_use_of_the_completer_function - */ - completer?: Completer | AsyncCompleter | undefined; - /** - * A flag that specifies whether the default evaluator executes all JavaScript commands in - * strict mode or default (sloppy) mode. - * Accepted values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined; - /** - * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is - * pressed. This cannot be used together with a custom `eval` function. - * @default false - */ - breakEvalOnSigint?: boolean | undefined; - } - type REPLEval = ( - this: REPLServer, - evalCmd: string, - context: Context, - file: string, - cb: (err: Error | null, result: any) => void, - ) => void; - type REPLWriter = (this: REPLServer, obj: any) => string; - /** - * This is the default "writer" value, if none is passed in the REPL options, - * and it can be overridden by custom print functions. - */ - const writer: REPLWriter & { - options: InspectOptions; - }; - type REPLCommandAction = (this: REPLServer, text: string) => void; - interface REPLCommand { - /** - * Help text to be displayed when `.help` is entered. - */ - help?: string | undefined; - /** - * The function to execute, optionally accepting a single string argument. - */ - action: REPLCommandAction; - } - /** - * Instances of `repl.REPLServer` are created using the {@link start} method - * or directly using the JavaScript `new` keyword. - * - * ```js - * import repl from 'node:repl'; - * - * const options = { useColors: true }; - * - * const firstInstance = repl.start(options); - * const secondInstance = new repl.REPLServer(options); - * ``` - * @since v0.1.91 - */ - class REPLServer extends Interface { - /** - * The `vm.Context` provided to the `eval` function to be used for JavaScript - * evaluation. - */ - readonly context: Context; - /** - * @deprecated since v14.3.0 - Use `input` instead. - */ - readonly inputStream: NodeJS.ReadableStream; - /** - * @deprecated since v14.3.0 - Use `output` instead. - */ - readonly outputStream: NodeJS.WritableStream; - /** - * The `Readable` stream from which REPL input will be read. - */ - readonly input: NodeJS.ReadableStream; - /** - * The `Writable` stream to which REPL output will be written. - */ - readonly output: NodeJS.WritableStream; - /** - * The commands registered via `replServer.defineCommand()`. - */ - readonly commands: NodeJS.ReadOnlyDict; - /** - * A value indicating whether the REPL is currently in "editor mode". - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_commands_and_special_keys - */ - readonly editorMode: boolean; - /** - * A value indicating whether the `_` variable has been assigned. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreAssigned: boolean; - /** - * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL). - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly last: any; - /** - * A value indicating whether the `_error` variable has been assigned. - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreErrAssigned: boolean; - /** - * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL). - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly lastError: any; - /** - * Specified in the REPL options, this is the function to be used when evaluating each - * given line of input. If not specified in the REPL options, this is an async wrapper - * for the JavaScript `eval()` function. - */ - readonly eval: REPLEval; - /** - * Specified in the REPL options, this is a value indicating whether the default - * `writer` function should include ANSI color styling to REPL output. - */ - readonly useColors: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `eval` - * function will use the JavaScript `global` as the context as opposed to creating a new - * separate context for the REPL instance. - */ - readonly useGlobal: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `writer` - * function should output the result of a command if it evaluates to `undefined`. - */ - readonly ignoreUndefined: boolean; - /** - * Specified in the REPL options, this is the function to invoke to format the output of - * each command before writing to `outputStream`. If not specified in the REPL options, - * this will be a wrapper for `util.inspect`. - */ - readonly writer: REPLWriter; - /** - * Specified in the REPL options, this is the function to use for custom Tab auto-completion. - */ - readonly completer: Completer | AsyncCompleter; - /** - * Specified in the REPL options, this is a flag that specifies whether the default `eval` - * function should execute all JavaScript commands in strict mode or default (sloppy) mode. - * Possible values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT; - /** - * NOTE: According to the documentation: - * - * > Instances of `repl.REPLServer` are created using the `repl.start()` method and - * > _should not_ be created directly using the JavaScript `new` keyword. - * - * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_class_replserver - */ - private constructor(); - /** - * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands - * to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following - * properties: - * - * The following example shows two new commands added to the REPL instance: - * - * ```js - * import repl from 'node:repl'; - * - * const replServer = repl.start({ prompt: '> ' }); - * replServer.defineCommand('sayhello', { - * help: 'Say hello', - * action(name) { - * this.clearBufferedCommand(); - * console.log(`Hello, ${name}!`); - * this.displayPrompt(); - * }, - * }); - * replServer.defineCommand('saybye', function saybye() { - * console.log('Goodbye!'); - * this.close(); - * }); - * ``` - * - * The new commands can then be used from within the REPL instance: - * - * ```console - * > .sayhello Node.js User - * Hello, Node.js User! - * > .saybye - * Goodbye! - * ``` - * @since v0.3.0 - * @param keyword The command keyword (_without_ a leading `.` character). - * @param cmd The function to invoke when the command is processed. - */ - defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; - /** - * The `replServer.displayPrompt()` method readies the REPL instance for input - * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input. - * - * When multi-line input is being entered, an ellipsis is printed rather than the - * 'prompt'. - * - * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`. - * - * The `replServer.displayPrompt` method is primarily intended to be called from - * within the action function for commands registered using the `replServer.defineCommand()` method. - * @since v0.1.91 - */ - displayPrompt(preserveCursor?: boolean): void; - /** - * The `replServer.clearBufferedCommand()` method clears any command that has been - * buffered but not yet executed. This method is primarily intended to be - * called from within the action function for commands registered using the `replServer.defineCommand()` method. - * @since v9.0.0 - */ - clearBufferedCommand(): void; - /** - * Initializes a history log file for the REPL instance. When executing the - * Node.js binary and using the command-line REPL, a history file is initialized - * by default. However, this is not the case when creating a REPL - * programmatically. Use this method to initialize a history log file when working - * with REPL instances programmatically. - * @since v11.10.0 - * @param historyPath the path to the history file - * @param callback called when history writes are ready or upon error - */ - setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void; - /** - * events.EventEmitter - * 1. close - inherited from `readline.Interface` - * 2. line - inherited from `readline.Interface` - * 3. pause - inherited from `readline.Interface` - * 4. resume - inherited from `readline.Interface` - * 5. SIGCONT - inherited from `readline.Interface` - * 6. SIGINT - inherited from `readline.Interface` - * 7. SIGTSTP - inherited from `readline.Interface` - * 8. exit - * 9. reset - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "line", listener: (input: string) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "SIGCONT", listener: () => void): this; - addListener(event: "SIGINT", listener: () => void): this; - addListener(event: "SIGTSTP", listener: () => void): this; - addListener(event: "exit", listener: () => void): this; - addListener(event: "reset", listener: (context: Context) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "line", input: string): boolean; - emit(event: "pause"): boolean; - emit(event: "resume"): boolean; - emit(event: "SIGCONT"): boolean; - emit(event: "SIGINT"): boolean; - emit(event: "SIGTSTP"): boolean; - emit(event: "exit"): boolean; - emit(event: "reset", context: Context): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "line", listener: (input: string) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "SIGCONT", listener: () => void): this; - on(event: "SIGINT", listener: () => void): this; - on(event: "SIGTSTP", listener: () => void): this; - on(event: "exit", listener: () => void): this; - on(event: "reset", listener: (context: Context) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "line", listener: (input: string) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "SIGCONT", listener: () => void): this; - once(event: "SIGINT", listener: () => void): this; - once(event: "SIGTSTP", listener: () => void): this; - once(event: "exit", listener: () => void): this; - once(event: "reset", listener: (context: Context) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "line", listener: (input: string) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "SIGCONT", listener: () => void): this; - prependListener(event: "SIGINT", listener: () => void): this; - prependListener(event: "SIGTSTP", listener: () => void): this; - prependListener(event: "exit", listener: () => void): this; - prependListener(event: "reset", listener: (context: Context) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "line", listener: (input: string) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "SIGCONT", listener: () => void): this; - prependOnceListener(event: "SIGINT", listener: () => void): this; - prependOnceListener(event: "SIGTSTP", listener: () => void): this; - prependOnceListener(event: "exit", listener: () => void): this; - prependOnceListener(event: "reset", listener: (context: Context) => void): this; - } - /** - * A flag passed in the REPL options. Evaluates expressions in sloppy mode. - */ - const REPL_MODE_SLOPPY: unique symbol; - /** - * A flag passed in the REPL options. Evaluates expressions in strict mode. - * This is equivalent to prefacing every repl statement with `'use strict'`. - */ - const REPL_MODE_STRICT: unique symbol; - /** - * The `repl.start()` method creates and starts a {@link REPLServer} instance. - * - * If `options` is a string, then it specifies the input prompt: - * - * ```js - * import repl from 'node:repl'; - * - * // a Unix style prompt - * repl.start('$ '); - * ``` - * @since v0.1.91 - */ - function start(options?: string | ReplOptions): REPLServer; - /** - * Indicates a recoverable error that a `REPLServer` can use to support multi-line input. - * - * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_recoverable_errors - */ - class Recoverable extends SyntaxError { - err: Error; - constructor(err: Error); - } -} -declare module "node:repl" { - export * from "repl"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/sea.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/sea.d.ts deleted file mode 100644 index 6f1d1ea..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/sea.d.ts +++ /dev/null @@ -1,153 +0,0 @@ -/** - * This feature allows the distribution of a Node.js application conveniently to a - * system that does not have Node.js installed. - * - * Node.js supports the creation of [single executable applications](https://github.com/nodejs/single-executable) by allowing - * the injection of a blob prepared by Node.js, which can contain a bundled script, - * into the `node` binary. During start up, the program checks if anything has been - * injected. If the blob is found, it executes the script in the blob. Otherwise - * Node.js operates as it normally does. - * - * The single executable application feature currently only supports running a - * single embedded script using the `CommonJS` module system. - * - * Users can create a single executable application from their bundled script - * with the `node` binary itself and any tool which can inject resources into the - * binary. - * - * Here are the steps for creating a single executable application using one such - * tool, [postject](https://github.com/nodejs/postject): - * - * 1. Create a JavaScript file: - * ```bash - * echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js - * ``` - * 2. Create a configuration file building a blob that can be injected into the - * single executable application (see `Generating single executable preparation blobs` for details): - * ```bash - * echo '{ "main": "hello.js", "output": "sea-prep.blob" }' > sea-config.json - * ``` - * 3. Generate the blob to be injected: - * ```bash - * node --experimental-sea-config sea-config.json - * ``` - * 4. Create a copy of the `node` executable and name it according to your needs: - * * On systems other than Windows: - * ```bash - * cp $(command -v node) hello - * ``` - * * On Windows: - * ```text - * node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')" - * ``` - * The `.exe` extension is necessary. - * 5. Remove the signature of the binary (macOS and Windows only): - * * On macOS: - * ```bash - * codesign --remove-signature hello - * ``` - * * On Windows (optional): - * [signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool) can be used from the installed [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/). - * If this step is - * skipped, ignore any signature-related warning from postject. - * ```powershell - * signtool remove /s hello.exe - * ``` - * 6. Inject the blob into the copied binary by running `postject` with - * the following options: - * * `hello` / `hello.exe` \- The name of the copy of the `node` executable - * created in step 4. - * * `NODE_SEA_BLOB` \- The name of the resource / note / section in the binary - * where the contents of the blob will be stored. - * * `sea-prep.blob` \- The name of the blob created in step 1. - * * `--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2` \- The [fuse](https://www.electronjs.org/docs/latest/tutorial/fuses) used by the Node.js project to detect if a file has been - * injected. - * * `--macho-segment-name NODE_SEA` (only needed on macOS) - The name of the - * segment in the binary where the contents of the blob will be - * stored. - * To summarize, here is the required command for each platform: - * * On Linux: - * ```bash - * npx postject hello NODE_SEA_BLOB sea-prep.blob \ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On Windows - PowerShell: - * ```powershell - * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ` - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On Windows - Command Prompt: - * ```text - * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On macOS: - * ```bash - * npx postject hello NODE_SEA_BLOB sea-prep.blob \ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ - * --macho-segment-name NODE_SEA - * ``` - * 7. Sign the binary (macOS and Windows only): - * * On macOS: - * ```bash - * codesign --sign - hello - * ``` - * * On Windows (optional): - * A certificate needs to be present for this to work. However, the unsigned - * binary would still be runnable. - * ```powershell - * signtool sign /fd SHA256 hello.exe - * ``` - * 8. Run the binary: - * * On systems other than Windows - * ```console - * $ ./hello world - * Hello, world! - * ``` - * * On Windows - * ```console - * $ .\hello.exe world - * Hello, world! - * ``` - * @since v19.7.0, v18.16.0 - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v20.12.0/src/node_sea.cc) - */ -declare module "node:sea" { - type AssetKey = string; - /** - * @since v20.12.0 - * @return Whether this script is running inside a single-executable application. - */ - function isSea(): boolean; - /** - * This method can be used to retrieve the assets configured to be bundled into the - * single-executable application at build time. - * An error is thrown when no matching asset can be found. - * @since v20.12.0 - */ - function getAsset(key: AssetKey): ArrayBuffer; - function getAsset(key: AssetKey, encoding: string): string; - /** - * Similar to `sea.getAsset()`, but returns the result in a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob). - * An error is thrown when no matching asset can be found. - * @since v20.12.0 - */ - function getAssetAsBlob(key: AssetKey, options?: { - type: string; - }): Blob; - /** - * This method can be used to retrieve the assets configured to be bundled into the - * single-executable application at build time. - * An error is thrown when no matching asset can be found. - * - * Unlike `sea.getRawAsset()` or `sea.getAssetAsBlob()`, this method does not - * return a copy. Instead, it returns the raw asset bundled inside the executable. - * - * For now, users should avoid writing to the returned array buffer. If the - * injected section is not marked as writable or not aligned properly, - * writes to the returned array buffer is likely to result in a crash. - * @since v20.12.0 - */ - function getRawAsset(key: AssetKey): string | ArrayBuffer; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream.d.ts deleted file mode 100644 index 9d13d1b..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream.d.ts +++ /dev/null @@ -1,1675 +0,0 @@ -/** - * A stream is an abstract interface for working with streaming data in Node.js. - * The `node:stream` module provides an API for implementing the stream interface. - * - * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v20.x/api/http.html#class-httpincomingmessage) - * and [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) are both stream instances. - * - * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v20.x/api/events.html#class-eventemitter). - * - * To access the `node:stream` module: - * - * ```js - * import stream from 'node:stream'; - * ``` - * - * The `node:stream` module is useful for creating new types of stream instances. - * It is usually not necessary to use the `node:stream` module to consume streams. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/stream.js) - */ -declare module "stream" { - import { Abortable, EventEmitter } from "node:events"; - import { Blob as NodeBlob } from "node:buffer"; - import * as streamPromises from "node:stream/promises"; - import * as streamWeb from "node:stream/web"; - - type ComposeFnParam = (source: any) => void; - - class Stream extends EventEmitter { - pipe( - destination: T, - options?: { - end?: boolean | undefined; - }, - ): T; - compose( - stream: T | ComposeFnParam | Iterable | AsyncIterable, - options?: { signal: AbortSignal }, - ): T; - } - namespace Stream { - export { Stream, streamPromises as promises }; - } - namespace Stream { - interface StreamOptions extends Abortable { - emitClose?: boolean | undefined; - highWaterMark?: number | undefined; - objectMode?: boolean | undefined; - construct?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; - destroy?: ((this: T, error: Error | null, callback: (error?: Error | null) => void) => void) | undefined; - autoDestroy?: boolean | undefined; - } - interface ReadableOptions extends StreamOptions { - encoding?: BufferEncoding | undefined; - read?: ((this: T, size: number) => void) | undefined; - } - interface ArrayOptions { - /** - * The maximum concurrent invocations of `fn` to call on the stream at once. - * @default 1 - */ - concurrency?: number | undefined; - /** Allows destroying the stream if the signal is aborted. */ - signal?: AbortSignal | undefined; - } - /** - * @since v0.9.4 - */ - class Readable extends Stream implements NodeJS.ReadableStream { - /** - * A utility method for creating Readable Streams out of iterators. - * @since v12.3.0, v10.17.0 - * @param iterable Object implementing the `Symbol.asyncIterator` or `Symbol.iterator` iterable protocol. Emits an 'error' event if a null value is passed. - * @param options Options provided to `new stream.Readable([options])`. By default, `Readable.from()` will set `options.objectMode` to `true`, unless this is explicitly opted out by setting `options.objectMode` to `false`. - */ - static from(iterable: Iterable | AsyncIterable, options?: ReadableOptions): Readable; - /** - * A utility method for creating a `Readable` from a web `ReadableStream`. - * @since v17.0.0 - * @experimental - */ - static fromWeb( - readableStream: streamWeb.ReadableStream, - options?: Pick, - ): Readable; - /** - * A utility method for creating a web `ReadableStream` from a `Readable`. - * @since v17.0.0 - * @experimental - */ - static toWeb( - streamReadable: Readable, - options?: { - strategy?: streamWeb.QueuingStrategy | undefined; - }, - ): streamWeb.ReadableStream; - /** - * Returns whether the stream has been read from or cancelled. - * @since v16.8.0 - */ - static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean; - /** - * Returns whether the stream was destroyed or errored before emitting `'end'`. - * @since v16.8.0 - * @experimental - */ - readonly readableAborted: boolean; - /** - * Is `true` if it is safe to call {@link read}, which means - * the stream has not been destroyed or emitted `'error'` or `'end'`. - * @since v11.4.0 - */ - readable: boolean; - /** - * Returns whether `'data'` has been emitted. - * @since v16.7.0, v14.18.0 - * @experimental - */ - readonly readableDidRead: boolean; - /** - * Getter for the property `encoding` of a given `Readable` stream. The `encoding` property can be set using the {@link setEncoding} method. - * @since v12.7.0 - */ - readonly readableEncoding: BufferEncoding | null; - /** - * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v20.x/api/stream.html#event-end) event is emitted. - * @since v12.9.0 - */ - readonly readableEnded: boolean; - /** - * This property reflects the current state of a `Readable` stream as described - * in the [Three states](https://nodejs.org/docs/latest-v20.x/api/stream.html#three-states) section. - * @since v9.4.0 - */ - readonly readableFlowing: boolean | null; - /** - * Returns the value of `highWaterMark` passed when creating this `Readable`. - * @since v9.3.0 - */ - readonly readableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be read. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly readableLength: number; - /** - * Getter for the property `objectMode` of a given `Readable` stream. - * @since v12.3.0 - */ - readonly readableObjectMode: boolean; - /** - * Is `true` after `readable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - /** - * Is `true` after `'close'` has been emitted. - * @since v18.0.0 - */ - readonly closed: boolean; - /** - * Returns error if the stream has been destroyed with an error. - * @since v18.0.0 - */ - readonly errored: Error | null; - constructor(opts?: ReadableOptions); - _construct?(callback: (error?: Error | null) => void): void; - _read(size: number): void; - /** - * The `readable.read()` method reads data out of the internal buffer and - * returns it. If no data is available to be read, `null` is returned. By default, - * the data is returned as a `Buffer` object unless an encoding has been - * specified using the `readable.setEncoding()` method or the stream is operating - * in object mode. - * - * The optional `size` argument specifies a specific number of bytes to read. If - * `size` bytes are not available to be read, `null` will be returned _unless_ the - * stream has ended, in which case all of the data remaining in the internal buffer - * will be returned. - * - * If the `size` argument is not specified, all of the data contained in the - * internal buffer will be returned. - * - * The `size` argument must be less than or equal to 1 GiB. - * - * The `readable.read()` method should only be called on `Readable` streams - * operating in paused mode. In flowing mode, `readable.read()` is called - * automatically until the internal buffer is fully drained. - * - * ```js - * const readable = getReadableStreamSomehow(); - * - * // 'readable' may be triggered multiple times as data is buffered in - * readable.on('readable', () => { - * let chunk; - * console.log('Stream is readable (new data received in buffer)'); - * // Use a loop to make sure we read all currently available data - * while (null !== (chunk = readable.read())) { - * console.log(`Read ${chunk.length} bytes of data...`); - * } - * }); - * - * // 'end' will be triggered once when there is no more data available - * readable.on('end', () => { - * console.log('Reached end of stream.'); - * }); - * ``` - * - * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks - * are not concatenated. A `while` loop is necessary to consume all data - * currently in the buffer. When reading a large file `.read()` may return `null`, - * having consumed all buffered content so far, but there is still more data to - * come not yet buffered. In this case a new `'readable'` event will be emitted - * when there is more data in the buffer. Finally the `'end'` event will be - * emitted when there is no more data to come. - * - * Therefore to read a file's whole contents from a `readable`, it is necessary - * to collect chunks across multiple `'readable'` events: - * - * ```js - * const chunks = []; - * - * readable.on('readable', () => { - * let chunk; - * while (null !== (chunk = readable.read())) { - * chunks.push(chunk); - * } - * }); - * - * readable.on('end', () => { - * const content = chunks.join(''); - * }); - * ``` - * - * A `Readable` stream in object mode will always return a single item from - * a call to `readable.read(size)`, regardless of the value of the `size` argument. - * - * If the `readable.read()` method returns a chunk of data, a `'data'` event will - * also be emitted. - * - * Calling {@link read} after the `'end'` event has - * been emitted will return `null`. No runtime error will be raised. - * @since v0.9.4 - * @param size Optional argument to specify how much data to read. - */ - read(size?: number): any; - /** - * The `readable.setEncoding()` method sets the character encoding for - * data read from the `Readable` stream. - * - * By default, no encoding is assigned and stream data will be returned as `Buffer` objects. Setting an encoding causes the stream data - * to be returned as strings of the specified encoding rather than as `Buffer` objects. For instance, calling `readable.setEncoding('utf8')` will cause the - * output data to be interpreted as UTF-8 data, and passed as strings. Calling `readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal - * string format. - * - * The `Readable` stream will properly handle multi-byte characters delivered - * through the stream that would otherwise become improperly decoded if simply - * pulled from the stream as `Buffer` objects. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.setEncoding('utf8'); - * readable.on('data', (chunk) => { - * assert.equal(typeof chunk, 'string'); - * console.log('Got %d characters of string data:', chunk.length); - * }); - * ``` - * @since v0.9.4 - * @param encoding The encoding to use. - */ - setEncoding(encoding: BufferEncoding): this; - /** - * The `readable.pause()` method will cause a stream in flowing mode to stop - * emitting `'data'` events, switching out of flowing mode. Any data that - * becomes available will remain in the internal buffer. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.on('data', (chunk) => { - * console.log(`Received ${chunk.length} bytes of data.`); - * readable.pause(); - * console.log('There will be no additional data for 1 second.'); - * setTimeout(() => { - * console.log('Now data will start flowing again.'); - * readable.resume(); - * }, 1000); - * }); - * ``` - * - * The `readable.pause()` method has no effect if there is a `'readable'` event listener. - * @since v0.9.4 - */ - pause(): this; - /** - * The `readable.resume()` method causes an explicitly paused `Readable` stream to - * resume emitting `'data'` events, switching the stream into flowing mode. - * - * The `readable.resume()` method can be used to fully consume the data from a - * stream without actually processing any of that data: - * - * ```js - * getReadableStreamSomehow() - * .resume() - * .on('end', () => { - * console.log('Reached the end, but did not read anything.'); - * }); - * ``` - * - * The `readable.resume()` method has no effect if there is a `'readable'` event listener. - * @since v0.9.4 - */ - resume(): this; - /** - * The `readable.isPaused()` method returns the current operating state of the `Readable`. - * This is used primarily by the mechanism that underlies the `readable.pipe()` method. - * In most typical cases, there will be no reason to use this method directly. - * - * ```js - * const readable = new stream.Readable(); - * - * readable.isPaused(); // === false - * readable.pause(); - * readable.isPaused(); // === true - * readable.resume(); - * readable.isPaused(); // === false - * ``` - * @since v0.11.14 - */ - isPaused(): boolean; - /** - * The `readable.unpipe()` method detaches a `Writable` stream previously attached - * using the {@link pipe} method. - * - * If the `destination` is not specified, then _all_ pipes are detached. - * - * If the `destination` is specified, but no pipe is set up for it, then - * the method does nothing. - * - * ```js - * import fs from 'node:fs'; - * const readable = getReadableStreamSomehow(); - * const writable = fs.createWriteStream('file.txt'); - * // All the data from readable goes into 'file.txt', - * // but only for the first second. - * readable.pipe(writable); - * setTimeout(() => { - * console.log('Stop writing to file.txt.'); - * readable.unpipe(writable); - * console.log('Manually close the file stream.'); - * writable.end(); - * }, 1000); - * ``` - * @since v0.9.4 - * @param destination Optional specific stream to unpipe - */ - unpipe(destination?: NodeJS.WritableStream): this; - /** - * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the - * same as `readable.push(null)`, after which no more data can be written. The EOF - * signal is put at the end of the buffer and any buffered data will still be - * flushed. - * - * The `readable.unshift()` method pushes a chunk of data back into the internal - * buffer. This is useful in certain situations where a stream is being consumed by - * code that needs to "un-consume" some amount of data that it has optimistically - * pulled out of the source, so that the data can be passed on to some other party. - * - * The `stream.unshift(chunk)` method cannot be called after the `'end'` event - * has been emitted or a runtime error will be thrown. - * - * Developers using `stream.unshift()` often should consider switching to - * use of a `Transform` stream instead. See the `API for stream implementers` section for more information. - * - * ```js - * // Pull off a header delimited by \n\n. - * // Use unshift() if we get too much. - * // Call the callback with (error, header, stream). - * import { StringDecoder } from 'node:string_decoder'; - * function parseHeader(stream, callback) { - * stream.on('error', callback); - * stream.on('readable', onReadable); - * const decoder = new StringDecoder('utf8'); - * let header = ''; - * function onReadable() { - * let chunk; - * while (null !== (chunk = stream.read())) { - * const str = decoder.write(chunk); - * if (str.includes('\n\n')) { - * // Found the header boundary. - * const split = str.split(/\n\n/); - * header += split.shift(); - * const remaining = split.join('\n\n'); - * const buf = Buffer.from(remaining, 'utf8'); - * stream.removeListener('error', callback); - * // Remove the 'readable' listener before unshifting. - * stream.removeListener('readable', onReadable); - * if (buf.length) - * stream.unshift(buf); - * // Now the body of the message can be read from the stream. - * callback(null, header, stream); - * return; - * } - * // Still reading the header. - * header += str; - * } - * } - * } - * ``` - * - * Unlike {@link push}, `stream.unshift(chunk)` will not - * end the reading process by resetting the internal reading state of the stream. - * This can cause unexpected results if `readable.unshift()` is called during a - * read (i.e. from within a {@link _read} implementation on a - * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately, - * however it is best to simply avoid calling `readable.unshift()` while in the - * process of performing a read. - * @since v0.9.11 - * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must - * be a {string}, {Buffer}, {TypedArray}, {DataView} or `null`. For object mode streams, `chunk` may be any JavaScript value. - * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`. - */ - unshift(chunk: any, encoding?: BufferEncoding): void; - /** - * Prior to Node.js 0.10, streams did not implement the entire `node:stream` module API as it is currently defined. (See `Compatibility` for more - * information.) - * - * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the `readable.wrap()` method can be used to create a `Readable` - * stream that uses - * the old stream as its data source. - * - * It will rarely be necessary to use `readable.wrap()` but the method has been - * provided as a convenience for interacting with older Node.js applications and - * libraries. - * - * ```js - * import { OldReader } from './old-api-module.js'; - * import { Readable } from 'node:stream'; - * const oreader = new OldReader(); - * const myReader = new Readable().wrap(oreader); - * - * myReader.on('readable', () => { - * myReader.read(); // etc. - * }); - * ``` - * @since v0.9.4 - * @param stream An "old style" readable stream - */ - wrap(stream: NodeJS.ReadableStream): this; - push(chunk: any, encoding?: BufferEncoding): boolean; - /** - * The iterator created by this method gives users the option to cancel the destruction - * of the stream if the `for await...of` loop is exited by `return`, `break`, or `throw`, - * or if the iterator should destroy the stream if the stream emitted an error during iteration. - * @since v16.3.0 - * @param options.destroyOnReturn When set to `false`, calling `return` on the async iterator, - * or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream. - * **Default: `true`**. - */ - iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator; - /** - * This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream. - * If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream. - * @since v17.4.0, v16.14.0 - * @param fn a function to map over every chunk in the stream. Async or not. - * @returns a stream mapped with the function *fn*. - */ - map(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; - /** - * This method allows filtering the stream. For each chunk in the stream the *fn* function will be called - * and if it returns a truthy value, the chunk will be passed to the result stream. - * If the *fn* function returns a promise - that promise will be `await`ed. - * @since v17.4.0, v16.14.0 - * @param fn a function to filter chunks from the stream. Async or not. - * @returns a stream filtered with the predicate *fn*. - */ - filter( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Readable; - /** - * This method allows iterating a stream. For each chunk in the stream the *fn* function will be called. - * If the *fn* function returns a promise - that promise will be `await`ed. - * - * This method is different from `for await...of` loops in that it can optionally process chunks concurrently. - * In addition, a `forEach` iteration can only be stopped by having passed a `signal` option - * and aborting the related AbortController while `for await...of` can be stopped with `break` or `return`. - * In either case the stream will be destroyed. - * - * This method is different from listening to the `'data'` event in that it uses the `readable` event - * in the underlying machinary and can limit the number of concurrent *fn* calls. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise for when the stream has finished. - */ - forEach( - fn: (data: any, options?: Pick) => void | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method allows easily obtaining the contents of a stream. - * - * As this method reads the entire stream into memory, it negates the benefits of streams. It's intended - * for interoperability and convenience, not as the primary way to consume streams. - * @since v17.5.0 - * @returns a promise containing an array with the contents of the stream. - */ - toArray(options?: Pick): Promise; - /** - * This method is similar to `Array.prototype.some` and calls *fn* on each chunk in the stream - * until the awaited return value is `true` (or any truthy value). Once an *fn* call on a chunk - * `await`ed return value is truthy, the stream is destroyed and the promise is fulfilled with `true`. - * If none of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `false`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to `true` if *fn* returned a truthy value for at least one of the chunks. - */ - some( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method is similar to `Array.prototype.find` and calls *fn* on each chunk in the stream - * to find a chunk with a truthy value for *fn*. Once an *fn* call's awaited return value is truthy, - * the stream is destroyed and the promise is fulfilled with value for which *fn* returned a truthy value. - * If all of the *fn* calls on the chunks return a falsy value, the promise is fulfilled with `undefined`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to the first chunk for which *fn* evaluated with a truthy value, - * or `undefined` if no element was found. - */ - find( - fn: (data: any, options?: Pick) => data is T, - options?: ArrayOptions, - ): Promise; - find( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method is similar to `Array.prototype.every` and calls *fn* on each chunk in the stream - * to check if all awaited return values are truthy value for *fn*. Once an *fn* call on a chunk - * `await`ed return value is falsy, the stream is destroyed and the promise is fulfilled with `false`. - * If all of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `true`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to `true` if *fn* returned a truthy value for every one of the chunks. - */ - every( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method returns a new stream by applying the given callback to each chunk of the stream - * and then flattening the result. - * - * It is possible to return a stream or another iterable or async iterable from *fn* and the result streams - * will be merged (flattened) into the returned stream. - * @since v17.5.0 - * @param fn a function to map over every chunk in the stream. May be async. May be a stream or generator. - * @returns a stream flat-mapped with the function *fn*. - */ - flatMap(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; - /** - * This method returns a new stream with the first *limit* chunks dropped from the start. - * @since v17.5.0 - * @param limit the number of chunks to drop from the readable. - * @returns a stream with *limit* chunks dropped from the start. - */ - drop(limit: number, options?: Pick): Readable; - /** - * This method returns a new stream with the first *limit* chunks. - * @since v17.5.0 - * @param limit the number of chunks to take from the readable. - * @returns a stream with *limit* chunks taken. - */ - take(limit: number, options?: Pick): Readable; - /** - * This method returns a new stream with chunks of the underlying stream paired with a counter - * in the form `[index, chunk]`. The first index value is `0` and it increases by 1 for each chunk produced. - * @since v17.5.0 - * @returns a stream of indexed pairs. - */ - asIndexedPairs(options?: Pick): Readable; - /** - * This method calls *fn* on each chunk of the stream in order, passing it the result from the calculation - * on the previous element. It returns a promise for the final value of the reduction. - * - * If no *initial* value is supplied the first chunk of the stream is used as the initial value. - * If the stream is empty, the promise is rejected with a `TypeError` with the `ERR_INVALID_ARGS` code property. - * - * The reducer function iterates the stream element-by-element which means that there is no *concurrency* parameter - * or parallelism. To perform a reduce concurrently, you can extract the async function to `readable.map` method. - * @since v17.5.0 - * @param fn a reducer function to call over every chunk in the stream. Async or not. - * @param initial the initial value to use in the reduction. - * @returns a promise for the final value of the reduction. - */ - reduce( - fn: (previous: any, data: any, options?: Pick) => T, - initial?: undefined, - options?: Pick, - ): Promise; - reduce( - fn: (previous: T, data: any, options?: Pick) => T, - initial: T, - options?: Pick, - ): Promise; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the readable - * stream will release any internal resources and subsequent calls to `push()` will be ignored. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, but instead implement `readable._destroy()`. - * @since v8.0.0 - * @param error Error which will be passed as payload in `'error'` event - */ - destroy(error?: Error): this; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. data - * 3. end - * 4. error - * 5. pause - * 6. readable - * 7. resume - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: any) => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "data", chunk: any): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "pause"): boolean; - emit(event: "readable"): boolean; - emit(event: "resume"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: any) => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "readable", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: any) => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "readable", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: any) => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: any) => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "data", listener: (chunk: any) => void): this; - removeListener(event: "end", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "pause", listener: () => void): this; - removeListener(event: "readable", listener: () => void): this; - removeListener(event: "resume", listener: () => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - /** - * Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished. - * @since v20.4.0 - */ - [Symbol.asyncDispose](): Promise; - } - interface WritableOptions extends StreamOptions { - decodeStrings?: boolean | undefined; - defaultEncoding?: BufferEncoding | undefined; - write?: - | (( - this: T, - chunk: any, - encoding: BufferEncoding, - callback: (error?: Error | null) => void, - ) => void) - | undefined; - writev?: - | (( - this: T, - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void, - ) => void) - | undefined; - final?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; - } - /** - * @since v0.9.4 - */ - class Writable extends Stream implements NodeJS.WritableStream { - /** - * A utility method for creating a `Writable` from a web `WritableStream`. - * @since v17.0.0 - * @experimental - */ - static fromWeb( - writableStream: streamWeb.WritableStream, - options?: Pick, - ): Writable; - /** - * A utility method for creating a web `WritableStream` from a `Writable`. - * @since v17.0.0 - * @experimental - */ - static toWeb(streamWritable: Writable): streamWeb.WritableStream; - /** - * Is `true` if it is safe to call `writable.write()`, which means - * the stream has not been destroyed, errored, or ended. - * @since v11.4.0 - */ - readonly writable: boolean; - /** - * Returns whether the stream was destroyed or errored before emitting `'finish'`. - * @since v18.0.0, v16.17.0 - * @experimental - */ - readonly writableAborted: boolean; - /** - * Is `true` after `writable.end()` has been called. This property - * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead. - * @since v12.9.0 - */ - readonly writableEnded: boolean; - /** - * Is set to `true` immediately before the `'finish'` event is emitted. - * @since v12.6.0 - */ - readonly writableFinished: boolean; - /** - * Return the value of `highWaterMark` passed when creating this `Writable`. - * @since v9.3.0 - */ - readonly writableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be written. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly writableLength: number; - /** - * Getter for the property `objectMode` of a given `Writable` stream. - * @since v12.3.0 - */ - readonly writableObjectMode: boolean; - /** - * Number of times `writable.uncork()` needs to be - * called in order to fully uncork the stream. - * @since v13.2.0, v12.16.0 - */ - readonly writableCorked: number; - /** - * Is `true` after `writable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - /** - * Is `true` after `'close'` has been emitted. - * @since v18.0.0 - */ - readonly closed: boolean; - /** - * Returns error if the stream has been destroyed with an error. - * @since v18.0.0 - */ - readonly errored: Error | null; - /** - * Is `true` if the stream's buffer has been full and stream will emit `'drain'`. - * @since v15.2.0, v14.17.0 - */ - readonly writableNeedDrain: boolean; - constructor(opts?: WritableOptions); - _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - _writev?( - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void, - ): void; - _construct?(callback: (error?: Error | null) => void): void; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - _final(callback: (error?: Error | null) => void): void; - /** - * The `writable.write()` method writes some data to the stream, and calls the - * supplied `callback` once the data has been fully handled. If an error - * occurs, the `callback` will be called with the error as its - * first argument. The `callback` is called asynchronously and before `'error'` is - * emitted. - * - * The return value is `true` if the internal buffer is less than the `highWaterMark` configured when the stream was created after admitting `chunk`. - * If `false` is returned, further attempts to write data to the stream should - * stop until the `'drain'` event is emitted. - * - * While a stream is not draining, calls to `write()` will buffer `chunk`, and - * return false. Once all currently buffered chunks are drained (accepted for - * delivery by the operating system), the `'drain'` event will be emitted. - * Once `write()` returns false, do not write more chunks - * until the `'drain'` event is emitted. While calling `write()` on a stream that - * is not draining is allowed, Node.js will buffer all written chunks until - * maximum memory usage occurs, at which point it will abort unconditionally. - * Even before it aborts, high memory usage will cause poor garbage collector - * performance and high RSS (which is not typically released back to the system, - * even after the memory is no longer required). Since TCP sockets may never - * drain if the remote peer does not read the data, writing a socket that is - * not draining may lead to a remotely exploitable vulnerability. - * - * Writing data while the stream is not draining is particularly - * problematic for a `Transform`, because the `Transform` streams are paused - * by default until they are piped or a `'data'` or `'readable'` event handler - * is added. - * - * If the data to be written can be generated or fetched on demand, it is - * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is - * possible to respect backpressure and avoid memory issues using the `'drain'` event: - * - * ```js - * function write(data, cb) { - * if (!stream.write(data)) { - * stream.once('drain', cb); - * } else { - * process.nextTick(cb); - * } - * } - * - * // Wait for cb to be called before doing any other write. - * write('hello', () => { - * console.log('Write completed, do more writes now.'); - * }); - * ``` - * - * A `Writable` stream in object mode will always ignore the `encoding` argument. - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, - * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. - * @param [encoding='utf8'] The encoding, if `chunk` is a string. - * @param callback Callback for when this chunk of data is flushed. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean; - write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean; - /** - * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream. - * @since v0.11.15 - * @param encoding The new default encoding - */ - setDefaultEncoding(encoding: BufferEncoding): this; - /** - * Calling the `writable.end()` method signals that no more data will be written - * to the `Writable`. The optional `chunk` and `encoding` arguments allow one - * final additional chunk of data to be written immediately before closing the - * stream. - * - * Calling the {@link write} method after calling {@link end} will raise an error. - * - * ```js - * // Write 'hello, ' and then end with 'world!'. - * import fs from 'node:fs'; - * const file = fs.createWriteStream('example.txt'); - * file.write('hello, '); - * file.end('world!'); - * // Writing more now is not allowed! - * ``` - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, - * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. - * @param encoding The encoding if `chunk` is a string - * @param callback Callback for when the stream is finished. - */ - end(cb?: () => void): this; - end(chunk: any, cb?: () => void): this; - end(chunk: any, encoding: BufferEncoding, cb?: () => void): this; - /** - * The `writable.cork()` method forces all written data to be buffered in memory. - * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called. - * - * The primary intent of `writable.cork()` is to accommodate a situation in which - * several small chunks are written to the stream in rapid succession. Instead of - * immediately forwarding them to the underlying destination, `writable.cork()` buffers all the chunks until `writable.uncork()` is called, which will pass them - * all to `writable._writev()`, if present. This prevents a head-of-line blocking - * situation where data is being buffered while waiting for the first small chunk - * to be processed. However, use of `writable.cork()` without implementing `writable._writev()` may have an adverse effect on throughput. - * - * See also: `writable.uncork()`, `writable._writev()`. - * @since v0.11.2 - */ - cork(): void; - /** - * The `writable.uncork()` method flushes all data buffered since {@link cork} was called. - * - * When using `writable.cork()` and `writable.uncork()` to manage the buffering - * of writes to a stream, defer calls to `writable.uncork()` using `process.nextTick()`. Doing so allows batching of all `writable.write()` calls that occur within a given Node.js event - * loop phase. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.write('data '); - * process.nextTick(() => stream.uncork()); - * ``` - * - * If the `writable.cork()` method is called multiple times on a stream, the - * same number of calls to `writable.uncork()` must be called to flush the buffered - * data. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.cork(); - * stream.write('data '); - * process.nextTick(() => { - * stream.uncork(); - * // The data will not be flushed until uncork() is called a second time. - * stream.uncork(); - * }); - * ``` - * - * See also: `writable.cork()`. - * @since v0.11.2 - */ - uncork(): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the writable - * stream has ended and subsequent calls to `write()` or `end()` will result in - * an `ERR_STREAM_DESTROYED` error. - * This is a destructive and immediate way to destroy a stream. Previous calls to `write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error. - * Use `end()` instead of destroy if data should flush before close, or wait for - * the `'drain'` event before destroying the stream. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, - * but instead implement `writable._destroy()`. - * @since v8.0.0 - * @param error Optional, an error to emit with `'error'` event. - */ - destroy(error?: Error): this; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. drain - * 3. error - * 4. finish - * 5. pipe - * 6. unpipe - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: Readable) => void): this; - addListener(event: "unpipe", listener: (src: Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "drain"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pipe", src: Readable): boolean; - emit(event: "unpipe", src: Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: Readable) => void): this; - on(event: "unpipe", listener: (src: Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: Readable) => void): this; - once(event: "unpipe", listener: (src: Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: Readable) => void): this; - prependListener(event: "unpipe", listener: (src: Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "drain", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "finish", listener: () => void): this; - removeListener(event: "pipe", listener: (src: Readable) => void): this; - removeListener(event: "unpipe", listener: (src: Readable) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface DuplexOptions extends ReadableOptions, WritableOptions { - allowHalfOpen?: boolean | undefined; - readableObjectMode?: boolean | undefined; - writableObjectMode?: boolean | undefined; - readableHighWaterMark?: number | undefined; - writableHighWaterMark?: number | undefined; - writableCorked?: number | undefined; - } - /** - * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Duplex` streams include: - * - * * `TCP sockets` - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Duplex extends Stream implements NodeJS.ReadWriteStream { - /** - * If `false` then the stream will automatically end the writable side when the - * readable side ends. Set initially by the `allowHalfOpen` constructor option, - * which defaults to `true`. - * - * This can be changed manually to change the half-open behavior of an existing - * `Duplex` stream instance, but must be changed before the `'end'` event is emitted. - * @since v0.9.4 - */ - allowHalfOpen: boolean; - constructor(opts?: DuplexOptions); - /** - * A utility method for creating duplex streams. - * - * - `Stream` converts writable stream into writable `Duplex` and readable stream - * to `Duplex`. - * - `Blob` converts into readable `Duplex`. - * - `string` converts into readable `Duplex`. - * - `ArrayBuffer` converts into readable `Duplex`. - * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`. - * - `AsyncGeneratorFunction` converts into a readable/writable transform - * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield - * `null`. - * - `AsyncFunction` converts into a writable `Duplex`. Must return - * either `null` or `undefined` - * - `Object ({ writable, readable })` converts `readable` and - * `writable` into `Stream` and then combines them into `Duplex` where the - * `Duplex` will write to the `writable` and read from the `readable`. - * - `Promise` converts into readable `Duplex`. Value `null` is ignored. - * - * @since v16.8.0 - */ - static from( - src: - | Stream - | NodeBlob - | ArrayBuffer - | string - | Iterable - | AsyncIterable - | AsyncGeneratorFunction - | Promise - | Object, - ): Duplex; - /** - * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`. - * @since v17.0.0 - * @experimental - */ - static toWeb(streamDuplex: Duplex): { - readable: streamWeb.ReadableStream; - writable: streamWeb.WritableStream; - }; - /** - * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`. - * @since v17.0.0 - * @experimental - */ - static fromWeb( - duplexStream: { - readable: streamWeb.ReadableStream; - writable: streamWeb.WritableStream; - }, - options?: Pick< - DuplexOptions, - "allowHalfOpen" | "decodeStrings" | "encoding" | "highWaterMark" | "objectMode" | "signal" - >, - ): Duplex; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. data - * 3. drain - * 4. end - * 5. error - * 6. finish - * 7. pause - * 8. pipe - * 9. readable - * 10. resume - * 11. unpipe - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: any) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "pipe", listener: (src: Readable) => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "unpipe", listener: (src: Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "data", chunk: any): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pause"): boolean; - emit(event: "pipe", src: Readable): boolean; - emit(event: "readable"): boolean; - emit(event: "resume"): boolean; - emit(event: "unpipe", src: Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: any) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pause", listener: () => void): this; - on(event: "pipe", listener: (src: Readable) => void): this; - on(event: "readable", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "unpipe", listener: (src: Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: any) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pause", listener: () => void): this; - once(event: "pipe", listener: (src: Readable) => void): this; - once(event: "readable", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "unpipe", listener: (src: Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: any) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "pipe", listener: (src: Readable) => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "unpipe", listener: (src: Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: any) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "data", listener: (chunk: any) => void): this; - removeListener(event: "drain", listener: () => void): this; - removeListener(event: "end", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "finish", listener: () => void): this; - removeListener(event: "pause", listener: () => void): this; - removeListener(event: "pipe", listener: (src: Readable) => void): this; - removeListener(event: "readable", listener: () => void): this; - removeListener(event: "resume", listener: () => void): this; - removeListener(event: "unpipe", listener: (src: Readable) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface Duplex extends Readable, Writable {} - /** - * The utility function `duplexPair` returns an Array with two items, - * each being a `Duplex` stream connected to the other side: - * - * ```js - * const [ sideA, sideB ] = duplexPair(); - * ``` - * - * Whatever is written to one stream is made readable on the other. It provides - * behavior analogous to a network connection, where the data written by the client - * becomes readable by the server, and vice-versa. - * - * The Duplex streams are symmetrical; one or the other may be used without any - * difference in behavior. - * @param options A value to pass to both {@link Duplex} constructors, - * to set options such as buffering. - * @since v20.17.0 - */ - function duplexPair(options?: DuplexOptions): [Duplex, Duplex]; - type TransformCallback = (error?: Error | null, data?: any) => void; - interface TransformOptions extends DuplexOptions { - transform?: - | ((this: T, chunk: any, encoding: BufferEncoding, callback: TransformCallback) => void) - | undefined; - flush?: ((this: T, callback: TransformCallback) => void) | undefined; - } - /** - * Transform streams are `Duplex` streams where the output is in some way - * related to the input. Like all `Duplex` streams, `Transform` streams - * implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Transform` streams include: - * - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Transform extends Duplex { - constructor(opts?: TransformOptions); - _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; - _flush(callback: TransformCallback): void; - } - /** - * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is - * primarily for examples and testing, but there are some use cases where `stream.PassThrough` is useful as a building block for novel sorts of streams. - */ - class PassThrough extends Transform {} - /** - * A stream to attach a signal to. - * - * Attaches an AbortSignal to a readable or writeable stream. This lets code - * control stream destruction using an `AbortController`. - * - * Calling `abort` on the `AbortController` corresponding to the passed `AbortSignal` will behave the same way as calling `.destroy(new AbortError())` on the - * stream, and `controller.error(new AbortError())` for webstreams. - * - * ```js - * import fs from 'node:fs'; - * - * const controller = new AbortController(); - * const read = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')), - * ); - * // Later, abort the operation closing the stream - * controller.abort(); - * ``` - * - * Or using an `AbortSignal` with a readable stream as an async iterable: - * - * ```js - * const controller = new AbortController(); - * setTimeout(() => controller.abort(), 10_000); // set a timeout - * const stream = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')), - * ); - * (async () => { - * try { - * for await (const chunk of stream) { - * await process(chunk); - * } - * } catch (e) { - * if (e.name === 'AbortError') { - * // The operation was cancelled - * } else { - * throw e; - * } - * } - * })(); - * ``` - * - * Or using an `AbortSignal` with a ReadableStream: - * - * ```js - * const controller = new AbortController(); - * const rs = new ReadableStream({ - * start(controller) { - * controller.enqueue('hello'); - * controller.enqueue('world'); - * controller.close(); - * }, - * }); - * - * addAbortSignal(controller.signal, rs); - * - * finished(rs, (err) => { - * if (err) { - * if (err.name === 'AbortError') { - * // The operation was cancelled - * } - * } - * }); - * - * const reader = rs.getReader(); - * - * reader.read().then(({ value, done }) => { - * console.log(value); // hello - * console.log(done); // false - * controller.abort(); - * }); - * ``` - * @since v15.4.0 - * @param signal A signal representing possible cancellation - * @param stream A stream to attach a signal to. - */ - function addAbortSignal(signal: AbortSignal, stream: T): T; - /** - * Returns the default highWaterMark used by streams. - * Defaults to `16384` (16 KiB), or `16` for `objectMode`. - * @since v19.9.0 - */ - function getDefaultHighWaterMark(objectMode: boolean): number; - /** - * Sets the default highWaterMark used by streams. - * @since v19.9.0 - * @param value highWaterMark value - */ - function setDefaultHighWaterMark(objectMode: boolean, value: number): void; - interface FinishedOptions extends Abortable { - error?: boolean | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - } - /** - * A readable and/or writable stream/webstream. - * - * A function to get notified when a stream is no longer readable, writable - * or has experienced an error or a premature close event. - * - * ```js - * import { finished } from 'node:stream'; - * import fs from 'node:fs'; - * - * const rs = fs.createReadStream('archive.tar'); - * - * finished(rs, (err) => { - * if (err) { - * console.error('Stream failed.', err); - * } else { - * console.log('Stream is done reading.'); - * } - * }); - * - * rs.resume(); // Drain the stream. - * ``` - * - * Especially useful in error handling scenarios where a stream is destroyed - * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`. - * - * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamfinishedstream-options). - * - * `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been - * invoked. The reason for this is so that unexpected `'error'` events (due to - * incorrect stream implementations) do not cause unexpected crashes. - * If this is unwanted behavior then the returned cleanup function needs to be - * invoked in the callback: - * - * ```js - * const cleanup = finished(rs, (err) => { - * cleanup(); - * // ... - * }); - * ``` - * @since v10.0.0 - * @param stream A readable and/or writable stream. - * @param callback A callback function that takes an optional error argument. - * @returns A cleanup function which removes all registered listeners. - */ - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options: FinishedOptions, - callback: (err?: NodeJS.ErrnoException | null) => void, - ): () => void; - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - callback: (err?: NodeJS.ErrnoException | null) => void, - ): () => void; - namespace finished { - function __promisify__( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options?: FinishedOptions, - ): Promise; - } - type PipelineSourceFunction = () => Iterable | AsyncIterable; - type PipelineSource = Iterable | AsyncIterable | NodeJS.ReadableStream | PipelineSourceFunction; - type PipelineTransform, U> = - | NodeJS.ReadWriteStream - | (( - source: S extends (...args: any[]) => Iterable | AsyncIterable ? AsyncIterable - : S, - ) => AsyncIterable); - type PipelineTransformSource = PipelineSource | PipelineTransform; - type PipelineDestinationIterableFunction = (source: AsyncIterable) => AsyncIterable; - type PipelineDestinationPromiseFunction = (source: AsyncIterable) => Promise

; - type PipelineDestination, P> = S extends - PipelineTransformSource ? - | NodeJS.WritableStream - | PipelineDestinationIterableFunction - | PipelineDestinationPromiseFunction - : never; - type PipelineCallback> = S extends - PipelineDestinationPromiseFunction ? (err: NodeJS.ErrnoException | null, value: P) => void - : (err: NodeJS.ErrnoException | null) => void; - type PipelinePromise> = S extends - PipelineDestinationPromiseFunction ? Promise

: Promise; - interface PipelineOptions { - signal?: AbortSignal | undefined; - end?: boolean | undefined; - } - /** - * A module method to pipe between streams and generators forwarding errors and - * properly cleaning up and provide a callback when the pipeline is complete. - * - * ```js - * import { pipeline } from 'node:stream'; - * import fs from 'node:fs'; - * import zlib from 'node:zlib'; - * - * // Use the pipeline API to easily pipe a series of streams - * // together and get notified when the pipeline is fully done. - * - * // A pipeline to gzip a potentially huge tar file efficiently: - * - * pipeline( - * fs.createReadStream('archive.tar'), - * zlib.createGzip(), - * fs.createWriteStream('archive.tar.gz'), - * (err) => { - * if (err) { - * console.error('Pipeline failed.', err); - * } else { - * console.log('Pipeline succeeded.'); - * } - * }, - * ); - * ``` - * - * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streampipelinesource-transforms-destination-options). - * - * `stream.pipeline()` will call `stream.destroy(err)` on all streams except: - * - * * `Readable` streams which have emitted `'end'` or `'close'`. - * * `Writable` streams which have emitted `'finish'` or `'close'`. - * - * `stream.pipeline()` leaves dangling event listeners on the streams - * after the `callback` has been invoked. In the case of reuse of streams after - * failure, this can cause event listener leaks and swallowed errors. If the last - * stream is readable, dangling event listeners will be removed so that the last - * stream can be consumed later. - * - * `stream.pipeline()` closes all the streams when an error is raised. - * The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior - * once it would destroy the socket without sending the expected response. - * See the example below: - * - * ```js - * import fs from 'node:fs'; - * import http from 'node:http'; - * import { pipeline } from 'node:stream'; - * - * const server = http.createServer((req, res) => { - * const fileStream = fs.createReadStream('./fileNotExist.txt'); - * pipeline(fileStream, res, (err) => { - * if (err) { - * console.log(err); // No such file - * // this message can't be sent once `pipeline` already destroyed the socket - * return res.end('error!!!'); - * } - * }); - * }); - * ``` - * @since v10.0.0 - * @param callback Called when the pipeline is fully done. - */ - function pipeline, B extends PipelineDestination>( - source: A, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline( - streams: ReadonlyArray, - callback: (err: NodeJS.ErrnoException | null) => void, - ): NodeJS.WritableStream; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array< - NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void) - > - ): NodeJS.WritableStream; - namespace pipeline { - function __promisify__, B extends PipelineDestination>( - source: A, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__( - streams: ReadonlyArray, - options?: PipelineOptions, - ): Promise; - function __promisify__( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; - } - // TODO: this interface never existed; remove in next major - interface Pipe { - close(): void; - hasRef(): boolean; - ref(): void; - unref(): void; - } - /** - * Returns whether the stream has encountered an error. - * @since v17.3.0, v16.14.0 - * @experimental - */ - function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean; - /** - * Returns whether the stream is readable. - * @since v17.4.0, v16.14.0 - * @experimental - */ - function isReadable(stream: Readable | NodeJS.ReadableStream): boolean; - } - export = Stream; -} -declare module "node:stream" { - import stream = require("stream"); - export = stream; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/consumers.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/consumers.d.ts deleted file mode 100644 index 05db025..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/consumers.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * The utility consumer functions provide common options for consuming - * streams. - * @since v16.7.0 - */ -declare module "stream/consumers" { - import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; - import { ReadableStream as WebReadableStream } from "node:stream/web"; - /** - * @since v16.7.0 - * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream. - */ - function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with a `Blob` containing the full contents of the stream. - */ - function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with a `Buffer` containing the full contents of the stream. - */ - function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with the contents of the stream parsed as a - * UTF-8 encoded string that is then passed through `JSON.parse()`. - */ - function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string. - */ - function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; -} -declare module "node:stream/consumers" { - export * from "stream/consumers"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/promises.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/promises.d.ts deleted file mode 100644 index d54c14c..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/promises.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -declare module "stream/promises" { - import { - FinishedOptions as _FinishedOptions, - PipelineDestination, - PipelineOptions, - PipelinePromise, - PipelineSource, - PipelineTransform, - } from "node:stream"; - interface FinishedOptions extends _FinishedOptions { - /** - * If true, removes the listeners registered by this function before the promise is fulfilled. - * @default false - */ - cleanup?: boolean | undefined; - } - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options?: FinishedOptions, - ): Promise; - function pipeline, B extends PipelineDestination>( - source: A, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline( - streams: ReadonlyArray, - options?: PipelineOptions, - ): Promise; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; -} -declare module "node:stream/promises" { - export * from "stream/promises"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/web.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/web.d.ts deleted file mode 100644 index 039ddc9..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/stream/web.d.ts +++ /dev/null @@ -1,533 +0,0 @@ -type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ByteLengthQueuingStrategy; -type _CompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {} - : import("stream/web").CompressionStream; -type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").CountQueuingStrategy; -type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {} - : import("stream/web").DecompressionStream; -type _QueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").QueuingStrategy; -type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableByteStreamController; -type _ReadableStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStream; -type _ReadableStreamBYOBReader = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamBYOBReader; -type _ReadableStreamBYOBRequest = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamBYOBRequest; -type _ReadableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamDefaultController; -type _ReadableStreamDefaultReader = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamDefaultReader; -type _TextDecoderStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TextDecoderStream; -type _TextEncoderStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TextEncoderStream; -type _TransformStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TransformStream; -type _TransformStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TransformStreamDefaultController; -type _WritableStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStream; -type _WritableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStreamDefaultController; -type _WritableStreamDefaultWriter = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStreamDefaultWriter; - -declare module "stream/web" { - // stub module, pending copy&paste from .d.ts or manual impl - // copy from lib.dom.d.ts - interface ReadableWritablePair { - readable: ReadableStream; - /** - * Provides a convenient, chainable way of piping this readable stream - * through a transform stream (or any other { writable, readable } - * pair). It simply pipes the stream into the writable side of the - * supplied pair, and returns the readable side for further use. - * - * Piping a stream will lock it for the duration of the pipe, preventing - * any other consumer from acquiring a reader. - */ - writable: WritableStream; - } - interface StreamPipeOptions { - preventAbort?: boolean; - preventCancel?: boolean; - /** - * Pipes this readable stream to a given writable stream destination. - * The way in which the piping process behaves under various error - * conditions can be customized with a number of passed options. It - * returns a promise that fulfills when the piping process completes - * successfully, or rejects if any errors were encountered. - * - * Piping a stream will lock it for the duration of the pipe, preventing - * any other consumer from acquiring a reader. - * - * Errors and closures of the source and destination streams propagate - * as follows: - * - * An error in this source readable stream will abort destination, - * unless preventAbort is truthy. The returned promise will be rejected - * with the source's error, or with any error that occurs during - * aborting the destination. - * - * An error in destination will cancel this source readable stream, - * unless preventCancel is truthy. The returned promise will be rejected - * with the destination's error, or with any error that occurs during - * canceling the source. - * - * When this source readable stream closes, destination will be closed, - * unless preventClose is truthy. The returned promise will be fulfilled - * once this process completes, unless an error is encountered while - * closing the destination, in which case it will be rejected with that - * error. - * - * If destination starts out closed or closing, this source readable - * stream will be canceled, unless preventCancel is true. The returned - * promise will be rejected with an error indicating piping to a closed - * stream failed, or with any error that occurs during canceling the - * source. - * - * The signal option can be set to an AbortSignal to allow aborting an - * ongoing pipe operation via the corresponding AbortController. In this - * case, this source readable stream will be canceled, and destination - * aborted, unless the respective options preventCancel or preventAbort - * are set. - */ - preventClose?: boolean; - signal?: AbortSignal; - } - interface ReadableStreamGenericReader { - readonly closed: Promise; - cancel(reason?: any): Promise; - } - type ReadableStreamController = ReadableStreamDefaultController; - interface ReadableStreamReadValueResult { - done: false; - value: T; - } - interface ReadableStreamReadDoneResult { - done: true; - value?: T; - } - type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; - interface ReadableByteStreamControllerCallback { - (controller: ReadableByteStreamController): void | PromiseLike; - } - interface UnderlyingSinkAbortCallback { - (reason?: any): void | PromiseLike; - } - interface UnderlyingSinkCloseCallback { - (): void | PromiseLike; - } - interface UnderlyingSinkStartCallback { - (controller: WritableStreamDefaultController): any; - } - interface UnderlyingSinkWriteCallback { - (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike; - } - interface UnderlyingSourceCancelCallback { - (reason?: any): void | PromiseLike; - } - interface UnderlyingSourcePullCallback { - (controller: ReadableStreamController): void | PromiseLike; - } - interface UnderlyingSourceStartCallback { - (controller: ReadableStreamController): any; - } - interface TransformerFlushCallback { - (controller: TransformStreamDefaultController): void | PromiseLike; - } - interface TransformerStartCallback { - (controller: TransformStreamDefaultController): any; - } - interface TransformerTransformCallback { - (chunk: I, controller: TransformStreamDefaultController): void | PromiseLike; - } - interface UnderlyingByteSource { - autoAllocateChunkSize?: number; - cancel?: ReadableStreamErrorCallback; - pull?: ReadableByteStreamControllerCallback; - start?: ReadableByteStreamControllerCallback; - type: "bytes"; - } - interface UnderlyingSource { - cancel?: UnderlyingSourceCancelCallback; - pull?: UnderlyingSourcePullCallback; - start?: UnderlyingSourceStartCallback; - type?: undefined; - } - interface UnderlyingSink { - abort?: UnderlyingSinkAbortCallback; - close?: UnderlyingSinkCloseCallback; - start?: UnderlyingSinkStartCallback; - type?: undefined; - write?: UnderlyingSinkWriteCallback; - } - interface ReadableStreamErrorCallback { - (reason: any): void | PromiseLike; - } - interface ReadableStreamAsyncIterator extends NodeJS.AsyncIterator { - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; - } - /** This Streams API interface represents a readable stream of byte data. */ - interface ReadableStream { - readonly locked: boolean; - cancel(reason?: any): Promise; - getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; - getReader(): ReadableStreamDefaultReader; - getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader; - pipeThrough(transform: ReadableWritablePair, options?: StreamPipeOptions): ReadableStream; - pipeTo(destination: WritableStream, options?: StreamPipeOptions): Promise; - tee(): [ReadableStream, ReadableStream]; - values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator; - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; - } - const ReadableStream: { - prototype: ReadableStream; - from(iterable: Iterable | AsyncIterable): ReadableStream; - new(underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy): ReadableStream; - new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - }; - type ReadableStreamReaderMode = "byob"; - interface ReadableStreamGetReaderOptions { - /** - * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. - * - * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. - */ - mode?: ReadableStreamReaderMode; - } - type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; - interface ReadableStreamDefaultReader extends ReadableStreamGenericReader { - read(): Promise>; - releaseLock(): void; - } - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */ - interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ - read( - view: T, - options?: { - min?: number; - }, - ): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ - releaseLock(): void; - } - const ReadableStreamDefaultReader: { - prototype: ReadableStreamDefaultReader; - new(stream: ReadableStream): ReadableStreamDefaultReader; - }; - const ReadableStreamBYOBReader: { - prototype: ReadableStreamBYOBReader; - new(stream: ReadableStream): ReadableStreamBYOBReader; - }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ - interface ReadableStreamBYOBRequest { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ - readonly view: ArrayBufferView | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ - respond(bytesWritten: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ - respondWithNewView(view: ArrayBufferView): void; - } - const ReadableStreamBYOBRequest: { - prototype: ReadableStreamBYOBRequest; - new(): ReadableStreamBYOBRequest; - }; - interface ReadableByteStreamController { - readonly byobRequest: ReadableStreamBYOBRequest | null; - readonly desiredSize: number | null; - close(): void; - enqueue(chunk: ArrayBufferView): void; - error(error?: any): void; - } - const ReadableByteStreamController: { - prototype: ReadableByteStreamController; - new(): ReadableByteStreamController; - }; - interface ReadableStreamDefaultController { - readonly desiredSize: number | null; - close(): void; - enqueue(chunk?: R): void; - error(e?: any): void; - } - const ReadableStreamDefaultController: { - prototype: ReadableStreamDefaultController; - new(): ReadableStreamDefaultController; - }; - interface Transformer { - flush?: TransformerFlushCallback; - readableType?: undefined; - start?: TransformerStartCallback; - transform?: TransformerTransformCallback; - writableType?: undefined; - } - interface TransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; - } - const TransformStream: { - prototype: TransformStream; - new( - transformer?: Transformer, - writableStrategy?: QueuingStrategy, - readableStrategy?: QueuingStrategy, - ): TransformStream; - }; - interface TransformStreamDefaultController { - readonly desiredSize: number | null; - enqueue(chunk?: O): void; - error(reason?: any): void; - terminate(): void; - } - const TransformStreamDefaultController: { - prototype: TransformStreamDefaultController; - new(): TransformStreamDefaultController; - }; - /** - * This Streams API interface provides a standard abstraction for writing - * streaming data to a destination, known as a sink. This object comes with - * built-in back pressure and queuing. - */ - interface WritableStream { - readonly locked: boolean; - abort(reason?: any): Promise; - close(): Promise; - getWriter(): WritableStreamDefaultWriter; - } - const WritableStream: { - prototype: WritableStream; - new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream; - }; - /** - * This Streams API interface is the object returned by - * WritableStream.getWriter() and once created locks the < writer to the - * WritableStream ensuring that no other streams can write to the underlying - * sink. - */ - interface WritableStreamDefaultWriter { - readonly closed: Promise; - readonly desiredSize: number | null; - readonly ready: Promise; - abort(reason?: any): Promise; - close(): Promise; - releaseLock(): void; - write(chunk?: W): Promise; - } - const WritableStreamDefaultWriter: { - prototype: WritableStreamDefaultWriter; - new(stream: WritableStream): WritableStreamDefaultWriter; - }; - /** - * This Streams API interface represents a controller allowing control of a - * WritableStream's state. When constructing a WritableStream, the - * underlying sink is given a corresponding WritableStreamDefaultController - * instance to manipulate. - */ - interface WritableStreamDefaultController { - error(e?: any): void; - } - const WritableStreamDefaultController: { - prototype: WritableStreamDefaultController; - new(): WritableStreamDefaultController; - }; - interface QueuingStrategy { - highWaterMark?: number; - size?: QueuingStrategySize; - } - interface QueuingStrategySize { - (chunk?: T): number; - } - interface QueuingStrategyInit { - /** - * Creates a new ByteLengthQueuingStrategy with the provided high water - * mark. - * - * Note that the provided high water mark will not be validated ahead of - * time. Instead, if it is negative, NaN, or not a number, the resulting - * ByteLengthQueuingStrategy will cause the corresponding stream - * constructor to throw. - */ - highWaterMark: number; - } - /** - * This Streams API interface provides a built-in byte length queuing - * strategy that can be used when constructing streams. - */ - interface ByteLengthQueuingStrategy extends QueuingStrategy { - readonly highWaterMark: number; - readonly size: QueuingStrategySize; - } - const ByteLengthQueuingStrategy: { - prototype: ByteLengthQueuingStrategy; - new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; - }; - /** - * This Streams API interface provides a built-in byte length queuing - * strategy that can be used when constructing streams. - */ - interface CountQueuingStrategy extends QueuingStrategy { - readonly highWaterMark: number; - readonly size: QueuingStrategySize; - } - const CountQueuingStrategy: { - prototype: CountQueuingStrategy; - new(init: QueuingStrategyInit): CountQueuingStrategy; - }; - interface TextEncoderStream { - /** Returns "utf-8". */ - readonly encoding: "utf-8"; - readonly readable: ReadableStream; - readonly writable: WritableStream; - readonly [Symbol.toStringTag]: string; - } - const TextEncoderStream: { - prototype: TextEncoderStream; - new(): TextEncoderStream; - }; - interface TextDecoderOptions { - fatal?: boolean; - ignoreBOM?: boolean; - } - type BufferSource = ArrayBufferView | ArrayBuffer; - interface TextDecoderStream { - /** Returns encoding's name, lower cased. */ - readonly encoding: string; - /** Returns `true` if error mode is "fatal", and `false` otherwise. */ - readonly fatal: boolean; - /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */ - readonly ignoreBOM: boolean; - readonly readable: ReadableStream; - readonly writable: WritableStream; - readonly [Symbol.toStringTag]: string; - } - const TextDecoderStream: { - prototype: TextDecoderStream; - new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream; - }; - interface CompressionStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; - } - const CompressionStream: { - prototype: CompressionStream; - new(format: "deflate" | "deflate-raw" | "gzip"): CompressionStream; - }; - interface DecompressionStream { - readonly writable: WritableStream; - readonly readable: ReadableStream; - } - const DecompressionStream: { - prototype: DecompressionStream; - new(format: "deflate" | "deflate-raw" | "gzip"): DecompressionStream; - }; - - global { - interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {} - var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T } - ? T - : typeof import("stream/web").ByteLengthQueuingStrategy; - - interface CompressionStream extends _CompressionStream {} - var CompressionStream: typeof globalThis extends { - onmessage: any; - // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit. - // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts - ReportingObserver: any; - CompressionStream: infer T; - } ? T - // TS 4.8, 4.9, 5.0 - : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? { - prototype: T; - new(format: "deflate" | "deflate-raw" | "gzip"): T; - } - : typeof import("stream/web").CompressionStream; - - interface CountQueuingStrategy extends _CountQueuingStrategy {} - var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T - : typeof import("stream/web").CountQueuingStrategy; - - interface DecompressionStream extends _DecompressionStream {} - var DecompressionStream: typeof globalThis extends { - onmessage: any; - // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit. - // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts - ReportingObserver: any; - DecompressionStream: infer T; - } ? T - // TS 4.8, 4.9, 5.0 - : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? { - prototype: T; - new(format: "deflate" | "deflate-raw" | "gzip"): T; - } - : typeof import("stream/web").DecompressionStream; - - interface QueuingStrategy extends _QueuingStrategy {} - - interface ReadableByteStreamController extends _ReadableByteStreamController {} - var ReadableByteStreamController: typeof globalThis extends - { onmessage: any; ReadableByteStreamController: infer T } ? T - : typeof import("stream/web").ReadableByteStreamController; - - interface ReadableStream extends _ReadableStream {} - var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T - : typeof import("stream/web").ReadableStream; - - interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {} - var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T } - ? T - : typeof import("stream/web").ReadableStreamBYOBReader; - - interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {} - var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T } - ? T - : typeof import("stream/web").ReadableStreamBYOBRequest; - - interface ReadableStreamDefaultController extends _ReadableStreamDefaultController {} - var ReadableStreamDefaultController: typeof globalThis extends - { onmessage: any; ReadableStreamDefaultController: infer T } ? T - : typeof import("stream/web").ReadableStreamDefaultController; - - interface ReadableStreamDefaultReader extends _ReadableStreamDefaultReader {} - var ReadableStreamDefaultReader: typeof globalThis extends - { onmessage: any; ReadableStreamDefaultReader: infer T } ? T - : typeof import("stream/web").ReadableStreamDefaultReader; - - interface TextDecoderStream extends _TextDecoderStream {} - var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T - : typeof import("stream/web").TextDecoderStream; - - interface TextEncoderStream extends _TextEncoderStream {} - var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T - : typeof import("stream/web").TextEncoderStream; - - interface TransformStream extends _TransformStream {} - var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T - : typeof import("stream/web").TransformStream; - - interface TransformStreamDefaultController extends _TransformStreamDefaultController {} - var TransformStreamDefaultController: typeof globalThis extends - { onmessage: any; TransformStreamDefaultController: infer T } ? T - : typeof import("stream/web").TransformStreamDefaultController; - - interface WritableStream extends _WritableStream {} - var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T - : typeof import("stream/web").WritableStream; - - interface WritableStreamDefaultController extends _WritableStreamDefaultController {} - var WritableStreamDefaultController: typeof globalThis extends - { onmessage: any; WritableStreamDefaultController: infer T } ? T - : typeof import("stream/web").WritableStreamDefaultController; - - interface WritableStreamDefaultWriter extends _WritableStreamDefaultWriter {} - var WritableStreamDefaultWriter: typeof globalThis extends - { onmessage: any; WritableStreamDefaultWriter: infer T } ? T - : typeof import("stream/web").WritableStreamDefaultWriter; - } -} -declare module "node:stream/web" { - export * from "stream/web"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/string_decoder.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/string_decoder.d.ts deleted file mode 100644 index d08cbf6..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/string_decoder.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * The `node:string_decoder` module provides an API for decoding `Buffer` objects - * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 - * characters. It can be accessed using: - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * ``` - * - * The following example shows the basic use of the `StringDecoder` class. - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * const decoder = new StringDecoder('utf8'); - * - * const cent = Buffer.from([0xC2, 0xA2]); - * console.log(decoder.write(cent)); // Prints: ¢ - * - * const euro = Buffer.from([0xE2, 0x82, 0xAC]); - * console.log(decoder.write(euro)); // Prints: € - * ``` - * - * When a `Buffer` instance is written to the `StringDecoder` instance, an - * internal buffer is used to ensure that the decoded string does not contain - * any incomplete multibyte characters. These are held in the buffer until the - * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called. - * - * In the following example, the three UTF-8 encoded bytes of the European Euro - * symbol (`€`) are written over three separate operations: - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * const decoder = new StringDecoder('utf8'); - * - * decoder.write(Buffer.from([0xE2])); - * decoder.write(Buffer.from([0x82])); - * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: € - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/string_decoder.js) - */ -declare module "string_decoder" { - class StringDecoder { - constructor(encoding?: BufferEncoding); - /** - * Returns a decoded string, ensuring that any incomplete multibyte characters at - * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the - * returned string and stored in an internal buffer for the next call to `stringDecoder.write()` or `stringDecoder.end()`. - * @since v0.1.99 - * @param buffer The bytes to decode. - */ - write(buffer: string | NodeJS.ArrayBufferView): string; - /** - * Returns any remaining input stored in the internal buffer as a string. Bytes - * representing incomplete UTF-8 and UTF-16 characters will be replaced with - * substitution characters appropriate for the character encoding. - * - * If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input. - * After `end()` is called, the `stringDecoder` object can be reused for new input. - * @since v0.9.3 - * @param buffer The bytes to decode. - */ - end(buffer?: string | NodeJS.ArrayBufferView): string; - } -} -declare module "node:string_decoder" { - export * from "string_decoder"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/test.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/test.d.ts deleted file mode 100644 index ec17fdf..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/test.d.ts +++ /dev/null @@ -1,1787 +0,0 @@ -/** - * The `node:test` module facilitates the creation of JavaScript tests. - * To access it: - * - * ```js - * import test from 'node:test'; - * ``` - * - * This module is only available under the `node:` scheme. The following will not - * work: - * - * ```js - * import test from 'test'; - * ``` - * - * Tests created via the `test` module consist of a single function that is - * processed in one of three ways: - * - * 1. A synchronous function that is considered failing if it throws an exception, - * and is considered passing otherwise. - * 2. A function that returns a `Promise` that is considered failing if the `Promise` rejects, and is considered passing if the `Promise` fulfills. - * 3. A function that receives a callback function. If the callback receives any - * truthy value as its first argument, the test is considered failing. If a - * falsy value is passed as the first argument to the callback, the test is - * considered passing. If the test function receives a callback function and - * also returns a `Promise`, the test will fail. - * - * The following example illustrates how tests are written using the `test` module. - * - * ```js - * test('synchronous passing test', (t) => { - * // This test passes because it does not throw an exception. - * assert.strictEqual(1, 1); - * }); - * - * test('synchronous failing test', (t) => { - * // This test fails because it throws an exception. - * assert.strictEqual(1, 2); - * }); - * - * test('asynchronous passing test', async (t) => { - * // This test passes because the Promise returned by the async - * // function is settled and not rejected. - * assert.strictEqual(1, 1); - * }); - * - * test('asynchronous failing test', async (t) => { - * // This test fails because the Promise returned by the async - * // function is rejected. - * assert.strictEqual(1, 2); - * }); - * - * test('failing test using Promises', (t) => { - * // Promises can be used directly as well. - * return new Promise((resolve, reject) => { - * setImmediate(() => { - * reject(new Error('this will cause the test to fail')); - * }); - * }); - * }); - * - * test('callback passing test', (t, done) => { - * // done() is the callback function. When the setImmediate() runs, it invokes - * // done() with no arguments. - * setImmediate(done); - * }); - * - * test('callback failing test', (t, done) => { - * // When the setImmediate() runs, done() is invoked with an Error object and - * // the test fails. - * setImmediate(() => { - * done(new Error('callback failure')); - * }); - * }); - * ``` - * - * If any tests fail, the process exit code is set to `1`. - * @since v18.0.0, v16.17.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test.js) - */ -declare module "node:test" { - import { AssertMethodNames } from "node:assert"; - import { Readable } from "node:stream"; - import TestFn = test.TestFn; - import TestOptions = test.TestOptions; - /** - * The `test()` function is the value imported from the `test` module. Each - * invocation of this function results in reporting the test to the `TestsStream`. - * - * The `TestContext` object passed to the `fn` argument can be used to perform - * actions related to the current test. Examples include skipping the test, adding - * additional diagnostic information, or creating subtests. - * - * `test()` returns a `Promise` that fulfills once the test completes. - * if `test()` is called within a suite, it fulfills immediately. - * The return value can usually be discarded for top level tests. - * However, the return value from subtests should be used to prevent the parent - * test from finishing first and cancelling the subtest - * as shown in the following example. - * - * ```js - * test('top level test', async (t) => { - * // The setTimeout() in the following subtest would cause it to outlive its - * // parent test if 'await' is removed on the next line. Once the parent test - * // completes, it will cancel any outstanding subtests. - * await t.test('longer running subtest', async (t) => { - * return new Promise((resolve, reject) => { - * setTimeout(resolve, 1000); - * }); - * }); - * }); - * ``` - * - * The `timeout` option can be used to fail the test if it takes longer than `timeout` milliseconds to complete. However, it is not a reliable mechanism for - * canceling tests because a running test might block the application thread and - * thus prevent the scheduled cancellation. - * @since v18.0.0, v16.17.0 - * @param name The name of the test, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the test. - * @param fn The function under test. The first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within a suite. - */ - function test(name?: string, fn?: TestFn): Promise; - function test(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function test(options?: TestOptions, fn?: TestFn): Promise; - function test(fn?: TestFn): Promise; - namespace test { - export { test }; - export { suite as describe, test as it }; - } - namespace test { - /** - * **Note:** `shard` is used to horizontally parallelize test running across - * machines or processes, ideal for large-scale executions across varied - * environments. It's incompatible with `watch` mode, tailored for rapid - * code iteration by automatically rerunning tests on file changes. - * - * ```js - * import { tap } from 'node:test/reporters'; - * import { run } from 'node:test'; - * import process from 'node:process'; - * import path from 'node:path'; - * - * run({ files: [path.resolve('./tests/test.js')] }) - * .compose(tap) - * .pipe(process.stdout); - * ``` - * @since v18.9.0, v16.19.0 - * @param options Configuration options for running tests. - */ - function run(options?: RunOptions): TestsStream; - /** - * The `suite()` function is imported from the `node:test` module. - * @param name The name of the suite, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the suite. This supports the same options as {@link test}. - * @param fn The suite function declaring nested tests and suites. The first argument to this function is a {@link SuiteContext} object. - * @return Immediately fulfilled with `undefined`. - * @since v20.13.0 - */ - function suite(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function suite(name?: string, fn?: SuiteFn): Promise; - function suite(options?: TestOptions, fn?: SuiteFn): Promise; - function suite(fn?: SuiteFn): Promise; - namespace suite { - /** - * Shorthand for skipping a suite. This is the same as calling {@link suite} with `options.skip` set to `true`. - * @since v20.13.0 - */ - function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function skip(name?: string, fn?: SuiteFn): Promise; - function skip(options?: TestOptions, fn?: SuiteFn): Promise; - function skip(fn?: SuiteFn): Promise; - /** - * Shorthand for marking a suite as `TODO`. This is the same as calling {@link suite} with `options.todo` set to `true`. - * @since v20.13.0 - */ - function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function todo(name?: string, fn?: SuiteFn): Promise; - function todo(options?: TestOptions, fn?: SuiteFn): Promise; - function todo(fn?: SuiteFn): Promise; - /** - * Shorthand for marking a suite as `only`. This is the same as calling {@link suite} with `options.only` set to `true`. - * @since v20.13.0 - */ - function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function only(name?: string, fn?: SuiteFn): Promise; - function only(options?: TestOptions, fn?: SuiteFn): Promise; - function only(fn?: SuiteFn): Promise; - } - /** - * Shorthand for skipping a test. This is the same as calling {@link test} with `options.skip` set to `true`. - * @since v20.2.0 - */ - function skip(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function skip(name?: string, fn?: TestFn): Promise; - function skip(options?: TestOptions, fn?: TestFn): Promise; - function skip(fn?: TestFn): Promise; - /** - * Shorthand for marking a test as `TODO`. This is the same as calling {@link test} with `options.todo` set to `true`. - * @since v20.2.0 - */ - function todo(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function todo(name?: string, fn?: TestFn): Promise; - function todo(options?: TestOptions, fn?: TestFn): Promise; - function todo(fn?: TestFn): Promise; - /** - * Shorthand for marking a test as `only`. This is the same as calling {@link test} with `options.only` set to `true`. - * @since v20.2.0 - */ - function only(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function only(name?: string, fn?: TestFn): Promise; - function only(options?: TestOptions, fn?: TestFn): Promise; - function only(fn?: TestFn): Promise; - /** - * The type of a function passed to {@link test}. The first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - */ - type TestFn = (t: TestContext, done: (result?: any) => void) => void | Promise; - /** - * The type of a suite test function. The argument to this function is a {@link SuiteContext} object. - */ - type SuiteFn = (s: SuiteContext) => void | Promise; - interface TestShard { - /** - * A positive integer between 1 and `total` that specifies the index of the shard to run. - */ - index: number; - /** - * A positive integer that specifies the total number of shards to split the test files to. - */ - total: number; - } - interface RunOptions { - /** - * If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file. - * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time. - * @default false - */ - concurrency?: number | boolean | undefined; - /** - * An array containing the list of files to run. If omitted, files are run according to the - * [test runner execution model](https://nodejs.org/docs/latest-v20.x/api/test.html#test-runner-execution-model). - */ - files?: readonly string[] | undefined; - /** - * Configures the test runner to exit the process once all known - * tests have finished executing even if the event loop would - * otherwise remain active. - * @default false - */ - forceExit?: boolean | undefined; - /** - * Sets inspector port of test child process. - * If a nullish value is provided, each process gets its own port, - * incremented from the primary's `process.debugPort`. - * @default undefined - */ - inspectPort?: number | (() => number) | undefined; - /** - * If truthy, the test context will only run tests that have the `only` option set - */ - only?: boolean | undefined; - /** - * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run. - * @default undefined - */ - setup?: ((reporter: TestsStream) => void | Promise) | undefined; - /** - * Allows aborting an in-progress test execution. - */ - signal?: AbortSignal | undefined; - /** - * If provided, only run tests whose name matches the provided pattern. - * Strings are interpreted as JavaScript regular expressions. - * @default undefined - */ - testNamePatterns?: string | RegExp | ReadonlyArray | undefined; - /** - * The number of milliseconds after which the test execution will fail. - * If unspecified, subtests inherit this value from their parent. - * @default Infinity - */ - timeout?: number | undefined; - /** - * Whether to run in watch mode or not. - * @default false - */ - watch?: boolean | undefined; - /** - * Running tests in a specific shard. - * @default undefined - */ - shard?: TestShard | undefined; - } - /** - * A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests. - * - * Some of the events are guaranteed to be emitted in the same order as the tests are defined, while others are emitted in the order that the tests execute. - * @since v18.9.0, v16.19.0 - */ - interface TestsStream extends Readable { - addListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - addListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - addListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - addListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - addListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - addListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - addListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - addListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - addListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - addListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - addListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - addListener(event: "test:watch:drained", listener: () => void): this; - addListener(event: string, listener: (...args: any[]) => void): this; - emit(event: "test:coverage", data: EventData.TestCoverage): boolean; - emit(event: "test:complete", data: EventData.TestComplete): boolean; - emit(event: "test:dequeue", data: EventData.TestDequeue): boolean; - emit(event: "test:diagnostic", data: EventData.TestDiagnostic): boolean; - emit(event: "test:enqueue", data: EventData.TestEnqueue): boolean; - emit(event: "test:fail", data: EventData.TestFail): boolean; - emit(event: "test:pass", data: EventData.TestPass): boolean; - emit(event: "test:plan", data: EventData.TestPlan): boolean; - emit(event: "test:start", data: EventData.TestStart): boolean; - emit(event: "test:stderr", data: EventData.TestStderr): boolean; - emit(event: "test:stdout", data: EventData.TestStdout): boolean; - emit(event: "test:watch:drained"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - on(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - on(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - on(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - on(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - on(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - on(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - on(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - on(event: "test:start", listener: (data: EventData.TestStart) => void): this; - on(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - on(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - on(event: "test:watch:drained", listener: () => void): this; - on(event: string, listener: (...args: any[]) => void): this; - once(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - once(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - once(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - once(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - once(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - once(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - once(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - once(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - once(event: "test:start", listener: (data: EventData.TestStart) => void): this; - once(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - once(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - once(event: "test:watch:drained", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - prependListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - prependListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - prependListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - prependListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - prependListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - prependListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - prependListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - prependListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - prependListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - prependListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - prependListener(event: "test:watch:drained", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - prependOnceListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - prependOnceListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - prependOnceListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - prependOnceListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - prependOnceListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - prependOnceListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - prependOnceListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - prependOnceListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - prependOnceListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - prependOnceListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - prependOnceListener(event: "test:watch:drained", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - } - namespace EventData { - interface Error extends globalThis.Error { - cause: globalThis.Error; - } - interface LocationInfo { - /** - * The column number where the test is defined, or - * `undefined` if the test was run through the REPL. - */ - column?: number; - /** - * The path of the test file, `undefined` if test was run through the REPL. - */ - file?: string; - /** - * The line number where the test is defined, or `undefined` if the test was run through the REPL. - */ - line?: number; - } - interface TestDiagnostic extends LocationInfo { - /** - * The diagnostic message. - */ - message: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestCoverage { - /** - * An object containing the coverage report. - */ - summary: { - /** - * An array of coverage reports for individual files. - */ - files: Array<{ - /** - * The absolute path of the file. - */ - path: string; - /** - * The total number of lines. - */ - totalLineCount: number; - /** - * The total number of branches. - */ - totalBranchCount: number; - /** - * The total number of functions. - */ - totalFunctionCount: number; - /** - * The number of covered lines. - */ - coveredLineCount: number; - /** - * The number of covered branches. - */ - coveredBranchCount: number; - /** - * The number of covered functions. - */ - coveredFunctionCount: number; - /** - * The percentage of lines covered. - */ - coveredLinePercent: number; - /** - * The percentage of branches covered. - */ - coveredBranchPercent: number; - /** - * The percentage of functions covered. - */ - coveredFunctionPercent: number; - /** - * An array of functions representing function coverage. - */ - functions: Array<{ - /** - * The name of the function. - */ - name: string; - /** - * The line number where the function is defined. - */ - line: number; - /** - * The number of times the function was called. - */ - count: number; - }>; - /** - * An array of branches representing branch coverage. - */ - branches: Array<{ - /** - * The line number where the branch is defined. - */ - line: number; - /** - * The number of times the branch was taken. - */ - count: number; - }>; - /** - * An array of lines representing line numbers and the number of times they were covered. - */ - lines: Array<{ - /** - * The line number. - */ - line: number; - /** - * The number of times the line was covered. - */ - count: number; - }>; - }>; - /** - * An object containing a summary of coverage for all files. - */ - totals: { - /** - * The total number of lines. - */ - totalLineCount: number; - /** - * The total number of branches. - */ - totalBranchCount: number; - /** - * The total number of functions. - */ - totalFunctionCount: number; - /** - * The number of covered lines. - */ - coveredLineCount: number; - /** - * The number of covered branches. - */ - coveredBranchCount: number; - /** - * The number of covered functions. - */ - coveredFunctionCount: number; - /** - * The percentage of lines covered. - */ - coveredLinePercent: number; - /** - * The percentage of branches covered. - */ - coveredBranchPercent: number; - /** - * The percentage of functions covered. - */ - coveredFunctionPercent: number; - }; - /** - * The working directory when code coverage began. This - * is useful for displaying relative path names in case - * the tests changed the working directory of the Node.js process. - */ - workingDirectory: string; - }; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestComplete extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * Whether the test passed or not. - */ - passed: boolean; - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * An error wrapping the error thrown by the test if it did not pass. - */ - error?: Error; - /** - * The type of the test, used to denote whether this is a suite. - */ - type?: "suite"; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestDequeue extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestEnqueue extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestFail extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * An error wrapping the error thrown by the test. - */ - error: Error; - /** - * The type of the test, used to denote whether this is a suite. - * @since v20.0.0, v19.9.0, v18.17.0 - */ - type?: "suite"; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestPass extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * The type of the test, used to denote whether this is a suite. - * @since 20.0.0, 19.9.0, 18.17.0 - */ - type?: "suite"; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestPlan extends LocationInfo { - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The number of subtests that have ran. - */ - count: number; - } - interface TestStart extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestStderr { - /** - * The path of the test file. - */ - file: string; - /** - * The message written to `stderr`. - */ - message: string; - } - interface TestStdout { - /** - * The path of the test file. - */ - file: string; - /** - * The message written to `stdout`. - */ - message: string; - } - } - /** - * An instance of `TestContext` is passed to each test function in order to - * interact with the test runner. However, the `TestContext` constructor is not - * exposed as part of the API. - * @since v18.0.0, v16.17.0 - */ - interface TestContext { - /** - * An object containing assertion methods bound to the test context. - * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans. - * - * **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the - * TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed** - * (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler: - * ```ts - * import { test, type TestContext } from 'node:test'; - * - * // The test function's context parameter must have a type annotation. - * test('example', (t: TestContext) => { - * t.assert.deepStrictEqual(actual, expected); - * }); - * - * // Omitting the type annotation will result in a compilation error. - * test('example', t => { - * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation. - * }); - * ``` - * @since v20.15.0 - */ - readonly assert: TestContextAssert; - /** - * This function is used to create a hook running before subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v20.1.0, v18.17.0 - */ - before(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook running before each subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.8.0 - */ - beforeEach(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook that runs after the current test finishes. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.13.0 - */ - after(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook running after each subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.8.0 - */ - afterEach(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to write diagnostics to the output. Any diagnostic - * information is included at the end of the test's results. This function does - * not return a value. - * - * ```js - * test('top level test', (t) => { - * t.diagnostic('A diagnostic message'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Message to be reported. - */ - diagnostic(message: string): void; - /** - * The name of the test and each of its ancestors, separated by `>`. - * @since v20.16.0 - */ - readonly fullName: string; - /** - * The name of the test. - * @since v18.8.0, v16.18.0 - */ - readonly name: string; - /** - * Used to set the number of assertions and subtests that are expected to run within the test. - * If the number of assertions and subtests that run does not match the expected count, the test will fail. - * - * To make sure assertions are tracked, the assert functions on `context.assert` must be used, - * instead of importing from the `node:assert` module. - * ```js - * test('top level test', (t) => { - * t.plan(2); - * t.assert.ok('some relevant assertion here'); - * t.test('subtest', () => {}); - * }); - * ``` - * - * When working with asynchronous code, the `plan` function can be used to ensure that the correct number of assertions are run: - * ```js - * test('planning with streams', (t, done) => { - * function* generate() { - * yield 'a'; - * yield 'b'; - * yield 'c'; - * } - * const expected = ['a', 'b', 'c']; - * t.plan(expected.length); - * const stream = Readable.from(generate()); - * stream.on('data', (chunk) => { - * t.assert.strictEqual(chunk, expected.shift()); - * }); - * stream.on('end', () => { - * done(); - * }); - * }); - * ``` - * @since v20.15.0 - */ - plan(count: number): void; - /** - * If `shouldRunOnlyTests` is truthy, the test context will only run tests that - * have the `only` option set. Otherwise, all tests are run. If Node.js was not - * started with the `--test-only` command-line option, this function is a - * no-op. - * - * ```js - * test('top level test', (t) => { - * // The test context can be set to run subtests with the 'only' option. - * t.runOnly(true); - * return Promise.all([ - * t.test('this subtest is now skipped'), - * t.test('this subtest is run', { only: true }), - * ]); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param shouldRunOnlyTests Whether or not to run `only` tests. - */ - runOnly(shouldRunOnlyTests: boolean): void; - /** - * ```js - * test('top level test', async (t) => { - * await fetch('some/uri', { signal: t.signal }); - * }); - * ``` - * @since v18.7.0, v16.17.0 - */ - readonly signal: AbortSignal; - /** - * This function causes the test's output to indicate the test as skipped. If `message` is provided, it is included in the output. Calling `skip()` does - * not terminate execution of the test function. This function does not return a - * value. - * - * ```js - * test('top level test', (t) => { - * // Make sure to return here as well if the test contains additional logic. - * t.skip('this is skipped'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Optional skip message. - */ - skip(message?: string): void; - /** - * This function adds a `TODO` directive to the test's output. If `message` is - * provided, it is included in the output. Calling `todo()` does not terminate - * execution of the test function. This function does not return a value. - * - * ```js - * test('top level test', (t) => { - * // This test is marked as `TODO` - * t.todo('this is a todo'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Optional `TODO` message. - */ - todo(message?: string): void; - /** - * This function is used to create subtests under the current test. This function behaves in - * the same fashion as the top level {@link test} function. - * @since v18.0.0 - * @param name The name of the test, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the test. - * @param fn The function under test. This first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - * @returns A {@link Promise} resolved with `undefined` once the test completes. - */ - test: typeof test; - /** - * Each test provides its own MockTracker instance. - */ - readonly mock: MockTracker; - } - interface TestContextAssert extends Pick {} - /** - * An instance of `SuiteContext` is passed to each suite function in order to - * interact with the test runner. However, the `SuiteContext` constructor is not - * exposed as part of the API. - * @since v18.7.0, v16.17.0 - */ - interface SuiteContext { - /** - * The name of the suite. - * @since v18.8.0, v16.18.0 - */ - readonly name: string; - /** - * Can be used to abort test subtasks when the test has been aborted. - * @since v18.7.0, v16.17.0 - */ - readonly signal: AbortSignal; - } - interface TestOptions { - /** - * If a number is provided, then that many tests would run in parallel. - * If truthy, it would run (number of cpu cores - 1) tests in parallel. - * For subtests, it will be `Infinity` tests in parallel. - * If falsy, it would only run one test at a time. - * If unspecified, subtests inherit this value from their parent. - * @default false - */ - concurrency?: number | boolean | undefined; - /** - * If truthy, and the test context is configured to run `only` tests, then this test will be - * run. Otherwise, the test is skipped. - * @default false - */ - only?: boolean | undefined; - /** - * Allows aborting an in-progress test. - * @since v18.8.0 - */ - signal?: AbortSignal | undefined; - /** - * If truthy, the test is skipped. If a string is provided, that string is displayed in the - * test results as the reason for skipping the test. - * @default false - */ - skip?: boolean | string | undefined; - /** - * A number of milliseconds the test will fail after. If unspecified, subtests inherit this - * value from their parent. - * @default Infinity - * @since v18.7.0 - */ - timeout?: number | undefined; - /** - * If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in - * the test results as the reason why the test is `TODO`. - * @default false - */ - todo?: boolean | string | undefined; - /** - * The number of assertions and subtests expected to be run in the test. - * If the number of assertions run in the test does not match the number - * specified in the plan, the test will fail. - * @default undefined - * @since v20.15.0 - */ - plan?: number | undefined; - } - /** - * This function creates a hook that runs before executing a suite. - * - * ```js - * describe('tests', async () => { - * before(() => console.log('about to run some test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function before(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs after executing a suite. - * - * ```js - * describe('tests', async () => { - * after(() => console.log('finished running tests')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function after(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs before each test in the current suite. - * - * ```js - * describe('tests', async () => { - * beforeEach(() => console.log('about to run a test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function beforeEach(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs after each test in the current suite. - * The `afterEach()` hook is run even if the test fails. - * - * ```js - * describe('tests', async () => { - * afterEach(() => console.log('finished running a test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function afterEach(fn?: HookFn, options?: HookOptions): void; - /** - * The hook function. The first argument is the context in which the hook is called. - * If the hook uses callbacks, the callback function is passed as the second argument. - */ - type HookFn = (c: TestContext | SuiteContext, done: (result?: any) => void) => any; - /** - * The hook function. The first argument is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - */ - type TestContextHookFn = (t: TestContext, done: (result?: any) => void) => any; - /** - * Configuration options for hooks. - * @since v18.8.0 - */ - interface HookOptions { - /** - * Allows aborting an in-progress hook. - */ - signal?: AbortSignal | undefined; - /** - * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this - * value from their parent. - * @default Infinity - */ - timeout?: number | undefined; - } - interface MockFunctionOptions { - /** - * The number of times that the mock will use the behavior of `implementation`. - * Once the mock function has been called `times` times, - * it will automatically restore the behavior of `original`. - * This value must be an integer greater than zero. - * @default Infinity - */ - times?: number | undefined; - } - interface MockMethodOptions extends MockFunctionOptions { - /** - * If `true`, `object[methodName]` is treated as a getter. - * This option cannot be used with the `setter` option. - */ - getter?: boolean | undefined; - /** - * If `true`, `object[methodName]` is treated as a setter. - * This option cannot be used with the `getter` option. - */ - setter?: boolean | undefined; - } - type Mock = F & { - mock: MockFunctionContext; - }; - interface MockModuleOptions { - /** - * If false, each call to `require()` or `import()` generates a new mock module. - * If true, subsequent calls will return the same module mock, and the mock module is inserted into the CommonJS cache. - * @default false - */ - cache?: boolean | undefined; - /** - * The value to use as the mocked module's default export. - * - * If this value is not provided, ESM mocks do not include a default export. - * If the mock is a CommonJS or builtin module, this setting is used as the value of `module.exports`. - * If this value is not provided, CJS and builtin mocks use an empty object as the value of `module.exports`. - */ - defaultExport?: any; - /** - * An object whose keys and values are used to create the named exports of the mock module. - * - * If the mock is a CommonJS or builtin module, these values are copied onto `module.exports`. - * Therefore, if a mock is created with both named exports and a non-object default export, - * the mock will throw an exception when used as a CJS or builtin module. - */ - namedExports?: object | undefined; - } - /** - * The `MockTracker` class is used to manage mocking functionality. The test runner - * module provides a top level `mock` export which is a `MockTracker` instance. - * Each test also provides its own `MockTracker` instance via the test context's `mock` property. - * @since v19.1.0, v18.13.0 - */ - interface MockTracker { - /** - * This function is used to create a mock function. - * - * The following example creates a mock function that increments a counter by one - * on each invocation. The `times` option is used to modify the mock behavior such - * that the first two invocations add two to the counter instead of one. - * - * ```js - * test('mocks a counting function', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne, addTwo, { times: 2 }); - * - * assert.strictEqual(fn(), 2); - * assert.strictEqual(fn(), 4); - * assert.strictEqual(fn(), 5); - * assert.strictEqual(fn(), 6); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param original An optional function to create a mock on. - * @param implementation An optional function used as the mock implementation for `original`. This is useful for creating mocks that exhibit one behavior for a specified number of calls and - * then restore the behavior of `original`. - * @param options Optional configuration options for the mock function. - * @return The mocked function. The mocked function contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the - * behavior of the mocked function. - */ - fn undefined>( - original?: F, - options?: MockFunctionOptions, - ): Mock; - fn undefined, Implementation extends Function = F>( - original?: F, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock; - /** - * This function is used to create a mock on an existing object method. The - * following example demonstrates how a mock is created on an existing object - * method. - * - * ```js - * test('spies on an object method', (t) => { - * const number = { - * value: 5, - * subtract(a) { - * return this.value - a; - * }, - * }; - * - * t.mock.method(number, 'subtract'); - * assert.strictEqual(number.subtract.mock.calls.length, 0); - * assert.strictEqual(number.subtract(3), 2); - * assert.strictEqual(number.subtract.mock.calls.length, 1); - * - * const call = number.subtract.mock.calls[0]; - * - * assert.deepStrictEqual(call.arguments, [3]); - * assert.strictEqual(call.result, 2); - * assert.strictEqual(call.error, undefined); - * assert.strictEqual(call.target, undefined); - * assert.strictEqual(call.this, number); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param object The object whose method is being mocked. - * @param methodName The identifier of the method on `object` to mock. If `object[methodName]` is not a function, an error is thrown. - * @param implementation An optional function used as the mock implementation for `object[methodName]`. - * @param options Optional configuration options for the mock method. - * @return The mocked method. The mocked method contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the - * behavior of the mocked method. - */ - method< - MockedObject extends object, - MethodName extends FunctionPropertyNames, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): MockedObject[MethodName] extends Function ? Mock - : never; - method< - MockedObject extends object, - MethodName extends FunctionPropertyNames, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation: Implementation, - options?: MockFunctionOptions, - ): MockedObject[MethodName] extends Function ? Mock - : never; - method( - object: MockedObject, - methodName: keyof MockedObject, - options: MockMethodOptions, - ): Mock; - method( - object: MockedObject, - methodName: keyof MockedObject, - implementation: Function, - options: MockMethodOptions, - ): Mock; - /** - * This function is syntax sugar for `MockTracker.method` with `options.getter` set to `true`. - * @since v19.3.0, v18.13.0 - */ - getter< - MockedObject extends object, - MethodName extends keyof MockedObject, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): Mock<() => MockedObject[MethodName]>; - getter< - MockedObject extends object, - MethodName extends keyof MockedObject, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock<(() => MockedObject[MethodName]) | Implementation>; - /** - * This function is syntax sugar for `MockTracker.method` with `options.setter` set to `true`. - * @since v19.3.0, v18.13.0 - */ - setter< - MockedObject extends object, - MethodName extends keyof MockedObject, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): Mock<(value: MockedObject[MethodName]) => void>; - setter< - MockedObject extends object, - MethodName extends keyof MockedObject, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>; - /** - * This function is used to mock the exports of ECMAScript modules, CommonJS modules, and Node.js builtin modules. - * Any references to the original module prior to mocking are not impacted. - * - * Only available through the [--experimental-test-module-mocks](https://nodejs.org/api/cli.html#--experimental-test-module-mocks) flag. - * @since v20.18.0 - * @experimental - * @param specifier A string identifying the module to mock. - * @param options Optional configuration options for the mock module. - */ - module(specifier: string, options?: MockModuleOptions): MockModuleContext; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be - * used to reset their behavior or - * otherwise interact with them. - * - * After each test completes, this function is called on the test context's `MockTracker`. If the global `MockTracker` is used extensively, calling this - * function manually is recommended. - * @since v19.1.0, v18.13.0 - */ - reset(): void; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTracker`. Unlike `mock.reset()`, `mock.restoreAll()` does - * not disassociate the mocks from the `MockTracker` instance. - * @since v19.1.0, v18.13.0 - */ - restoreAll(): void; - readonly timers: MockTimers; - } - const mock: MockTracker; - interface MockFunctionCall< - F extends Function, - ReturnType = F extends (...args: any) => infer T ? T - : F extends abstract new(...args: any) => infer T ? T - : unknown, - Args = F extends (...args: infer Y) => any ? Y - : F extends abstract new(...args: infer Y) => any ? Y - : unknown[], - > { - /** - * An array of the arguments passed to the mock function. - */ - arguments: Args; - /** - * If the mocked function threw then this property contains the thrown value. - */ - error: unknown | undefined; - /** - * The value returned by the mocked function. - * - * If the mocked function threw, it will be `undefined`. - */ - result: ReturnType | undefined; - /** - * An `Error` object whose stack can be used to determine the callsite of the mocked function invocation. - */ - stack: Error; - /** - * If the mocked function is a constructor, this field contains the class being constructed. - * Otherwise this will be `undefined`. - */ - target: F extends abstract new(...args: any) => any ? F : undefined; - /** - * The mocked function's `this` value. - */ - this: unknown; - } - /** - * The `MockFunctionContext` class is used to inspect or manipulate the behavior of - * mocks created via the `MockTracker` APIs. - * @since v19.1.0, v18.13.0 - */ - interface MockFunctionContext { - /** - * A getter that returns a copy of the internal array used to track calls to the - * mock. Each entry in the array is an object with the following properties. - * @since v19.1.0, v18.13.0 - */ - readonly calls: MockFunctionCall[]; - /** - * This function returns the number of times that this mock has been invoked. This - * function is more efficient than checking `ctx.calls.length` because `ctx.calls` is a getter that creates a copy of the internal call tracking array. - * @since v19.1.0, v18.13.0 - * @return The number of times that this mock has been invoked. - */ - callCount(): number; - /** - * This function is used to change the behavior of an existing mock. - * - * The following example creates a mock function using `t.mock.fn()`, calls the - * mock function, and then changes the mock implementation to a different function. - * - * ```js - * test('changes a mock behavior', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne); - * - * assert.strictEqual(fn(), 1); - * fn.mock.mockImplementation(addTwo); - * assert.strictEqual(fn(), 3); - * assert.strictEqual(fn(), 5); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param implementation The function to be used as the mock's new implementation. - */ - mockImplementation(implementation: F): void; - /** - * This function is used to change the behavior of an existing mock for a single - * invocation. Once invocation `onCall` has occurred, the mock will revert to - * whatever behavior it would have used had `mockImplementationOnce()` not been - * called. - * - * The following example creates a mock function using `t.mock.fn()`, calls the - * mock function, changes the mock implementation to a different function for the - * next invocation, and then resumes its previous behavior. - * - * ```js - * test('changes a mock behavior once', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne); - * - * assert.strictEqual(fn(), 1); - * fn.mock.mockImplementationOnce(addTwo); - * assert.strictEqual(fn(), 3); - * assert.strictEqual(fn(), 4); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`. - * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown. - */ - mockImplementationOnce(implementation: F, onCall?: number): void; - /** - * Resets the call history of the mock function. - * @since v19.3.0, v18.13.0 - */ - resetCalls(): void; - /** - * Resets the implementation of the mock function to its original behavior. The - * mock can still be used after calling this function. - * @since v19.1.0, v18.13.0 - */ - restore(): void; - } - /** - * @since v20.18.0 - * @experimental - */ - interface MockModuleContext { - /** - * Resets the implementation of the mock module. - * @since v20.18.0 - */ - restore(): void; - } - interface MockTimersOptions { - apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">; - now?: number | Date | undefined; - } - /** - * Mocking timers is a technique commonly used in software testing to simulate and - * control the behavior of timers, such as `setInterval` and `setTimeout`, - * without actually waiting for the specified time intervals. - * - * The MockTimers API also allows for mocking of the `Date` constructor and - * `setImmediate`/`clearImmediate` functions. - * - * The `MockTracker` provides a top-level `timers` export - * which is a `MockTimers` instance. - * @since v20.4.0 - * @experimental - */ - interface MockTimers { - /** - * Enables timer mocking for the specified timers. - * - * **Note:** When you enable mocking for a specific timer, its associated - * clear function will also be implicitly mocked. - * - * **Note:** Mocking `Date` will affect the behavior of the mocked timers - * as they use the same internal clock. - * - * Example usage without setting initial time: - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 }); - * ``` - * - * The above example enables mocking for the `Date` constructor, `setInterval` timer and - * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`, - * `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and `globalThis` will be mocked. - * - * Example usage with initial time set - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['Date'], now: 1000 }); - * ``` - * - * Example usage with initial Date object as time set - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['Date'], now: new Date() }); - * ``` - * - * Alternatively, if you call `mock.timers.enable()` without any parameters: - * - * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`) - * will be mocked. - * - * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`, - * and `globalThis` will be mocked. - * The `Date` constructor from `globalThis` will be mocked. - * - * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can - * set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date - * object. It can either be a positive integer, or another Date object. - * @since v20.4.0 - */ - enable(options?: MockTimersOptions): void; - /** - * You can use the `.setTime()` method to manually move the mocked date to another time. This method only accepts a positive integer. - * Note: This method will execute any mocked timers that are in the past from the new time. - * In the below example we are setting a new time for the mocked date. - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * test('sets the time of a date object', (context) => { - * // Optionally choose what to mock - * context.mock.timers.enable({ apis: ['Date'], now: 100 }); - * assert.strictEqual(Date.now(), 100); - * // Advance in time will also advance the date - * context.mock.timers.setTime(1000); - * context.mock.timers.tick(200); - * assert.strictEqual(Date.now(), 1200); - * }); - * ``` - */ - setTime(time: number): void; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTimers` instance and disassociates the mocks - * from the `MockTracker` instance. - * - * **Note:** After each test completes, this function is called on - * the test context's `MockTracker`. - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.reset(); - * ``` - * @since v20.4.0 - */ - reset(): void; - /** - * Advances time for all mocked timers. - * - * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts - * only positive numbers. In Node.js, `setTimeout` with negative numbers is - * only supported for web compatibility reasons. - * - * The following example mocks a `setTimeout` function and - * by using `.tick` advances in - * time triggering all pending timers. - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * - * context.mock.timers.enable({ apis: ['setTimeout'] }); - * - * setTimeout(fn, 9999); - * - * assert.strictEqual(fn.mock.callCount(), 0); - * - * // Advance in time - * context.mock.timers.tick(9999); - * - * assert.strictEqual(fn.mock.callCount(), 1); - * }); - * ``` - * - * Alternativelly, the `.tick` function can be called many times - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * context.mock.timers.enable({ apis: ['setTimeout'] }); - * const nineSecs = 9000; - * setTimeout(fn, nineSecs); - * - * const twoSeconds = 3000; - * context.mock.timers.tick(twoSeconds); - * context.mock.timers.tick(twoSeconds); - * context.mock.timers.tick(twoSeconds); - * - * assert.strictEqual(fn.mock.callCount(), 1); - * }); - * ``` - * - * Advancing time using `.tick` will also advance the time for any `Date` object - * created after the mock was enabled (if `Date` was also set to be mocked). - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * - * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); - * setTimeout(fn, 9999); - * - * assert.strictEqual(fn.mock.callCount(), 0); - * assert.strictEqual(Date.now(), 0); - * - * // Advance in time - * context.mock.timers.tick(9999); - * assert.strictEqual(fn.mock.callCount(), 1); - * assert.strictEqual(Date.now(), 9999); - * }); - * ``` - * @since v20.4.0 - */ - tick(milliseconds: number): void; - /** - * Triggers all pending mocked timers immediately. If the `Date` object is also - * mocked, it will also advance the `Date` object to the furthest timer's time. - * - * The example below triggers all pending timers immediately, - * causing them to execute without any delay. - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('runAll functions following the given order', (context) => { - * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); - * const results = []; - * setTimeout(() => results.push(1), 9999); - * - * // Notice that if both timers have the same timeout, - * // the order of execution is guaranteed - * setTimeout(() => results.push(3), 8888); - * setTimeout(() => results.push(2), 8888); - * - * assert.deepStrictEqual(results, []); - * - * context.mock.timers.runAll(); - * assert.deepStrictEqual(results, [3, 2, 1]); - * // The Date object is also advanced to the furthest timer's time - * assert.strictEqual(Date.now(), 9999); - * }); - * ``` - * - * **Note:** The `runAll()` function is specifically designed for - * triggering timers in the context of timer mocking. - * It does not have any effect on real-time system - * clocks or actual timers outside of the mocking environment. - * @since v20.4.0 - */ - runAll(): void; - /** - * Calls {@link MockTimers.reset()}. - */ - [Symbol.dispose](): void; - } - } - type FunctionPropertyNames = { - [K in keyof T]: T[K] extends Function ? K : never; - }[keyof T]; - export = test; -} - -/** - * The `node:test/reporters` module exposes the builtin-reporters for `node:test`. - * To access it: - * - * ```js - * import test from 'node:test/reporters'; - * ``` - * - * This module is only available under the `node:` scheme. The following will not - * work: - * - * ```js - * import test from 'test/reporters'; - * ``` - * @since v19.9.0 - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test/reporters.js) - */ -declare module "node:test/reporters" { - import { Transform, TransformOptions } from "node:stream"; - import { EventData } from "node:test"; - - type TestEvent = - | { type: "test:coverage"; data: EventData.TestCoverage } - | { type: "test:complete"; data: EventData.TestComplete } - | { type: "test:dequeue"; data: EventData.TestDequeue } - | { type: "test:diagnostic"; data: EventData.TestDiagnostic } - | { type: "test:enqueue"; data: EventData.TestEnqueue } - | { type: "test:fail"; data: EventData.TestFail } - | { type: "test:pass"; data: EventData.TestPass } - | { type: "test:plan"; data: EventData.TestPlan } - | { type: "test:start"; data: EventData.TestStart } - | { type: "test:stderr"; data: EventData.TestStderr } - | { type: "test:stdout"; data: EventData.TestStdout } - | { type: "test:watch:drained"; data: undefined }; - type TestEventGenerator = AsyncGenerator; - - /** - * The `dot` reporter outputs the test results in a compact format, - * where each passing test is represented by a `.`, - * and each failing test is represented by a `X`. - * @since v20.0.0 - */ - function dot(source: TestEventGenerator): AsyncGenerator<"\n" | "." | "X", void>; - /** - * The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format. - * @since v20.0.0 - */ - function tap(source: TestEventGenerator): AsyncGenerator; - /** - * The `spec` reporter outputs the test results in a human-readable format. - * @since v20.0.0 - */ - class SpecReporter extends Transform { - constructor(); - } - /** - * The `junit` reporter outputs test results in a jUnit XML format. - * @since v21.0.0 - */ - function junit(source: TestEventGenerator): AsyncGenerator; - class LcovReporter extends Transform { - constructor(opts?: Omit); - } - /** - * The `lcov` reporter outputs test coverage when used with the - * [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--experimental-test-coverage) flag. - * @since v22.0.0 - */ - const lcov: LcovReporter; - - export { dot, junit, lcov, SpecReporter as spec, tap, TestEvent }; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/timers.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/timers.d.ts deleted file mode 100644 index 57a8d9f..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/timers.d.ts +++ /dev/null @@ -1,286 +0,0 @@ -/** - * The `timer` module exposes a global API for scheduling functions to - * be called at some future period of time. Because the timer functions are - * globals, there is no need to import `node:timers` to use the API. - * - * The timer functions within Node.js implement a similar API as the timers API - * provided by Web Browsers but use a different internal implementation that is - * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout). - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/timers.js) - */ -declare module "timers" { - import { Abortable } from "node:events"; - import * as promises from "node:timers/promises"; - export interface TimerOptions extends Abortable { - /** - * Set to `false` to indicate that the scheduled `Timeout` - * should not require the Node.js event loop to remain active. - * @default true - */ - ref?: boolean | undefined; - } - global { - namespace NodeJS { - /** - * This object is created internally and is returned from `setImmediate()`. It - * can be passed to `clearImmediate()` in order to cancel the scheduled - * actions. - * - * By default, when an immediate is scheduled, the Node.js event loop will continue - * running as long as the immediate is active. The `Immediate` object returned by - * `setImmediate()` exports both `immediate.ref()` and `immediate.unref()` - * functions that can be used to control this default behavior. - */ - interface Immediate extends RefCounted, Disposable { - /** - * If true, the `Immediate` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the - * `Immediate` is active. Calling `immediate.ref()` multiple times will have no - * effect. - * - * By default, all `Immediate` objects are "ref'ed", making it normally unnecessary - * to call `immediate.ref()` unless `immediate.unref()` had been called previously. - * @since v9.7.0 - * @returns a reference to `immediate` - */ - ref(): this; - /** - * When called, the active `Immediate` object will not require the Node.js event - * loop to remain active. If there is no other activity keeping the event loop - * running, the process may exit before the `Immediate` object's callback is - * invoked. Calling `immediate.unref()` multiple times will have no effect. - * @since v9.7.0 - * @returns a reference to `immediate` - */ - unref(): this; - /** - * Cancels the immediate. This is similar to calling `clearImmediate()`. - * @since v20.5.0, v18.18.0 - * @experimental - */ - [Symbol.dispose](): void; - _onImmediate(...args: any[]): void; - } - // Legacy interface used in Node.js v9 and prior - /** @deprecated Use `NodeJS.Timeout` instead. */ - interface Timer extends RefCounted { - hasRef(): boolean; - refresh(): this; - [Symbol.toPrimitive](): number; - } - /** - * This object is created internally and is returned from `setTimeout()` and - * `setInterval()`. It can be passed to either `clearTimeout()` or - * `clearInterval()` in order to cancel the scheduled actions. - * - * By default, when a timer is scheduled using either `setTimeout()` or - * `setInterval()`, the Node.js event loop will continue running as long as the - * timer is active. Each of the `Timeout` objects returned by these functions - * export both `timeout.ref()` and `timeout.unref()` functions that can be used to - * control this default behavior. - */ - interface Timeout extends RefCounted, Disposable, Timer { - /** - * Cancels the timeout. - * @since v0.9.1 - * @legacy Use `clearTimeout()` instead. - * @returns a reference to `timeout` - */ - close(): this; - /** - * If true, the `Timeout` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the - * `Timeout` is active. Calling `timeout.ref()` multiple times will have no effect. - * - * By default, all `Timeout` objects are "ref'ed", making it normally unnecessary - * to call `timeout.ref()` unless `timeout.unref()` had been called previously. - * @since v0.9.1 - * @returns a reference to `timeout` - */ - ref(): this; - /** - * Sets the timer's start time to the current time, and reschedules the timer to - * call its callback at the previously specified duration adjusted to the current - * time. This is useful for refreshing a timer without allocating a new - * JavaScript object. - * - * Using this on a timer that has already called its callback will reactivate the - * timer. - * @since v10.2.0 - * @returns a reference to `timeout` - */ - refresh(): this; - /** - * When called, the active `Timeout` object will not require the Node.js event loop - * to remain active. If there is no other activity keeping the event loop running, - * the process may exit before the `Timeout` object's callback is invoked. Calling - * `timeout.unref()` multiple times will have no effect. - * @since v0.9.1 - * @returns a reference to `timeout` - */ - unref(): this; - /** - * Coerce a `Timeout` to a primitive. The primitive can be used to - * clear the `Timeout`. The primitive can only be used in the - * same thread where the timeout was created. Therefore, to use it - * across `worker_threads` it must first be passed to the correct - * thread. This allows enhanced compatibility with browser - * `setTimeout()` and `setInterval()` implementations. - * @since v14.9.0, v12.19.0 - */ - [Symbol.toPrimitive](): number; - /** - * Cancels the timeout. - * @since v20.5.0, v18.18.0 - * @experimental - */ - [Symbol.dispose](): void; - _onTimeout(...args: any[]): void; - } - } - /** - * Schedules the "immediate" execution of the `callback` after I/O events' - * callbacks. - * - * When multiple calls to `setImmediate()` are made, the `callback` functions are - * queued for execution in the order in which they are created. The entire callback - * queue is processed every event loop iteration. If an immediate timer is queued - * from inside an executing callback, that timer will not be triggered until the - * next event loop iteration. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setImmediate()`. - * @since v0.9.1 - * @param callback The function to call at the end of this turn of - * the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout) - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearImmediate()` - */ - function setImmediate( - callback: (...args: TArgs) => void, - ...args: TArgs - ): NodeJS.Immediate; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setImmediate(callback: (_: void) => void): NodeJS.Immediate; - namespace setImmediate { - import __promisify__ = promises.setImmediate; - export { __promisify__ }; - } - /** - * Schedules repeated execution of `callback` every `delay` milliseconds. - * - * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be - * set to `1`. Non-integer delays are truncated to an integer. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setInterval()`. - * @since v0.0.1 - * @param callback The function to call when the timer elapses. - * @param delay The number of milliseconds to wait before calling the - * `callback`. **Default:** `1`. - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearInterval()` - */ - function setInterval( - callback: (...args: TArgs) => void, - delay?: number, - ...args: TArgs - ): NodeJS.Timeout; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setInterval(callback: (_: void) => void, delay?: number): NodeJS.Timeout; - /** - * Schedules execution of a one-time `callback` after `delay` milliseconds. - * - * The `callback` will likely not be invoked in precisely `delay` milliseconds. - * Node.js makes no guarantees about the exact timing of when callbacks will fire, - * nor of their ordering. The callback will be called as close as possible to the - * time specified. - * - * When `delay` is larger than `2147483647` or less than `1` or `NaN`, the `delay` - * will be set to `1`. Non-integer delays are truncated to an integer. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setTimeout()`. - * @since v0.0.1 - * @param callback The function to call when the timer elapses. - * @param delay The number of milliseconds to wait before calling the - * `callback`. **Default:** `1`. - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearTimeout()` - */ - function setTimeout( - callback: (...args: TArgs) => void, - delay?: number, - ...args: TArgs - ): NodeJS.Timeout; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setTimeout(callback: (_: void) => void, delay?: number): NodeJS.Timeout; - namespace setTimeout { - import __promisify__ = promises.setTimeout; - export { __promisify__ }; - } - /** - * Cancels an `Immediate` object created by `setImmediate()`. - * @since v0.9.1 - * @param immediate An `Immediate` object as returned by `setImmediate()`. - */ - function clearImmediate(immediate: NodeJS.Immediate | undefined): void; - /** - * Cancels a `Timeout` object created by `setInterval()`. - * @since v0.0.1 - * @param timeout A `Timeout` object as returned by `setInterval()` - * or the primitive of the `Timeout` object as a string or a number. - */ - function clearInterval(timeout: NodeJS.Timeout | string | number | undefined): void; - /** - * Cancels a `Timeout` object created by `setTimeout()`. - * @since v0.0.1 - * @param timeout A `Timeout` object as returned by `setTimeout()` - * or the primitive of the `Timeout` object as a string or a number. - */ - function clearTimeout(timeout: NodeJS.Timeout | string | number | undefined): void; - /** - * The `queueMicrotask()` method queues a microtask to invoke `callback`. If - * `callback` throws an exception, the `process` object `'uncaughtException'` - * event will be emitted. - * - * The microtask queue is managed by V8 and may be used in a similar manner to - * the `process.nextTick()` queue, which is managed by Node.js. The - * `process.nextTick()` queue is always processed before the microtask queue - * within each turn of the Node.js event loop. - * @since v11.0.0 - * @param callback Function to be queued. - */ - function queueMicrotask(callback: () => void): void; - } - import clearImmediate = globalThis.clearImmediate; - import clearInterval = globalThis.clearInterval; - import clearTimeout = globalThis.clearTimeout; - import setImmediate = globalThis.setImmediate; - import setInterval = globalThis.setInterval; - import setTimeout = globalThis.setTimeout; - export { clearImmediate, clearInterval, clearTimeout, promises, setImmediate, setInterval, setTimeout }; -} -declare module "node:timers" { - export * from "timers"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/timers/promises.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/timers/promises.d.ts deleted file mode 100644 index 29d7ff0..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/timers/promises.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * The `timers/promises` API provides an alternative set of timer functions - * that return `Promise` objects. The API is accessible via - * `require('node:timers/promises')`. - * - * ```js - * import { - * setTimeout, - * setImmediate, - * setInterval, - * } from 'node:timers/promises'; - * ``` - * @since v15.0.0 - * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/timers/promises.js) - */ -declare module "timers/promises" { - import { TimerOptions } from "node:timers"; - /** - * ```js - * import { - * setTimeout, - * } from 'node:timers/promises'; - * - * const res = await setTimeout(100, 'result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param delay The number of milliseconds to wait before fulfilling the - * promise. **Default:** `1`. - * @param value A value with which the promise is fulfilled. - */ - function setTimeout(delay?: number, value?: T, options?: TimerOptions): Promise; - /** - * ```js - * import { - * setImmediate, - * } from 'node:timers/promises'; - * - * const res = await setImmediate('result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param value A value with which the promise is fulfilled. - */ - function setImmediate(value?: T, options?: TimerOptions): Promise; - /** - * Returns an async iterator that generates values in an interval of `delay` ms. - * If `ref` is `true`, you need to call `next()` of async iterator explicitly - * or implicitly to keep the event loop alive. - * - * ```js - * import { - * setInterval, - * } from 'node:timers/promises'; - * - * const interval = 100; - * for await (const startTime of setInterval(interval, Date.now())) { - * const now = Date.now(); - * console.log(now); - * if ((now - startTime) > 1000) - * break; - * } - * console.log(Date.now()); - * ``` - * @since v15.9.0 - * @param delay The number of milliseconds to wait between iterations. - * **Default:** `1`. - * @param value A value with which the iterator returns. - */ - function setInterval(delay?: number, value?: T, options?: TimerOptions): NodeJS.AsyncIterator; - interface Scheduler { - /** - * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification - * being developed as a standard Web Platform API. - * - * Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent - * to calling `timersPromises.setTimeout(delay, undefined, options)` except that - * the `ref` option is not supported. - * - * ```js - * import { scheduler } from 'node:timers/promises'; - * - * await scheduler.wait(1000); // Wait one second before continuing - * ``` - * @since v17.3.0, v16.14.0 - * @experimental - * @param delay The number of milliseconds to wait before resolving the - * promise. - */ - wait(delay: number, options?: { signal?: AbortSignal }): Promise; - /** - * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification - * being developed as a standard Web Platform API. - * - * Calling `timersPromises.scheduler.yield()` is equivalent to calling - * `timersPromises.setImmediate()` with no arguments. - * @since v17.3.0, v16.14.0 - * @experimental - */ - yield(): Promise; - } - const scheduler: Scheduler; -} -declare module "node:timers/promises" { - export * from "timers/promises"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/tls.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/tls.d.ts deleted file mode 100644 index 0b819a1..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/tls.d.ts +++ /dev/null @@ -1,1259 +0,0 @@ -/** - * The `node:tls` module provides an implementation of the Transport Layer Security - * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. - * The module can be accessed using: - * - * ```js - * import tls from 'node:tls'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tls.js) - */ -declare module "tls" { - import { NonSharedBuffer } from "node:buffer"; - import { X509Certificate } from "node:crypto"; - import * as net from "node:net"; - import * as stream from "stream"; - const CLIENT_RENEG_LIMIT: number; - const CLIENT_RENEG_WINDOW: number; - interface Certificate { - /** - * Country code. - */ - C: string; - /** - * Street. - */ - ST: string; - /** - * Locality. - */ - L: string; - /** - * Organization. - */ - O: string; - /** - * Organizational unit. - */ - OU: string; - /** - * Common name. - */ - CN: string; - } - interface PeerCertificate { - /** - * `true` if a Certificate Authority (CA), `false` otherwise. - * @since v18.13.0 - */ - ca: boolean; - /** - * The DER encoded X.509 certificate data. - */ - raw: NonSharedBuffer; - /** - * The certificate subject. - */ - subject: Certificate; - /** - * The certificate issuer, described in the same terms as the `subject`. - */ - issuer: Certificate; - /** - * The date-time the certificate is valid from. - */ - valid_from: string; - /** - * The date-time the certificate is valid to. - */ - valid_to: string; - /** - * The certificate serial number, as a hex string. - */ - serialNumber: string; - /** - * The SHA-1 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint: string; - /** - * The SHA-256 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint256: string; - /** - * The SHA-512 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint512: string; - /** - * The extended key usage, a set of OIDs. - */ - ext_key_usage?: string[]; - /** - * A string containing concatenated names for the subject, - * an alternative to the `subject` names. - */ - subjectaltname?: string; - /** - * An array describing the AuthorityInfoAccess, used with OCSP. - */ - infoAccess?: NodeJS.Dict; - /** - * For RSA keys: The RSA bit size. - * - * For EC keys: The key size in bits. - */ - bits?: number; - /** - * The RSA exponent, as a string in hexadecimal number notation. - */ - exponent?: string; - /** - * The RSA modulus, as a hexadecimal string. - */ - modulus?: string; - /** - * The public key. - */ - pubkey?: NonSharedBuffer; - /** - * The ASN.1 name of the OID of the elliptic curve. - * Well-known curves are identified by an OID. - * While it is unusual, it is possible that the curve - * is identified by its mathematical properties, - * in which case it will not have an OID. - */ - asn1Curve?: string; - /** - * The NIST name for the elliptic curve, if it has one - * (not all well-known curves have been assigned names by NIST). - */ - nistCurve?: string; - } - interface DetailedPeerCertificate extends PeerCertificate { - /** - * The issuer certificate object. - * For self-signed certificates, this may be a circular reference. - */ - issuerCertificate: DetailedPeerCertificate; - } - interface CipherNameAndProtocol { - /** - * The cipher name. - */ - name: string; - /** - * SSL/TLS protocol version. - */ - version: string; - /** - * IETF name for the cipher suite. - */ - standardName: string; - } - interface EphemeralKeyInfo { - /** - * The supported types are 'DH' and 'ECDH'. - */ - type: string; - /** - * The name property is available only when type is 'ECDH'. - */ - name?: string | undefined; - /** - * The size of parameter of an ephemeral key exchange. - */ - size: number; - } - interface KeyObject { - /** - * Private keys in PEM format. - */ - pem: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface PxfObject { - /** - * PFX or PKCS12 encoded private key and certificate chain. - */ - buf: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions { - /** - * If true the TLS socket will be instantiated in server-mode. - * Defaults to false. - */ - isServer?: boolean | undefined; - /** - * An optional net.Server instance. - */ - server?: net.Server | undefined; - /** - * An optional Buffer instance containing a TLS session. - */ - session?: Buffer | undefined; - /** - * If true, specifies that the OCSP status request extension will be - * added to the client hello and an 'OCSPResponse' event will be - * emitted on the socket before establishing a secure communication - */ - requestOCSP?: boolean | undefined; - } - /** - * Performs transparent encryption of written data and all required TLS - * negotiation. - * - * Instances of `tls.TLSSocket` implement the duplex `Stream` interface. - * - * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate}) will only return data while the - * connection is open. - * @since v0.11.4 - */ - class TLSSocket extends net.Socket { - /** - * Construct a new tls.TLSSocket object from an existing TCP socket. - */ - constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions); - /** - * This property is `true` if the peer certificate was signed by one of the CAs - * specified when creating the `tls.TLSSocket` instance, otherwise `false`. - * @since v0.11.4 - */ - authorized: boolean; - /** - * Returns the reason why the peer's certificate was not been verified. This - * property is set only when `tlsSocket.authorized === false`. - * @since v0.11.4 - */ - authorizationError: Error; - /** - * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances. - * @since v0.11.4 - */ - encrypted: true; - /** - * String containing the selected ALPN protocol. - * Before a handshake has completed, this value is always null. - * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false. - */ - alpnProtocol: string | false | null; - /** - * String containing the server name requested via SNI (Server Name Indication) TLS extension. - */ - servername: string | false | null; - /** - * Returns an object representing the local certificate. The returned object has - * some properties corresponding to the fields of the certificate. - * - * See {@link TLSSocket.getPeerCertificate} for an example of the certificate - * structure. - * - * If there is no local certificate, an empty object will be returned. If the - * socket has been destroyed, `null` will be returned. - * @since v11.2.0 - */ - getCertificate(): PeerCertificate | object | null; - /** - * Returns an object containing information on the negotiated cipher suite. - * - * For example, a TLSv1.2 protocol with AES256-SHA cipher: - * - * ```json - * { - * "name": "AES256-SHA", - * "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA", - * "version": "SSLv3" - * } - * ``` - * - * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information. - * @since v0.11.4 - */ - getCipher(): CipherNameAndProtocol; - /** - * Returns an object representing the type, name, and size of parameter of - * an ephemeral key exchange in `perfect forward secrecy` on a client - * connection. It returns an empty object when the key exchange is not - * ephemeral. As this is only supported on a client socket; `null` is returned - * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`. - * - * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. - * @since v5.0.0 - */ - getEphemeralKeyInfo(): EphemeralKeyInfo | object | null; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet. - */ - getFinished(): NonSharedBuffer | undefined; - /** - * Returns an object representing the peer's certificate. If the peer does not - * provide a certificate, an empty object will be returned. If the socket has been - * destroyed, `null` will be returned. - * - * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's - * certificate. - * @since v0.11.4 - * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate. - * @return A certificate object. - */ - getPeerCertificate(detailed: true): DetailedPeerCertificate; - getPeerCertificate(detailed?: false): PeerCertificate; - getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so - * far. - */ - getPeerFinished(): NonSharedBuffer | undefined; - /** - * Returns a string containing the negotiated SSL/TLS protocol version of the - * current connection. The value `'unknown'` will be returned for connected - * sockets that have not completed the handshaking process. The value `null` will - * be returned for server sockets or disconnected client sockets. - * - * Protocol versions are: - * - * * `'SSLv3'` - * * `'TLSv1'` - * * `'TLSv1.1'` - * * `'TLSv1.2'` - * * `'TLSv1.3'` - * - * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information. - * @since v5.7.0 - */ - getProtocol(): string | null; - /** - * Returns the TLS session data or `undefined` if no session was - * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful - * for debugging. - * - * See `Session Resumption` for more information. - * - * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications - * must use the `'session'` event (it also works for TLSv1.2 and below). - * @since v0.11.4 - */ - getSession(): NonSharedBuffer | undefined; - /** - * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information. - * @since v12.11.0 - * @return List of signature algorithms shared between the server and the client in the order of decreasing preference. - */ - getSharedSigalgs(): string[]; - /** - * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`. - * - * It may be useful for debugging. - * - * See `Session Resumption` for more information. - * @since v0.11.4 - */ - getTLSTicket(): NonSharedBuffer | undefined; - /** - * See `Session Resumption` for more information. - * @since v0.5.6 - * @return `true` if the session was reused, `false` otherwise. - */ - isSessionReused(): boolean; - /** - * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process. - * Upon completion, the `callback` function will be passed a single argument - * that is either an `Error` (if the request failed) or `null`. - * - * This method can be used to request a peer's certificate after the secure - * connection has been established. - * - * When running as the server, the socket will be destroyed with an error after `handshakeTimeout` timeout. - * - * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the - * protocol. - * @since v0.11.8 - * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with - * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all. - * @return `true` if renegotiation was initiated, `false` otherwise. - */ - renegotiate( - options: { - rejectUnauthorized?: boolean | undefined; - requestCert?: boolean | undefined; - }, - callback: (err: Error | null) => void, - ): undefined | boolean; - /** - * The `tlsSocket.setKeyCert()` method sets the private key and certificate to use for the socket. - * This is mainly useful if you wish to select a server certificate from a TLS server's `ALPNCallback`. - * @since v22.5.0, v20.17.0 - * @param context An object containing at least `key` and `cert` properties from the {@link createSecureContext()} `options`, - * or a TLS context object created with {@link createSecureContext()} itself. - */ - setKeyCert(context: SecureContextOptions | SecureContext): void; - /** - * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size. - * Returns `true` if setting the limit succeeded; `false` otherwise. - * - * Smaller fragment sizes decrease the buffering latency on the client: larger - * fragments are buffered by the TLS layer until the entire fragment is received - * and its integrity is verified; large fragments can span multiple roundtrips - * and their processing can be delayed due to packet loss or reordering. However, - * smaller fragments add extra TLS framing bytes and CPU overhead, which may - * decrease overall server throughput. - * @since v0.11.11 - * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`. - */ - setMaxSendFragment(size: number): boolean; - /** - * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts - * to renegotiate will trigger an `'error'` event on the `TLSSocket`. - * @since v8.4.0 - */ - disableRenegotiation(): void; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * - * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by - * OpenSSL's `SSL_trace()` function, the format is undocumented, can change - * without notice, and should not be relied on. - * @since v12.2.0 - */ - enableTrace(): void; - /** - * Returns the peer certificate as an `X509Certificate` object. - * - * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getPeerX509Certificate(): X509Certificate | undefined; - /** - * Returns the local certificate as an `X509Certificate` object. - * - * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getX509Certificate(): X509Certificate | undefined; - /** - * Keying material is used for validations to prevent different kind of attacks in - * network protocols, for example in the specifications of IEEE 802.1X. - * - * Example - * - * ```js - * const keyingMaterial = tlsSocket.exportKeyingMaterial( - * 128, - * 'client finished'); - * - * /* - * Example return value of keyingMaterial: - * - * - * ``` - * - * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more - * information. - * @since v13.10.0, v12.17.0 - * @param length number of bytes to retrieve from keying material - * @param label an application specific label, typically this will be a value from the [IANA Exporter Label - * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). - * @param context Optionally provide a context. - * @return requested bytes of the keying material - */ - exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - addListener(event: "secureConnect", listener: () => void): this; - addListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "OCSPResponse", response: NonSharedBuffer): boolean; - emit(event: "secureConnect"): boolean; - emit(event: "session", session: NonSharedBuffer): boolean; - emit(event: "keylog", line: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - on(event: "secureConnect", listener: () => void): this; - on(event: "session", listener: (session: NonSharedBuffer) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - once(event: "secureConnect", listener: () => void): this; - once(event: "session", listener: (session: NonSharedBuffer) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - prependListener(event: "secureConnect", listener: () => void): this; - prependListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - prependOnceListener(event: "secureConnect", listener: () => void): this; - prependOnceListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - } - interface CommonConnectionOptions { - /** - * An optional TLS context object from tls.createSecureContext() - */ - secureContext?: SecureContext | undefined; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * @default false - */ - enableTrace?: boolean | undefined; - /** - * If true the server will request a certificate from clients that - * connect and attempt to verify that certificate. Defaults to - * false. - */ - requestCert?: boolean | undefined; - /** - * An array of strings or a Buffer naming possible ALPN protocols. - * (Protocols should be ordered by their priority.) - */ - ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined; - /** - * SNICallback(servername, cb) A function that will be - * called if the client supports SNI TLS extension. Two arguments - * will be passed when called: servername and cb. SNICallback should - * invoke cb(null, ctx), where ctx is a SecureContext instance. - * (tls.createSecureContext(...) can be used to get a proper - * SecureContext.) If SNICallback wasn't provided the default callback - * with high-level API will be used (see below). - */ - SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined; - /** - * If true the server will reject any connection which is not - * authorized with the list of supplied CAs. This option only has an - * effect if requestCert is true. - * @default true - */ - rejectUnauthorized?: boolean | undefined; - } - interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts { - /** - * Abort the connection if the SSL/TLS handshake does not finish in the - * specified number of milliseconds. A 'tlsClientError' is emitted on - * the tls.Server object whenever a handshake times out. Default: - * 120000 (120 seconds). - */ - handshakeTimeout?: number | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - */ - ticketKeys?: Buffer | undefined; - /** - * @param socket - * @param identity identity parameter sent from the client. - * @return pre-shared key that must either be - * a buffer or `null` to stop the negotiation process. Returned PSK must be - * compatible with the selected cipher's digest. - * - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with the identity provided by the client. - * If the return value is `null` the negotiation process will stop and an - * "unknown_psk_identity" alert message will be sent to the other party. - * If the server wishes to hide the fact that the PSK identity was not known, - * the callback must provide some random data as `psk` to make the connection - * fail with "decrypt_error" before negotiation is finished. - * PSK ciphers are disabled by default, and using TLS-PSK thus - * requires explicitly specifying a cipher suite with the `ciphers` option. - * More information can be found in the RFC 4279. - */ - pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined; - /** - * hint to send to a client to help - * with selecting the identity during TLS-PSK negotiation. Will be ignored - * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be - * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code. - */ - pskIdentityHint?: string | undefined; - } - interface PSKCallbackNegotation { - psk: NodeJS.ArrayBufferView; - identity: string; - } - interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions { - host?: string | undefined; - port?: number | undefined; - path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored. - socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket - checkServerIdentity?: typeof checkServerIdentity | undefined; - servername?: string | undefined; // SNI TLS Extension - session?: Buffer | undefined; - minDHSize?: number | undefined; - lookup?: net.LookupFunction | undefined; - timeout?: number | undefined; - /** - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with optional identity `hint` provided by the server or `null` - * in case of TLS 1.3 where `hint` was removed. - * It will be necessary to provide a custom `tls.checkServerIdentity()` - * for the connection as the default one will try to check hostname/IP - * of the server against the certificate but that's not applicable for PSK - * because there won't be a certificate present. - * More information can be found in the RFC 4279. - * - * @param hint message sent from the server to help client - * decide which identity to use during negotiation. - * Always `null` if TLS 1.3 is used. - * @returns Return `null` to stop the negotiation process. `psk` must be - * compatible with the selected cipher's digest. - * `identity` must use UTF-8 encoding. - */ - pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined; - } - /** - * Accepts encrypted connections using TLS or SSL. - * @since v0.3.2 - */ - class Server extends net.Server { - constructor(secureConnectionListener?: (socket: TLSSocket) => void); - constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void); - /** - * The `server.addContext()` method adds a secure context that will be used if - * the client request's SNI name matches the supplied `hostname` (or wildcard). - * - * When there are multiple matching contexts, the most recently added one is - * used. - * @since v0.5.3 - * @param hostname A SNI host name or wildcard (e.g. `'*'`) - * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created - * with {@link createSecureContext} itself. - */ - addContext(hostname: string, context: SecureContextOptions | SecureContext): void; - /** - * Returns the session ticket keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @return A 48-byte buffer containing the session ticket keys. - */ - getTicketKeys(): NonSharedBuffer; - /** - * The `server.setSecureContext()` method replaces the secure context of an - * existing server. Existing connections to the server are not interrupted. - * @since v11.0.0 - * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). - */ - setSecureContext(options: SecureContextOptions): void; - /** - * Sets the session ticket keys. - * - * Changes to the ticket keys are effective only for future server connections. - * Existing or currently pending server connections will use the previous keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @param keys A 48-byte buffer containing the session ticket keys. - */ - setTicketKeys(keys: Buffer): void; - /** - * events.EventEmitter - * 1. tlsClientError - * 2. newSession - * 3. OCSPRequest - * 4. resumeSession - * 5. secureConnection - * 6. keylog - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - addListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - addListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - addListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean; - emit( - event: "newSession", - sessionId: NonSharedBuffer, - sessionData: NonSharedBuffer, - callback: () => void, - ): boolean; - emit( - event: "OCSPRequest", - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ): boolean; - emit( - event: "resumeSession", - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ): boolean; - emit(event: "secureConnection", tlsSocket: TLSSocket): boolean; - emit(event: "keylog", line: NonSharedBuffer, tlsSocket: TLSSocket): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - on( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - on( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - on( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - once( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - once( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - once( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependOnceListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependOnceListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - } - /** - * @deprecated since v0.11.3 Use `tls.TLSSocket` instead. - */ - interface SecurePair { - encrypted: TLSSocket; - cleartext: TLSSocket; - } - type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1"; - interface SecureContextOptions { - /** - * If set, this will be called when a client opens a connection using the ALPN extension. - * One argument will be passed to the callback: an object containing `servername` and `protocols` fields, - * respectively containing the server name from the SNI extension (if any) and an array of - * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, - * which will be returned to the client as the selected ALPN protocol, or `undefined`, - * to reject the connection with a fatal alert. If a string is returned that does not match one of - * the client's ALPN protocols, an error will be thrown. - * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error. - */ - ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined; - /** - * Treat intermediate (non-self-signed) - * certificates in the trust CA certificate list as trusted. - * @since v22.9.0, v20.18.0 - */ - allowPartialTrustChain?: boolean | undefined; - /** - * Optionally override the trusted CA certificates. Default is to trust - * the well-known CAs curated by Mozilla. Mozilla's CAs are completely - * replaced when CAs are explicitly specified using this option. - */ - ca?: string | Buffer | Array | undefined; - /** - * Cert chains in PEM format. One cert chain should be provided per - * private key. Each cert chain should consist of the PEM formatted - * certificate for a provided private key, followed by the PEM - * formatted intermediate certificates (if any), in order, and not - * including the root CA (the root CA must be pre-known to the peer, - * see ca). When providing multiple cert chains, they do not have to - * be in the same order as their private keys in key. If the - * intermediate certificates are not provided, the peer will not be - * able to validate the certificate, and the handshake will fail. - */ - cert?: string | Buffer | Array | undefined; - /** - * Colon-separated list of supported signature algorithms. The list - * can contain digest algorithms (SHA256, MD5 etc.), public key - * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g - * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512). - */ - sigalgs?: string | undefined; - /** - * Cipher suite specification, replacing the default. For more - * information, see modifying the default cipher suite. Permitted - * ciphers can be obtained via tls.getCiphers(). Cipher names must be - * uppercased in order for OpenSSL to accept them. - */ - ciphers?: string | undefined; - /** - * Name of an OpenSSL engine which can provide the client certificate. - */ - clientCertEngine?: string | undefined; - /** - * PEM formatted CRLs (Certificate Revocation Lists). - */ - crl?: string | Buffer | Array | undefined; - /** - * `'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy. - * If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available. - * ECDHE-based perfect forward secrecy will still be available. - */ - dhparam?: string | Buffer | undefined; - /** - * A string describing a named curve or a colon separated list of curve - * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key - * agreement. Set to auto to select the curve automatically. Use - * crypto.getCurves() to obtain a list of available curve names. On - * recent releases, openssl ecparam -list_curves will also display the - * name and description of each available elliptic curve. Default: - * tls.DEFAULT_ECDH_CURVE. - */ - ecdhCurve?: string | undefined; - /** - * Attempt to use the server's cipher suite preferences instead of the - * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be - * set in secureOptions - */ - honorCipherOrder?: boolean | undefined; - /** - * Private keys in PEM format. PEM allows the option of private keys - * being encrypted. Encrypted keys will be decrypted with - * options.passphrase. Multiple keys using different algorithms can be - * provided either as an array of unencrypted key strings or buffers, - * or an array of objects in the form {pem: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted keys will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - key?: string | Buffer | Array | undefined; - /** - * Name of an OpenSSL engine to get private key from. Should be used - * together with privateKeyIdentifier. - */ - privateKeyEngine?: string | undefined; - /** - * Identifier of a private key managed by an OpenSSL engine. Should be - * used together with privateKeyEngine. Should not be set together with - * key, because both options define a private key in different ways. - */ - privateKeyIdentifier?: string | undefined; - /** - * Optionally set the maximum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. - * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using - * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to - * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used. - */ - maxVersion?: SecureVersion | undefined; - /** - * Optionally set the minimum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. It is not recommended to use - * less than TLSv1.2, but it may be required for interoperability. - * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using - * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to - * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to - * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used. - */ - minVersion?: SecureVersion | undefined; - /** - * Shared passphrase used for a single private key and/or a PFX. - */ - passphrase?: string | undefined; - /** - * PFX or PKCS12 encoded private key and certificate chain. pfx is an - * alternative to providing key and cert individually. PFX is usually - * encrypted, if it is, passphrase will be used to decrypt it. Multiple - * PFX can be provided either as an array of unencrypted PFX buffers, - * or an array of objects in the form {buf: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted PFX will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - pfx?: string | Buffer | Array | undefined; - /** - * Optionally affect the OpenSSL protocol behavior, which is not - * usually necessary. This should be used carefully if at all! Value is - * a numeric bitmask of the SSL_OP_* options from OpenSSL Options - */ - secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options - /** - * Legacy mechanism to select the TLS protocol version to use, it does - * not support independent control of the minimum and maximum version, - * and does not support limiting the protocol to TLSv1.3. Use - * minVersion and maxVersion instead. The possible values are listed as - * SSL_METHODS, use the function names as strings. For example, use - * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow - * any TLS protocol version up to TLSv1.3. It is not recommended to use - * TLS versions less than 1.2, but it may be required for - * interoperability. Default: none, see minVersion. - */ - secureProtocol?: string | undefined; - /** - * Opaque identifier used by servers to ensure session state is not - * shared between applications. Unused by clients. - */ - sessionIdContext?: string | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - * See Session Resumption for more information. - */ - ticketKeys?: Buffer | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - } - interface SecureContext { - context: any; - } - /** - * Verifies the certificate `cert` is issued to `hostname`. - * - * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on - * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type). - * - * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as - * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead. - * - * This function can be overwritten by providing an alternative function as the `options.checkServerIdentity` option that is passed to `tls.connect()`. The - * overwriting function can call `tls.checkServerIdentity()` of course, to augment - * the checks done with additional verification. - * - * This function is only called if the certificate passed all other checks, such as - * being issued by trusted CA (`options.ca`). - * - * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name - * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use - * a custom `options.checkServerIdentity` function that implements the desired behavior. - * @since v0.8.4 - * @param hostname The host name or IP address to verify the certificate against. - * @param cert A `certificate object` representing the peer's certificate. - */ - function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined; - /** - * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is - * automatically set as a listener for the `'secureConnection'` event. - * - * The `ticketKeys` options is automatically shared between `node:cluster` module - * workers. - * - * The following illustrates a simple echo server: - * - * ```js - * import tls from 'node:tls'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem'), - * - * // This is necessary only if using client certificate authentication. - * requestCert: true, - * - * // This is necessary only if the client uses a self-signed certificate. - * ca: [ fs.readFileSync('client-cert.pem') ], - * }; - * - * const server = tls.createServer(options, (socket) => { - * console.log('server connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * socket.write('welcome!\n'); - * socket.setEncoding('utf8'); - * socket.pipe(socket); - * }); - * server.listen(8000, () => { - * console.log('server bound'); - * }); - * ``` - * - * The server can be tested by connecting to it using the example client from {@link connect}. - * @since v0.3.2 - */ - function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server; - function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server; - /** - * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event. - * - * `tls.connect()` returns a {@link TLSSocket} object. - * - * Unlike the `https` API, `tls.connect()` does not enable the - * SNI (Server Name Indication) extension by default, which may cause some - * servers to return an incorrect certificate or reject the connection - * altogether. To enable SNI, set the `servername` option in addition - * to `host`. - * - * The following illustrates a client for the echo server example from {@link createServer}: - * - * ```js - * // Assumes an echo server that is listening on port 8000. - * import tls from 'node:tls'; - * import fs from 'node:fs'; - * - * const options = { - * // Necessary only if the server requires client certificate authentication. - * key: fs.readFileSync('client-key.pem'), - * cert: fs.readFileSync('client-cert.pem'), - * - * // Necessary only if the server uses a self-signed certificate. - * ca: [ fs.readFileSync('server-cert.pem') ], - * - * // Necessary only if the server's cert isn't for "localhost". - * checkServerIdentity: () => { return null; }, - * }; - * - * const socket = tls.connect(8000, options, () => { - * console.log('client connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * process.stdin.pipe(socket); - * process.stdin.resume(); - * }); - * socket.setEncoding('utf8'); - * socket.on('data', (data) => { - * console.log(data); - * }); - * socket.on('end', () => { - * console.log('server ends connection'); - * }); - * ``` - * @since v0.11.3 - */ - function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - function connect( - port: number, - host?: string, - options?: ConnectionOptions, - secureConnectListener?: () => void, - ): TLSSocket; - function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - /** - * Creates a new secure pair object with two streams, one of which reads and writes - * the encrypted data and the other of which reads and writes the cleartext data. - * Generally, the encrypted stream is piped to/from an incoming encrypted data - * stream and the cleartext one is used as a replacement for the initial encrypted - * stream. - * - * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties. - * - * Using `cleartext` has the same API as {@link TLSSocket}. - * - * The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code: - * - * ```js - * pair = tls.createSecurePair(// ... ); - * pair.encrypted.pipe(socket); - * socket.pipe(pair.encrypted); - * ``` - * - * can be replaced by: - * - * ```js - * secureSocket = tls.TLSSocket(socket, options); - * ``` - * - * where `secureSocket` has the same API as `pair.cleartext`. - * @since v0.3.2 - * @deprecated Since v0.11.3 - Use {@link TLSSocket} instead. - * @param context A secure context object as returned by `tls.createSecureContext()` - * @param isServer `true` to specify that this TLS connection should be opened as a server. - * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`. - * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`. - */ - function createSecurePair( - context?: SecureContext, - isServer?: boolean, - requestCert?: boolean, - rejectUnauthorized?: boolean, - ): SecurePair; - /** - * `{@link createServer}` sets the default value of the `honorCipherOrder` option - * to `true`, other APIs that create secure contexts leave it unset. - * - * `{@link createServer}` uses a 128 bit truncated SHA1 hash value generated - * from `process.argv` as the default value of the `sessionIdContext` option, other - * APIs that create secure contexts have no default value. - * - * The `tls.createSecureContext()` method creates a `SecureContext` object. It is - * usable as an argument to several `tls` APIs, such as `server.addContext()`, - * but has no public methods. The {@link Server} constructor and the {@link createServer} method do not support the `secureContext` option. - * - * A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it. - * - * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of - * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt). - * - * Custom DHE parameters are discouraged in favor of the new `dhparam: 'auto' `option. When set to `'auto'`, well-known DHE parameters of sufficient strength - * will be selected automatically. Otherwise, if necessary, `openssl dhparam` can - * be used to create custom parameters. The key length must be greater than or - * equal to 1024 bits or else an error will be thrown. Although 1024 bits is - * permissible, use 2048 bits or larger for stronger security. - * @since v0.11.13 - */ - function createSecureContext(options?: SecureContextOptions): SecureContext; - /** - * Returns an array with the names of the supported TLS ciphers. The names are - * lower-case for historical reasons, but must be uppercased to be used in - * the `ciphers` option of `{@link createSecureContext}`. - * - * Not all supported ciphers are enabled by default. See - * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v20.x/api/tls.html#modifying-the-default-tls-cipher-suite). - * - * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for - * TLSv1.2 and below. - * - * ```js - * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...] - * ``` - * @since v0.10.2 - */ - function getCiphers(): string[]; - /** - * The default curve name to use for ECDH key agreement in a tls server. - * The default value is `'auto'`. See `{@link createSecureContext()}` for further - * information. - * @since v0.11.13 - */ - let DEFAULT_ECDH_CURVE: string; - /** - * The default value of the `maxVersion` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported TLS protocol versions, - * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.3'`, unless - * changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using - * `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options - * are provided, the highest maximum is used. - * @since v11.4.0 - */ - let DEFAULT_MAX_VERSION: SecureVersion; - /** - * The default value of the `minVersion` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported TLS protocol versions, - * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.2'`, unless - * changed using CLI options. Using `--tls-min-v1.0` sets the default to - * `'TLSv1'`. Using `--tls-min-v1.1` sets the default to `'TLSv1.1'`. Using - * `--tls-min-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options - * are provided, the lowest minimum is used. - * @since v11.4.0 - */ - let DEFAULT_MIN_VERSION: SecureVersion; - /** - * The default value of the `ciphers` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported OpenSSL ciphers. - * Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless - * changed using CLI options using `--tls-default-ciphers`. - * @since v19.8.0 - */ - let DEFAULT_CIPHERS: string; - /** - * An immutable array of strings representing the root certificates (in PEM format) - * from the bundled Mozilla CA store as supplied by the current Node.js version. - * - * The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store - * that is fixed at release time. It is identical on all supported platforms. - * @since v12.3.0 - */ - const rootCertificates: readonly string[]; -} -declare module "node:tls" { - export * from "tls"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/trace_events.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/trace_events.d.ts deleted file mode 100644 index 6d4aece..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/trace_events.d.ts +++ /dev/null @@ -1,197 +0,0 @@ -/** - * The `node:trace_events` module provides a mechanism to centralize tracing information - * generated by V8, Node.js core, and userspace code. - * - * Tracing can be enabled with the `--trace-event-categories` command-line flag - * or by using the `trace_events` module. The `--trace-event-categories` flag - * accepts a list of comma-separated category names. - * - * The available categories are: - * - * * `node`: An empty placeholder. - * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) trace data. - * The [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. - * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. - * * `node.console`: Enables capture of `console.time()` and `console.count()` output. - * * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. - * * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. - * * `node.dns.native`: Enables capture of trace data for DNS queries. - * * `node.net.native`: Enables capture of trace data for network. - * * `node.environment`: Enables capture of Node.js Environment milestones. - * * `node.fs.sync`: Enables capture of trace data for file system sync methods. - * * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods. - * * `node.fs.async`: Enables capture of trace data for file system async methods. - * * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods. - * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v20.x/api/perf_hooks.html) measurements. - * * `node.perf.usertiming`: Enables capture of only Performance API User Timing - * measures and marks. - * * `node.perf.timerify`: Enables capture of only Performance API timerify - * measurements. - * * `node.promises.rejections`: Enables capture of trace data tracking the number - * of unhandled Promise rejections and handled-after-rejections. - * * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods. - * * `v8`: The [V8](https://nodejs.org/docs/latest-v20.x/api/v8.html) events are GC, compiling, and execution related. - * * `node.http`: Enables capture of trace data for http request / response. - * - * By default the `node`, `node.async_hooks`, and `v8` categories are enabled. - * - * ```bash - * node --trace-event-categories v8,node,node.async_hooks server.js - * ``` - * - * Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be - * used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default. - * - * ```bash - * node --trace-events-enabled - * - * # is equivalent to - * - * node --trace-event-categories v8,node,node.async_hooks - * ``` - * - * Alternatively, trace events may be enabled using the `node:trace_events` module: - * - * ```js - * import trace_events from 'node:trace_events'; - * const tracing = trace_events.createTracing({ categories: ['node.perf'] }); - * tracing.enable(); // Enable trace event capture for the 'node.perf' category - * - * // do work - * - * tracing.disable(); // Disable trace event capture for the 'node.perf' category - * ``` - * - * Running Node.js with tracing enabled will produce log files that can be opened - * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome. - * - * The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can - * be specified with `--trace-event-file-pattern` that accepts a template - * string that supports `${rotation}` and `${pid}`: - * - * ```bash - * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js - * ``` - * - * To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers - * in your code, such as: - * - * ```js - * process.on('SIGINT', function onSigint() { - * console.info('Received SIGINT.'); - * process.exit(130); // Or applicable exit code depending on OS and signal - * }); - * ``` - * - * The tracing system uses the same time source - * as the one used by `process.hrtime()`. - * However the trace-event timestamps are expressed in microseconds, - * unlike `process.hrtime()` which returns nanoseconds. - * - * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html#class-worker) threads. - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/trace_events.js) - */ -declare module "trace_events" { - /** - * The `Tracing` object is used to enable or disable tracing for sets of - * categories. Instances are created using the - * `trace_events.createTracing()` method. - * - * When created, the `Tracing` object is disabled. Calling the - * `tracing.enable()` method adds the categories to the set of enabled trace - * event categories. Calling `tracing.disable()` will remove the categories - * from the set of enabled trace event categories. - */ - interface Tracing { - /** - * A comma-separated list of the trace event categories covered by this - * `Tracing` object. - * @since v10.0.0 - */ - readonly categories: string; - /** - * Disables this `Tracing` object. - * - * Only trace event categories _not_ covered by other enabled `Tracing` - * objects and _not_ specified by the `--trace-event-categories` flag - * will be disabled. - * - * ```js - * import trace_events from 'node:trace_events'; - * const t1 = trace_events.createTracing({ categories: ['node', 'v8'] }); - * const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] }); - * t1.enable(); - * t2.enable(); - * - * // Prints 'node,node.perf,v8' - * console.log(trace_events.getEnabledCategories()); - * - * t2.disable(); // Will only disable emission of the 'node.perf' category - * - * // Prints 'node,v8' - * console.log(trace_events.getEnabledCategories()); - * ``` - * @since v10.0.0 - */ - disable(): void; - /** - * Enables this `Tracing` object for the set of categories covered by - * the `Tracing` object. - * @since v10.0.0 - */ - enable(): void; - /** - * `true` only if the `Tracing` object has been enabled. - * @since v10.0.0 - */ - readonly enabled: boolean; - } - interface CreateTracingOptions { - /** - * An array of trace category names. Values included in the array are - * coerced to a string when possible. An error will be thrown if the - * value cannot be coerced. - */ - categories: string[]; - } - /** - * Creates and returns a `Tracing` object for the given set of `categories`. - * - * ```js - * import trace_events from 'node:trace_events'; - * const categories = ['node.perf', 'node.async_hooks']; - * const tracing = trace_events.createTracing({ categories }); - * tracing.enable(); - * // do stuff - * tracing.disable(); - * ``` - * @since v10.0.0 - */ - function createTracing(options: CreateTracingOptions): Tracing; - /** - * Returns a comma-separated list of all currently-enabled trace event - * categories. The current set of enabled trace event categories is determined - * by the _union_ of all currently-enabled `Tracing` objects and any categories - * enabled using the `--trace-event-categories` flag. - * - * Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console. - * - * ```js - * import trace_events from 'node:trace_events'; - * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] }); - * const t2 = trace_events.createTracing({ categories: ['node.perf'] }); - * const t3 = trace_events.createTracing({ categories: ['v8'] }); - * - * t1.enable(); - * t2.enable(); - * - * console.log(trace_events.getEnabledCategories()); - * ``` - * @since v10.0.0 - */ - function getEnabledCategories(): string | undefined; -} -declare module "node:trace_events" { - export * from "trace_events"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/buffer.buffer.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/buffer.buffer.d.ts deleted file mode 100644 index a5f67d7..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +++ /dev/null @@ -1,468 +0,0 @@ -declare module "buffer" { - global { - interface BufferConstructor { - // see ../buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. - */ - new(str: string, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). - */ - new(size: number): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new(array: ArrayLike): Buffer; - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}/{SharedArrayBuffer}. - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. - */ - new(arrayBuffer: ArrayBufferLike): Buffer; - /** - * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. - * Array entries outside that range will be truncated to fit into it. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. - * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); - * ``` - * - * If `array` is an `Array`-like object (that is, one with a `length` property of - * type `number`), it is treated as if it is an array, unless it is a `Buffer` or - * a `Uint8Array`. This means all other `TypedArray` variants get treated as an - * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use - * `Buffer.copyBytesFrom()`. - * - * A `TypeError` will be thrown if `array` is not an `Array` or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal - * `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v5.10.0 - */ - from(array: WithImplicitCoercion>): Buffer; - /** - * This creates a view of the `ArrayBuffer` without copying the underlying - * memory. For example, when passed a reference to the `.buffer` property of a - * `TypedArray` instance, the newly created `Buffer` will share the same - * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arr = new Uint16Array(2); - * - * arr[0] = 5000; - * arr[1] = 4000; - * - * // Shares memory with `arr`. - * const buf = Buffer.from(arr.buffer); - * - * console.log(buf); - * // Prints: - * - * // Changing the original Uint16Array changes the Buffer also. - * arr[1] = 6000; - * - * console.log(buf); - * // Prints: - * ``` - * - * The optional `byteOffset` and `length` arguments specify a memory range within - * the `arrayBuffer` that will be shared by the `Buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const ab = new ArrayBuffer(10); - * const buf = Buffer.from(ab, 0, 2); - * - * console.log(buf.length); - * // Prints: 2 - * ``` - * - * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a - * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` - * variants. - * - * It is important to remember that a backing `ArrayBuffer` can cover a range - * of memory that extends beyond the bounds of a `TypedArray` view. A new - * `Buffer` created using the `buffer` property of a `TypedArray` may extend - * beyond the range of the `TypedArray`: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements - * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements - * console.log(arrA.buffer === arrB.buffer); // true - * - * const buf = Buffer.from(arrB.buffer); - * console.log(buf); - * // Prints: - * ``` - * @since v5.10.0 - * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the - * `.buffer` property of a `TypedArray`. - * @param byteOffset Index of first byte to expose. **Default:** `0`. - * @param length Number of bytes to expose. **Default:** - * `arrayBuffer.byteLength - byteOffset`. - */ - from( - arrayBuffer: WithImplicitCoercion, - byteOffset?: number, - length?: number, - ): Buffer; - /** - * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies - * the character encoding to be used when converting `string` into bytes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('this is a tést'); - * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); - * - * console.log(buf1.toString()); - * // Prints: this is a tést - * console.log(buf2.toString()); - * // Prints: this is a tést - * console.log(buf1.toString('latin1')); - * // Prints: this is a tést - * ``` - * - * A `TypeError` will be thrown if `string` is not a string or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(string)` may also use the internal `Buffer` pool like - * `Buffer.allocUnsafe()` does. - * @since v5.10.0 - * @param string A string to encode. - * @param encoding The encoding of `string`. **Default:** `'utf8'`. - */ - from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; - from(arrayOrString: WithImplicitCoercion | string>): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param values to create a new Buffer - */ - of(...items: number[]): Buffer; - /** - * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. - * - * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. - * - * If `totalLength` is not provided, it is calculated from the `Buffer` instances - * in `list` by adding their lengths. - * - * If `totalLength` is provided, it is coerced to an unsigned integer. If the - * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is - * truncated to `totalLength`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a single `Buffer` from a list of three `Buffer` instances. - * - * const buf1 = Buffer.alloc(10); - * const buf2 = Buffer.alloc(14); - * const buf3 = Buffer.alloc(18); - * const totalLength = buf1.length + buf2.length + buf3.length; - * - * console.log(totalLength); - * // Prints: 42 - * - * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); - * - * console.log(bufA); - * // Prints: - * console.log(bufA.length); - * // Prints: 42 - * ``` - * - * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v0.7.11 - * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. - * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. - */ - concat(list: readonly Uint8Array[], totalLength?: number): Buffer; - /** - * Copies the underlying memory of `view` into a new `Buffer`. - * - * ```js - * const u16 = new Uint16Array([0, 0xffff]); - * const buf = Buffer.copyBytesFrom(u16, 1, 1); - * u16[1] = 0; - * console.log(buf.length); // 2 - * console.log(buf[0]); // 255 - * console.log(buf[1]); // 255 - * ``` - * @since v19.8.0 - * @param view The {TypedArray} to copy. - * @param [offset=0] The starting offset within `view`. - * @param [length=view.length - offset] The number of elements from `view` to copy. - */ - copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5); - * - * console.log(buf); - * // Prints: - * ``` - * - * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5, 'a'); - * - * console.log(buf); - * // Prints: - * ``` - * - * If both `fill` and `encoding` are specified, the allocated `Buffer` will be - * initialized by calling `buf.fill(fill, encoding)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); - * - * console.log(buf); - * // Prints: - * ``` - * - * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance - * contents will never contain sensitive data from previous allocations, including - * data that might not have been allocated for `Buffer`s. - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - * @param [fill=0] A value to pre-fill the new `Buffer` with. - * @param [encoding='utf8'] If `fill` is a string, this is its encoding. - */ - alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(10); - * - * console.log(buf); - * // Prints (contents may vary): - * - * buf.fill(0); - * - * console.log(buf); - * // Prints: - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * - * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). - * - * Use of this pre-allocated internal memory pool is a key difference between - * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. - * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less - * than or equal to half `Buffer.poolSize`. The - * difference is subtle but can be important when an application requires the - * additional performance that `Buffer.allocUnsafe()` provides. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafe(size: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if - * `size` is 0. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize - * such `Buffer` instances with zeroes. - * - * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, - * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This - * allows applications to avoid the garbage collection overhead of creating many - * individually allocated `Buffer` instances. This approach improves both - * performance and memory usage by eliminating the need to track and clean up as - * many individual `ArrayBuffer` objects. - * - * However, in the case where a developer may need to retain a small chunk of - * memory from a pool for an indeterminate amount of time, it may be appropriate - * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and - * then copying out the relevant bits. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Need to keep around a few small chunks of memory. - * const store = []; - * - * socket.on('readable', () => { - * let data; - * while (null !== (data = readable.read())) { - * // Allocate for retained data. - * const sb = Buffer.allocUnsafeSlow(10); - * - * // Copy the data into the new allocation. - * data.copy(sb, 0, 0, 10); - * - * store.push(sb); - * } - * }); - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.12.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafeSlow(size: number): Buffer; - } - interface Buffer extends Uint8Array { - // see ../buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * This method is not compatible with the `Uint8Array.prototype.slice()`, - * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * const copiedBuf = Uint8Array.prototype.slice.call(buf); - * copiedBuf[0]++; - * console.log(copiedBuf.toString()); - * // Prints: cuffer - * - * console.log(buf.toString()); - * // Prints: buffer - * - * // With buf.slice(), the original buffer is modified. - * const notReallyCopiedBuf = buf.slice(); - * notReallyCopiedBuf[0]++; - * console.log(notReallyCopiedBuf.toString()); - * // Prints: cuffer - * console.log(buf.toString()); - * // Also prints: cuffer (!) - * ``` - * @since v0.3.0 - * @deprecated Use `subarray` instead. - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - slice(start?: number, end?: number): Buffer; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * Specifying `end` greater than `buf.length` will return the same result as - * that of `end` equal to `buf.length`. - * - * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). - * - * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte - * // from the original `Buffer`. - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * const buf2 = buf1.subarray(0, 3); - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: abc - * - * buf1[0] = 33; - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: !bc - * ``` - * - * Specifying negative indexes causes the slice to be generated relative to the - * end of `buf` rather than the beginning. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * console.log(buf.subarray(-6, -1).toString()); - * // Prints: buffe - * // (Equivalent to buf.subarray(0, 5).) - * - * console.log(buf.subarray(-6, -2).toString()); - * // Prints: buff - * // (Equivalent to buf.subarray(0, 4).) - * - * console.log(buf.subarray(-5, -2).toString()); - * // Prints: uff - * // (Equivalent to buf.subarray(1, 4).) - * ``` - * @since v3.0.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - subarray(start?: number, end?: number): Buffer; - } - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type NonSharedBuffer = Buffer; - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type AllowSharedBuffer = Buffer; - } - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - var SlowBuffer: { - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - new(size: number): Buffer; - prototype: Buffer; - }; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/globals.typedarray.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/globals.typedarray.d.ts deleted file mode 100644 index f1c444d..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -export {}; // Make this a module - -declare global { - namespace NodeJS { - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float32Array - | Float64Array; - type ArrayBufferView = TypedArray | DataView; - - type NonSharedUint8Array = Uint8Array; - type NonSharedUint8ClampedArray = Uint8ClampedArray; - type NonSharedUint16Array = Uint16Array; - type NonSharedUint32Array = Uint32Array; - type NonSharedInt8Array = Int8Array; - type NonSharedInt16Array = Int16Array; - type NonSharedInt32Array = Int32Array; - type NonSharedBigUint64Array = BigUint64Array; - type NonSharedBigInt64Array = BigInt64Array; - type NonSharedFloat32Array = Float32Array; - type NonSharedFloat64Array = Float64Array; - type NonSharedDataView = DataView; - type NonSharedTypedArray = TypedArray; - type NonSharedArrayBufferView = ArrayBufferView; - } -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/index.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/index.d.ts deleted file mode 100644 index 291308f..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/ts5.6/index.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6. - -// Reference required TypeScript libs: -/// - -// TypeScript backwards-compatibility definitions: -/// - -// Definitions specific to TypeScript 4.9 through 5.6: -/// -/// - -// Definitions for Node.js modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/tty.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/tty.d.ts deleted file mode 100644 index d4b9313..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/tty.d.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * The `node:tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. In most cases, it will not be necessary or possible to use this module - * directly. However, it can be accessed using: - * - * ```js - * import tty from 'node:tty'; - * ``` - * - * When Node.js detects that it is being run with a text terminal ("TTY") - * attached, `process.stdin` will, by default, be initialized as an instance of `tty.ReadStream` and both `process.stdout` and `process.stderr` will, by - * default, be instances of `tty.WriteStream`. The preferred method of determining - * whether Node.js is being run within a TTY context is to check that the value of - * the `process.stdout.isTTY` property is `true`: - * - * ```console - * $ node -p -e "Boolean(process.stdout.isTTY)" - * true - * $ node -p -e "Boolean(process.stdout.isTTY)" | cat - * false - * ``` - * - * In most cases, there should be little to no reason for an application to - * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes. - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tty.js) - */ -declare module "tty" { - import * as net from "node:net"; - /** - * The `tty.isatty()` method returns `true` if the given `fd` is associated with - * a TTY and `false` if it is not, including whenever `fd` is not a non-negative - * integer. - * @since v0.5.8 - * @param fd A numeric file descriptor - */ - function isatty(fd: number): boolean; - /** - * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js - * process and there should be no reason to create additional instances. - * @since v0.5.8 - */ - class ReadStream extends net.Socket { - constructor(fd: number, options?: net.SocketConstructorOpts); - /** - * A `boolean` that is `true` if the TTY is currently configured to operate as a - * raw device. - * - * This flag is always `false` when a process starts, even if the terminal is - * operating in raw mode. Its value will change with subsequent calls to `setRawMode`. - * @since v0.7.7 - */ - isRaw: boolean; - /** - * Allows configuration of `tty.ReadStream` so that it operates as a raw device. - * - * When in raw mode, input is always available character-by-character, not - * including modifiers. Additionally, all special processing of characters by the - * terminal is disabled, including echoing input - * characters. Ctrl+C will no longer cause a `SIGINT` when - * in this mode. - * @since v0.7.7 - * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw` - * property will be set to the resulting mode. - * @return The read stream instance. - */ - setRawMode(mode: boolean): this; - /** - * A `boolean` that is always `true` for `tty.ReadStream` instances. - * @since v0.5.8 - */ - isTTY: boolean; - } - /** - * -1 - to the left from cursor - * 0 - the entire line - * 1 - to the right from cursor - */ - type Direction = -1 | 0 | 1; - /** - * Represents the writable side of a TTY. In normal circumstances, `process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there - * should be no reason to create additional instances. - * @since v0.5.8 - */ - class WriteStream extends net.Socket { - constructor(fd: number); - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "resize", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "resize"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "resize", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "resize", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "resize", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "resize", listener: () => void): this; - /** - * `writeStream.clearLine()` clears the current line of this `WriteStream` in a - * direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearLine(dir: Direction, callback?: () => void): boolean; - /** - * `writeStream.clearScreenDown()` clears this `WriteStream` from the current - * cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearScreenDown(callback?: () => void): boolean; - /** - * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified - * position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - cursorTo(x: number, y?: number, callback?: () => void): boolean; - cursorTo(x: number, callback: () => void): boolean; - /** - * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its - * current position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - moveCursor(dx: number, dy: number, callback?: () => void): boolean; - /** - * Returns: - * - * * `1` for 2, - * * `4` for 16, - * * `8` for 256, - * * `24` for 16,777,216 colors supported. - * - * Use this to determine what colors the terminal supports. Due to the nature of - * colors in terminals it is possible to either have false positives or false - * negatives. It depends on process information and the environment variables that - * may lie about what terminal is used. - * It is possible to pass in an `env` object to simulate the usage of a specific - * terminal. This can be useful to check how specific environment settings behave. - * - * To enforce a specific color support, use one of the below environment settings. - * - * * 2 colors: `FORCE_COLOR = 0` (Disables colors) - * * 16 colors: `FORCE_COLOR = 1` - * * 256 colors: `FORCE_COLOR = 2` - * * 16,777,216 colors: `FORCE_COLOR = 3` - * - * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables. - * @since v9.9.0 - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - getColorDepth(env?: object): number; - /** - * Returns `true` if the `writeStream` supports at least as many colors as provided - * in `count`. Minimum support is 2 (black and white). - * - * This has the same false positives and negatives as described in `writeStream.getColorDepth()`. - * - * ```js - * process.stdout.hasColors(); - * // Returns true or false depending on if `stdout` supports at least 16 colors. - * process.stdout.hasColors(256); - * // Returns true or false depending on if `stdout` supports at least 256 colors. - * process.stdout.hasColors({ TMUX: '1' }); - * // Returns true. - * process.stdout.hasColors(2 ** 24, { TMUX: '1' }); - * // Returns false (the environment setting pretends to support 2 ** 8 colors). - * ``` - * @since v11.13.0, v10.16.0 - * @param [count=16] The number of colors that are requested (minimum 2). - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - hasColors(count?: number): boolean; - hasColors(env?: object): boolean; - hasColors(count: number, env?: object): boolean; - /** - * `writeStream.getWindowSize()` returns the size of the TTY - * corresponding to this `WriteStream`. The array is of the type `[numColumns, numRows]` where `numColumns` and `numRows` represent the number - * of columns and rows in the corresponding TTY. - * @since v0.7.7 - */ - getWindowSize(): [number, number]; - /** - * A `number` specifying the number of columns the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - columns: number; - /** - * A `number` specifying the number of rows the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - rows: number; - /** - * A `boolean` that is always `true`. - * @since v0.5.8 - */ - isTTY: boolean; - } -} -declare module "node:tty" { - export * from "tty"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/url.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/url.d.ts deleted file mode 100644 index 4d83629..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/url.d.ts +++ /dev/null @@ -1,964 +0,0 @@ -/** - * The `node:url` module provides utilities for URL resolution and parsing. It can - * be accessed using: - * - * ```js - * import url from 'node:url'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/url.js) - */ -declare module "url" { - import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; - import { ClientRequestArgs } from "node:http"; - import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring"; - // Input to `url.format` - interface UrlObject { - auth?: string | null | undefined; - hash?: string | null | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - href?: string | null | undefined; - pathname?: string | null | undefined; - protocol?: string | null | undefined; - search?: string | null | undefined; - slashes?: boolean | null | undefined; - port?: string | number | null | undefined; - query?: string | null | ParsedUrlQueryInput | undefined; - } - // Output of `url.parse` - interface Url { - auth: string | null; - hash: string | null; - host: string | null; - hostname: string | null; - href: string; - path: string | null; - pathname: string | null; - protocol: string | null; - search: string | null; - slashes: boolean | null; - port: string | null; - query: string | null | ParsedUrlQuery; - } - interface UrlWithParsedQuery extends Url { - query: ParsedUrlQuery; - } - interface UrlWithStringQuery extends Url { - query: string | null; - } - interface FileUrlToPathOptions { - /** - * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default. - * @default undefined - */ - windows?: boolean | undefined; - } - interface PathToFileUrlOptions extends FileUrlToPathOptions {} - /** - * The `url.parse()` method takes a URL string, parses it, and returns a URL - * object. - * - * A `TypeError` is thrown if `urlString` is not a string. - * - * A `URIError` is thrown if the `auth` property is present but cannot be decoded. - * - * `url.parse()` uses a lenient, non-standard algorithm for parsing URL - * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487) and incorrect handling of usernames and passwords. Do not use with untrusted - * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the `WHATWG URL` API instead. - * @since v0.1.25 - * @deprecated Use the WHATWG URL API instead. - * @param urlString The URL string to parse. - * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property - * on the returned URL object will be an unparsed, undecoded string. - * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the - * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. - */ - function parse(urlString: string): UrlWithStringQuery; - function parse( - urlString: string, - parseQueryString: false | undefined, - slashesDenoteHost?: boolean, - ): UrlWithStringQuery; - function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; - function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; - /** - * The `url.format()` method returns a formatted URL string derived from `urlObject`. - * - * ```js - * import url from 'node:url'; - * url.format({ - * protocol: 'https', - * hostname: 'example.com', - * pathname: '/some/path', - * query: { - * page: 1, - * format: 'json', - * }, - * }); - * - * // => 'https://example.com/some/path?page=1&format=json' - * ``` - * - * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. - * - * The formatting process operates as follows: - * - * * A new empty string `result` is created. - * * If `urlObject.protocol` is a string, it is appended as-is to `result`. - * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. - * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII - * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: - * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; - * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string - * and appended to `result` followed by the literal string `@`. - * * If the `urlObject.host` property is `undefined` then: - * * If the `urlObject.hostname` is a string, it is appended to `result`. - * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, - * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: - * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to `result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. - * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash - * (`/`), then the literal string `'/'` is appended to `result`. - * * The value of `urlObject.pathname` is appended to `result`. - * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the - * `querystring` module's `stringify()` method passing the value of `urlObject.query`. - * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search` _does not start_ with the ASCII question - * mark (`?`) character, the literal string `?` is appended to `result`. - * * The value of `urlObject.search` is appended to `result`. - * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) - * character, the literal string `#` is appended to `result`. - * * The value of `urlObject.hash` is appended to `result`. - * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a - * string, an `Error` is thrown. - * * `result` is returned. - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. - */ - function format(urlObject: URL, options?: URLFormatOptions): string; - /** - * The `url.format()` method returns a formatted URL string derived from `urlObject`. - * - * ```js - * import url from 'node:url'; - * url.format({ - * protocol: 'https', - * hostname: 'example.com', - * pathname: '/some/path', - * query: { - * page: 1, - * format: 'json', - * }, - * }); - * - * // => 'https://example.com/some/path?page=1&format=json' - * ``` - * - * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. - * - * The formatting process operates as follows: - * - * * A new empty string `result` is created. - * * If `urlObject.protocol` is a string, it is appended as-is to `result`. - * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. - * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII - * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: - * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; - * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string - * and appended to `result` followed by the literal string `@`. - * * If the `urlObject.host` property is `undefined` then: - * * If the `urlObject.hostname` is a string, it is appended to `result`. - * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, - * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: - * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to `result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. - * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash - * (`/`), then the literal string `'/'` is appended to `result`. - * * The value of `urlObject.pathname` is appended to `result`. - * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the - * `querystring` module's `stringify()` method passing the value of `urlObject.query`. - * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search` _does not start_ with the ASCII question - * mark (`?`) character, the literal string `?` is appended to `result`. - * * The value of `urlObject.search` is appended to `result`. - * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) - * character, the literal string `#` is appended to `result`. - * * The value of `urlObject.hash` is appended to `result`. - * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a - * string, an `Error` is thrown. - * * `result` is returned. - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. - */ - function format(urlObject: UrlObject | string): string; - /** - * The `url.resolve()` method resolves a target URL relative to a base URL in a - * manner similar to that of a web browser resolving an anchor tag. - * - * ```js - * import url from 'node:url'; - * url.resolve('/one/two/three', 'four'); // '/one/two/four' - * url.resolve('http://example.com/', '/one'); // 'http://example.com/one' - * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * - * To achieve the same result using the WHATWG URL API: - * - * ```js - * function resolve(from, to) { - * const resolvedUrl = new URL(to, new URL(from, 'resolve://')); - * if (resolvedUrl.protocol === 'resolve:') { - * // `from` is a relative URL. - * const { pathname, search, hash } = resolvedUrl; - * return pathname + search + hash; - * } - * return resolvedUrl.toString(); - * } - * - * resolve('/one/two/three', 'four'); // '/one/two/four' - * resolve('http://example.com/', '/one'); // 'http://example.com/one' - * resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param from The base URL to use if `to` is a relative URL. - * @param to The target URL to resolve. - */ - function resolve(from: string, to: string): string; - /** - * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an - * invalid domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToUnicode}. - * - * ```js - * import url from 'node:url'; - * - * console.log(url.domainToASCII('español.com')); - * // Prints xn--espaol-zwa.com - * console.log(url.domainToASCII('中文.com')); - * // Prints xn--fiq228c.com - * console.log(url.domainToASCII('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToASCII(domain: string): string; - /** - * Returns the Unicode serialization of the `domain`. If `domain` is an invalid - * domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToASCII}. - * - * ```js - * import url from 'node:url'; - * - * console.log(url.domainToUnicode('xn--espaol-zwa.com')); - * // Prints español.com - * console.log(url.domainToUnicode('xn--fiq228c.com')); - * // Prints 中文.com - * console.log(url.domainToUnicode('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToUnicode(domain: string): string; - /** - * This function ensures the correct decodings of percent-encoded characters as - * well as ensuring a cross-platform valid absolute path string. - * - * ```js - * import { fileURLToPath } from 'node:url'; - * - * const __filename = fileURLToPath(import.meta.url); - * - * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/ - * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows) - * - * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt - * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows) - * - * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt - * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX) - * - * new URL('file:///hello world').pathname; // Incorrect: /hello%20world - * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX) - * ``` - * @since v10.12.0 - * @param url The file URL string or URL object to convert to a path. - * @return The fully-resolved platform-specific Node.js file path. - */ - function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string; - /** - * This function ensures that `path` is resolved absolutely, and that the URL - * control characters are correctly encoded when converting into a File URL. - * - * ```js - * import { pathToFileURL } from 'node:url'; - * - * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1 - * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX) - * - * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c - * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) - * ``` - * @since v10.12.0 - * @param path The path to convert to a File URL. - * @return The file URL object. - */ - function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL; - /** - * This utility function converts a URL object into an ordinary options object as - * expected by the `http.request()` and `https.request()` APIs. - * - * ```js - * import { urlToHttpOptions } from 'node:url'; - * const myURL = new URL('https://a:b@測試?abc#foo'); - * - * console.log(urlToHttpOptions(myURL)); - * /* - * { - * protocol: 'https:', - * hostname: 'xn--g6w251d', - * hash: '#foo', - * search: '?abc', - * pathname: '/', - * path: '/?abc', - * href: 'https://a:b@xn--g6w251d/?abc#foo', - * auth: 'a:b' - * } - * - * ``` - * @since v15.7.0, v14.18.0 - * @param url The `WHATWG URL` object to convert to an options object. - * @return Options object - */ - function urlToHttpOptions(url: URL): ClientRequestArgs; - interface URLFormatOptions { - /** - * `true` if the serialized URL string should include the username and password, `false` otherwise. - * @default true - */ - auth?: boolean | undefined; - /** - * `true` if the serialized URL string should include the fragment, `false` otherwise. - * @default true - */ - fragment?: boolean | undefined; - /** - * `true` if the serialized URL string should include the search query, `false` otherwise. - * @default true - */ - search?: boolean | undefined; - /** - * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to - * being Punycode encoded. - * @default false - */ - unicode?: boolean | undefined; - } - /** - * Browser-compatible `URL` class, implemented by following the WHATWG URL - * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. - * The `URL` class is also available on the global object. - * - * In accordance with browser conventions, all properties of `URL` objects - * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. Thus, unlike `legacy urlObject`s, - * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still - * return `true`. - * @since v7.0.0, v6.13.0 - */ - class URL { - /** - * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later. - * - * ```js - * import { - * Blob, - * resolveObjectURL, - * } from 'node:buffer'; - * - * const blob = new Blob(['hello']); - * const id = URL.createObjectURL(blob); - * - * // later... - * - * const otherBlob = resolveObjectURL(id); - * console.log(otherBlob.size); - * ``` - * - * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it. - * - * `Blob` objects are registered within the current thread. If using Worker - * Threads, `Blob` objects registered within one Worker will not be available - * to other workers or the main thread. - * @since v16.7.0 - * @experimental - */ - static createObjectURL(blob: NodeBlob): string; - /** - * Removes the stored `Blob` identified by the given ID. Attempting to revoke a - * ID that isn't registered will silently fail. - * @since v16.7.0 - * @experimental - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - static revokeObjectURL(id: string): void; - /** - * Checks if an `input` relative to the `base` can be parsed to a `URL`. - * - * ```js - * const isValid = URL.canParse('/foo', 'https://example.org/'); // true - * - * const isNotValid = URL.canParse('/foo'); // false - * ``` - * @since v19.9.0 - * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is - * `converted to a string` first. - * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. - */ - static canParse(input: string, base?: string): boolean; - /** - * Parses a string as a URL. If `base` is provided, it will be used as the base URL for the purpose of resolving non-absolute `input` URLs. - * Returns `null` if `input` is not a valid. - * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is - * `converted to a string` first. - * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. - * @since v20.18.0 - */ - static parse(input: string, base?: string): URL | null; - constructor(input: string | { toString: () => string }, base?: string | URL); - /** - * Gets and sets the fragment portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/foo#bar'); - * console.log(myURL.hash); - * // Prints #bar - * - * myURL.hash = 'baz'; - * console.log(myURL.href); - * // Prints https://example.org/foo#baz - * ``` - * - * Invalid URL characters included in the value assigned to the `hash` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - hash: string; - /** - * Gets and sets the host portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.host); - * // Prints example.org:81 - * - * myURL.host = 'example.com:82'; - * console.log(myURL.href); - * // Prints https://example.com:82/foo - * ``` - * - * Invalid host values assigned to the `host` property are ignored. - */ - host: string; - /** - * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the - * port. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.hostname); - * // Prints example.org - * - * // Setting the hostname does not change the port - * myURL.hostname = 'example.com'; - * console.log(myURL.href); - * // Prints https://example.com:81/foo - * - * // Use myURL.host to change the hostname and port - * myURL.host = 'example.org:82'; - * console.log(myURL.href); - * // Prints https://example.org:82/foo - * ``` - * - * Invalid host name values assigned to the `hostname` property are ignored. - */ - hostname: string; - /** - * Gets and sets the serialized URL. - * - * ```js - * const myURL = new URL('https://example.org/foo'); - * console.log(myURL.href); - * // Prints https://example.org/foo - * - * myURL.href = 'https://example.com/bar'; - * console.log(myURL.href); - * // Prints https://example.com/bar - * ``` - * - * Getting the value of the `href` property is equivalent to calling {@link toString}. - * - * Setting the value of this property to a new value is equivalent to creating a - * new `URL` object using `new URL(value)`. Each of the `URL` object's properties will be modified. - * - * If the value assigned to the `href` property is not a valid URL, a `TypeError` will be thrown. - */ - href: string; - /** - * Gets the read-only serialization of the URL's origin. - * - * ```js - * const myURL = new URL('https://example.org/foo/bar?baz'); - * console.log(myURL.origin); - * // Prints https://example.org - * ``` - * - * ```js - * const idnURL = new URL('https://測試'); - * console.log(idnURL.origin); - * // Prints https://xn--g6w251d - * - * console.log(idnURL.hostname); - * // Prints xn--g6w251d - * ``` - */ - readonly origin: string; - /** - * Gets and sets the password portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.password); - * // Prints xyz - * - * myURL.password = '123'; - * console.log(myURL.href); - * // Prints https://abc:123@example.com/ - * ``` - * - * Invalid URL characters included in the value assigned to the `password` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - password: string; - /** - * Gets and sets the path portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc/xyz?123'); - * console.log(myURL.pathname); - * // Prints /abc/xyz - * - * myURL.pathname = '/abcdef'; - * console.log(myURL.href); - * // Prints https://example.org/abcdef?123 - * ``` - * - * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters - * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - pathname: string; - /** - * Gets and sets the port portion of the URL. - * - * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will - * result in the `port` value becoming - * the empty string (`''`). - * - * The port value can be an empty string in which case the port depends on - * the protocol/scheme: - * - * - * - * Upon assigning a value to the port, the value will first be converted to a - * string using `.toString()`. - * - * If that string is invalid but it begins with a number, the leading number is - * assigned to `port`. - * If the number lies outside the range denoted above, it is ignored. - * - * ```js - * const myURL = new URL('https://example.org:8888'); - * console.log(myURL.port); - * // Prints 8888 - * - * // Default ports are automatically transformed to the empty string - * // (HTTPS protocol's default port is 443) - * myURL.port = '443'; - * console.log(myURL.port); - * // Prints the empty string - * console.log(myURL.href); - * // Prints https://example.org/ - * - * myURL.port = 1234; - * console.log(myURL.port); - * // Prints 1234 - * console.log(myURL.href); - * // Prints https://example.org:1234/ - * - * // Completely invalid port strings are ignored - * myURL.port = 'abcd'; - * console.log(myURL.port); - * // Prints 1234 - * - * // Leading numbers are treated as a port number - * myURL.port = '5678abcd'; - * console.log(myURL.port); - * // Prints 5678 - * - * // Non-integers are truncated - * myURL.port = 1234.5678; - * console.log(myURL.port); - * // Prints 1234 - * - * // Out-of-range numbers which are not represented in scientific notation - * // will be ignored. - * myURL.port = 1e10; // 10000000000, will be range-checked as described below - * console.log(myURL.port); - * // Prints 1234 - * ``` - * - * Numbers which contain a decimal point, - * such as floating-point numbers or numbers in scientific notation, - * are not an exception to this rule. - * Leading numbers up to the decimal point will be set as the URL's port, - * assuming they are valid: - * - * ```js - * myURL.port = 4.567e21; - * console.log(myURL.port); - * // Prints 4 (because it is the leading number in the string '4.567e21') - * ``` - */ - port: string; - /** - * Gets and sets the protocol portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org'); - * console.log(myURL.protocol); - * // Prints https: - * - * myURL.protocol = 'ftp'; - * console.log(myURL.href); - * // Prints ftp://example.org/ - * ``` - * - * Invalid URL protocol values assigned to the `protocol` property are ignored. - */ - protocol: string; - /** - * Gets and sets the serialized query portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc?123'); - * console.log(myURL.search); - * // Prints ?123 - * - * myURL.search = 'abc=xyz'; - * console.log(myURL.href); - * // Prints https://example.org/abc?abc=xyz - * ``` - * - * Any invalid URL characters appearing in the value assigned the `search` property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - search: string; - /** - * Gets the `URLSearchParams` object representing the query parameters of the - * URL. This property is read-only but the `URLSearchParams` object it provides - * can be used to mutate the URL instance; to replace the entirety of query - * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details. - * - * Use care when using `.searchParams` to modify the `URL` because, - * per the WHATWG specification, the `URLSearchParams` object uses - * different rules to determine which characters to percent-encode. For - * instance, the `URL` object will not percent encode the ASCII tilde (`~`) - * character, while `URLSearchParams` will always encode it: - * - * ```js - * const myURL = new URL('https://example.org/abc?foo=~bar'); - * - * console.log(myURL.search); // prints ?foo=~bar - * - * // Modify the URL via searchParams... - * myURL.searchParams.sort(); - * - * console.log(myURL.search); // prints ?foo=%7Ebar - * ``` - */ - readonly searchParams: URLSearchParams; - /** - * Gets and sets the username portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.username); - * // Prints abc - * - * myURL.username = '123'; - * console.log(myURL.href); - * // Prints https://123:xyz@example.com/ - * ``` - * - * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - username: string; - /** - * The `toString()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toJSON}. - */ - toString(): string; - /** - * The `toJSON()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toString}. - * - * This method is automatically called when an `URL` object is serialized - * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). - * - * ```js - * const myURLs = [ - * new URL('https://www.example.com'), - * new URL('https://test.example.org'), - * ]; - * console.log(JSON.stringify(myURLs)); - * // Prints ["https://www.example.com/","https://test.example.org/"] - * ``` - */ - toJSON(): string; - } - interface URLSearchParamsIterator extends NodeJS.Iterator { - [Symbol.iterator](): URLSearchParamsIterator; - } - /** - * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the - * four following constructors. - * The `URLSearchParams` class is also available on the global object. - * - * The WHATWG `URLSearchParams` interface and the `querystring` module have - * similar purpose, but the purpose of the `querystring` module is more - * general, as it allows the customization of delimiter characters (`&` and `=`). - * On the other hand, this API is designed purely for URL query strings. - * - * ```js - * const myURL = new URL('https://example.org/?abc=123'); - * console.log(myURL.searchParams.get('abc')); - * // Prints 123 - * - * myURL.searchParams.append('abc', 'xyz'); - * console.log(myURL.href); - * // Prints https://example.org/?abc=123&abc=xyz - * - * myURL.searchParams.delete('abc'); - * myURL.searchParams.set('a', 'b'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * - * const newSearchParams = new URLSearchParams(myURL.searchParams); - * // The above is equivalent to - * // const newSearchParams = new URLSearchParams(myURL.search); - * - * newSearchParams.append('a', 'c'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * console.log(newSearchParams.toString()); - * // Prints a=b&a=c - * - * // newSearchParams.toString() is implicitly called - * myURL.search = newSearchParams; - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * newSearchParams.delete('a'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * ``` - * @since v7.5.0, v6.13.0 - */ - class URLSearchParams implements Iterable<[string, string]> { - constructor( - init?: - | URLSearchParams - | string - | Record - | Iterable<[string, string]> - | ReadonlyArray<[string, string]>, - ); - /** - * Append a new name-value pair to the query string. - */ - append(name: string, value: string): void; - /** - * If `value` is provided, removes all name-value pairs - * where name is `name` and value is `value`. - * - * If `value` is not provided, removes all name-value pairs whose name is `name`. - */ - delete(name: string, value?: string): void; - /** - * Returns an ES6 `Iterator` over each of the name-value pairs in the query. - * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`. - * - * Alias for `urlSearchParams[@@iterator]()`. - */ - entries(): URLSearchParamsIterator<[string, string]>; - /** - * Iterates over each name-value pair in the query and invokes the given function. - * - * ```js - * const myURL = new URL('https://example.org/?a=b&c=d'); - * myURL.searchParams.forEach((value, name, searchParams) => { - * console.log(name, value, myURL.searchParams === searchParams); - * }); - * // Prints: - * // a b true - * // c d true - * ``` - * @param fn Invoked for each name-value pair in the query - * @param thisArg To be used as `this` value for when `fn` is called - */ - forEach( - fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, - thisArg?: TThis, - ): void; - /** - * Returns the value of the first name-value pair whose name is `name`. If there - * are no such pairs, `null` is returned. - * @return or `null` if there is no name-value pair with the given `name`. - */ - get(name: string): string | null; - /** - * Returns the values of all name-value pairs whose name is `name`. If there are - * no such pairs, an empty array is returned. - */ - getAll(name: string): string[]; - /** - * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument. - * - * If `value` is provided, returns `true` when name-value pair with - * same `name` and `value` exists. - * - * If `value` is not provided, returns `true` if there is at least one name-value - * pair whose name is `name`. - */ - has(name: string, value?: string): boolean; - /** - * Returns an ES6 `Iterator` over the names of each name-value pair. - * - * ```js - * const params = new URLSearchParams('foo=bar&foo=baz'); - * for (const name of params.keys()) { - * console.log(name); - * } - * // Prints: - * // foo - * // foo - * ``` - */ - keys(): URLSearchParamsIterator; - /** - * Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, - * set the first such pair's value to `value` and remove all others. If not, - * append the name-value pair to the query string. - * - * ```js - * const params = new URLSearchParams(); - * params.append('foo', 'bar'); - * params.append('foo', 'baz'); - * params.append('abc', 'def'); - * console.log(params.toString()); - * // Prints foo=bar&foo=baz&abc=def - * - * params.set('foo', 'def'); - * params.set('xyz', 'opq'); - * console.log(params.toString()); - * // Prints foo=def&abc=def&xyz=opq - * ``` - */ - set(name: string, value: string): void; - /** - * The total number of parameter entries. - * @since v19.8.0 - */ - readonly size: number; - /** - * Sort all existing name-value pairs in-place by their names. Sorting is done - * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs - * with the same name is preserved. - * - * This method can be used, in particular, to increase cache hits. - * - * ```js - * const params = new URLSearchParams('query[]=abc&type=search&query[]=123'); - * params.sort(); - * console.log(params.toString()); - * // Prints query%5B%5D=abc&query%5B%5D=123&type=search - * ``` - * @since v7.7.0, v6.13.0 - */ - sort(): void; - /** - * Returns the search parameters serialized as a string, with characters - * percent-encoded where necessary. - */ - toString(): string; - /** - * Returns an ES6 `Iterator` over the values of each name-value pair. - */ - values(): URLSearchParamsIterator; - [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; - } - import { URL as _URL, URLSearchParams as _URLSearchParams } from "url"; - global { - interface URLSearchParams extends _URLSearchParams {} - interface URL extends _URL {} - interface Global { - URL: typeof _URL; - URLSearchParams: typeof _URLSearchParams; - } - /** - * `URL` class is a global reference for `import { URL } from 'node:url'` - * https://nodejs.org/api/url.html#the-whatwg-url-api - * @since v10.0.0 - */ - var URL: typeof globalThis extends { - onmessage: any; - URL: infer T; - } ? T - : typeof _URL; - /** - * `URLSearchParams` class is a global reference for `import { URLSearchParams } from 'node:url'` - * https://nodejs.org/api/url.html#class-urlsearchparams - * @since v10.0.0 - */ - var URLSearchParams: typeof globalThis extends { - onmessage: any; - URLSearchParams: infer T; - } ? T - : typeof _URLSearchParams; - } -} -declare module "node:url" { - export * from "url"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/util.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/util.d.ts deleted file mode 100644 index e5e2cb6..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/util.d.ts +++ /dev/null @@ -1,2331 +0,0 @@ -/** - * The `node:util` module supports the needs of Node.js internal APIs. Many of the - * utilities are useful for application and module developers as well. To access - * it: - * - * ```js - * import util from 'node:util'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/util.js) - */ -declare module "util" { - import * as types from "node:util/types"; - export interface InspectOptions { - /** - * If `true`, object's non-enumerable symbols and properties are included in the formatted result. - * `WeakMap` and `WeakSet` entries are also included as well as user defined prototype properties (excluding method properties). - * @default false - */ - showHidden?: boolean | undefined; - /** - * Specifies the number of times to recurse while formatting object. - * This is useful for inspecting large objects. - * To recurse up to the maximum call stack size pass `Infinity` or `null`. - * @default 2 - */ - depth?: number | null | undefined; - /** - * If `true`, the output is styled with ANSI color codes. Colors are customizable. - */ - colors?: boolean | undefined; - /** - * If `false`, `[util.inspect.custom](depth, opts, inspect)` functions are not invoked. - * @default true - */ - customInspect?: boolean | undefined; - /** - * If `true`, `Proxy` inspection includes the target and handler objects. - * @default false - */ - showProxy?: boolean | undefined; - /** - * Specifies the maximum number of `Array`, `TypedArray`, `WeakMap`, and `WeakSet` elements - * to include when formatting. Set to `null` or `Infinity` to show all elements. - * Set to `0` or negative to show no elements. - * @default 100 - */ - maxArrayLength?: number | null | undefined; - /** - * Specifies the maximum number of characters to - * include when formatting. Set to `null` or `Infinity` to show all elements. - * Set to `0` or negative to show no characters. - * @default 10000 - */ - maxStringLength?: number | null | undefined; - /** - * The length at which input values are split across multiple lines. - * Set to `Infinity` to format the input as a single line - * (in combination with `compact` set to `true` or any number >= `1`). - * @default 80 - */ - breakLength?: number | undefined; - /** - * Setting this to `false` causes each object key - * to be displayed on a new line. It will also add new lines to text that is - * longer than `breakLength`. If set to a number, the most `n` inner elements - * are united on a single line as long as all properties fit into - * `breakLength`. Short array elements are also grouped together. Note that no - * text will be reduced below 16 characters, no matter the `breakLength` size. - * For more information, see the example below. - * @default true - */ - compact?: boolean | number | undefined; - /** - * If set to `true` or a function, all properties of an object, and `Set` and `Map` - * entries are sorted in the resulting string. - * If set to `true` the default sort is used. - * If set to a function, it is used as a compare function. - */ - sorted?: boolean | ((a: string, b: string) => number) | undefined; - /** - * If set to `true`, getters are going to be - * inspected as well. If set to `'get'` only getters without setter are going - * to be inspected. If set to `'set'` only getters having a corresponding - * setter are going to be inspected. This might cause side effects depending on - * the getter function. - * @default false - */ - getters?: "get" | "set" | boolean | undefined; - /** - * If set to `true`, an underscore is used to separate every three digits in all bigints and numbers. - * @default false - */ - numericSeparator?: boolean | undefined; - } - export type Style = - | "special" - | "number" - | "bigint" - | "boolean" - | "undefined" - | "null" - | "string" - | "symbol" - | "date" - | "regexp" - | "module"; - export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect - export interface InspectOptionsStylized extends InspectOptions { - stylize(text: string, styleType: Style): string; - } - /** - * The `util.format()` method returns a formatted string using the first argument - * as a `printf`-like format string which can contain zero or more format - * specifiers. Each specifier is replaced with the converted value from the - * corresponding argument. Supported specifiers are: - * - * If a specifier does not have a corresponding argument, it is not replaced: - * - * ```js - * util.format('%s:%s', 'foo'); - * // Returns: 'foo:%s' - * ``` - * - * Values that are not part of the format string are formatted using `util.inspect()` if their type is not `string`. - * - * If there are more arguments passed to the `util.format()` method than the - * number of specifiers, the extra arguments are concatenated to the returned - * string, separated by spaces: - * - * ```js - * util.format('%s:%s', 'foo', 'bar', 'baz'); - * // Returns: 'foo:bar baz' - * ``` - * - * If the first argument does not contain a valid format specifier, `util.format()` returns a string that is the concatenation of all arguments separated by spaces: - * - * ```js - * util.format(1, 2, 3); - * // Returns: '1 2 3' - * ``` - * - * If only one argument is passed to `util.format()`, it is returned as it is - * without any formatting: - * - * ```js - * util.format('%% %s'); - * // Returns: '%% %s' - * ``` - * - * `util.format()` is a synchronous method that is intended as a debugging tool. - * Some input values can have a significant performance overhead that can block the - * event loop. Use this function with care and never in a hot code path. - * @since v0.5.3 - * @param format A `printf`-like format string. - */ - export function format(format?: any, ...param: any[]): string; - /** - * This function is identical to {@link format}, except in that it takes - * an `inspectOptions` argument which specifies options that are passed along to {@link inspect}. - * - * ```js - * util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 }); - * // Returns 'See object { foo: 42 }', where `42` is colored as a number - * // when printed to a terminal. - * ``` - * @since v10.0.0 - */ - export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string; - /** - * Returns the string name for a numeric error code that comes from a Node.js API. - * The mapping between error codes and error names is platform-dependent. - * See `Common System Errors` for the names of common errors. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const name = util.getSystemErrorName(err.errno); - * console.error(name); // ENOENT - * }); - * ``` - * @since v9.7.0 - */ - export function getSystemErrorName(err: number): string; - /** - * Returns a Map of all system error codes available from the Node.js API. - * The mapping between error codes and error names is platform-dependent. - * See `Common System Errors` for the names of common errors. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const errorMap = util.getSystemErrorMap(); - * const name = errorMap.get(err.errno); - * console.error(name); // ENOENT - * }); - * ``` - * @since v16.0.0, v14.17.0 - */ - export function getSystemErrorMap(): Map; - /** - * The `util.log()` method prints the given `string` to `stdout` with an included - * timestamp. - * - * ```js - * import util from 'node:util'; - * - * util.log('Timestamped message.'); - * ``` - * @since v0.3.0 - * @deprecated Since v6.0.0 - Use a third party module instead. - */ - export function log(string: string): void; - /** - * Returns the `string` after replacing any surrogate code points - * (or equivalently, any unpaired surrogate code units) with the - * Unicode "replacement character" U+FFFD. - * @since v16.8.0, v14.18.0 - */ - export function toUSVString(string: string): string; - /** - * Creates and returns an `AbortController` instance whose `AbortSignal` is marked - * as transferable and can be used with `structuredClone()` or `postMessage()`. - * @since v18.11.0 - * @experimental - * @returns A transferable AbortController - */ - export function transferableAbortController(): AbortController; - /** - * Marks the given `AbortSignal` as transferable so that it can be used with`structuredClone()` and `postMessage()`. - * - * ```js - * const signal = transferableAbortSignal(AbortSignal.timeout(100)); - * const channel = new MessageChannel(); - * channel.port2.postMessage(signal, [signal]); - * ``` - * @since v18.11.0 - * @experimental - * @param signal The AbortSignal - * @returns The same AbortSignal - */ - export function transferableAbortSignal(signal: AbortSignal): AbortSignal; - /** - * Listens to abort event on the provided `signal` and - * returns a promise that is fulfilled when the `signal` is - * aborted. If the passed `resource` is garbage collected before the `signal` is - * aborted, the returned promise shall remain pending indefinitely. - * - * ```js - * import { aborted } from 'node:util'; - * - * const dependent = obtainSomethingAbortable(); - * - * aborted(dependent.signal, dependent).then(() => { - * // Do something when dependent is aborted. - * }); - * - * dependent.on('event', () => { - * dependent.abort(); - * }); - * ``` - * @since v19.7.0 - * @experimental - * @param resource Any non-null entity, reference to which is held weakly. - */ - export function aborted(signal: AbortSignal, resource: any): Promise; - /** - * The `util.inspect()` method returns a string representation of `object` that is - * intended for debugging. The output of `util.inspect` may change at any time - * and should not be depended upon programmatically. Additional `options` may be - * passed that alter the result. `util.inspect()` will use the constructor's name and/or `@@toStringTag` to make - * an identifiable tag for an inspected value. - * - * ```js - * class Foo { - * get [Symbol.toStringTag]() { - * return 'bar'; - * } - * } - * - * class Bar {} - * - * const baz = Object.create(null, { [Symbol.toStringTag]: { value: 'foo' } }); - * - * util.inspect(new Foo()); // 'Foo [bar] {}' - * util.inspect(new Bar()); // 'Bar {}' - * util.inspect(baz); // '[foo] {}' - * ``` - * - * Circular references point to their anchor by using a reference index: - * - * ```js - * import { inspect } from 'node:util'; - * - * const obj = {}; - * obj.a = [obj]; - * obj.b = {}; - * obj.b.inner = obj.b; - * obj.b.obj = obj; - * - * console.log(inspect(obj)); - * // { - * // a: [ [Circular *1] ], - * // b: { inner: [Circular *2], obj: [Circular *1] } - * // } - * ``` - * - * The following example inspects all properties of the `util` object: - * - * ```js - * import util from 'node:util'; - * - * console.log(util.inspect(util, { showHidden: true, depth: null })); - * ``` - * - * The following example highlights the effect of the `compact` option: - * - * ```js - * import util from 'node:util'; - * - * const o = { - * a: [1, 2, [[ - * 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit, sed do ' + - * 'eiusmod \ntempor incididunt ut labore et dolore magna aliqua.', - * 'test', - * 'foo']], 4], - * b: new Map([['za', 1], ['zb', 'test']]), - * }; - * console.log(util.inspect(o, { compact: true, depth: 5, breakLength: 80 })); - * - * // { a: - * // [ 1, - * // 2, - * // [ [ 'Lorem ipsum dolor sit amet,\nconsectetur [...]', // A long line - * // 'test', - * // 'foo' ] ], - * // 4 ], - * // b: Map(2) { 'za' => 1, 'zb' => 'test' } } - * - * // Setting `compact` to false or an integer creates more reader friendly output. - * console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 })); - * - * // { - * // a: [ - * // 1, - * // 2, - * // [ - * // [ - * // 'Lorem ipsum dolor sit amet,\n' + - * // 'consectetur adipiscing elit, sed do eiusmod \n' + - * // 'tempor incididunt ut labore et dolore magna aliqua.', - * // 'test', - * // 'foo' - * // ] - * // ], - * // 4 - * // ], - * // b: Map(2) { - * // 'za' => 1, - * // 'zb' => 'test' - * // } - * // } - * - * // Setting `breakLength` to e.g. 150 will print the "Lorem ipsum" text in a - * // single line. - * ``` - * - * The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and - * [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be - * inspected. If there are more entries than `maxArrayLength`, there is no - * guarantee which entries are displayed. That means retrieving the same [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may - * result in different output. Furthermore, entries - * with no remaining strong references may be garbage collected at any time. - * - * ```js - * import { inspect } from 'node:util'; - * - * const obj = { a: 1 }; - * const obj2 = { b: 2 }; - * const weakSet = new WeakSet([obj, obj2]); - * - * console.log(inspect(weakSet, { showHidden: true })); - * // WeakSet { { a: 1 }, { b: 2 } } - * ``` - * - * The `sorted` option ensures that an object's property insertion order does not - * impact the result of `util.inspect()`. - * - * ```js - * import { inspect } from 'node:util'; - * import assert from 'node:assert'; - * - * const o1 = { - * b: [2, 3, 1], - * a: '`a` comes before `b`', - * c: new Set([2, 3, 1]), - * }; - * console.log(inspect(o1, { sorted: true })); - * // { a: '`a` comes before `b`', b: [ 2, 3, 1 ], c: Set(3) { 1, 2, 3 } } - * console.log(inspect(o1, { sorted: (a, b) => b.localeCompare(a) })); - * // { c: Set(3) { 3, 2, 1 }, b: [ 2, 3, 1 ], a: '`a` comes before `b`' } - * - * const o2 = { - * c: new Set([2, 1, 3]), - * a: '`a` comes before `b`', - * b: [2, 3, 1], - * }; - * assert.strict.equal( - * inspect(o1, { sorted: true }), - * inspect(o2, { sorted: true }), - * ); - * ``` - * - * The `numericSeparator` option adds an underscore every three digits to all - * numbers. - * - * ```js - * import { inspect } from 'node:util'; - * - * const thousand = 1_000; - * const million = 1_000_000; - * const bigNumber = 123_456_789n; - * const bigDecimal = 1_234.123_45; - * - * console.log(inspect(thousand, { numericSeparator: true })); - * // 1_000 - * console.log(inspect(million, { numericSeparator: true })); - * // 1_000_000 - * console.log(inspect(bigNumber, { numericSeparator: true })); - * // 123_456_789n - * console.log(inspect(bigDecimal, { numericSeparator: true })); - * // 1_234.123_45 - * ``` - * - * `util.inspect()` is a synchronous method intended for debugging. Its maximum - * output length is approximately 128 MiB. Inputs that result in longer output will - * be truncated. - * @since v0.3.0 - * @param object Any JavaScript primitive or `Object`. - * @return The representation of `object`. - */ - export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; - export function inspect(object: any, options?: InspectOptions): string; - export namespace inspect { - let colors: NodeJS.Dict<[number, number]>; - let styles: { - [K in Style]: string; - }; - let defaultOptions: InspectOptions; - /** - * Allows changing inspect settings from the repl. - */ - let replDefaults: InspectOptions; - /** - * That can be used to declare custom inspect functions. - */ - const custom: unique symbol; - } - /** - * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray). - * - * Returns `true` if the given `object` is an `Array`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isArray([]); - * // Returns: true - * util.isArray(new Array()); - * // Returns: true - * util.isArray({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use `isArray` instead. - */ - export function isArray(object: unknown): object is unknown[]; - /** - * Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isRegExp(/some regexp/); - * // Returns: true - * util.isRegExp(new RegExp('another regexp')); - * // Returns: true - * util.isRegExp({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Deprecated - */ - export function isRegExp(object: unknown): object is RegExp; - /** - * Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isDate(new Date()); - * // Returns: true - * util.isDate(Date()); - * // false (without 'new' returns a String) - * util.isDate({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use {@link types.isDate} instead. - */ - export function isDate(object: unknown): object is Date; - /** - * Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isError(new Error()); - * // Returns: true - * util.isError(new TypeError()); - * // Returns: true - * util.isError({ name: 'Error', message: 'an error occurred' }); - * // Returns: false - * ``` - * - * This method relies on `Object.prototype.toString()` behavior. It is - * possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`. - * - * ```js - * import util from 'node:util'; - * const obj = { name: 'Error', message: 'an error occurred' }; - * - * util.isError(obj); - * // Returns: false - * obj[Symbol.toStringTag] = 'Error'; - * util.isError(obj); - * // Returns: true - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead. - */ - export function isError(object: unknown): object is Error; - /** - * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note - * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). - * - * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The - * prototype of `constructor` will be set to a new object created from `superConstructor`. - * - * This mainly adds some input validation on top of`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`. - * As an additional convenience, `superConstructor` will be accessible - * through the `constructor.super_` property. - * - * ```js - * import util from 'node:util'; - * import EventEmitter from 'node:events'; - * - * function MyStream() { - * EventEmitter.call(this); - * } - * - * util.inherits(MyStream, EventEmitter); - * - * MyStream.prototype.write = function(data) { - * this.emit('data', data); - * }; - * - * const stream = new MyStream(); - * - * console.log(stream instanceof EventEmitter); // true - * console.log(MyStream.super_ === EventEmitter); // true - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('It works!'); // Received data: "It works!" - * ``` - * - * ES6 example using `class` and `extends`: - * - * ```js - * import EventEmitter from 'node:events'; - * - * class MyStream extends EventEmitter { - * write(data) { - * this.emit('data', data); - * } - * } - * - * const stream = new MyStream(); - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('With ES6'); - * ``` - * @since v0.3.0 - * @legacy Use ES2015 class syntax and `extends` keyword instead. - */ - export function inherits(constructor: unknown, superConstructor: unknown): void; - export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void; - export interface DebugLogger extends DebugLoggerFunction { - enabled: boolean; - } - /** - * The `util.debuglog()` method is used to create a function that conditionally - * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`environment variable. If the `section` name appears within the value of that - * environment variable, then the returned function operates similar to `console.error()`. If not, then the returned function is a no-op. - * - * ```js - * import util from 'node:util'; - * const debuglog = util.debuglog('foo'); - * - * debuglog('hello from foo [%d]', 123); - * ``` - * - * If this program is run with `NODE_DEBUG=foo` in the environment, then - * it will output something like: - * - * ```console - * FOO 3245: hello from foo [123] - * ``` - * - * where `3245` is the process id. If it is not run with that - * environment variable set, then it will not print anything. - * - * The `section` supports wildcard also: - * - * ```js - * import util from 'node:util'; - * const debuglog = util.debuglog('foo-bar'); - * - * debuglog('hi there, it\'s foo-bar [%d]', 2333); - * ``` - * - * if it is run with `NODE_DEBUG=foo*` in the environment, then it will output - * something like: - * - * ```console - * FOO-BAR 3257: hi there, it's foo-bar [2333] - * ``` - * - * Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`environment variable: `NODE_DEBUG=fs,net,tls`. - * - * The optional `callback` argument can be used to replace the logging function - * with a different function that doesn't have any initialization or - * unnecessary wrapping. - * - * ```js - * import util from 'node:util'; - * let debuglog = util.debuglog('internals', (debug) => { - * // Replace with a logging function that optimizes out - * // testing if the section is enabled - * debuglog = debug; - * }); - * ``` - * @since v0.11.3 - * @param section A string identifying the portion of the application for which the `debuglog` function is being created. - * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function. - * @return The logging function - */ - export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger; - export const debug: typeof debuglog; - /** - * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isBoolean(1); - * // Returns: false - * util.isBoolean(0); - * // Returns: false - * util.isBoolean(false); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead. - */ - export function isBoolean(object: unknown): object is boolean; - /** - * Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isBuffer({ length: 0 }); - * // Returns: false - * util.isBuffer([]); - * // Returns: false - * util.isBuffer(Buffer.from('hello world')); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `isBuffer` instead. - */ - export function isBuffer(object: unknown): object is Buffer; - /** - * Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * function Foo() {} - * const Bar = () => {}; - * - * util.isFunction({}); - * // Returns: false - * util.isFunction(Foo); - * // Returns: true - * util.isFunction(Bar); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead. - */ - export function isFunction(object: unknown): boolean; - /** - * Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`. - * - * ```js - * import util from 'node:util'; - * - * util.isNull(0); - * // Returns: false - * util.isNull(undefined); - * // Returns: false - * util.isNull(null); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === null` instead. - */ - export function isNull(object: unknown): object is null; - /** - * Returns `true` if the given `object` is `null` or `undefined`. Otherwise, - * returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isNullOrUndefined(0); - * // Returns: false - * util.isNullOrUndefined(undefined); - * // Returns: true - * util.isNullOrUndefined(null); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead. - */ - export function isNullOrUndefined(object: unknown): object is null | undefined; - /** - * Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isNumber(false); - * // Returns: false - * util.isNumber(Infinity); - * // Returns: true - * util.isNumber(0); - * // Returns: true - * util.isNumber(NaN); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead. - */ - export function isNumber(object: unknown): object is number; - /** - * Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript). - * Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isObject(5); - * // Returns: false - * util.isObject(null); - * // Returns: false - * util.isObject({}); - * // Returns: true - * util.isObject(() => {}); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead. - */ - export function isObject(object: unknown): boolean; - /** - * Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`. - * - * ```js - * import util from 'node:util'; - * - * util.isPrimitive(5); - * // Returns: true - * util.isPrimitive('foo'); - * // Returns: true - * util.isPrimitive(false); - * // Returns: true - * util.isPrimitive(null); - * // Returns: true - * util.isPrimitive(undefined); - * // Returns: true - * util.isPrimitive({}); - * // Returns: false - * util.isPrimitive(() => {}); - * // Returns: false - * util.isPrimitive(/^$/); - * // Returns: false - * util.isPrimitive(new Date()); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead. - */ - export function isPrimitive(object: unknown): boolean; - /** - * Returns `true` if the given `object` is a `string`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isString(''); - * // Returns: true - * util.isString('foo'); - * // Returns: true - * util.isString(String('foo')); - * // Returns: true - * util.isString(5); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead. - */ - export function isString(object: unknown): object is string; - /** - * Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isSymbol(5); - * // Returns: false - * util.isSymbol('foo'); - * // Returns: false - * util.isSymbol(Symbol('foo')); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead. - */ - export function isSymbol(object: unknown): object is symbol; - /** - * Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * const foo = undefined; - * util.isUndefined(5); - * // Returns: false - * util.isUndefined(foo); - * // Returns: true - * util.isUndefined(null); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === undefined` instead. - */ - export function isUndefined(object: unknown): object is undefined; - /** - * The `util.deprecate()` method wraps `fn` (which may be a function or class) in - * such a way that it is marked as deprecated. - * - * ```js - * import util from 'node:util'; - * - * exports.obsoleteFunction = util.deprecate(() => { - * // Do something here. - * }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.'); - * ``` - * - * When called, `util.deprecate()` will return a function that will emit a `DeprecationWarning` using the `'warning'` event. The warning will - * be emitted and printed to `stderr` the first time the returned function is - * called. After the warning is emitted, the wrapped function is called without - * emitting a warning. - * - * If the same optional `code` is supplied in multiple calls to `util.deprecate()`, - * the warning will be emitted only once for that `code`. - * - * ```js - * import util from 'node:util'; - * - * const fn1 = util.deprecate(someFunction, someMessage, 'DEP0001'); - * const fn2 = util.deprecate(someOtherFunction, someOtherMessage, 'DEP0001'); - * fn1(); // Emits a deprecation warning with code DEP0001 - * fn2(); // Does not emit a deprecation warning because it has the same code - * ``` - * - * If either the `--no-deprecation` or `--no-warnings` command-line flags are - * used, or if the `process.noDeprecation` property is set to `true`_prior_ to - * the first deprecation warning, the `util.deprecate()` method does nothing. - * - * If the `--trace-deprecation` or `--trace-warnings` command-line flags are set, - * or the `process.traceDeprecation` property is set to `true`, a warning and a - * stack trace are printed to `stderr` the first time the deprecated function is - * called. - * - * If the `--throw-deprecation` command-line flag is set, or the `process.throwDeprecation` property is set to `true`, then an exception will be - * thrown when the deprecated function is called. - * - * The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`. - * @since v0.8.0 - * @param fn The function that is being deprecated. - * @param msg A warning message to display when the deprecated function is invoked. - * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes. - * @return The deprecated function wrapped to emit a warning. - */ - export function deprecate(fn: T, msg: string, code?: string): T; - /** - * Returns `true` if there is deep strict equality between `val1` and `val2`. - * Otherwise, returns `false`. - * - * See `assert.deepStrictEqual()` for more information about deep strict - * equality. - * @since v9.0.0 - */ - export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean; - /** - * Returns `str` with any ANSI escape codes removed. - * - * ```js - * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m')); - * // Prints "value" - * ``` - * @since v16.11.0 - */ - export function stripVTControlCharacters(str: string): string; - /** - * Takes an `async` function (or a function that returns a `Promise`) and returns a - * function following the error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument. In the callback, the - * first argument will be the rejection reason (or `null` if the `Promise` resolved), and the second argument will be the resolved value. - * - * ```js - * import util from 'node:util'; - * - * async function fn() { - * return 'hello world'; - * } - * const callbackFunction = util.callbackify(fn); - * - * callbackFunction((err, ret) => { - * if (err) throw err; - * console.log(ret); - * }); - * ``` - * - * Will print: - * - * ```text - * hello world - * ``` - * - * The callback is executed asynchronously, and will have a limited stack trace. - * If the callback throws, the process will emit an `'uncaughtException'` event, and if not handled will exit. - * - * Since `null` has a special meaning as the first argument to a callback, if a - * wrapped function rejects a `Promise` with a falsy value as a reason, the value - * is wrapped in an `Error` with the original value stored in a field named `reason`. - * - * ```js - * function fn() { - * return Promise.reject(null); - * } - * const callbackFunction = util.callbackify(fn); - * - * callbackFunction((err, ret) => { - * // When the Promise was rejected with `null` it is wrapped with an Error and - * // the original value is stored in `reason`. - * err && Object.hasOwn(err, 'reason') && err.reason === null; // true - * }); - * ``` - * @since v8.2.0 - * @param fn An `async` function - * @return a callback style function - */ - export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: () => Promise, - ): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1) => Promise, - ): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1) => Promise, - ): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2) => Promise, - ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2) => Promise, - ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - arg6: T6, - callback: (err: NodeJS.ErrnoException) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - arg6: T6, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export interface CustomPromisifyLegacy extends Function { - __promisify__: TCustom; - } - export interface CustomPromisifySymbol extends Function { - [promisify.custom]: TCustom; - } - export type CustomPromisify = - | CustomPromisifySymbol - | CustomPromisifyLegacy; - /** - * Takes a function following the common error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument, and returns a version - * that returns promises. - * - * ```js - * import util from 'node:util'; - * import fs from 'node:fs'; - * - * const stat = util.promisify(fs.stat); - * stat('.').then((stats) => { - * // Do something with `stats` - * }).catch((error) => { - * // Handle the error. - * }); - * ``` - * - * Or, equivalently using `async function`s: - * - * ```js - * import util from 'node:util'; - * import fs from 'node:fs'; - * - * const stat = util.promisify(fs.stat); - * - * async function callStat() { - * const stats = await stat('.'); - * console.log(`This directory is owned by ${stats.uid}`); - * } - * - * callStat(); - * ``` - * - * If there is an `original[util.promisify.custom]` property present, `promisify` will return its value, see `Custom promisified functions`. - * - * `promisify()` assumes that `original` is a function taking a callback as its - * final argument in all cases. If `original` is not a function, `promisify()` will throw an error. If `original` is a function but its last argument is not - * an error-first callback, it will still be passed an error-first - * callback as its last argument. - * - * Using `promisify()` on class methods or other methods that use `this` may not - * work as expected unless handled specially: - * - * ```js - * import util from 'node:util'; - * - * class Foo { - * constructor() { - * this.a = 42; - * } - * - * bar(callback) { - * callback(null, this.a); - * } - * } - * - * const foo = new Foo(); - * - * const naiveBar = util.promisify(foo.bar); - * // TypeError: Cannot read property 'a' of undefined - * // naiveBar().then(a => console.log(a)); - * - * naiveBar.call(foo).then((a) => console.log(a)); // '42' - * - * const bindBar = naiveBar.bind(foo); - * bindBar().then((a) => console.log(a)); // '42' - * ``` - * @since v8.0.0 - */ - export function promisify(fn: CustomPromisify): TCustom; - export function promisify( - fn: (callback: (err: any, result: TResult) => void) => void, - ): () => Promise; - export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise; - export function promisify( - fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1) => Promise; - export function promisify(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify(fn: Function): Function; - export namespace promisify { - /** - * That can be used to declare custom promisified variants of functions. - */ - const custom: unique symbol; - } - /** - * Stability: 1.1 - Active development - * Given an example `.env` file: - * - * ```js - * import { parseEnv } from 'node:util'; - * - * parseEnv('HELLO=world\nHELLO=oh my\n'); - * // Returns: { HELLO: 'oh my' } - * ``` - * @param content The raw contents of a `.env` file. - * @since v20.12.0 - */ - export function parseEnv(content: string): NodeJS.Dict; - // https://nodejs.org/docs/latest/api/util.html#foreground-colors - type ForegroundColors = - | "black" - | "blackBright" - | "blue" - | "blueBright" - | "cyan" - | "cyanBright" - | "gray" - | "green" - | "greenBright" - | "grey" - | "magenta" - | "magentaBright" - | "red" - | "redBright" - | "white" - | "whiteBright" - | "yellow" - | "yellowBright"; - // https://nodejs.org/docs/latest/api/util.html#background-colors - type BackgroundColors = - | "bgBlack" - | "bgBlackBright" - | "bgBlue" - | "bgBlueBright" - | "bgCyan" - | "bgCyanBright" - | "bgGray" - | "bgGreen" - | "bgGreenBright" - | "bgGrey" - | "bgMagenta" - | "bgMagentaBright" - | "bgRed" - | "bgRedBright" - | "bgWhite" - | "bgWhiteBright" - | "bgYellow" - | "bgYellowBright"; - // https://nodejs.org/docs/latest/api/util.html#modifiers - type Modifiers = - | "blink" - | "bold" - | "dim" - | "doubleunderline" - | "framed" - | "hidden" - | "inverse" - | "italic" - | "overlined" - | "reset" - | "strikethrough" - | "underline"; - export interface StyleTextOptions { - /** - * When true, `stream` is checked to see if it can handle colors. - * @default true - */ - validateStream?: boolean | undefined; - /** - * A stream that will be validated if it can be colored. - * @default process.stdout - */ - stream?: NodeJS.WritableStream | undefined; - } - /** - * Stability: 1.1 - Active development - * - * This function returns a formatted text considering the `format` passed. - * - * ```js - * import { styleText } from 'node:util'; - * const errorMessage = styleText('red', 'Error! Error!'); - * console.log(errorMessage); - * ``` - * - * `util.inspect.colors` also provides text formats such as `italic`, and `underline` and you can combine both: - * - * ```js - * console.log( - * util.styleText(['underline', 'italic'], 'My italic underlined message'), - * ); - * ``` - * - * When passing an array of formats, the order of the format applied is left to right so the following style - * might overwrite the previous one. - * - * ```js - * console.log( - * util.styleText(['red', 'green'], 'text'), // green - * ); - * ``` - * - * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v20.x/api/util.html#modifiers). - * @param format A text format or an Array of text formats defined in `util.inspect.colors`. - * @param text The text to to be formatted. - * @since v20.12.0 - */ - export function styleText( - format: - | ForegroundColors - | BackgroundColors - | Modifiers - | Array, - text: string, - options?: StyleTextOptions, - ): string; - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API. - * - * ```js - * const decoder = new TextDecoder(); - * const u8arr = new Uint8Array([72, 101, 108, 108, 111]); - * console.log(decoder.decode(u8arr)); // Hello - * ``` - * @since v8.3.0 - */ - export class TextDecoder { - /** - * The encoding supported by the `TextDecoder` instance. - */ - readonly encoding: string; - /** - * The value will be `true` if decoding errors result in a `TypeError` being - * thrown. - */ - readonly fatal: boolean; - /** - * The value will be `true` if the decoding result will include the byte order - * mark. - */ - readonly ignoreBOM: boolean; - constructor( - encoding?: string, - options?: { - fatal?: boolean | undefined; - ignoreBOM?: boolean | undefined; - }, - ); - /** - * Decodes the `input` and returns a string. If `options.stream` is `true`, any - * incomplete byte sequences occurring at the end of the `input` are buffered - * internally and emitted after the next call to `textDecoder.decode()`. - * - * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown. - * @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data. - */ - decode( - input?: NodeJS.ArrayBufferView | ArrayBuffer | null, - options?: { - stream?: boolean | undefined; - }, - ): string; - } - export interface EncodeIntoResult { - /** - * The read Unicode code units of input. - */ - read: number; - /** - * The written UTF-8 bytes of output. - */ - written: number; - } - export { types }; - - //// TextEncoder/Decoder - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All - * instances of `TextEncoder` only support UTF-8 encoding. - * - * ```js - * const encoder = new TextEncoder(); - * const uint8array = encoder.encode('this is some data'); - * ``` - * - * The `TextEncoder` class is also available on the global object. - * @since v8.3.0 - */ - export class TextEncoder { - /** - * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. - */ - readonly encoding: string; - /** - * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the - * encoded bytes. - * @param [input='an empty string'] The text to encode. - */ - encode(input?: string): NodeJS.NonSharedUint8Array; - /** - * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object - * containing the read Unicode code units and written UTF-8 bytes. - * - * ```js - * const encoder = new TextEncoder(); - * const src = 'this is some data'; - * const dest = new Uint8Array(10); - * const { read, written } = encoder.encodeInto(src, dest); - * ``` - * @param src The text to encode. - * @param dest The array to hold the encode result. - */ - encodeInto(src: string, dest: Uint8Array): EncodeIntoResult; - } - import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util"; - global { - /** - * `TextDecoder` class is a global reference for `import { TextDecoder } from 'node:util'` - * https://nodejs.org/api/globals.html#textdecoder - * @since v11.0.0 - */ - var TextDecoder: typeof globalThis extends { - onmessage: any; - TextDecoder: infer TextDecoder; - } ? TextDecoder - : typeof _TextDecoder; - /** - * `TextEncoder` class is a global reference for `import { TextEncoder } from 'node:util'` - * https://nodejs.org/api/globals.html#textencoder - * @since v11.0.0 - */ - var TextEncoder: typeof globalThis extends { - onmessage: any; - TextEncoder: infer TextEncoder; - } ? TextEncoder - : typeof _TextEncoder; - } - - //// parseArgs - /** - * Provides a higher level API for command-line argument parsing than interacting - * with `process.argv` directly. Takes a specification for the expected arguments - * and returns a structured object with the parsed options and positionals. - * - * ```js - * import { parseArgs } from 'node:util'; - * const args = ['-f', '--bar', 'b']; - * const options = { - * foo: { - * type: 'boolean', - * short: 'f', - * }, - * bar: { - * type: 'string', - * }, - * }; - * const { - * values, - * positionals, - * } = parseArgs({ args, options }); - * console.log(values, positionals); - * // Prints: [Object: null prototype] { foo: true, bar: 'b' } [] - * ``` - * @since v18.3.0, v16.17.0 - * @param config Used to provide arguments for parsing and to configure the parser. `config` supports the following properties: - * @return The parsed command line arguments: - */ - export function parseArgs(config?: T): ParsedResults; - interface ParseArgsOptionConfig { - /** - * Type of argument. - */ - type: "string" | "boolean"; - /** - * Whether this option can be provided multiple times. - * If `true`, all values will be collected in an array. - * If `false`, values for the option are last-wins. - * @default false. - */ - multiple?: boolean | undefined; - /** - * A single character alias for the option. - */ - short?: string | undefined; - /** - * The default option value when it is not set by args. - * It must be of the same type as the the `type` property. - * When `multiple` is `true`, it must be an array. - * @since v18.11.0 - */ - default?: string | boolean | string[] | boolean[] | undefined; - } - interface ParseArgsOptionsConfig { - [longOption: string]: ParseArgsOptionConfig; - } - export interface ParseArgsConfig { - /** - * Array of argument strings. - */ - args?: readonly string[] | undefined; - /** - * Used to describe arguments known to the parser. - */ - options?: ParseArgsOptionsConfig | undefined; - /** - * Should an error be thrown when unknown arguments are encountered, - * or when arguments are passed that do not match the `type` configured in `options`. - * @default true - */ - strict?: boolean | undefined; - /** - * Whether this command accepts positional arguments. - */ - allowPositionals?: boolean | undefined; - /** - * If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`. - * @default false - * @since v20.16.0 - */ - allowNegative?: boolean | undefined; - /** - * Return the parsed tokens. This is useful for extending the built-in behavior, - * from adding additional checks through to reprocessing the tokens in different ways. - * @default false - */ - tokens?: boolean | undefined; - } - /* - IfDefaultsTrue and IfDefaultsFalse are helpers to handle default values for missing boolean properties. - TypeScript does not have exact types for objects: https://github.com/microsoft/TypeScript/issues/12936 - This means it is impossible to distinguish between "field X is definitely not present" and "field X may or may not be present". - But we expect users to generally provide their config inline or `as const`, which means TS will always know whether a given field is present. - So this helper treats "not definitely present" (i.e., not `extends boolean`) as being "definitely not present", i.e. it should have its default value. - This is technically incorrect but is a much nicer UX for the common case. - The IfDefaultsTrue version is for things which default to true; the IfDefaultsFalse version is for things which default to false. - */ - type IfDefaultsTrue = T extends true ? IfTrue - : T extends false ? IfFalse - : IfTrue; - - // we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false` - type IfDefaultsFalse = T extends false ? IfFalse - : T extends true ? IfTrue - : IfFalse; - - type ExtractOptionValue = IfDefaultsTrue< - T["strict"], - O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean, - string | boolean - >; - - type ApplyOptionalModifiers> = ( - & { -readonly [LongOption in keyof O]?: V[LongOption] } - & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] } - ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object - - type ParsedValues = - & IfDefaultsTrue - & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers< - T["options"], - { - [LongOption in keyof T["options"]]: IfDefaultsFalse< - T["options"][LongOption]["multiple"], - Array>, - ExtractOptionValue - >; - } - > - : {}); - - type ParsedPositionals = IfDefaultsTrue< - T["strict"], - IfDefaultsFalse, - IfDefaultsTrue - >; - - type PreciseTokenForOptions< - K extends string, - O extends ParseArgsOptionConfig, - > = O["type"] extends "string" ? { - kind: "option"; - index: number; - name: K; - rawName: string; - value: string; - inlineValue: boolean; - } - : O["type"] extends "boolean" ? { - kind: "option"; - index: number; - name: K; - rawName: string; - value: undefined; - inlineValue: undefined; - } - : OptionToken & { name: K }; - - type TokenForOptions< - T extends ParseArgsConfig, - K extends keyof T["options"] = keyof T["options"], - > = K extends unknown - ? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions - : OptionToken - : never; - - type ParsedOptionToken = IfDefaultsTrue, OptionToken>; - - type ParsedPositionalToken = IfDefaultsTrue< - T["strict"], - IfDefaultsFalse, - IfDefaultsTrue - >; - - type ParsedTokens = Array< - ParsedOptionToken | ParsedPositionalToken | { kind: "option-terminator"; index: number } - >; - - type PreciseParsedResults = IfDefaultsFalse< - T["tokens"], - { - values: ParsedValues; - positionals: ParsedPositionals; - tokens: ParsedTokens; - }, - { - values: ParsedValues; - positionals: ParsedPositionals; - } - >; - - type OptionToken = - | { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean } - | { - kind: "option"; - index: number; - name: string; - rawName: string; - value: undefined; - inlineValue: undefined; - }; - - type Token = - | OptionToken - | { kind: "positional"; index: number; value: string } - | { kind: "option-terminator"; index: number }; - - // If ParseArgsConfig extends T, then the user passed config constructed elsewhere. - // So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above. - type ParsedResults = ParseArgsConfig extends T ? { - values: { - [longOption: string]: undefined | string | boolean | Array; - }; - positionals: string[]; - tokens?: Token[]; - } - : PreciseParsedResults; - - /** - * An implementation of [the MIMEType class](https://bmeck.github.io/node-proposal-mime-api/). - * - * In accordance with browser conventions, all properties of `MIMEType` objects - * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. - * - * A MIME string is a structured string containing multiple meaningful - * components. When parsed, a `MIMEType` object is returned containing - * properties for each of these components. - * @since v19.1.0, v18.13.0 - * @experimental - */ - export class MIMEType { - /** - * Creates a new MIMEType object by parsing the input. - * - * A `TypeError` will be thrown if the `input` is not a valid MIME. - * Note that an effort will be made to coerce the given values into strings. - * @param input The input MIME to parse. - */ - constructor(input: string | { toString: () => string }); - - /** - * Gets and sets the type portion of the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/javascript'); - * console.log(myMIME.type); - * // Prints: text - * myMIME.type = 'application'; - * console.log(myMIME.type); - * // Prints: application - * console.log(String(myMIME)); - * // Prints: application/javascript - * ``` - */ - type: string; - /** - * Gets and sets the subtype portion of the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/ecmascript'); - * console.log(myMIME.subtype); - * // Prints: ecmascript - * myMIME.subtype = 'javascript'; - * console.log(myMIME.subtype); - * // Prints: javascript - * console.log(String(myMIME)); - * // Prints: text/javascript - * ``` - */ - subtype: string; - /** - * Gets the essence of the MIME. This property is read only. - * Use `mime.type` or `mime.subtype` to alter the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/javascript;key=value'); - * console.log(myMIME.essence); - * // Prints: text/javascript - * myMIME.type = 'application'; - * console.log(myMIME.essence); - * // Prints: application/javascript - * console.log(String(myMIME)); - * // Prints: application/javascript;key=value - * ``` - */ - readonly essence: string; - /** - * Gets the `MIMEParams` object representing the - * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details. - */ - readonly params: MIMEParams; - /** - * The `toString()` method on the `MIMEType` object returns the serialized MIME. - * - * Because of the need for standard compliance, this method does not allow users - * to customize the serialization process of the MIME. - */ - toString(): string; - } - /** - * The `MIMEParams` API provides read and write access to the parameters of a `MIMEType`. - * @since v19.1.0, v18.13.0 - */ - export class MIMEParams { - /** - * Remove all name-value pairs whose name is `name`. - */ - delete(name: string): void; - /** - * Returns an iterator over each of the name-value pairs in the parameters. - * Each item of the iterator is a JavaScript `Array`. The first item of the array - * is the `name`, the second item of the array is the `value`. - */ - entries(): NodeJS.Iterator<[name: string, value: string]>; - /** - * Returns the value of the first name-value pair whose name is `name`. If there - * are no such pairs, `null` is returned. - * @return or `null` if there is no name-value pair with the given `name`. - */ - get(name: string): string | null; - /** - * Returns `true` if there is at least one name-value pair whose name is `name`. - */ - has(name: string): boolean; - /** - * Returns an iterator over the names of each name-value pair. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const { params } = new MIMEType('text/plain;foo=0;bar=1'); - * for (const name of params.keys()) { - * console.log(name); - * } - * // Prints: - * // foo - * // bar - * ``` - */ - keys(): NodeJS.Iterator; - /** - * Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, - * set the first such pair's value to `value`. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const { params } = new MIMEType('text/plain;foo=0;bar=1'); - * params.set('foo', 'def'); - * params.set('baz', 'xyz'); - * console.log(params.toString()); - * // Prints: foo=def;bar=1;baz=xyz - * ``` - */ - set(name: string, value: string): void; - /** - * Returns an iterator over the values of each name-value pair. - */ - values(): NodeJS.Iterator; - /** - * Returns an iterator over each of the name-value pairs in the parameters. - */ - [Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>; - } -} -declare module "util/types" { - import { KeyObject, webcrypto } from "node:crypto"; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or - * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * - * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`. - * - * ```js - * util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike; - /** - * Returns `true` if the value is an `arguments` object. - * - * ```js - * function foo() { - * util.types.isArgumentsObject(arguments); // Returns true - * } - * ``` - * @since v10.0.0 - */ - function isArgumentsObject(object: unknown): object is IArguments; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance. - * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false - * ``` - * @since v10.0.0 - */ - function isArrayBuffer(object: unknown): object is ArrayBuffer; - /** - * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed - * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to - * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * - * ```js - * util.types.isArrayBufferView(new Int8Array()); // true - * util.types.isArrayBufferView(Buffer.from('hello world')); // true - * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true - * util.types.isArrayBufferView(new ArrayBuffer()); // false - * ``` - * @since v10.0.0 - */ - function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView; - /** - * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function). - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isAsyncFunction(function foo() {}); // Returns false - * util.types.isAsyncFunction(async function foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isAsyncFunction(object: unknown): boolean; - /** - * Returns `true` if the value is a `BigInt64Array` instance. - * - * ```js - * util.types.isBigInt64Array(new BigInt64Array()); // Returns true - * util.types.isBigInt64Array(new BigUint64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isBigInt64Array(value: unknown): value is BigInt64Array; - /** - * Returns `true` if the value is a BigInt object, e.g. created - * by `Object(BigInt(123))`. - * - * ```js - * util.types.isBigIntObject(Object(BigInt(123))); // Returns true - * util.types.isBigIntObject(BigInt(123)); // Returns false - * util.types.isBigIntObject(123); // Returns false - * ``` - * @since v10.4.0 - */ - function isBigIntObject(object: unknown): object is BigInt; - /** - * Returns `true` if the value is a `BigUint64Array` instance. - * - * ```js - * util.types.isBigUint64Array(new BigInt64Array()); // Returns false - * util.types.isBigUint64Array(new BigUint64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isBigUint64Array(value: unknown): value is BigUint64Array; - /** - * Returns `true` if the value is a boolean object, e.g. created - * by `new Boolean()`. - * - * ```js - * util.types.isBooleanObject(false); // Returns false - * util.types.isBooleanObject(true); // Returns false - * util.types.isBooleanObject(new Boolean(false)); // Returns true - * util.types.isBooleanObject(new Boolean(true)); // Returns true - * util.types.isBooleanObject(Boolean(false)); // Returns false - * util.types.isBooleanObject(Boolean(true)); // Returns false - * ``` - * @since v10.0.0 - */ - function isBooleanObject(object: unknown): object is Boolean; - /** - * Returns `true` if the value is any boxed primitive object, e.g. created - * by `new Boolean()`, `new String()` or `Object(Symbol())`. - * - * For example: - * - * ```js - * util.types.isBoxedPrimitive(false); // Returns false - * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true - * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false - * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true - * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true - * ``` - * @since v10.11.0 - */ - function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol; - /** - * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance. - * - * ```js - * const ab = new ArrayBuffer(20); - * util.types.isDataView(new DataView(ab)); // Returns true - * util.types.isDataView(new Float64Array()); // Returns false - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isDataView(object: unknown): object is DataView; - /** - * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. - * - * ```js - * util.types.isDate(new Date()); // Returns true - * ``` - * @since v10.0.0 - */ - function isDate(object: unknown): object is Date; - /** - * Returns `true` if the value is a native `External` value. - * - * A native `External` value is a special type of object that contains a - * raw C++ pointer (`void*`) for access from native code, and has no other - * properties. Such objects are created either by Node.js internals or native - * addons. In JavaScript, they are [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a`null` prototype. - * - * ```c - * #include - * #include - * napi_value result; - * static napi_value MyNapi(napi_env env, napi_callback_info info) { - * int* raw = (int*) malloc(1024); - * napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result); - * if (status != napi_ok) { - * napi_throw_error(env, NULL, "napi_create_external failed"); - * return NULL; - * } - * return result; - * } - * ... - * DECLARE_NAPI_PROPERTY("myNapi", MyNapi) - * ... - * ``` - * - * ```js - * const native =require('napi_addon.node'); - * const data = native.myNapi(); - * util.types.isExternal(data); // returns true - * util.types.isExternal(0); // returns false - * util.types.isExternal(new String('foo')); // returns false - * ``` - * - * For further information on `napi_create_external`, refer to `napi_create_external()`. - * @since v10.0.0 - */ - function isExternal(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance. - * - * ```js - * util.types.isFloat32Array(new ArrayBuffer()); // Returns false - * util.types.isFloat32Array(new Float32Array()); // Returns true - * util.types.isFloat32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isFloat32Array(object: unknown): object is Float32Array; - /** - * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance. - * - * ```js - * util.types.isFloat64Array(new ArrayBuffer()); // Returns false - * util.types.isFloat64Array(new Uint8Array()); // Returns false - * util.types.isFloat64Array(new Float64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isFloat64Array(object: unknown): object is Float64Array; - /** - * Returns `true` if the value is a generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isGeneratorFunction(function foo() {}); // Returns false - * util.types.isGeneratorFunction(function* foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorFunction(object: unknown): object is GeneratorFunction; - /** - * Returns `true` if the value is a generator object as returned from a - * built-in generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * function* foo() {} - * const generator = foo(); - * util.types.isGeneratorObject(generator); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorObject(object: unknown): object is Generator; - /** - * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance. - * - * ```js - * util.types.isInt8Array(new ArrayBuffer()); // Returns false - * util.types.isInt8Array(new Int8Array()); // Returns true - * util.types.isInt8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt8Array(object: unknown): object is Int8Array; - /** - * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance. - * - * ```js - * util.types.isInt16Array(new ArrayBuffer()); // Returns false - * util.types.isInt16Array(new Int16Array()); // Returns true - * util.types.isInt16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt16Array(object: unknown): object is Int16Array; - /** - * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance. - * - * ```js - * util.types.isInt32Array(new ArrayBuffer()); // Returns false - * util.types.isInt32Array(new Int32Array()); // Returns true - * util.types.isInt32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt32Array(object: unknown): object is Int32Array; - /** - * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * util.types.isMap(new Map()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMap( - object: T | {}, - ): object is T extends ReadonlyMap ? (unknown extends T ? never : ReadonlyMap) - : Map; - /** - * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * const map = new Map(); - * util.types.isMapIterator(map.keys()); // Returns true - * util.types.isMapIterator(map.values()); // Returns true - * util.types.isMapIterator(map.entries()); // Returns true - * util.types.isMapIterator(map[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMapIterator(object: unknown): boolean; - /** - * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects). - * - * ```js - * import * as ns from './a.js'; - * - * util.types.isModuleNamespaceObject(ns); // Returns true - * ``` - * @since v10.0.0 - */ - function isModuleNamespaceObject(value: unknown): boolean; - /** - * Returns `true` if the value was returned by the constructor of a [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects). - * - * ```js - * console.log(util.types.isNativeError(new Error())); // true - * console.log(util.types.isNativeError(new TypeError())); // true - * console.log(util.types.isNativeError(new RangeError())); // true - * ``` - * - * Subclasses of the native error types are also native errors: - * - * ```js - * class MyError extends Error {} - * console.log(util.types.isNativeError(new MyError())); // true - * ``` - * - * A value being `instanceof` a native error class is not equivalent to `isNativeError()` returning `true` for that value. `isNativeError()` returns `true` for errors - * which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false` for these errors: - * - * ```js - * import vm from 'node:vm'; - * const context = vm.createContext({}); - * const myError = vm.runInContext('new Error()', context); - * console.log(util.types.isNativeError(myError)); // true - * console.log(myError instanceof Error); // false - * ``` - * - * Conversely, `isNativeError()` returns `false` for all objects which were not - * returned by the constructor of a native error. That includes values - * which are `instanceof` native errors: - * - * ```js - * const myError = { __proto__: Error.prototype }; - * console.log(util.types.isNativeError(myError)); // false - * console.log(myError instanceof Error); // true - * ``` - * @since v10.0.0 - */ - function isNativeError(object: unknown): object is Error; - /** - * Returns `true` if the value is a number object, e.g. created - * by `new Number()`. - * - * ```js - * util.types.isNumberObject(0); // Returns false - * util.types.isNumberObject(new Number(0)); // Returns true - * ``` - * @since v10.0.0 - */ - function isNumberObject(object: unknown): object is Number; - /** - * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). - * - * ```js - * util.types.isPromise(Promise.resolve(42)); // Returns true - * ``` - * @since v10.0.0 - */ - function isPromise(object: unknown): object is Promise; - /** - * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance. - * - * ```js - * const target = {}; - * const proxy = new Proxy(target, {}); - * util.types.isProxy(target); // Returns false - * util.types.isProxy(proxy); // Returns true - * ``` - * @since v10.0.0 - */ - function isProxy(object: unknown): boolean; - /** - * Returns `true` if the value is a regular expression object. - * - * ```js - * util.types.isRegExp(/abc/); // Returns true - * util.types.isRegExp(new RegExp('abc')); // Returns true - * ``` - * @since v10.0.0 - */ - function isRegExp(object: unknown): object is RegExp; - /** - * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * util.types.isSet(new Set()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSet( - object: T | {}, - ): object is T extends ReadonlySet ? (unknown extends T ? never : ReadonlySet) : Set; - /** - * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * const set = new Set(); - * util.types.isSetIterator(set.keys()); // Returns true - * util.types.isSetIterator(set.values()); // Returns true - * util.types.isSetIterator(set.entries()); // Returns true - * util.types.isSetIterator(set[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSetIterator(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false - * util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer; - /** - * Returns `true` if the value is a string object, e.g. created - * by `new String()`. - * - * ```js - * util.types.isStringObject('foo'); // Returns false - * util.types.isStringObject(new String('foo')); // Returns true - * ``` - * @since v10.0.0 - */ - function isStringObject(object: unknown): object is String; - /** - * Returns `true` if the value is a symbol object, created - * by calling `Object()` on a `Symbol` primitive. - * - * ```js - * const symbol = Symbol('foo'); - * util.types.isSymbolObject(symbol); // Returns false - * util.types.isSymbolObject(Object(symbol)); // Returns true - * ``` - * @since v10.0.0 - */ - function isSymbolObject(object: unknown): object is Symbol; - /** - * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance. - * - * ```js - * util.types.isTypedArray(new ArrayBuffer()); // Returns false - * util.types.isTypedArray(new Uint8Array()); // Returns true - * util.types.isTypedArray(new Float64Array()); // Returns true - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isTypedArray(object: unknown): object is NodeJS.TypedArray; - /** - * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance. - * - * ```js - * util.types.isUint8Array(new ArrayBuffer()); // Returns false - * util.types.isUint8Array(new Uint8Array()); // Returns true - * util.types.isUint8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8Array(object: unknown): object is Uint8Array; - /** - * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance. - * - * ```js - * util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false - * util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true - * util.types.isUint8ClampedArray(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray; - /** - * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance. - * - * ```js - * util.types.isUint16Array(new ArrayBuffer()); // Returns false - * util.types.isUint16Array(new Uint16Array()); // Returns true - * util.types.isUint16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint16Array(object: unknown): object is Uint16Array; - /** - * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance. - * - * ```js - * util.types.isUint32Array(new ArrayBuffer()); // Returns false - * util.types.isUint32Array(new Uint32Array()); // Returns true - * util.types.isUint32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint32Array(object: unknown): object is Uint32Array; - /** - * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance. - * - * ```js - * util.types.isWeakMap(new WeakMap()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakMap(object: unknown): object is WeakMap; - /** - * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance. - * - * ```js - * util.types.isWeakSet(new WeakSet()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakSet(object: unknown): object is WeakSet; - /** - * Returns `true` if `value` is a `KeyObject`, `false` otherwise. - * @since v16.2.0 - */ - function isKeyObject(object: unknown): object is KeyObject; - /** - * Returns `true` if `value` is a `CryptoKey`, `false` otherwise. - * @since v16.2.0 - */ - function isCryptoKey(object: unknown): object is webcrypto.CryptoKey; -} -declare module "node:util" { - export * from "util"; -} -declare module "node:util/types" { - export * from "util/types"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/v8.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/v8.d.ts deleted file mode 100644 index 8b0e965..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/v8.d.ts +++ /dev/null @@ -1,809 +0,0 @@ -/** - * The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using: - * - * ```js - * import v8 from 'node:v8'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/v8.js) - */ -declare module "v8" { - import { NonSharedBuffer } from "node:buffer"; - import { Readable } from "node:stream"; - interface HeapSpaceInfo { - space_name: string; - space_size: number; - space_used_size: number; - space_available_size: number; - physical_space_size: number; - } - // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ - type DoesZapCodeSpaceFlag = 0 | 1; - interface HeapInfo { - total_heap_size: number; - total_heap_size_executable: number; - total_physical_size: number; - total_available_size: number; - used_heap_size: number; - heap_size_limit: number; - malloced_memory: number; - peak_malloced_memory: number; - does_zap_garbage: DoesZapCodeSpaceFlag; - number_of_native_contexts: number; - number_of_detached_contexts: number; - total_global_handles_size: number; - used_global_handles_size: number; - external_memory: number; - } - interface HeapCodeStatistics { - code_and_metadata_size: number; - bytecode_and_metadata_size: number; - external_script_source_size: number; - } - interface HeapSnapshotOptions { - /** - * If true, expose internals in the heap snapshot. - * @default false - */ - exposeInternals?: boolean | undefined; - /** - * If true, expose numeric values in artificial fields. - * @default false - */ - exposeNumericValues?: boolean | undefined; - } - /** - * Returns an integer representing a version tag derived from the V8 version, - * command-line flags, and detected CPU features. This is useful for determining - * whether a `vm.Script` `cachedData` buffer is compatible with this instance - * of V8. - * - * ```js - * console.log(v8.cachedDataVersionTag()); // 3947234607 - * // The value returned by v8.cachedDataVersionTag() is derived from the V8 - * // version, command-line flags, and detected CPU features. Test that the value - * // does indeed update when flags are toggled. - * v8.setFlagsFromString('--allow_natives_syntax'); - * console.log(v8.cachedDataVersionTag()); // 183726201 - * ``` - * @since v8.0.0 - */ - function cachedDataVersionTag(): number; - /** - * Returns an object with the following properties: - * - * `does_zap_garbage` is a 0/1 boolean, which signifies whether the `--zap_code_space` option is enabled or not. This makes V8 overwrite heap - * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger - * because it continuously touches all heap pages and that makes them less likely - * to get swapped out by the operating system. - * - * `number_of_native_contexts` The value of native\_context is the number of the - * top-level contexts currently active. Increase of this number over time indicates - * a memory leak. - * - * `number_of_detached_contexts` The value of detached\_context is the number - * of contexts that were detached and not yet garbage collected. This number - * being non-zero indicates a potential memory leak. - * - * `total_global_handles_size` The value of total\_global\_handles\_size is the - * total memory size of V8 global handles. - * - * `used_global_handles_size` The value of used\_global\_handles\_size is the - * used memory size of V8 global handles. - * - * `external_memory` The value of external\_memory is the memory size of array - * buffers and external strings. - * - * ```js - * { - * total_heap_size: 7326976, - * total_heap_size_executable: 4194304, - * total_physical_size: 7326976, - * total_available_size: 1152656, - * used_heap_size: 3476208, - * heap_size_limit: 1535115264, - * malloced_memory: 16384, - * peak_malloced_memory: 1127496, - * does_zap_garbage: 0, - * number_of_native_contexts: 1, - * number_of_detached_contexts: 0, - * total_global_handles_size: 8192, - * used_global_handles_size: 3296, - * external_memory: 318824 - * } - * ``` - * @since v1.0.0 - */ - function getHeapStatistics(): HeapInfo; - /** - * Returns statistics about the V8 heap spaces, i.e. the segments which make up - * the V8 heap. Neither the ordering of heap spaces, nor the availability of a - * heap space can be guaranteed as the statistics are provided via the - * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the - * next. - * - * The value returned is an array of objects containing the following properties: - * - * ```json - * [ - * { - * "space_name": "new_space", - * "space_size": 2063872, - * "space_used_size": 951112, - * "space_available_size": 80824, - * "physical_space_size": 2063872 - * }, - * { - * "space_name": "old_space", - * "space_size": 3090560, - * "space_used_size": 2493792, - * "space_available_size": 0, - * "physical_space_size": 3090560 - * }, - * { - * "space_name": "code_space", - * "space_size": 1260160, - * "space_used_size": 644256, - * "space_available_size": 960, - * "physical_space_size": 1260160 - * }, - * { - * "space_name": "map_space", - * "space_size": 1094160, - * "space_used_size": 201608, - * "space_available_size": 0, - * "physical_space_size": 1094160 - * }, - * { - * "space_name": "large_object_space", - * "space_size": 0, - * "space_used_size": 0, - * "space_available_size": 1490980608, - * "physical_space_size": 0 - * } - * ] - * ``` - * @since v6.0.0 - */ - function getHeapSpaceStatistics(): HeapSpaceInfo[]; - /** - * The `v8.setFlagsFromString()` method can be used to programmatically set - * V8 command-line flags. This method should be used with care. Changing settings - * after the VM has started may result in unpredictable behavior, including - * crashes and data loss; or it may simply do nothing. - * - * The V8 options available for a version of Node.js may be determined by running `node --v8-options`. - * - * Usage: - * - * ```js - * // Print GC events to stdout for one minute. - * import v8 from 'node:v8'; - * v8.setFlagsFromString('--trace_gc'); - * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); - * ``` - * @since v1.0.0 - */ - function setFlagsFromString(flags: string): void; - /** - * This is similar to the [`queryObjects()` console API](https://developer.chrome.com/docs/devtools/console/utilities#queryObjects-function) - * provided by the Chromium DevTools console. It can be used to search for objects that have the matching constructor on its prototype chain - * in the heap after a full garbage collection, which can be useful for memory leak regression tests. To avoid surprising results, users should - * avoid using this API on constructors whose implementation they don't control, or on constructors that can be invoked by other parties in the - * application. - * - * To avoid accidental leaks, this API does not return raw references to the objects found. By default, it returns the count of the objects - * found. If `options.format` is `'summary'`, it returns an array containing brief string representations for each object. The visibility provided - * in this API is similar to what the heap snapshot provides, while users can save the cost of serialization and parsing and directly filter the - * target objects during the search. - * - * Only objects created in the current execution context are included in the results. - * - * ```js - * import { queryObjects } from 'node:v8'; - * class A { foo = 'bar'; } - * console.log(queryObjects(A)); // 0 - * const a = new A(); - * console.log(queryObjects(A)); // 1 - * // [ "A { foo: 'bar' }" ] - * console.log(queryObjects(A, { format: 'summary' })); - * - * class B extends A { bar = 'qux'; } - * const b = new B(); - * console.log(queryObjects(B)); // 1 - * // [ "B { foo: 'bar', bar: 'qux' }" ] - * console.log(queryObjects(B, { format: 'summary' })); - * - * // Note that, when there are child classes inheriting from a constructor, - * // the constructor also shows up in the prototype chain of the child - * // classes's prototoype, so the child classes's prototoype would also be - * // included in the result. - * console.log(queryObjects(A)); // 3 - * // [ "B { foo: 'bar', bar: 'qux' }", 'A {}', "A { foo: 'bar' }" ] - * console.log(queryObjects(A, { format: 'summary' })); - * ``` - * @param ctor The constructor that can be used to search on the prototype chain in order to filter target objects in the heap. - * @since v20.13.0 - * @experimental - */ - function queryObjects(ctor: Function): number | string[]; - function queryObjects(ctor: Function, options: { format: "count" }): number; - function queryObjects(ctor: Function, options: { format: "summary" }): string[]; - /** - * Generates a snapshot of the current V8 heap and returns a Readable - * Stream that may be used to read the JSON serialized representation. - * This JSON stream format is intended to be used with tools such as - * Chrome DevTools. The JSON schema is undocumented and specific to the - * V8 engine. Therefore, the schema may change from one version of V8 to the next. - * - * Creating a heap snapshot requires memory about twice the size of the heap at - * the time the snapshot is created. This results in the risk of OOM killers - * terminating the process. - * - * Generating a snapshot is a synchronous operation which blocks the event loop - * for a duration depending on the heap size. - * - * ```js - * // Print heap snapshot to the console - * import v8 from 'node:v8'; - * const stream = v8.getHeapSnapshot(); - * stream.pipe(process.stdout); - * ``` - * @since v11.13.0 - * @return A Readable containing the V8 heap snapshot. - */ - function getHeapSnapshot(options?: HeapSnapshotOptions): Readable; - /** - * Generates a snapshot of the current V8 heap and writes it to a JSON - * file. This file is intended to be used with tools such as Chrome - * DevTools. The JSON schema is undocumented and specific to the V8 - * engine, and may change from one version of V8 to the next. - * - * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will - * not contain any information about the workers, and vice versa. - * - * Creating a heap snapshot requires memory about twice the size of the heap at - * the time the snapshot is created. This results in the risk of OOM killers - * terminating the process. - * - * Generating a snapshot is a synchronous operation which blocks the event loop - * for a duration depending on the heap size. - * - * ```js - * import { writeHeapSnapshot } from 'node:v8'; - * import { - * Worker, - * isMainThread, - * parentPort, - * } from 'node:worker_threads'; - * - * if (isMainThread) { - * const worker = new Worker(__filename); - * - * worker.once('message', (filename) => { - * console.log(`worker heapdump: ${filename}`); - * // Now get a heapdump for the main thread. - * console.log(`main thread heapdump: ${writeHeapSnapshot()}`); - * }); - * - * // Tell the worker to create a heapdump. - * worker.postMessage('heapdump'); - * } else { - * parentPort.once('message', (message) => { - * if (message === 'heapdump') { - * // Generate a heapdump for the worker - * // and return the filename to the parent. - * parentPort.postMessage(writeHeapSnapshot()); - * } - * }); - * } - * ``` - * @since v11.13.0 - * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be - * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a - * worker thread. - * @return The filename where the snapshot was saved. - */ - function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string; - /** - * Get statistics about code and its metadata in the heap, see - * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the - * following properties: - * - * ```js - * { - * code_and_metadata_size: 212208, - * bytecode_and_metadata_size: 161368, - * external_script_source_size: 1410794, - * cpu_profiler_metadata_size: 0, - * } - * ``` - * @since v12.8.0 - */ - function getHeapCodeStatistics(): HeapCodeStatistics; - /** - * @since v8.0.0 - */ - class Serializer { - /** - * Writes out a header, which includes the serialization format version. - */ - writeHeader(): void; - /** - * Serializes a JavaScript value and adds the serialized representation to the - * internal buffer. - * - * This throws an error if `value` cannot be serialized. - */ - writeValue(val: any): boolean; - /** - * Returns the stored internal buffer. This serializer should not be used once - * the buffer is released. Calling this method results in undefined behavior - * if a previous write has failed. - */ - releaseBuffer(): NonSharedBuffer; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`. - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Write a raw 32-bit unsigned integer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint32(value: number): void; - /** - * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint64(hi: number, lo: number): void; - /** - * Write a JS `number` value. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeDouble(value: number): void; - /** - * Write raw bytes into the serializer's internal buffer. The deserializer - * will require a way to compute the length of the buffer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeRawBytes(buffer: NodeJS.ArrayBufferView): void; - } - /** - * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only - * stores the part of their underlying `ArrayBuffer`s that they are referring to. - * @since v8.0.0 - */ - class DefaultSerializer extends Serializer {} - /** - * @since v8.0.0 - */ - class Deserializer { - constructor(data: NodeJS.TypedArray); - /** - * Reads and validates a header (including the format version). - * May, for example, reject an invalid or unsupported wire format. In that case, - * an `Error` is thrown. - */ - readHeader(): boolean; - /** - * Deserializes a JavaScript value from the buffer and returns it. - */ - readValue(): any; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of - * `SharedArrayBuffer`s). - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Reads the underlying wire format version. Likely mostly to be useful to - * legacy code reading old wire format versions. May not be called before `.readHeader()`. - */ - getWireFormatVersion(): number; - /** - * Read a raw 32-bit unsigned integer and return it. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint32(): number; - /** - * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]` with two 32-bit unsigned integer entries. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint64(): [number, number]; - /** - * Read a JS `number` value. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readDouble(): number; - /** - * Read raw bytes from the deserializer's internal buffer. The `length` parameter - * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readRawBytes(length: number): Buffer; - } - /** - * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`. - * @since v8.0.0 - */ - class DefaultDeserializer extends Deserializer {} - /** - * Uses a `DefaultSerializer` to serialize `value` into a buffer. - * - * `ERR_BUFFER_TOO_LARGE` will be thrown when trying to - * serialize a huge object which requires buffer - * larger than `buffer.constants.MAX_LENGTH`. - * @since v8.0.0 - */ - function serialize(value: any): NonSharedBuffer; - /** - * Uses a `DefaultDeserializer` with default options to read a JS value - * from a buffer. - * @since v8.0.0 - * @param buffer A buffer returned by {@link serialize}. - */ - function deserialize(buffer: NodeJS.ArrayBufferView): any; - /** - * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple - * times during the lifetime of the process. Each time the execution counter will - * be reset and a new coverage report will be written to the directory specified - * by `NODE_V8_COVERAGE`. - * - * When the process is about to exit, one last coverage will still be written to - * disk unless {@link stopCoverage} is invoked before the process exits. - * @since v15.1.0, v14.18.0, v12.22.0 - */ - function takeCoverage(): void; - /** - * The `v8.stopCoverage()` method allows the user to stop the coverage collection - * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count - * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand. - * @since v15.1.0, v14.18.0, v12.22.0 - */ - function stopCoverage(): void; - /** - * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once. - * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information. - * @experimental - * @since v18.10.0, v16.18.0 - */ - function setHeapSnapshotNearHeapLimit(limit: number): void; - /** - * This API collects GC data in current thread. - * @since v19.6.0, v18.15.0 - */ - class GCProfiler { - /** - * Start collecting GC data. - * @since v19.6.0, v18.15.0 - */ - start(): void; - /** - * Stop collecting GC data and return an object. The content of object - * is as follows. - * - * ```json - * { - * "version": 1, - * "startTime": 1674059033862, - * "statistics": [ - * { - * "gcType": "Scavenge", - * "beforeGC": { - * "heapStatistics": { - * "totalHeapSize": 5005312, - * "totalHeapSizeExecutable": 524288, - * "totalPhysicalSize": 5226496, - * "totalAvailableSize": 4341325216, - * "totalGlobalHandlesSize": 8192, - * "usedGlobalHandlesSize": 2112, - * "usedHeapSize": 4883840, - * "heapSizeLimit": 4345298944, - * "mallocedMemory": 254128, - * "externalMemory": 225138, - * "peakMallocedMemory": 181760 - * }, - * "heapSpaceStatistics": [ - * { - * "spaceName": "read_only_space", - * "spaceSize": 0, - * "spaceUsedSize": 0, - * "spaceAvailableSize": 0, - * "physicalSpaceSize": 0 - * } - * ] - * }, - * "cost": 1574.14, - * "afterGC": { - * "heapStatistics": { - * "totalHeapSize": 6053888, - * "totalHeapSizeExecutable": 524288, - * "totalPhysicalSize": 5500928, - * "totalAvailableSize": 4341101384, - * "totalGlobalHandlesSize": 8192, - * "usedGlobalHandlesSize": 2112, - * "usedHeapSize": 4059096, - * "heapSizeLimit": 4345298944, - * "mallocedMemory": 254128, - * "externalMemory": 225138, - * "peakMallocedMemory": 181760 - * }, - * "heapSpaceStatistics": [ - * { - * "spaceName": "read_only_space", - * "spaceSize": 0, - * "spaceUsedSize": 0, - * "spaceAvailableSize": 0, - * "physicalSpaceSize": 0 - * } - * ] - * } - * } - * ], - * "endTime": 1674059036865 - * } - * ``` - * - * Here's an example. - * - * ```js - * import { GCProfiler } from 'node:v8'; - * const profiler = new GCProfiler(); - * profiler.start(); - * setTimeout(() => { - * console.log(profiler.stop()); - * }, 1000); - * ``` - * @since v19.6.0, v18.15.0 - */ - stop(): GCProfilerResult; - } - interface GCProfilerResult { - version: number; - startTime: number; - endTime: number; - statistics: Array<{ - gcType: string; - cost: number; - beforeGC: { - heapStatistics: HeapStatistics; - heapSpaceStatistics: HeapSpaceStatistics[]; - }; - afterGC: { - heapStatistics: HeapStatistics; - heapSpaceStatistics: HeapSpaceStatistics[]; - }; - }>; - } - interface HeapStatistics { - totalHeapSize: number; - totalHeapSizeExecutable: number; - totalPhysicalSize: number; - totalAvailableSize: number; - totalGlobalHandlesSize: number; - usedGlobalHandlesSize: number; - usedHeapSize: number; - heapSizeLimit: number; - mallocedMemory: number; - externalMemory: number; - peakMallocedMemory: number; - } - interface HeapSpaceStatistics { - spaceName: string; - spaceSize: number; - spaceUsedSize: number; - spaceAvailableSize: number; - physicalSpaceSize: number; - } - /** - * Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will - * happen if a promise is created without ever getting a continuation. - * @since v17.1.0, v16.14.0 - * @param promise The promise being created. - * @param parent The promise continued from, if applicable. - */ - interface Init { - (promise: Promise, parent: Promise): void; - } - /** - * Called before a promise continuation executes. This can be in the form of `then()`, `catch()`, or `finally()` handlers or an await resuming. - * - * The before callback will be called 0 to N times. The before callback will typically be called 0 times if no continuation was ever made for the promise. - * The before callback may be called many times in the case where many continuations have been made from the same promise. - * @since v17.1.0, v16.14.0 - */ - interface Before { - (promise: Promise): void; - } - /** - * Called immediately after a promise continuation executes. This may be after a `then()`, `catch()`, or `finally()` handler or before an await after another await. - * @since v17.1.0, v16.14.0 - */ - interface After { - (promise: Promise): void; - } - /** - * Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of {@link Promise.resolve()} or - * {@link Promise.reject()}. - * @since v17.1.0, v16.14.0 - */ - interface Settled { - (promise: Promise): void; - } - /** - * Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or - * around an await, and when the promise resolves or rejects. - * - * Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and - * `settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop. - * @since v17.1.0, v16.14.0 - */ - interface HookCallbacks { - init?: Init; - before?: Before; - after?: After; - settled?: Settled; - } - interface PromiseHooks { - /** - * The `init` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param init The {@link Init | `init` callback} to call when a promise is created. - * @return Call to stop the hook. - */ - onInit: (init: Init) => Function; - /** - * The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param settled The {@link Settled | `settled` callback} to call when a promise is created. - * @return Call to stop the hook. - */ - onSettled: (settled: Settled) => Function; - /** - * The `before` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param before The {@link Before | `before` callback} to call before a promise continuation executes. - * @return Call to stop the hook. - */ - onBefore: (before: Before) => Function; - /** - * The `after` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param after The {@link After | `after` callback} to call after a promise continuation executes. - * @return Call to stop the hook. - */ - onAfter: (after: After) => Function; - /** - * Registers functions to be called for different lifetime events of each promise. - * The callbacks `init()`/`before()`/`after()`/`settled()` are called for the respective events during a promise's lifetime. - * All callbacks are optional. For example, if only promise creation needs to be tracked, then only the init callback needs to be passed. - * The hook callbacks must be plain functions. Providing async functions will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param callbacks The {@link HookCallbacks | Hook Callbacks} to register - * @return Used for disabling hooks - */ - createHook: (callbacks: HookCallbacks) => Function; - } - /** - * The `promiseHooks` interface can be used to track promise lifecycle events. - * @since v17.1.0, v16.14.0 - */ - const promiseHooks: PromiseHooks; - type StartupSnapshotCallbackFn = (args: any) => any; - interface StartupSnapshot { - /** - * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. - * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization. - * @since v18.6.0, v16.17.0 - */ - addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * Add a callback that will be called when the Node.js instance is deserialized from a snapshot. - * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or - * to re-acquire resources that the application needs when the application is restarted from the snapshot. - * @since v18.6.0, v16.17.0 - */ - addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script. - * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized - * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application. - * @since v18.6.0, v16.17.0 - */ - setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * Returns true if the Node.js instance is run to build a snapshot. - * @since v18.6.0, v16.17.0 - */ - isBuildingSnapshot(): boolean; - } - /** - * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots. - * - * ```bash - * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js - * # This launches a process with the snapshot - * $ node --snapshot-blob snapshot.blob - * ``` - * - * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects - * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot. - * For example, if the `entry.js` contains the following script: - * - * ```js - * 'use strict'; - * - * import fs from 'node:fs'; - * import zlib from 'node:zlib'; - * import path from 'node:path'; - * import assert from 'node:assert'; - * - * import v8 from 'node:v8'; - * - * class BookShelf { - * storage = new Map(); - * - * // Reading a series of files from directory and store them into storage. - * constructor(directory, books) { - * for (const book of books) { - * this.storage.set(book, fs.readFileSync(path.join(directory, book))); - * } - * } - * - * static compressAll(shelf) { - * for (const [ book, content ] of shelf.storage) { - * shelf.storage.set(book, zlib.gzipSync(content)); - * } - * } - * - * static decompressAll(shelf) { - * for (const [ book, content ] of shelf.storage) { - * shelf.storage.set(book, zlib.gunzipSync(content)); - * } - * } - * } - * - * // __dirname here is where the snapshot script is placed - * // during snapshot building time. - * const shelf = new BookShelf(__dirname, [ - * 'book1.en_US.txt', - * 'book1.es_ES.txt', - * 'book2.zh_CN.txt', - * ]); - * - * assert(v8.startupSnapshot.isBuildingSnapshot()); - * // On snapshot serialization, compress the books to reduce size. - * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf); - * // On snapshot deserialization, decompress the books. - * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf); - * v8.startupSnapshot.setDeserializeMainFunction((shelf) => { - * // process.env and process.argv are refreshed during snapshot - * // deserialization. - * const lang = process.env.BOOK_LANG || 'en_US'; - * const book = process.argv[1]; - * const name = `${book}.${lang}.txt`; - * console.log(shelf.storage.get(name)); - * }, shelf); - * ``` - * - * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process: - * - * ```bash - * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1 - * # Prints content of book1.es_ES.txt deserialized from the snapshot. - * ``` - * - * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot. - * - * @experimental - * @since v18.6.0, v16.17.0 - */ - const startupSnapshot: StartupSnapshot; -} -declare module "node:v8" { - export * from "v8"; -} diff --git a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/vm.d.ts b/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/vm.d.ts deleted file mode 100644 index 313240a..0000000 --- a/node_modules/.pnpm/@types+node@20.19.33/node_modules/@types/node/vm.d.ts +++ /dev/null @@ -1,1001 +0,0 @@ -/** - * The `node:vm` module enables compiling and running code within V8 Virtual - * Machine contexts. - * - * **The `node:vm` module is not a security** - * **mechanism. Do not use it to run untrusted code.** - * - * JavaScript code can be compiled and run immediately or - * compiled, saved, and run later. - * - * A common use case is to run the code in a different V8 Context. This means - * invoked code has a different global object than the invoking code. - * - * One can provide the context by `contextifying` an - * object. The invoked code treats any property in the context like a - * global variable. Any changes to global variables caused by the invoked - * code are reflected in the context object. - * - * ```js - * import vm from 'node:vm'; - * - * const x = 1; - * - * const context = { x: 2 }; - * vm.createContext(context); // Contextify the object. - * - * const code = 'x += 40; var y = 17;'; - * // `x` and `y` are global variables in the context. - * // Initially, x has the value 2 because that is the value of context.x. - * vm.runInContext(code, context); - * - * console.log(context.x); // 42 - * console.log(context.y); // 17 - * - * console.log(x); // 1; y is not defined. - * ``` - * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/vm.js) - */ -declare module "vm" { - import { NonSharedBuffer } from "node:buffer"; - import { ImportAttributes } from "node:module"; - interface Context extends NodeJS.Dict {} - interface BaseOptions { - /** - * Specifies the filename used in stack traces produced by this script. - * @default '' - */ - filename?: string | undefined; - /** - * Specifies the line number offset that is displayed in stack traces produced by this script. - * @default 0 - */ - lineOffset?: number | undefined; - /** - * Specifies the column number offset that is displayed in stack traces produced by this script. - * @default 0 - */ - columnOffset?: number | undefined; - } - type DynamicModuleLoader = ( - specifier: string, - referrer: T, - importAttributes: ImportAttributes, - ) => Module | Promise; - interface ScriptOptions extends BaseOptions { - /** - * Provides an optional data with V8's code cache data for the supplied source. - */ - cachedData?: NodeJS.ArrayBufferView | undefined; - /** @deprecated in favor of `script.createCachedData()` */ - produceCachedData?: boolean | undefined; - /** - * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is - * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see - * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis). - */ - importModuleDynamically?: - | DynamicModuleLoader - - - - - -
- - diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/orchestrator-S_3e_uzt.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/orchestrator-S_3e_uzt.js deleted file mode 100644 index e92a93d..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/orchestrator-S_3e_uzt.js +++ /dev/null @@ -1,345 +0,0 @@ -import { g as getBrowserState, a as getConfig, r as relative, b as generateFileHash } from "./utils-uxqdqUz8.js"; -import { channel, globalChannel, client } from "@vitest/browser/client"; -import { Traces } from "vitest/internal/browser"; -// @__NO_SIDE_EFFECTS__ -function getUiAPI() { - return window.__vitest_ui_api__; -} -const ID_ALL = "__vitest_all__"; -class IframeOrchestrator { - cancelled = false; - recreateNonIsolatedIframe = false; - iframes = /* @__PURE__ */ new Map(); - eventTarget = new EventTarget(); - traces; - constructor() { - debug("init orchestrator", getBrowserState().sessionId); - const otelConfig = getBrowserState().config.experimental.openTelemetry; - this.traces = new Traces({ - enabled: !!((otelConfig == null ? void 0 : otelConfig.enabled) && otelConfig.browserSdkPath), - sdkPath: `/@fs/${otelConfig == null ? void 0 : otelConfig.browserSdkPath}` - }); - channel.addEventListener( - "message", - (e) => this.onIframeEvent(e) - ); - globalChannel.addEventListener( - "message", - (e) => this.onGlobalChannelEvent(e) - ); - } - async createTesters(options) { - await this.traces.waitInit(); - this.traces.recordInitSpan( - this.traces.getContextFromCarrier(getBrowserState().otelCarrier) - ); - const orchestratorSpan = this.traces.startContextSpan( - "vitest.browser.orchestrator.run", - this.traces.getContextFromCarrier(options.otelCarrier) - ); - orchestratorSpan.span.setAttributes({ - "vitest.browser.files": options.files.map((f) => f.filepath) - }); - const endSpan = async () => { - orchestratorSpan.span.end(); - await this.traces.flush(); - }; - const startTime = performance.now(); - this.cancelled = false; - const config = getConfig(); - debug("create testers", ...options.files.join(", ")); - const container = await getContainer(config); - if (config.browser.ui) { - container.className = "absolute origin-top mt-[8px]"; - container.parentElement.setAttribute("data-ready", "true"); - if (container.textContent) { - container.textContent = ""; - } - } - if (config.browser.isolate === false) { - await this.runNonIsolatedTests(container, options, startTime, orchestratorSpan.context); - await endSpan(); - return; - } - this.iframes.forEach((iframe) => iframe.remove()); - this.iframes.clear(); - for (let i = 0; i < options.files.length; i++) { - if (this.cancelled) { - await endSpan(); - return; - } - const file = options.files[i]; - debug("create iframe", file.filepath); - await this.runIsolatedTestInIframe( - container, - file, - options, - startTime, - orchestratorSpan.context - ); - } - await endSpan(); - } - async cleanupTesters() { - const config = getConfig(); - if (config.browser.isolate) { - const files = Array.from(this.iframes.keys()); - const ui = /* @__PURE__ */ getUiAPI(); - if (ui && files[0]) { - const id = generateFileId(files[0]); - ui.setCurrentFileId(id); - } - return; - } - const iframe = this.iframes.get(ID_ALL); - if (!iframe) { - return; - } - await sendEventToIframe({ - event: "cleanup", - iframeId: ID_ALL - }); - this.recreateNonIsolatedIframe = true; - } - async runNonIsolatedTests(container, options, startTime, otelContext) { - if (this.recreateNonIsolatedIframe) { - this.recreateNonIsolatedIframe = false; - this.iframes.get(ID_ALL).remove(); - this.iframes.delete(ID_ALL); - debug("recreate non-isolated iframe"); - } - if (!this.iframes.has(ID_ALL)) { - debug("preparing non-isolated iframe"); - await this.prepareIframe(container, ID_ALL, startTime, otelContext); - } - const config = getConfig(); - const { width, height } = config.browser.viewport; - const iframe = this.iframes.get(ID_ALL); - await setIframeViewport(iframe, width, height); - debug("run non-isolated tests", options.files.join(", ")); - await sendEventToIframe({ - event: "execute", - iframeId: ID_ALL, - files: options.files, - method: options.method, - context: options.providedContext - }); - debug("finished running tests", options.files.join(", ")); - } - async runIsolatedTestInIframe(container, spec, options, startTime, otelContext) { - const config = getConfig(); - const { width, height } = config.browser.viewport; - const file = spec.filepath; - if (this.iframes.has(file)) { - this.iframes.get(file).remove(); - this.iframes.delete(file); - } - const iframe = await this.prepareIframe( - container, - file, - startTime, - otelContext - ); - await setIframeViewport(iframe, width, height); - await sendEventToIframe({ - event: "execute", - files: [spec], - method: options.method, - iframeId: file, - context: options.providedContext - }); - await sendEventToIframe({ - event: "cleanup", - iframeId: file - }); - } - dispatchIframeError(error) { - const event = new CustomEvent("iframeerror", { detail: error }); - this.eventTarget.dispatchEvent(event); - return error; - } - async prepareIframe(container, iframeId, startTime, otelContext) { - const iframe = this.createTestIframe(iframeId); - container.appendChild(iframe); - await new Promise((resolve, reject) => { - iframe.onload = () => { - const href = this.getIframeHref(iframe); - debug("iframe loaded with href", href); - if (href !== iframe.src) { - reject(this.dispatchIframeError(new Error( - `Cannot connect to the iframe. Did you change the location or submitted a form? If so, don't forget to call \`event.preventDefault()\` to avoid reloading the page. - -Received URL: ${href || "unknown"} -Expected: ${iframe.src}` - ))); - } else { - this.iframes.set(iframeId, iframe); - sendEventToIframe({ - event: "prepare", - iframeId, - startTime, - otelCarrier: this.traces.getContextCarrier(otelContext) - }).then(resolve, (error) => reject(this.dispatchIframeError(error))); - } - }; - iframe.onerror = (e) => { - if (typeof e === "string") { - reject(this.dispatchIframeError(new Error(e))); - } else if (e instanceof ErrorEvent) { - reject(this.dispatchIframeError(e.error)); - } else { - reject(this.dispatchIframeError(new Error(`Cannot load the iframe ${iframeId}.`))); - } - }; - }); - return iframe; - } - getIframeHref(iframe) { - var _a; - try { - return (_a = iframe.contentWindow) == null ? void 0 : _a.location.href; - } catch { - return void 0; - } - } - createTestIframe(iframeId) { - const iframe = document.createElement("iframe"); - const src = `/?sessionId=${getBrowserState().sessionId}&iframeId=${iframeId}`; - iframe.setAttribute("loading", "eager"); - iframe.setAttribute("src", src); - iframe.setAttribute("data-vitest", "true"); - iframe.style.border = "none"; - iframe.style.width = "100%"; - iframe.style.height = "100%"; - iframe.setAttribute("allowfullscreen", "true"); - iframe.setAttribute("allow", "clipboard-write;"); - iframe.setAttribute("name", "vitest-iframe"); - return iframe; - } - async onGlobalChannelEvent(e) { - debug("global channel event", JSON.stringify(e.data)); - switch (e.data.type) { - case "cancel": { - this.cancelled = true; - break; - } - } - } - async onIframeEvent(e) { - debug("iframe event", JSON.stringify(e.data)); - switch (e.data.event) { - case "viewport": { - const { width, height, iframeId: id } = e.data; - const iframe = this.iframes.get(id); - if (!iframe) { - const error = `Cannot find iframe with id ${id}`; - channel.postMessage({ - event: "viewport:fail", - iframeId: id, - error - }); - await client.rpc.onUnhandledError( - { - name: "Teardown Error", - message: error - }, - "Teardown Error" - ); - break; - } - await setIframeViewport(iframe, width, height); - channel.postMessage({ event: "viewport:done", iframeId: id }); - break; - } - default: { - if (typeof e.data.event === "string" && e.data.event.startsWith("response:")) { - break; - } - await client.rpc.onUnhandledError( - { - name: "Unexpected Event", - message: `Unexpected event: ${e.data.event}` - }, - "Unexpected Event" - ); - } - } - } -} -const orchestrator = new IframeOrchestrator(); -getBrowserState().orchestrator = orchestrator; -async function getContainer(config) { - if (config.browser.ui) { - const element = document.querySelector("#tester-ui"); - if (!element) { - return new Promise((resolve) => { - queueMicrotask(() => { - resolve(getContainer(config)); - }); - }); - } - return element; - } - return document.querySelector("#vitest-tester"); -} -async function sendEventToIframe(event) { - channel.postMessage(event); - return new Promise((resolve, reject) => { - function cleanupEvents() { - channel.removeEventListener("message", onReceived); - orchestrator.eventTarget.removeEventListener("iframeerror", onError); - } - function onReceived(e) { - if (e.data.iframeId === event.iframeId && e.data.event === `response:${event.event}`) { - resolve(); - cleanupEvents(); - } - } - function onError(e) { - reject(e.detail); - cleanupEvents(); - } - orchestrator.eventTarget.addEventListener("iframeerror", onError); - channel.addEventListener("message", onReceived); - }); -} -function generateFileId(file) { - const config = getConfig(); - const path = relative(config.root, file); - return generateFileHash(path, config.name); -} -async function setIframeViewport(iframe, width, height) { - var _a, _b; - const ui = /* @__PURE__ */ getUiAPI(); - if (ui) { - await ui.setIframeViewport(width, height); - } else if (getBrowserState().provider === "webdriverio") { - (_a = iframe.parentElement) == null ? void 0 : _a.setAttribute("data-scale", "1"); - await client.rpc.triggerCommand( - getBrowserState().sessionId, - "__vitest_viewport", - void 0, - [{ width, height }] - ); - } else { - const scale = Math.min( - 1, - iframe.parentElement.parentElement.clientWidth / width, - iframe.parentElement.parentElement.clientHeight / height - ); - iframe.parentElement.style.cssText = ` - width: ${width}px; - height: ${height}px; - transform: scale(${scale}); - transform-origin: left top; - `; - (_b = iframe.parentElement) == null ? void 0 : _b.setAttribute("data-scale", String(scale)); - await new Promise((r) => requestAnimationFrame(r)); - } -} -function debug(...args) { - const debug2 = getConfig().env.VITEST_BROWSER_DEBUG; - if (debug2 && debug2 !== "false") { - client.rpc.debug(...args.map(String)); - } -} diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/tester-k74mgIRa.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/tester-k74mgIRa.js deleted file mode 100644 index afd67e5..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/tester-k74mgIRa.js +++ /dev/null @@ -1,2171 +0,0 @@ -import { c as resolve, m as moduleRunner, d as getWorkerState, g as getBrowserState, e as getTestName, a as getConfig } from "./utils-uxqdqUz8.js"; -import { onCancel, globalChannel, channel, client } from "@vitest/browser/client"; -import { userEvent, page, server } from "vitest/browser"; -import { getSafeTimers, DecodedMap as DecodedMap$1, getOriginalPosition as getOriginalPosition$1, loadDiffConfig, loadSnapshotSerializers, takeCoverageInsideWorker, browserFormat, Traces, setupCommonEnv, startCoverageInsideWorker, stopCoverageInsideWorker, startTests, collectTests, SpyModule } from "vitest/internal/browser"; -import { VitestTestRunner, NodeBenchmarkRunner } from "vitest/runners"; -const scriptRel = "modulepreload"; -const assetsURL = function(dep) { - return "/" + dep; -}; -const seen = {}; -const __vitePreload = function preload(baseModule, deps, importerUrl) { - let promise = Promise.resolve(); - if (deps && deps.length > 0) { - let allSettled = function(promises$2) { - return Promise.all(promises$2.map((p) => Promise.resolve(p).then((value$1) => ({ - status: "fulfilled", - value: value$1 - }), (reason) => ({ - status: "rejected", - reason - })))); - }; - document.getElementsByTagName("link"); - const cspNonceMeta = document.querySelector("meta[property=csp-nonce]"); - const cspNonce = (cspNonceMeta == null ? void 0 : cspNonceMeta.nonce) || (cspNonceMeta == null ? void 0 : cspNonceMeta.getAttribute("nonce")); - promise = allSettled(deps.map((dep) => { - dep = assetsURL(dep); - if (dep in seen) return; - seen[dep] = true; - const isCss = dep.endsWith(".css"); - const cssSelector = isCss ? '[rel="stylesheet"]' : ""; - if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return; - const link = document.createElement("link"); - link.rel = isCss ? "stylesheet" : scriptRel; - if (!isCss) link.as = "script"; - link.crossOrigin = ""; - link.href = dep; - if (cspNonce) link.setAttribute("nonce", cspNonce); - document.head.appendChild(link); - if (isCss) return new Promise((res, rej) => { - link.addEventListener("load", res); - link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`))); - }); - })); - } - function handlePreloadError(err$2) { - const e$1 = new Event("vite:preloadError", { cancelable: true }); - e$1.payload = err$2; - window.dispatchEvent(e$1); - if (!e$1.defaultPrevented) throw err$2; - } - return promise.then((res) => { - for (const item of res || []) { - if (item.status !== "rejected") continue; - handlePreloadError(item.reason); - } - return baseModule().catch(handlePreloadError); - }); -}; -const { parse: $parse } = JSON; -const { keys } = Object; -const Primitive = String; -const primitive = "string"; -const ignore = {}; -const object = "object"; -const noop = (_, value) => value; -const primitives = (value) => value instanceof Primitive ? Primitive(value) : value; -const Primitives = (_, value) => typeof value === primitive ? new Primitive(value) : value; -const revive = (input, parsed, output, $) => { - const lazy = []; - for (let ke = keys(output), { length } = ke, y = 0; y < length; y++) { - const k = ke[y]; - const value = output[k]; - if (value instanceof Primitive) { - const tmp = input[value]; - if (typeof tmp === object && !parsed.has(tmp)) { - parsed.add(tmp); - output[k] = ignore; - lazy.push({ k, a: [input, parsed, tmp, $] }); - } else - output[k] = $.call(output, k, tmp); - } else if (output[k] !== ignore) - output[k] = $.call(output, k, value); - } - for (let { length } = lazy, i = 0; i < length; i++) { - const { k, a } = lazy[i]; - output[k] = $.call(output, k, revive.apply(null, a)); - } - return output; -}; -const parse = (text, reviver) => { - const input = $parse(text, Primitives).map(primitives); - const value = input[0]; - const $ = noop; - const tmp = typeof value === object && value ? revive(input, /* @__PURE__ */ new Set(), value, $) : value; - return $.call({ "": tmp }, "", tmp); -}; -function showPopupWarning(name, value, defaultValue) { - return (...params) => { - const formattedParams = params.map((p) => JSON.stringify(p)).join(", "); - console.warn(`Vitest encountered a \`${name}(${formattedParams})\` call that it cannot handle by default, so it returned \`${value}\`. Read more in https://vitest.dev/guide/browser/#thread-blocking-dialogs. -If needed, mock the \`${name}\` call manually like: - -\`\`\` -import { expect, vi } from "vitest" - -vi.spyOn(window, "${name}")${defaultValue ? `.mockReturnValue(${JSON.stringify(defaultValue)})` : ""} -${name}(${formattedParams}) -expect(${name}).toHaveBeenCalledWith(${formattedParams}) -\`\`\``); - return value; - }; -} -function setupDialogsSpy() { - globalThis.alert = showPopupWarning("alert", void 0); - globalThis.confirm = showPopupWarning("confirm", false, true); - globalThis.prompt = showPopupWarning("prompt", null, "your value"); -} -const { get } = Reflect; -function withSafeTimers(getTimers, fn) { - const { setTimeout, clearTimeout } = getTimers(); - const currentSetTimeout = globalThis.setTimeout; - const currentClearTimeout = globalThis.clearTimeout; - try { - globalThis.setTimeout = setTimeout; - globalThis.clearTimeout = clearTimeout; - const result = fn(); - return result; - } finally { - globalThis.setTimeout = currentSetTimeout; - globalThis.clearTimeout = currentClearTimeout; - } -} -const promises = /* @__PURE__ */ new Set(); -function createSafeRpc(client2) { - return new Proxy(client2.rpc, { - get(target, p, handler) { - if (p === "then") { - return; - } - const sendCall = get(target, p, handler); - const safeSendCall = (...args) => withSafeTimers(getSafeTimers, async () => { - const result = sendCall(...args); - promises.add(result); - try { - return await result; - } finally { - promises.delete(result); - } - }); - safeSendCall.asEvent = sendCall.asEvent; - return safeSendCall; - } - }); -} -function rpc$2() { - return globalThis.__vitest_worker__.rpc; -} -var comma = ",".charCodeAt(0); -var chars$1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -var intToChar$1 = new Uint8Array(64); -var charToInt$1 = new Uint8Array(128); -for (let i = 0; i < chars$1.length; i++) { - const c = chars$1.charCodeAt(i); - intToChar$1[i] = c; - charToInt$1[c] = i; -} -function decodeInteger(reader, relative) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = reader.next(); - integer = charToInt$1[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -2147483648 | -value; - } - return relative + value; -} -function hasMoreVlq(reader, max) { - if (reader.pos >= max) return false; - return reader.peek() !== comma; -} -var StringReader = class { - constructor(buffer) { - this.pos = 0; - this.buffer = buffer; - } - next() { - return this.buffer.charCodeAt(this.pos++); - } - peek() { - return this.buffer.charCodeAt(this.pos); - } - indexOf(char) { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } -}; -function decode(mappings) { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - do { - const semi = reader.indexOf(";"); - const line = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - while (reader.pos < semi) { - let seg; - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) sorted = false; - lastCol = genColumn; - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]; - } else { - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]; - } - } else { - seg = [genColumn]; - } - line.push(seg); - reader.pos++; - } - if (!sorted) sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - return decoded; -} -function sort(line) { - line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[0] - b[0]; -} -var resolveUri_umd$1 = { exports: {} }; -var resolveUri_umd = resolveUri_umd$1.exports; -var hasRequiredResolveUri_umd; -function requireResolveUri_umd() { - if (hasRequiredResolveUri_umd) return resolveUri_umd$1.exports; - hasRequiredResolveUri_umd = 1; - (function(module, exports$1) { - (function(global, factory) { - module.exports = factory(); - })(resolveUri_umd, (function() { - const schemeRegex = /^[\w+.-]+:\/\//; - const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; - const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; - function isAbsoluteUrl(input) { - return schemeRegex.test(input); - } - function isSchemeRelativeUrl(input) { - return input.startsWith("//"); - } - function isAbsolutePath(input) { - return input.startsWith("/"); - } - function isFileUrl(input) { - return input.startsWith("file:"); - } - function isRelative(input) { - return /^[.?#]/.test(input); - } - function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || "", match[3], match[4] || "", match[5] || "/", match[6] || "", match[7] || ""); - } - function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match[3] || "", match[4] || ""); - } - function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: 7 - }; - } - function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url3 = parseAbsoluteUrl("http:" + input); - url3.scheme = ""; - url3.type = 6; - return url3; - } - if (isAbsolutePath(input)) { - const url3 = parseAbsoluteUrl("http://foo.com" + input); - url3.scheme = ""; - url3.host = ""; - url3.type = 5; - return url3; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url2 = parseAbsoluteUrl("http://foo.com/" + input); - url2.scheme = ""; - url2.host = ""; - url2.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1; - return url2; - } - function stripPathFilename(path) { - if (path.endsWith("/..")) - return path; - const index = path.lastIndexOf("/"); - return path.slice(0, index + 1); - } - function mergePaths(url2, base) { - normalizePath(base, base.type); - if (url2.path === "/") { - url2.path = base.path; - } else { - url2.path = stripPathFilename(base.path) + url2.path; - } - } - function normalizePath(url2, type) { - const rel = type <= 4; - const pieces = url2.path.split("/"); - let pointer = 1; - let positive = 0; - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - if (!piece) { - addTrailingSlash = true; - continue; - } - addTrailingSlash = false; - if (piece === ".") - continue; - if (piece === "..") { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } else if (rel) { - pieces[pointer++] = piece; - } - continue; - } - pieces[pointer++] = piece; - positive++; - } - let path = ""; - for (let i = 1; i < pointer; i++) { - path += "/" + pieces[i]; - } - if (!path || addTrailingSlash && !path.endsWith("/..")) { - path += "/"; - } - url2.path = path; - } - function resolve2(input, base) { - if (!input && !base) - return ""; - const url2 = parseUrl(input); - let inputType = url2.type; - if (base && inputType !== 7) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case 1: - url2.hash = baseUrl.hash; - // fall through - case 2: - url2.query = baseUrl.query; - // fall through - case 3: - case 4: - mergePaths(url2, baseUrl); - // fall through - case 5: - url2.user = baseUrl.user; - url2.host = baseUrl.host; - url2.port = baseUrl.port; - // fall through - case 6: - url2.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url2, inputType); - const queryHash = url2.query + url2.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case 2: - case 3: - return queryHash; - case 4: { - const path = url2.path.slice(1); - if (!path) - return queryHash || "."; - if (isRelative(base || input) && !isRelative(path)) { - return "./" + path + queryHash; - } - return path + queryHash; - } - case 5: - return url2.path + queryHash; - default: - return url2.scheme + "//" + url2.user + url2.host + url2.port + url2.path + queryHash; - } - } - return resolve2; - })); - })(resolveUri_umd$1); - return resolveUri_umd$1.exports; -} -requireResolveUri_umd(); -var COLUMN = 0; -var SOURCES_INDEX = 1; -var SOURCE_LINE = 2; -var SOURCE_COLUMN = 3; -var NAMES_INDEX = 4; -var found = false; -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + (high - low >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } else { - high = mid - 1; - } - } - found = false; - return low - 1; -} -function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) break; - } - return index; -} -function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) break; - } - return index; -} -function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - low = lastIndex === -1 ? 0 : lastIndex; - } else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return state.lastIndex = binarySearch(haystack, needle, low, high); -} -var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)"; -var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)"; -var LEAST_UPPER_BOUND = -1; -var GREATEST_LOWER_BOUND = 1; -function cast(map) { - return map; -} -function decodedMappings(map) { - var _a; - return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded)); -} -function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) throw new Error(LINE_GTR_ZERO); - if (column < 0) throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - if (line >= decoded.length) return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal( - segments, - cast(map)._decodedMemo, - line, - column, - bias || GREATEST_LOWER_BOUND - ); - if (index === -1) return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping( - resolvedSources[segment[SOURCES_INDEX]], - segment[SOURCE_LINE] + 1, - segment[SOURCE_COLUMN], - segment.length === 5 ? names[segment[NAMES_INDEX]] : null - ); -} -function OMapping(source, line, column, name) { - return { source, line, column, name }; -} -function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } else if (bias === LEAST_UPPER_BOUND) index++; - if (index === -1 || index === segments.length) return -1; - return index; -} -function notNullish(v) { - return v != null; -} -const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m; -const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/; -const stackIgnorePatterns = [ - "node:internal", - /\/packages\/\w+\/dist\//, - /\/@vitest\/\w+\/dist\//, - "/vitest/dist/", - "/vitest/src/", - "/node_modules/chai/", - "/node_modules/tinyspy/", - "/vite/dist/node/module-runner", - "/rolldown-vite/dist/node/module-runner", - // browser related deps - "/deps/chunk-", - "/deps/@vitest", - "/deps/loupe", - "/deps/chai", - "/browser-playwright/dist/locators.js", - "/browser-webdriverio/dist/locators.js", - "/browser-preview/dist/locators.js", - /node:\w+/, - /__vitest_test__/, - /__vitest_browser__/, - /\/deps\/vitest_/ -]; -function extractLocation(urlLike) { - if (!urlLike.includes(":")) { - return [urlLike]; - } - const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/; - const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, "")); - if (!parts) { - return [urlLike]; - } - let url2 = parts[1]; - if (url2.startsWith("async ")) { - url2 = url2.slice(6); - } - if (url2.startsWith("http:") || url2.startsWith("https:")) { - const urlObj = new URL(url2); - urlObj.searchParams.delete("import"); - urlObj.searchParams.delete("browserv"); - url2 = urlObj.pathname + urlObj.hash + urlObj.search; - } - if (url2.startsWith("/@fs/")) { - const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url2); - url2 = url2.slice(isWindows ? 5 : 4); - } - return [url2, parts[2] || void 0, parts[3] || void 0]; -} -function parseSingleFFOrSafariStack(raw) { - let line = raw.trim(); - if (SAFARI_NATIVE_CODE_REGEXP.test(line)) { - return null; - } - if (line.includes(" > eval")) { - line = line.replace( - / line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, - ":$1" - ); - } - if (!line.includes("@")) { - return null; - } - let atIndex = -1; - let locationPart = ""; - let functionName; - for (let i = 0; i < line.length; i++) { - if (line[i] === "@") { - const candidateLocation = line.slice(i + 1); - if (candidateLocation.includes(":") && candidateLocation.length >= 3) { - atIndex = i; - locationPart = candidateLocation; - functionName = i > 0 ? line.slice(0, i) : void 0; - break; - } - } - } - if (atIndex === -1 || !locationPart.includes(":") || locationPart.length < 3) { - return null; - } - const [url2, lineNumber, columnNumber] = extractLocation(locationPart); - if (!url2 || !lineNumber || !columnNumber) { - return null; - } - return { - file: url2, - method: functionName || "", - line: Number.parseInt(lineNumber), - column: Number.parseInt(columnNumber) - }; -} -function parseSingleV8Stack(raw) { - let line = raw.trim(); - if (!CHROME_IE_STACK_REGEXP.test(line)) { - return null; - } - if (line.includes("(eval ")) { - line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""); - } - let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""); - const location2 = sanitizedLine.match(/ (\(.+\)$)/); - sanitizedLine = location2 ? sanitizedLine.replace(location2[0], "") : sanitizedLine; - const [url2, lineNumber, columnNumber] = extractLocation( - location2 ? location2[1] : sanitizedLine - ); - let method = location2 && sanitizedLine || ""; - let file = url2 && ["eval", ""].includes(url2) ? void 0 : url2; - if (!file || !lineNumber || !columnNumber) { - return null; - } - if (method.startsWith("async ")) { - method = method.slice(6); - } - if (file.startsWith("file://")) { - file = file.slice(7); - } - file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file); - if (method) { - method = method.replace(/__vite_ssr_import_\d+__\./g, "").replace(/(Object\.)?__vite_ssr_export_default__\s?/g, ""); - } - return { - method, - file, - line: Number.parseInt(lineNumber), - column: Number.parseInt(columnNumber) - }; -} -function createStackString(stacks) { - return stacks.map((stack) => { - const line = `${stack.file}:${stack.line}:${stack.column}`; - if (stack.method) { - return ` at ${stack.method}(${line})`; - } - return ` at ${line}`; - }).join("\n"); -} -function parseStacktrace(stack, options = {}) { - const { ignoreStackEntries = stackIgnorePatterns } = options; - const stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack); - return stacks.map((stack2) => { - var _a; - if (options.getUrlId) { - stack2.file = options.getUrlId(stack2.file); - } - const map = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file); - if (!map || typeof map !== "object" || !map.version) { - return shouldFilter(ignoreStackEntries, stack2.file) ? null : stack2; - } - const traceMap = new DecodedMap(map, stack2.file); - const position = getOriginalPosition(traceMap, stack2); - if (!position) { - return stack2; - } - const { line, column, source, name } = position; - let file = source || stack2.file; - if (file.match(/\/\w:\//)) { - file = file.slice(1); - } - if (shouldFilter(ignoreStackEntries, file)) { - return null; - } - if (line != null && column != null) { - return { - line, - column, - file, - method: name || stack2.method - }; - } - return stack2; - }).filter((s) => s != null); -} -function shouldFilter(ignoreStackEntries, file) { - return ignoreStackEntries.some((p) => file.match(p)); -} -function parseFFOrSafariStackTrace(stack) { - return stack.split("\n").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish); -} -function parseV8Stacktrace(stack) { - return stack.split("\n").map((line) => parseSingleV8Stack(line)).filter(notNullish); -} -class DecodedMap { - constructor(map, from) { - this.map = map; - const { mappings, names, sources } = map; - this.version = map.version; - this.names = names || []; - this._encoded = mappings || ""; - this._decodedMemo = memoizedState(); - this.url = from; - this.resolvedSources = (sources || []).map( - (s) => resolve(s || "", from) - ); - } - _encoded; - _decoded; - _decodedMemo; - url; - version; - names = []; - resolvedSources; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1 - }; -} -function getOriginalPosition(map, needle) { - const result = originalPositionFor(map, needle); - if (result.column == null) { - return null; - } - return result; -} -class VitestBrowserSnapshotEnvironment { - sourceMaps = /* @__PURE__ */ new Map(); - traceMaps = /* @__PURE__ */ new Map(); - addSourceMap(filepath, map) { - this.sourceMaps.set(filepath, map); - } - getVersion() { - return "1"; - } - getHeader() { - return `// Vitest Snapshot v${this.getVersion()}, https://vitest.dev/guide/snapshot.html`; - } - readSnapshotFile(filepath) { - return rpc$1().readSnapshotFile(filepath); - } - saveSnapshotFile(filepath, snapshot) { - return rpc$1().saveSnapshotFile(filepath, snapshot); - } - resolvePath(filepath) { - return rpc$1().resolveSnapshotPath(filepath); - } - resolveRawPath(testPath, rawPath) { - return rpc$1().resolveSnapshotRawPath(testPath, rawPath); - } - removeSnapshotFile(filepath) { - return rpc$1().removeSnapshotFile(filepath); - } - processStackTrace(stack) { - const map = this.sourceMaps.get(stack.file); - if (!map) { - return stack; - } - let traceMap = this.traceMaps.get(stack.file); - if (!traceMap) { - traceMap = new DecodedMap$1(map, stack.file); - this.traceMaps.set(stack.file, traceMap); - } - const position = getOriginalPosition$1(traceMap, stack); - if (position) { - return { ...stack, line: position.line, column: position.column }; - } - return stack; - } -} -function rpc$1() { - return globalThis.__vitest_worker__.rpc; -} -const browserHashMap = /* @__PURE__ */ new Map(); -function createBrowserRunner(runnerClass, mocker, state, coverageModule) { - return class BrowserTestRunner extends runnerClass { - config; - hashMap = browserHashMap; - sourceMapCache = /* @__PURE__ */ new Map(); - method = "run"; - commands; - _otel; - constructor(options) { - super(options.config); - this.config = options.config; - this.commands = getBrowserState().commands; - this.viteEnvironment = "__browser__"; - this._otel = getBrowserState().traces; - } - setMethod(method) { - this.method = method; - } - traces = /* @__PURE__ */ new Map(); - onBeforeTryTask = async (...args) => { - var _a; - await userEvent.cleanup(); - await ((_a = super.onBeforeTryTask) == null ? void 0 : _a.call(this, ...args)); - const trace = this.config.browser.trace; - const test = args[0]; - if (trace === "off") { - return; - } - const { retry, repeats } = args[1]; - if (trace === "on-all-retries" && retry === 0) { - return; - } - if (trace === "on-first-retry" && retry !== 1) { - return; - } - let title = getTestName(test); - if (retry) { - title += ` (retry x${retry})`; - } - if (repeats) { - title += ` (repeat x${repeats})`; - } - const name = getTraceName(test, retry, repeats); - await this.commands.triggerCommand( - "__vitest_startChunkTrace", - [{ name, title }] - ); - }; - onAfterRetryTask = async (test, { retry, repeats }) => { - const trace = this.config.browser.trace; - if (trace === "off") { - return; - } - if (trace === "on-all-retries" && retry === 0) { - return; - } - if (trace === "on-first-retry" && retry !== 1) { - return; - } - const name = getTraceName(test, retry, repeats); - if (!this.traces.has(test.id)) { - this.traces.set(test.id, []); - } - const traces2 = this.traces.get(test.id); - const { tracePath } = await this.commands.triggerCommand( - "__vitest_stopChunkTrace", - [{ name }] - ); - traces2.push(tracePath); - }; - onAfterRunTask = async (task) => { - var _a, _b, _c; - await ((_a = super.onAfterRunTask) == null ? void 0 : _a.call(this, task)); - const trace = this.config.browser.trace; - const traces2 = this.traces.get(task.id) || []; - if (traces2.length) { - if (trace === "retain-on-failure" && ((_b = task.result) == null ? void 0 : _b.state) === "pass") { - await this.commands.triggerCommand( - "__vitest_deleteTracing", - [{ traces: traces2 }] - ); - } else { - await this.commands.triggerCommand( - "__vitest_annotateTraces", - [{ testId: task.id, traces: traces2 }] - ); - } - } - if (this.config.bail && ((_c = task.result) == null ? void 0 : _c.state) === "fail") { - const previousFailures = await rpc$2().getCountOfFailedTests(); - const currentFailures = 1 + previousFailures; - if (currentFailures >= this.config.bail) { - rpc$2().cancelCurrentRun("test-failure"); - this.cancel("test-failure"); - } - } - }; - onTaskFinished = async (task) => { - var _a, _b; - if (this.config.browser.screenshotFailures && document.body.clientHeight > 0 && ((_a = task.result) == null ? void 0 : _a.state) === "fail") { - const screenshot = await page.screenshot( - { - timeout: ((_b = this.config.browser.providerOptions) == null ? void 0 : _b.actionTimeout) ?? 5e3 - } - /** TODO */ - ).catch((err) => { - console.error("[vitest] Failed to take a screenshot", err); - }); - if (screenshot) { - task.meta.failScreenshotPath = screenshot; - } - } - }; - cancel = (reason) => { - var _a; - (_a = super.cancel) == null ? void 0 : _a.call(this, reason); - globalChannel.postMessage({ type: "cancel", reason }); - }; - onBeforeRunSuite = async (suite) => { - var _a; - await Promise.all([ - (_a = super.onBeforeRunSuite) == null ? void 0 : _a.call(this, suite), - (async () => { - if (!("filepath" in suite)) { - return; - } - const map = await rpc$2().getBrowserFileSourceMap(suite.filepath); - this.sourceMapCache.set(suite.filepath, map); - const snapshotEnvironment = this.config.snapshotOptions.snapshotEnvironment; - if (snapshotEnvironment instanceof VitestBrowserSnapshotEnvironment) { - snapshotEnvironment.addSourceMap(suite.filepath, map); - } - })() - ]); - }; - onAfterRunFiles = async (files) => { - var _a, _b; - const [coverage] = await Promise.all([ - (_a = coverageModule == null ? void 0 : coverageModule.takeCoverage) == null ? void 0 : _a.call(coverageModule), - mocker.invalidate(), - (_b = super.onAfterRunFiles) == null ? void 0 : _b.call(this, files) - ]); - if (coverage) { - await rpc$2().onAfterSuiteRun({ - coverage, - testFiles: files.map((file) => file.name), - environment: "__browser__", - projectName: this.config.name - }); - } - }; - onCollectStart = (file) => { - return rpc$2().onQueued(this.method, file); - }; - onCollected = async (files) => { - files.forEach((file) => { - file.prepareDuration = state.durations.prepare; - file.environmentLoad = state.durations.environment; - state.durations.prepare = 0; - state.durations.environment = 0; - }); - if (this.config.includeTaskLocation) { - try { - await updateTestFilesLocations(files, this.sourceMapCache); - } catch { - } - } - return rpc$2().onCollected(this.method, files); - }; - onTestAnnotate = (test, annotation) => { - const artifact = { type: "internal:annotation", annotation, location: annotation.location }; - return this.onTestArtifactRecord(test, artifact).then(({ annotation: annotation2 }) => annotation2); - }; - onTestArtifactRecord = (test, artifact) => { - if (artifact.location) { - const map = this.sourceMapCache.get(artifact.location.file); - if (!map) { - return rpc$2().onTaskArtifactRecord(test.id, artifact); - } - const traceMap = new DecodedMap$1(map, artifact.location.file); - const position = getOriginalPosition$1(traceMap, artifact.location); - if (position) { - const { source, column, line } = position; - const file = source || artifact.location.file; - artifact.location = { - line, - column: column + 1, - // if the file path is on windows, we need to remove the starting slash - file: file.match(/\/\w:\//) ? file.slice(1) : file - }; - if (artifact.type === "internal:annotation") { - artifact.annotation.location = artifact.location; - } - } - } - return rpc$2().onTaskArtifactRecord(test.id, artifact); - }; - onTaskUpdate = (task, events) => { - return rpc$2().onTaskUpdate(this.method, task, events); - }; - importFile = async (filepath, mode) => { - let hash = this.hashMap.get(filepath); - if (mode === "setup" || !hash) { - hash = Date.now().toString(); - this.hashMap.set(filepath, hash); - } - const prefix = `/${/^\w:/.test(filepath) ? "@fs/" : ""}`; - const query = `browserv=${hash}`; - const importpath = `${prefix}${filepath}?${query}`.replace(/\/+/g, "/"); - const trace = this.config.browser.trace; - if (mode === "collect" && trace !== "off") { - await this.commands.triggerCommand("__vitest_startTracing", []); - } - try { - await import( - /* @vite-ignore */ - importpath - ); - } catch (err) { - throw new Error(`Failed to import test file ${filepath}`, { cause: err }); - } - }; - trace = (name, attributes, cb) => { - const options = typeof attributes === "object" ? { attributes } : {}; - return this._otel.$(`vitest.test.runner.${name}`, options, cb || attributes); - }; - }; -} -let cachedRunner = null; -function getBrowserRunner() { - return cachedRunner; -} -async function initiateRunner(state, mocker, config) { - if (cachedRunner) { - return cachedRunner; - } - const runnerClass = config.mode === "test" ? VitestTestRunner : NodeBenchmarkRunner; - const BrowserRunner = createBrowserRunner(runnerClass, mocker, state, { - takeCoverage: () => takeCoverageInsideWorker(config.coverage, moduleRunner) - }); - if (!config.snapshotOptions.snapshotEnvironment) { - config.snapshotOptions.snapshotEnvironment = new VitestBrowserSnapshotEnvironment(); - } - const runner = new BrowserRunner({ - config - }); - cachedRunner = runner; - onCancel((reason) => { - var _a; - (_a = runner.cancel) == null ? void 0 : _a.call(runner, reason); - }); - const [diffOptions] = await Promise.all([ - loadDiffConfig(config, moduleRunner), - loadSnapshotSerializers(config, moduleRunner) - ]); - runner.config.diffOptions = diffOptions; - getWorkerState().onFilterStackTrace = (stack) => { - const stacks = parseStacktrace(stack, { - getSourceMap(file) { - return runner.sourceMapCache.get(file); - } - }); - return createStackString(stacks); - }; - return runner; -} -async function getTraceMap(file, sourceMaps) { - const result = sourceMaps.get(file) || await rpc$2().getBrowserFileSourceMap(file).then((map) => { - sourceMaps.set(file, map); - return map; - }); - if (!result) { - return null; - } - return new DecodedMap$1(result, file); -} -async function updateTestFilesLocations(files, sourceMaps) { - const promises2 = files.map(async (file) => { - const traceMap = await getTraceMap(file.filepath, sourceMaps); - if (!traceMap) { - return null; - } - const updateLocation = (task) => { - if (task.location) { - const position = getOriginalPosition$1(traceMap, task.location); - if (position) { - const { line, column } = position; - task.location = { line, column: task.each ? column : column + 1 }; - } - } - if ("tasks" in task) { - task.tasks.forEach(updateLocation); - } - }; - file.tasks.forEach(updateLocation); - return null; - }); - await Promise.all(promises2); -} -function getTraceName(task, retryCount, repeatsCount) { - const name = getTestName(task, "-").replace(/[^a-z0-9]/gi, "-"); - return `${name}-${repeatsCount}-${retryCount}`; -} -const { Date: Date$1, console: console$1, performance: performance$1 } = globalThis; -function setupConsoleLogSpy() { - const { - log, - info, - error, - dir, - dirxml, - trace, - time, - timeEnd, - timeLog, - warn, - debug: debug2, - count, - countReset - } = console$1; - console$1.log = stdout(log); - console$1.debug = stdout(debug2); - console$1.info = stdout(info); - console$1.error = stderr(error); - console$1.warn = stderr(warn); - console$1.dir = (item, options) => { - dir(item, options); - sendLog("stdout", browserFormat(item)); - }; - console$1.dirxml = (...args) => { - dirxml(...args); - sendLog("stdout", processLog(args)); - }; - console$1.trace = (...args) => { - var _a; - trace(...args); - const content = processLog(args); - const error2 = new Error("$$Trace"); - const processor = ((_a = globalThis.__vitest_worker__) == null ? void 0 : _a.onFilterStackTrace) || ((s) => s || ""); - const stack = processor(error2.stack || ""); - sendLog("stderr", `${content} -${stack}`, true); - }; - const timeLabels = {}; - console$1.time = (label = "default") => { - time(label); - const now2 = performance$1.now(); - timeLabels[label] = now2; - }; - console$1.timeLog = (label = "default") => { - timeLog(label); - if (!(label in timeLabels)) { - sendLog("stderr", `Timer "${label}" does not exist`); - } else { - sendLog("stdout", `${label}: ${timeLabels[label]} ms`); - } - }; - console$1.timeEnd = (label = "default") => { - timeEnd(label); - const end = performance$1.now(); - const start = timeLabels[label]; - if (!(label in timeLabels)) { - sendLog("stderr", `Timer "${label}" does not exist`); - } else if (typeof start !== "undefined") { - const duration = end - start; - sendLog("stdout", `${label}: ${duration} ms`); - } - }; - const countLabels = {}; - console$1.count = (label = "default") => { - count(label); - const counter = (countLabels[label] ?? 0) + 1; - countLabels[label] = counter; - sendLog("stdout", `${label}: ${counter}`); - }; - console$1.countReset = (label = "default") => { - countReset(label); - countLabels[label] = 0; - }; -} -function stdout(base) { - return (...args) => { - base(...args); - if (args[0] === "[WDIO]") { - if (args[1] === "newShadowRoot" || args[1] === "removeShadowRoot") { - return; - } - } - sendLog("stdout", processLog(args)); - }; -} -function stderr(base) { - return (...args) => { - base(...args); - sendLog("stderr", processLog(args)); - }; -} -function processLog(args) { - return browserFormat(...args); -} -function sendLog(type, content, disableStack) { - var _a, _b, _c; - if (content.startsWith("[vite]")) { - return; - } - const unknownTestId = "__vitest__unknown_test__"; - const taskId = ((_b = (_a = globalThis.__vitest_worker__) == null ? void 0 : _a.current) == null ? void 0 : _b.id) ?? unknownTestId; - const origin = getConfig().printConsoleTrace && !disableStack ? (_c = new Error("STACK_TRACE").stack) == null ? void 0 : _c.split("\n").slice(1).join("\n") : void 0; - const runner = getBrowserRunner(); - rpc$2().sendLog((runner == null ? void 0 : runner.method) || "run", { - origin, - content, - browser: true, - time: Date$1.now(), - taskId, - type, - size: content.length - }); -} -class MockerRegistry { - registryByUrl = /* @__PURE__ */ new Map(); - registryById = /* @__PURE__ */ new Map(); - clear() { - this.registryByUrl.clear(); - this.registryById.clear(); - } - keys() { - return this.registryByUrl.keys(); - } - add(mock) { - this.registryByUrl.set(mock.url, mock); - this.registryById.set(mock.id, mock); - } - register(typeOrEvent, raw, id, url2, factoryOrRedirect) { - const type = typeof typeOrEvent === "object" ? typeOrEvent.type : typeOrEvent; - if (typeof typeOrEvent === "object") { - const event = typeOrEvent; - if (event instanceof AutomockedModule || event instanceof AutospiedModule || event instanceof ManualMockedModule || event instanceof RedirectedModule) { - throw new TypeError(`[vitest] Cannot register a mock that is already defined. Expected a JSON representation from \`MockedModule.toJSON\`, instead got "${event.type}". Use "registry.add()" to update a mock instead.`); - } - if (event.type === "automock") { - const module = AutomockedModule.fromJSON(event); - this.add(module); - return module; - } else if (event.type === "autospy") { - const module = AutospiedModule.fromJSON(event); - this.add(module); - return module; - } else if (event.type === "redirect") { - const module = RedirectedModule.fromJSON(event); - this.add(module); - return module; - } else if (event.type === "manual") { - throw new Error(`Cannot set serialized manual mock. Define a factory function manually with \`ManualMockedModule.fromJSON()\`.`); - } else { - throw new Error(`Unknown mock type: ${event.type}`); - } - } - if (typeof raw !== "string") { - throw new TypeError("[vitest] Mocks require a raw string."); - } - if (typeof url2 !== "string") { - throw new TypeError("[vitest] Mocks require a url string."); - } - if (typeof id !== "string") { - throw new TypeError("[vitest] Mocks require an id string."); - } - if (type === "manual") { - if (typeof factoryOrRedirect !== "function") { - throw new TypeError("[vitest] Manual mocks require a factory function."); - } - const mock = new ManualMockedModule(raw, id, url2, factoryOrRedirect); - this.add(mock); - return mock; - } else if (type === "automock" || type === "autospy") { - const mock = type === "automock" ? new AutomockedModule(raw, id, url2) : new AutospiedModule(raw, id, url2); - this.add(mock); - return mock; - } else if (type === "redirect") { - if (typeof factoryOrRedirect !== "string") { - throw new TypeError("[vitest] Redirect mocks require a redirect string."); - } - const mock = new RedirectedModule(raw, id, url2, factoryOrRedirect); - this.add(mock); - return mock; - } else { - throw new Error(`[vitest] Unknown mock type: ${type}`); - } - } - delete(id) { - this.registryByUrl.delete(id); - } - deleteById(id) { - this.registryById.delete(id); - } - get(id) { - return this.registryByUrl.get(id); - } - getById(id) { - return this.registryById.get(id); - } - has(id) { - return this.registryByUrl.has(id); - } -} -class AutomockedModule { - type = "automock"; - constructor(raw, id, url2) { - this.raw = raw; - this.id = id; - this.url = url2; - } - static fromJSON(data) { - return new AutospiedModule(data.raw, data.id, data.url); - } - toJSON() { - return { - type: this.type, - url: this.url, - raw: this.raw, - id: this.id - }; - } -} -class AutospiedModule { - type = "autospy"; - constructor(raw, id, url2) { - this.raw = raw; - this.id = id; - this.url = url2; - } - static fromJSON(data) { - return new AutospiedModule(data.raw, data.id, data.url); - } - toJSON() { - return { - type: this.type, - url: this.url, - id: this.id, - raw: this.raw - }; - } -} -class RedirectedModule { - type = "redirect"; - constructor(raw, id, url2, redirect) { - this.raw = raw; - this.id = id; - this.url = url2; - this.redirect = redirect; - } - static fromJSON(data) { - return new RedirectedModule(data.raw, data.id, data.url, data.redirect); - } - toJSON() { - return { - type: this.type, - url: this.url, - raw: this.raw, - id: this.id, - redirect: this.redirect - }; - } -} -class ManualMockedModule { - cache; - type = "manual"; - constructor(raw, id, url2, factory) { - this.raw = raw; - this.id = id; - this.url = url2; - this.factory = factory; - } - async resolve() { - if (this.cache) { - return this.cache; - } - let exports$1; - try { - exports$1 = await this.factory(); - } catch (err) { - const vitestError = new Error('[vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock'); - vitestError.cause = err; - throw vitestError; - } - if (exports$1 === null || typeof exports$1 !== "object" || Array.isArray(exports$1)) { - throw new TypeError(`[vitest] vi.mock("${this.raw}", factory?: () => unknown) is not returning an object. Did you mean to return an object with a "default" key?`); - } - return this.cache = exports$1; - } - static fromJSON(data, factory) { - return new ManualMockedModule(data.raw, data.id, data.url, factory); - } - toJSON() { - return { - type: this.type, - url: this.url, - id: this.id, - raw: this.raw - }; - } -} -function mockObject(options, object2, mockExports = {}) { - const finalizers = new Array(); - const refs = new RefTracker(); - const define = (container, key, value) => { - try { - container[key] = value; - return true; - } catch { - return false; - } - }; - const createMock = (currentValue) => { - if (!options.createMockInstance) { - throw new Error("[@vitest/mocker] `createMockInstance` is not defined. This is a Vitest error. Please open a new issue with reproduction."); - } - const createMockInstance = options.createMockInstance; - const prototypeMembers = currentValue.prototype ? collectFunctionProperties(currentValue.prototype) : []; - return createMockInstance({ - name: currentValue.name, - prototypeMembers, - originalImplementation: options.type === "autospy" ? currentValue : void 0, - keepMembersImplementation: options.type === "autospy" - }); - }; - const mockPropertiesOf = (container, newContainer) => { - const containerType = getType(container); - const isModule = containerType === "Module" || !!container.__esModule; - for (const { key: property, descriptor } of getAllMockableProperties(container, isModule, options.globalConstructors)) { - if (!isModule && descriptor.get) { - try { - if (options.type === "autospy") { - Object.defineProperty(newContainer, property, descriptor); - } else { - Object.defineProperty(newContainer, property, { - configurable: descriptor.configurable, - enumerable: descriptor.enumerable, - get: () => { - }, - set: descriptor.set ? () => { - } : void 0 - }); - } - } catch { - } - continue; - } - if (isReadonlyProp(container[property], property)) { - continue; - } - const value = container[property]; - const refId = refs.getId(value); - if (refId !== void 0) { - finalizers.push(() => define(newContainer, property, refs.getMockedValue(refId))); - continue; - } - const type = getType(value); - if (Array.isArray(value)) { - if (options.type === "automock") { - define(newContainer, property, []); - } else { - const array = value.map((value2) => { - if (value2 && typeof value2 === "object") { - const newObject = {}; - mockPropertiesOf(value2, newObject); - return newObject; - } - if (typeof value2 === "function") { - return createMock(value2); - } - return value2; - }); - define(newContainer, property, array); - } - continue; - } - const isFunction = type.includes("Function") && typeof value === "function"; - if ((!isFunction || value._isMockFunction) && type !== "Object" && type !== "Module") { - define(newContainer, property, value); - continue; - } - if (!define(newContainer, property, isFunction || options.type === "autospy" ? value : {})) { - continue; - } - if (isFunction) { - const mock = createMock(newContainer[property]); - newContainer[property] = mock; - } - refs.track(value, newContainer[property]); - mockPropertiesOf(value, newContainer[property]); - } - }; - const mockedObject = mockExports; - mockPropertiesOf(object2, mockedObject); - for (const finalizer of finalizers) { - finalizer(); - } - return mockedObject; -} -class RefTracker { - idMap = /* @__PURE__ */ new Map(); - mockedValueMap = /* @__PURE__ */ new Map(); - getId(value) { - return this.idMap.get(value); - } - getMockedValue(id) { - return this.mockedValueMap.get(id); - } - track(originalValue, mockedValue) { - const newId = this.idMap.size; - this.idMap.set(originalValue, newId); - this.mockedValueMap.set(newId, mockedValue); - return newId; - } -} -function getType(value) { - return Object.prototype.toString.apply(value).slice(8, -1); -} -function isReadonlyProp(object2, prop) { - if (prop === "arguments" || prop === "caller" || prop === "callee" || prop === "name" || prop === "length") { - const typeName = getType(object2); - return typeName === "Function" || typeName === "AsyncFunction" || typeName === "GeneratorFunction" || typeName === "AsyncGeneratorFunction"; - } - if (prop === "source" || prop === "global" || prop === "ignoreCase" || prop === "multiline") { - return getType(object2) === "RegExp"; - } - return false; -} -function getAllMockableProperties(obj, isModule, constructors) { - const { Map: Map2, Object: Object2, Function: Function2, RegExp: RegExp2, Array: Array2 } = constructors; - const allProps = new Map2(); - let curr = obj; - do { - if (curr === Object2.prototype || curr === Function2.prototype || curr === RegExp2.prototype) { - break; - } - collectOwnProperties(curr, (key) => { - const descriptor = Object2.getOwnPropertyDescriptor(curr, key); - if (descriptor) { - allProps.set(key, { - key, - descriptor - }); - } - }); - } while (curr = Object2.getPrototypeOf(curr)); - if (isModule && !allProps.has("default") && "default" in obj) { - const descriptor = Object2.getOwnPropertyDescriptor(obj, "default"); - if (descriptor) { - allProps.set("default", { - key: "default", - descriptor - }); - } - } - return Array2.from(allProps.values()); -} -function collectOwnProperties(obj, collector) { - const collect = typeof collector === "function" ? collector : (key) => collector.add(key); - Object.getOwnPropertyNames(obj).forEach(collect); - Object.getOwnPropertySymbols(obj).forEach(collect); -} -function collectFunctionProperties(prototype) { - const properties = /* @__PURE__ */ new Set(); - collectOwnProperties(prototype, (prop) => { - const descriptor = Object.getOwnPropertyDescriptor(prototype, prop); - if (!descriptor || descriptor.get) { - return; - } - const type = getType(descriptor.value); - if (type.includes("Function") && !isReadonlyProp(descriptor.value, prop)) { - properties.add(prop); - } - }); - return Array.from(properties); -} -const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//; -function normalizeWindowsPath(input = "") { - if (!input) { - return input; - } - return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase()); -} -const _UNC_REGEX = /^[/\\]{2}/; -const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/; -const _DRIVE_LETTER_RE = /^[A-Za-z]:$/; -const _EXTNAME_RE = /.(\.[^./]+|\.)$/; -const normalize = function(path) { - if (path.length === 0) { - return "."; - } - path = normalizeWindowsPath(path); - const isUNCPath = path.match(_UNC_REGEX); - const isPathAbsolute = isAbsolute(path); - const trailingSeparator = path[path.length - 1] === "/"; - path = normalizeString(path, !isPathAbsolute); - if (path.length === 0) { - if (isPathAbsolute) { - return "/"; - } - return trailingSeparator ? "./" : "."; - } - if (trailingSeparator) { - path += "/"; - } - if (_DRIVE_LETTER_RE.test(path)) { - path += "/"; - } - if (isUNCPath) { - if (!isPathAbsolute) { - return `//./${path}`; - } - return `//${path}`; - } - return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path; -}; -const join = function(...segments) { - let path = ""; - for (const seg of segments) { - if (!seg) { - continue; - } - if (path.length > 0) { - const pathTrailing = path[path.length - 1] === "/"; - const segLeading = seg[0] === "/"; - const both = pathTrailing && segLeading; - if (both) { - path += seg.slice(1); - } else { - path += pathTrailing || segLeading ? seg : `/${seg}`; - } - } else { - path += seg; - } - } - return normalize(path); -}; -function normalizeString(path, allowAboveRoot) { - let res = ""; - let lastSegmentLength = 0; - let lastSlash = -1; - let dots = 0; - let char = null; - for (let index = 0; index <= path.length; ++index) { - if (index < path.length) { - char = path[index]; - } else if (char === "/") { - break; - } else { - char = "/"; - } - if (char === "/") { - if (lastSlash === index - 1 || dots === 1) ; - else if (dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") { - if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf("/"); - if (lastSlashIndex === -1) { - res = ""; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf("/"); - } - lastSlash = index; - dots = 0; - continue; - } else if (res.length > 0) { - res = ""; - lastSegmentLength = 0; - lastSlash = index; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - res += res.length > 0 ? "/.." : ".."; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) { - res += `/${path.slice(lastSlash + 1, index)}`; - } else { - res = path.slice(lastSlash + 1, index); - } - lastSegmentLength = index - lastSlash - 1; - } - lastSlash = index; - dots = 0; - } else if (char === "." && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -const isAbsolute = function(p) { - return _IS_ABSOLUTE_RE.test(p); -}; -const extname = function(p) { - if (p === "..") return ""; - const match = _EXTNAME_RE.exec(normalizeWindowsPath(p)); - return match && match[1] || ""; -}; -var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -var intToChar = new Uint8Array(64); -var charToInt = new Uint8Array(128); -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -const { now } = Date; -class ModuleMocker { - registry = new MockerRegistry(); - queue = /* @__PURE__ */ new Set(); - mockedIds = /* @__PURE__ */ new Set(); - constructor(interceptor, rpc2, createMockInstance, config) { - this.interceptor = interceptor; - this.rpc = rpc2; - this.createMockInstance = createMockInstance; - this.config = config; - } - async prepare() { - if (!this.queue.size) { - return; - } - await Promise.all([...this.queue.values()]); - } - async resolveFactoryModule(id) { - const mock = this.registry.get(id); - if (!mock || mock.type !== "manual") { - throw new Error(`Mock ${id} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`); - } - const result = await mock.resolve(); - return result; - } - getFactoryModule(id) { - const mock = this.registry.get(id); - if (!mock || mock.type !== "manual") { - throw new Error(`Mock ${id} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`); - } - if (!mock.cache) { - throw new Error(`Mock ${id} wasn't resolved. This is probably a Vitest error. Please, open a new issue with reproduction.`); - } - return mock.cache; - } - async invalidate() { - const ids = Array.from(this.mockedIds); - if (!ids.length) { - return; - } - await this.rpc.invalidate(ids); - await this.interceptor.invalidate(); - this.registry.clear(); - } - async importActual(id, importer) { - const resolved = await this.rpc.resolveId(id, importer); - if (resolved == null) { - throw new Error(`[vitest] Cannot resolve "${id}" imported from "${importer}"`); - } - const ext = extname(resolved.id); - const url2 = new URL(resolved.url, location.href); - const query = `_vitest_original&ext${ext}`; - const actualUrl = `${url2.pathname}${url2.search ? `${url2.search}&${query}` : `?${query}`}${url2.hash}`; - return this.wrapDynamicImport(() => import( - /* @vite-ignore */ - actualUrl - )).then((mod) => { - if (!resolved.optimized || typeof mod.default === "undefined") { - return mod; - } - const m = mod.default; - return (m === null || m === void 0 ? void 0 : m.__esModule) ? m : { - ...typeof m === "object" && !Array.isArray(m) || typeof m === "function" ? m : {}, - default: m - }; - }); - } - async importMock(rawId, importer) { - await this.prepare(); - const { resolvedId, resolvedUrl, redirectUrl } = await this.rpc.resolveMock(rawId, importer, { mock: "auto" }); - const mockUrl = this.resolveMockPath(cleanVersion(resolvedUrl)); - let mock = this.registry.get(mockUrl); - if (!mock) { - if (redirectUrl) { - const resolvedRedirect = new URL(this.resolveMockPath(cleanVersion(redirectUrl)), location.href).toString(); - mock = new RedirectedModule(rawId, resolvedId, mockUrl, resolvedRedirect); - } else { - mock = new AutomockedModule(rawId, resolvedId, mockUrl); - } - } - if (mock.type === "manual") { - return await mock.resolve(); - } - if (mock.type === "automock" || mock.type === "autospy") { - const url2 = new URL(`/@id/${resolvedId}`, location.href); - const query = url2.search ? `${url2.search}&t=${now()}` : `?t=${now()}`; - const moduleObject = await __vitePreload(() => import( - /* @vite-ignore */ - `${url2.pathname}${query}&mock=${mock.type}${url2.hash}` - ), true ? [] : void 0); - return this.mockObject(moduleObject, mock.type); - } - return import( - /* @vite-ignore */ - mock.redirect - ); - } - mockObject(object2, moduleType = "automock") { - return mockObject({ - globalConstructors: { - Object, - Function, - Array, - Map, - RegExp - }, - createMockInstance: this.createMockInstance, - type: moduleType - }, object2); - } - queueMock(rawId, importer, factoryOrOptions) { - const promise = this.rpc.resolveMock(rawId, importer, { mock: typeof factoryOrOptions === "function" ? "factory" : (factoryOrOptions === null || factoryOrOptions === void 0 ? void 0 : factoryOrOptions.spy) ? "spy" : "auto" }).then(async ({ redirectUrl, resolvedId, resolvedUrl, needsInterop, mockType }) => { - const mockUrl = this.resolveMockPath(cleanVersion(resolvedUrl)); - this.mockedIds.add(resolvedId); - const factory = typeof factoryOrOptions === "function" ? async () => { - const data = await factoryOrOptions(); - return needsInterop ? { default: data } : data; - } : void 0; - const mockRedirect = typeof redirectUrl === "string" ? new URL(this.resolveMockPath(cleanVersion(redirectUrl)), location.href).toString() : null; - let module; - if (mockType === "manual") { - module = this.registry.register("manual", rawId, resolvedId, mockUrl, factory); - } else if (mockType === "autospy") { - module = this.registry.register("autospy", rawId, resolvedId, mockUrl); - } else if (mockType === "redirect") { - module = this.registry.register("redirect", rawId, resolvedId, mockUrl, mockRedirect); - } else { - module = this.registry.register("automock", rawId, resolvedId, mockUrl); - } - await this.interceptor.register(module); - }).finally(() => { - this.queue.delete(promise); - }); - this.queue.add(promise); - } - queueUnmock(id, importer) { - const promise = this.rpc.resolveId(id, importer).then(async (resolved) => { - if (!resolved) { - return; - } - const mockUrl = this.resolveMockPath(cleanVersion(resolved.url)); - this.mockedIds.add(resolved.id); - this.registry.delete(mockUrl); - await this.interceptor.delete(mockUrl); - }).finally(() => { - this.queue.delete(promise); - }); - this.queue.add(promise); - } - // We need to await mock registration before importing the actual module - // In case there is a mocked module in the import chain - wrapDynamicImport(moduleFactory) { - if (typeof moduleFactory === "function") { - const promise = new Promise((resolve2, reject) => { - this.prepare().finally(() => { - moduleFactory().then(resolve2, reject); - }); - }); - return promise; - } - return moduleFactory; - } - resolveMockPath(path) { - const config = this.config; - const fsRoot = join("/@fs/", config.root); - if (path.startsWith(config.root)) { - return path.slice(config.root.length); - } - if (path.startsWith(fsRoot)) { - return path.slice(fsRoot.length); - } - return path; - } -} -const versionRegexp = /(\?|&)v=\w{8}/; -function cleanVersion(url2) { - return url2.replace(versionRegexp, ""); -} -class VitestBrowserClientMocker extends ModuleMocker { - // default "vi" utility tries to access mock context to avoid circular dependencies - getMockContext() { - return { callstack: null }; - } - wrapDynamicImport(moduleFactory) { - return getBrowserState().wrapModule(moduleFactory); - } -} -function createModuleMockerInterceptor() { - return { - async register(module) { - const state = getBrowserState(); - await rpc().registerMock(state.sessionId, module.toJSON()); - }, - async delete(id) { - const state = getBrowserState(); - await rpc().unregisterMock(state.sessionId, id); - }, - async invalidate() { - const state = getBrowserState(); - await rpc().clearMocks(state.sessionId); - } - }; -} -function rpc() { - return getWorkerState().rpc; -} -getBrowserState().provider; -class CommandsManager { - _listeners = []; - onCommand(listener) { - this._listeners.push(listener); - } - async triggerCommand(command, args, clientError = new Error("empty")) { - var _a, _b; - const state = getWorkerState(); - const rpc2 = state.rpc; - const { sessionId, traces: traces2 } = getBrowserState(); - const filepath = state.filepath || ((_b = (_a = state.current) == null ? void 0 : _a.file) == null ? void 0 : _b.filepath); - args = args.filter((arg) => arg !== void 0); - if (this._listeners.length) { - await Promise.all(this._listeners.map((listener) => listener(command, args))); - } - return traces2.$( - "vitest.browser.tester.command", - { - attributes: { - "vitest.browser.command": command, - "code.file.path": filepath - } - }, - () => rpc2.triggerCommand(sessionId, command, filepath, args).catch((err) => { - var _a2; - clientError.message = err.message; - clientError.name = err.name; - clientError.stack = (_a2 = clientError.stack) == null ? void 0 : _a2.replace(clientError.message, err.message); - throw clientError; - }) - ); - } -} -const debugVar = getConfig().env.VITEST_BROWSER_DEBUG; -const debug = debugVar && debugVar !== "false" ? (...args) => { - var _a, _b; - return (_b = (_a = client.rpc).debug) == null ? void 0 : _b.call(_a, ...args.map(String)); -} : void 0; -const otelConfig = getConfig().experimental.openTelemetry; -const traces = new Traces({ - enabled: !!((otelConfig == null ? void 0 : otelConfig.enabled) && (otelConfig == null ? void 0 : otelConfig.browserSdkPath)), - sdkPath: `/@fs/${otelConfig == null ? void 0 : otelConfig.browserSdkPath}` -}); -let rootTesterSpan; -getBrowserState().traces = traces; -channel.addEventListener("message", async (e) => { - await client.waitForConnection(); - const data = e.data; - debug == null ? void 0 : debug("event from orchestrator", JSON.stringify(e.data)); - if (!isEvent(data)) { - const error = new Error(`Unknown message: ${JSON.stringify(e.data)}`); - unhandledError(error, "Unknown Iframe Message"); - return; - } - if (!("iframeId" in data) || data.iframeId !== getBrowserState().iframeId) { - return; - } - switch (data.event) { - case "execute": { - const { method, files, context } = data; - const state = getWorkerState(); - const parsedContext = parse(context); - state.ctx.providedContext = parsedContext; - state.providedContext = parsedContext; - if (method === "collect") { - await executeTests("collect", files).catch((err) => unhandledError(err, "Collect Error")); - } else { - await executeTests("run", files).catch((err) => unhandledError(err, "Run Error")); - } - break; - } - case "cleanup": { - await cleanup().catch((err) => unhandledError(err, "Cleanup Error")); - rootTesterSpan == null ? void 0 : rootTesterSpan.span.end(); - await traces.finish(); - break; - } - case "prepare": { - await traces.waitInit(); - const tracesContext = traces.getContextFromCarrier(data.otelCarrier); - traces.recordInitSpan(tracesContext); - rootTesterSpan = traces.startContextSpan( - `vitest.browser.tester.run`, - tracesContext - ); - traces.bind(rootTesterSpan.context); - await prepare(data).catch((err) => unhandledError(err, "Prepare Error")); - break; - } - case "viewport:done": - case "viewport:fail": - case "viewport": { - break; - } - default: { - const error = new Error(`Unknown event: ${data.event}`); - unhandledError(error, "Unknown Event"); - } - } - channel.postMessage({ - event: `response:${data.event}`, - iframeId: getBrowserState().iframeId - }); -}); -const url = new URL(location.href); -const iframeId = url.searchParams.get("iframeId"); -const commands = new CommandsManager(); -getBrowserState().commands = commands; -getBrowserState().iframeId = iframeId; -let contextSwitched = false; -async function prepareTestEnvironment(options) { - debug == null ? void 0 : debug("trying to resolve the runner"); - const config = getConfig(); - const rpc2 = createSafeRpc(client); - const state = getWorkerState(); - state.metaEnv = __vitest_browser_import_meta_env_init__; - state.onCancel = onCancel; - state.ctx.rpc = rpc2; - state.rpc = rpc2; - const interceptor = createModuleMockerInterceptor(); - const mocker = new VitestBrowserClientMocker( - interceptor, - rpc2, - SpyModule.createMockInstance, - { - root: getBrowserState().viteConfig.root - } - ); - globalThis.__vitest_mocker__ = mocker; - setupConsoleLogSpy(); - setupDialogsSpy(); - const runner = await initiateRunner(state, mocker, config); - getBrowserState().runner = runner; - if (server.provider === "webdriverio") { - let switchPromise = null; - commands.onCommand(async () => { - if (switchPromise) { - await switchPromise; - } - if (!contextSwitched) { - switchPromise = rpc2.wdioSwitchContext("iframe").finally(() => { - switchPromise = null; - contextSwitched = true; - }); - await switchPromise; - } - }); - } - state.durations.prepare = performance.now() - options.startTime; - return { - runner, - config, - state - }; -} -let preparedData; -async function executeTests(method, specifications) { - if (!preparedData) { - throw new Error(`Data was not properly initialized. This is a bug in Vitest. Please, open a new issue with reproduction.`); - } - debug == null ? void 0 : debug("runner resolved successfully"); - const { runner, state } = preparedData; - state.ctx.files = specifications; - runner.setMethod(method); - const version = url.searchParams.get("browserv") || ""; - specifications.forEach(({ filepath }) => { - const currentVersion = browserHashMap.get(filepath); - if (!currentVersion || currentVersion[1] !== version) { - browserHashMap.set(filepath, version); - } - }); - for (const file of specifications) { - state.filepath = file.filepath; - debug == null ? void 0 : debug("running test file", file.filepath); - await traces.$( - `vitest.test.runner.${method}.module`, - { - attributes: { "code.file.path": file.filepath } - }, - async () => { - if (method === "run") { - await startTests([file], runner); - } else { - await collectTests([file], runner); - } - } - ); - } -} -async function prepare(options) { - preparedData = await prepareTestEnvironment(options); - debug == null ? void 0 : debug("runner resolved successfully"); - const { config, state } = preparedData; - state.durations.prepare = performance.now() - state.durations.prepare; - debug == null ? void 0 : debug("prepare time", state.durations.prepare, "ms"); - await Promise.all([ - setupCommonEnv(config), - startCoverageInsideWorker(config.coverage, moduleRunner, { isolate: config.browser.isolate }), - (async () => { - const VitestIndex = await __vitePreload(() => import("vitest"), true ? [] : void 0); - Object.defineProperty(window, "__vitest_index__", { - value: VitestIndex, - enumerable: false - }); - })() - ]); - if (!config.browser.trackUnhandledErrors) { - getBrowserState().disposeExceptionTracker(); - } -} -async function cleanup() { - const state = getWorkerState(); - const config = getConfig(); - const rpc2 = state.rpc; - const cleanupSymbol = Symbol.for("vitest:component-cleanup"); - if (cleanupSymbol in page) { - try { - await page[cleanupSymbol](); - } catch (error) { - await unhandledError(error, "Cleanup Error"); - } - } - await userEvent.cleanup().catch((error) => unhandledError(error, "Cleanup Error")); - await Promise.all( - getBrowserState().cleanups.map((fn) => fn()) - ).catch((error) => unhandledError(error, "Cleanup Error")); - if (contextSwitched) { - await rpc2.wdioSwitchContext("parent").catch((error) => unhandledError(error, "Cleanup Error")); - } - await stopCoverageInsideWorker(config.coverage, moduleRunner, { isolate: config.browser.isolate }).catch((error) => { - return unhandledError(error, "Coverage Error"); - }); -} -function unhandledError(e, type) { - return client.rpc.onUnhandledError({ - name: e.name, - message: e.message, - stack: e.stack - }, type).catch(() => { - }); -} -function isEvent(data) { - return typeof data === "object" && !!data && "event" in data; -} diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-uxqdqUz8.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-uxqdqUz8.js deleted file mode 100644 index bd39967..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/__vitest_browser__/utils-uxqdqUz8.js +++ /dev/null @@ -1,223 +0,0 @@ -(function polyfill() { - const relList = document.createElement("link").relList; - if (relList && relList.supports && relList.supports("modulepreload")) return; - for (const link of document.querySelectorAll('link[rel="modulepreload"]')) processPreload(link); - new MutationObserver((mutations) => { - for (const mutation of mutations) { - if (mutation.type !== "childList") continue; - for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node); - } - }).observe(document, { - childList: true, - subtree: true - }); - function getFetchOpts(link) { - const fetchOpts = {}; - if (link.integrity) fetchOpts.integrity = link.integrity; - if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy; - if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include"; - else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit"; - else fetchOpts.credentials = "same-origin"; - return fetchOpts; - } - function processPreload(link) { - if (link.ep) return; - link.ep = true; - const fetchOpts = getFetchOpts(link); - fetch(link.href, fetchOpts); - } -})(); -const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//; -function normalizeWindowsPath(input = "") { - if (!input) { - return input; - } - return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase()); -} -const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/; -const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/; -function cwd() { - if (typeof process !== "undefined" && typeof process.cwd === "function") { - return process.cwd().replace(/\\/g, "/"); - } - return "/"; -} -const resolve = function(...arguments_) { - arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument)); - let resolvedPath = ""; - let resolvedAbsolute = false; - for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) { - const path = index >= 0 ? arguments_[index] : cwd(); - if (!path || path.length === 0) { - continue; - } - resolvedPath = `${path}/${resolvedPath}`; - resolvedAbsolute = isAbsolute(path); - } - resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute); - if (resolvedAbsolute && !isAbsolute(resolvedPath)) { - return `/${resolvedPath}`; - } - return resolvedPath.length > 0 ? resolvedPath : "."; -}; -function normalizeString(path, allowAboveRoot) { - let res = ""; - let lastSegmentLength = 0; - let lastSlash = -1; - let dots = 0; - let char = null; - for (let index = 0; index <= path.length; ++index) { - if (index < path.length) { - char = path[index]; - } else if (char === "/") { - break; - } else { - char = "/"; - } - if (char === "/") { - if (lastSlash === index - 1 || dots === 1) ; - else if (dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") { - if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf("/"); - if (lastSlashIndex === -1) { - res = ""; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf("/"); - } - lastSlash = index; - dots = 0; - continue; - } else if (res.length > 0) { - res = ""; - lastSegmentLength = 0; - lastSlash = index; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - res += res.length > 0 ? "/.." : ".."; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) { - res += `/${path.slice(lastSlash + 1, index)}`; - } else { - res = path.slice(lastSlash + 1, index); - } - lastSegmentLength = index - lastSlash - 1; - } - lastSlash = index; - dots = 0; - } else if (char === "." && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -const isAbsolute = function(p) { - return _IS_ABSOLUTE_RE.test(p); -}; -const relative = function(from, to) { - const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/"); - const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/"); - if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) { - return _to.join("/"); - } - const _fromCopy = [..._from]; - for (const segment of _fromCopy) { - if (_to[0] !== segment) { - break; - } - _from.shift(); - _to.shift(); - } - return [..._from.map(() => ".."), ..._to].join("/"); -}; -// @__NO_SIDE_EFFECTS__ -function generateHash(str) { - let hash = 0; - if (str.length === 0) { - return `${hash}`; - } - for (let i = 0; i < str.length; i++) { - const char = str.charCodeAt(i); - hash = (hash << 5) - hash + char; - hash = hash & hash; - } - return `${hash}`; -} -// @__NO_SIDE_EFFECTS__ -function generateFileHash(file, projectName) { - return /* @__PURE__ */ generateHash(`${file}${projectName || ""}`); -} -function getNames(task) { - const names = [task.name]; - let current = task; - while (current === null || current === void 0 ? void 0 : current.suite) { - current = current.suite; - if (current === null || current === void 0 ? void 0 : current.name) { - names.unshift(current.name); - } - } - if (current !== task.file) { - names.unshift(task.file.name); - } - return names; -} -function getTestName(task, separator = " > ") { - return getNames(task).slice(1).join(separator); -} -async function importId(id) { - const name = `/@id/${id}`.replace(/\\/g, "/"); - return (/* @__PURE__ */ getBrowserState()).wrapModule(() => import( - /* @vite-ignore */ - name - )); -} -async function importFs(id) { - const name = `/@fs/${id}`.replace(/\\/g, "/"); - return (/* @__PURE__ */ getBrowserState()).wrapModule(() => import( - /* @vite-ignore */ - name - )); -} -const moduleRunner = { - isBrowser: true, - import: (id) => { - if (id[0] === "/" || id[1] === ":") { - return importFs(id); - } - return importId(id); - } -}; -function getConfig() { - return (/* @__PURE__ */ getBrowserState()).config; -} -// @__NO_SIDE_EFFECTS__ -function getBrowserState() { - return window.__vitest_browser_runner__; -} -// @__NO_SIDE_EFFECTS__ -function getWorkerState() { - const state = window.__vitest_worker__; - if (!state) { - throw new Error("Worker state is not found. This is an issue with Vitest. Please, open an issue."); - } - return state; -} -export { - getConfig as a, - generateFileHash as b, - resolve as c, - getWorkerState as d, - getTestName as e, - getBrowserState as g, - moduleRunner as m, - relative as r -}; diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/error-catcher.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/error-catcher.js deleted file mode 100644 index e5900b3..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/error-catcher.js +++ /dev/null @@ -1,82 +0,0 @@ -import { client } from '@vitest/browser/client' - -function serializeError(unhandledError) { - const state = globalThis.__vitest_worker__ - const VITEST_TEST_NAME = state && state.current && state.current.type === 'test' - ? state.current.name - : undefined - const VITEST_TEST_PATH = state && state.filepath ? state.filepath : undefined - - if (typeof unhandledError !== 'object' || !unhandledError) { - return { - message: String(unhandledError), - VITEST_TEST_NAME, - VITEST_TEST_PATH, - } - } - - return { - name: unhandledError.name, - message: unhandledError.message, - stack: String(unhandledError.stack), - VITEST_TEST_NAME, - VITEST_TEST_PATH, - } -} - -function catchWindowErrors(errorEvent, prop, cb) { - let userErrorListenerCount = 0 - function throwUnhandlerError(e) { - if (userErrorListenerCount === 0 && e[prop] != null) { - cb(e) - } - else { - // `ErrorEvent` doesn't necessary have `ErrotEvent.error` defined - // but some has `ErrorEvent.message` defined, e.g. ResizeObserver error. - // https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/error - // https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver#observation_errors - console.error(e.message ? new Error(e.message) : e) - } - } - const addEventListener = window.addEventListener.bind(window) - const removeEventListener = window.removeEventListener.bind(window) - window.addEventListener(errorEvent, throwUnhandlerError) - window.addEventListener = function (...args) { - if (args[0] === errorEvent) { - userErrorListenerCount++ - } - return addEventListener.apply(this, args) - } - window.removeEventListener = function (...args) { - if (args[0] === errorEvent && userErrorListenerCount) { - userErrorListenerCount-- - } - return removeEventListener.apply(this, args) - } - return function clearErrorHandlers() { - window.removeEventListener(errorEvent, throwUnhandlerError) - } -} - -function registerUnexpectedErrors() { - const offError = catchWindowErrors('error', 'error', event => - reportUnexpectedError('Error', event.error)) - const offRejection = catchWindowErrors('unhandledrejection', 'reason', event => - reportUnexpectedError('Unhandled Rejection', event.reason)) - return () => { - offError() - offRejection() - } -} - -async function reportUnexpectedError( - type, - error, -) { - const processedError = serializeError(error) - await client.waitForConnection().then(() => { - return client.rpc.onUnhandledError(processedError, type) - }).catch(console.error) -} - -globalThis.__vitest_browser_runner__.disposeExceptionTracker = registerUnexpectedErrors() diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/esm-client-injector.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/esm-client-injector.js deleted file mode 100644 index def79a2..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/esm-client-injector.js +++ /dev/null @@ -1,67 +0,0 @@ -(() => { - function wrapModule(moduleCallback) { - if (typeof moduleCallback !== "function") { - return moduleCallback - } - - if (typeof __vitest_mocker__ === "undefined" || typeof __vitest_worker__ === 'undefined') { - return moduleCallback() - } - - const { evaluatedModules } = __vitest_worker__ - const moduleId = `${Math.random()}` - const viteModule = evaluatedModules.ensureModule(moduleId, moduleId) - - viteModule.evaluated = false - viteModule.promise = new Promise((resolve, reject) => { - __vitest_mocker__.prepare().finally(() => { - moduleCallback().then(resolve, reject) - }); - }); - return viteModule.promise.finally(() => { - viteModule.evaluated = true - viteModule.promise = undefined - - evaluatedModules.idToModuleMap.delete(viteModule.id) - evaluatedModules.fileToModulesMap.delete(viteModule.file) - evaluatedModules.urlToIdModuleMap.delete(viteModule.url) - }); - } - - window.__vitest_browser_runner__ = { - wrapModule, - wrapDynamicImport: wrapModule, - disposeExceptionTracker: () => {}, - cleanups: [], - config: { __VITEST_CONFIG__ }, - viteConfig: { __VITEST_VITE_CONFIG__ }, - type: { __VITEST_TYPE__ }, - sessionId: { __VITEST_SESSION_ID__ }, - testerId: { __VITEST_TESTER_ID__ }, - otelCarrier: { __VITEST_OTEL_CARRIER__ }, - provider: { __VITEST_PROVIDER__ }, - method: { __VITEST_METHOD__ }, - providedContext: { __VITEST_PROVIDED_CONTEXT__ }, - }; - window.VITEST_API_TOKEN = { __VITEST_API_TOKEN__ }; - - const config = __vitest_browser_runner__.config; - - if (config.testNamePattern) - config.testNamePattern = parseRegexp(config.testNamePattern); - - function parseRegexp(input) { - // Parse input - const m = input.match(/(\/?)(.+)\1([a-z]*)/i); - - // match nothing - if (!m) return /$^/; - - // Invalid flags - if (m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3])) - return RegExp(input); - - // Create the regular expression - return new RegExp(m[2], m[3]); - } -})(); diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/favicon.svg b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/favicon.svg deleted file mode 100644 index fd9daaf..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/favicon.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/orchestrator.html b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/orchestrator.html deleted file mode 100644 index 9ec23d6..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/orchestrator.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - Vitest Browser Runner - - {__VITEST_INJECTOR__} - {__VITEST_ERROR_CATCHER__} - {__VITEST_SCRIPTS__} - - - - -
- - diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/tester/tester.html b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/tester/tester.html deleted file mode 100644 index 5c05ff8..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/client/tester/tester.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Vitest Browser Tester - - - - - - diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/context.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/context.js deleted file mode 100644 index e6e7305..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/context.js +++ /dev/null @@ -1,541 +0,0 @@ -import { __INTERNAL, stringify } from 'vitest/internal/browser'; - -function ensureAwaited(promise) { - const test = getWorkerState().current; - if (!test || test.type !== "test") { - return promise(); - } - let awaited = false; - const sourceError = new Error("STACK_TRACE_ERROR"); - test.onFinished ??= []; - test.onFinished.push(() => { - if (!awaited) { - const error = new Error(`The call was not awaited. This method is asynchronous and must be awaited; otherwise, the call will not start to avoid unhandled rejections.`); - error.stack = sourceError.stack?.replace(sourceError.message, error.message); - throw error; - } - }); - // don't even start the promise if it's not awaited to not cause any unhanded promise rejections - let promiseResult; - return { - then(onFulfilled, onRejected) { - awaited = true; - return (promiseResult ||= promise(sourceError)).then(onFulfilled, onRejected); - }, - catch(onRejected) { - return (promiseResult ||= promise(sourceError)).catch(onRejected); - }, - finally(onFinally) { - return (promiseResult ||= promise(sourceError)).finally(onFinally); - }, - [Symbol.toStringTag]: "Promise" - }; -} -/* @__NO_SIDE_EFFECTS__ */ -function getBrowserState() { - // @ts-expect-error not typed global - return window.__vitest_browser_runner__; -} -/* @__NO_SIDE_EFFECTS__ */ -function getWorkerState() { - // @ts-expect-error not typed global - const state = window.__vitest_worker__; - if (!state) { - throw new Error("Worker state is not found. This is an issue with Vitest. Please, open an issue."); - } - return state; -} - -const provider$1 = getBrowserState().provider; -/* @__NO_SIDE_EFFECTS__ */ -function convertElementToCssSelector(element) { - if (!element || !(element instanceof Element)) { - throw new Error(`Expected DOM element to be an instance of Element, received ${typeof element}`); - } - return getUniqueCssSelector(element); -} -function escapeIdForCSSSelector(id) { - return id.split("").map((char) => { - const code = char.charCodeAt(0); - if (char === " " || char === "#" || char === "." || char === ":" || char === "[" || char === "]" || char === ">" || char === "+" || char === "~" || char === "\\") { - // Escape common special characters with backslashes - return `\\${char}`; - } else if (code >= 65536) { - // Unicode escape for characters outside the BMP - return `\\${code.toString(16).toUpperCase().padStart(6, "0")} `; - } else if (code < 32 || code === 127) { - // Non-printable ASCII characters (0x00-0x1F and 0x7F) are escaped - return `\\${code.toString(16).toUpperCase().padStart(2, "0")} `; - } else if (code >= 128) { - // Non-ASCII characters (0x80 and above) are escaped - return `\\${code.toString(16).toUpperCase().padStart(2, "0")} `; - } else { - // Allowable characters are used directly - return char; - } - }).join(""); -} -function getUniqueCssSelector(el) { - const path = []; - let parent; - let hasShadowRoot = false; - // eslint-disable-next-line no-cond-assign - while (parent = getParent(el)) { - if (parent.shadowRoot) { - hasShadowRoot = true; - } - const tag = el.tagName; - if (el.id) { - path.push(`#${escapeIdForCSSSelector(el.id)}`); - } else if (!el.nextElementSibling && !el.previousElementSibling) { - path.push(tag.toLowerCase()); - } else { - let index = 0; - let sameTagSiblings = 0; - let elementIndex = 0; - for (const sibling of parent.children) { - index++; - if (sibling.tagName === tag) { - sameTagSiblings++; - } - if (sibling === el) { - elementIndex = index; - } - } - if (sameTagSiblings > 1) { - path.push(`${tag.toLowerCase()}:nth-child(${elementIndex})`); - } else { - path.push(tag.toLowerCase()); - } - } - el = parent; - } - return `${getBrowserState().provider === "webdriverio" && hasShadowRoot ? ">>>" : ""}${path.reverse().join(" > ")}`; -} -function getParent(el) { - const parent = el.parentNode; - if (parent instanceof ShadowRoot) { - return parent.host; - } - return parent; -} -const now = Date.now; -function processTimeoutOptions(options_) { - if (options_ && options_.timeout != null || provider$1 !== "playwright") { - return options_; - } - // if there is a default action timeout, use it - if (getWorkerState().config.browser.providerOptions.actionTimeout != null) { - return options_; - } - const runner = getBrowserState().runner; - const startTime = runner._currentTaskStartTime; - // ignore timeout if this is called outside of a test - if (!startTime) { - return options_; - } - const timeout = runner._currentTaskTimeout; - if (timeout === 0 || timeout == null || timeout === Number.POSITIVE_INFINITY) { - return options_; - } - options_ = options_ || {}; - const currentTime = now(); - const endTime = startTime + timeout; - const remainingTime = endTime - currentTime; - if (remainingTime <= 0) { - return options_; - } - // give us some time to process the timeout - options_.timeout = remainingTime - 100; - return options_; -} -function convertToSelector(elementOrLocator) { - if (!elementOrLocator) { - throw new Error("Expected element or locator to be defined."); - } - if (elementOrLocator instanceof Element) { - return convertElementToCssSelector(elementOrLocator); - } - if (isLocator(elementOrLocator)) { - return elementOrLocator.selector; - } - throw new Error("Expected element or locator to be an instance of Element or Locator."); -} -const kLocator = Symbol.for("$$vitest:locator"); -function isLocator(element) { - return !!element && typeof element === "object" && kLocator in element; -} - -// this file should not import anything directly, only types and utils -// @ts-expect-error not typed global -const provider = __vitest_browser_runner__.provider; -const sessionId = getBrowserState().sessionId; -const channel = new BroadcastChannel(`vitest:${sessionId}`); -function triggerCommand(command, args, error) { - return getBrowserState().commands.triggerCommand(command, args, error); -} -function createUserEvent(__tl_user_event_base__, options) { - if (__tl_user_event_base__) { - return createPreviewUserEvent(__tl_user_event_base__, options ?? {}); - } - const keyboard = { unreleased: [] }; - // https://playwright.dev/docs/api/class-keyboard - // https://webdriver.io/docs/api/browser/keys/ - const modifier = provider === "playwright" ? "ControlOrMeta" : provider === "webdriverio" ? "Ctrl" : "Control"; - const userEvent = { - setup() { - return createUserEvent(); - }, - async cleanup() { - // avoid cleanup rpc call if there is nothing to cleanup - if (!keyboard.unreleased.length) { - return; - } - return ensureAwaited(async (error) => { - await triggerCommand("__vitest_cleanup", [keyboard], error); - keyboard.unreleased = []; - }); - }, - click(element, options) { - return convertToLocator(element).click(options); - }, - dblClick(element, options) { - return convertToLocator(element).dblClick(options); - }, - tripleClick(element, options) { - return convertToLocator(element).tripleClick(options); - }, - selectOptions(element, value, options) { - return convertToLocator(element).selectOptions(value, options); - }, - clear(element, options) { - return convertToLocator(element).clear(options); - }, - hover(element, options) { - return convertToLocator(element).hover(options); - }, - unhover(element, options) { - return convertToLocator(element).unhover(options); - }, - upload(element, files, options) { - return convertToLocator(element).upload(files, options); - }, - fill(element, text, options) { - return convertToLocator(element).fill(text, options); - }, - dragAndDrop(source, target, options) { - const sourceLocator = convertToLocator(source); - const targetLocator = convertToLocator(target); - return sourceLocator.dropTo(targetLocator, options); - }, - async type(element, text, options) { - return ensureAwaited(async (error) => { - const selector = convertToSelector(element); - const { unreleased } = await triggerCommand("__vitest_type", [ - selector, - text, - { - ...options, - unreleased: keyboard.unreleased - } - ], error); - keyboard.unreleased = unreleased; - }); - }, - tab(options = {}) { - return ensureAwaited((error) => triggerCommand("__vitest_tab", [options], error)); - }, - async keyboard(text) { - return ensureAwaited(async (error) => { - const { unreleased } = await triggerCommand("__vitest_keyboard", [text, keyboard], error); - keyboard.unreleased = unreleased; - }); - }, - async copy() { - await userEvent.keyboard(`{${modifier}>}{c}{/${modifier}}`); - }, - async cut() { - await userEvent.keyboard(`{${modifier}>}{x}{/${modifier}}`); - }, - async paste() { - await userEvent.keyboard(`{${modifier}>}{v}{/${modifier}}`); - } - }; - return userEvent; -} -function createPreviewUserEvent(userEventBase, options) { - let userEvent = userEventBase.setup(options); - let clipboardData; - function toElement(element) { - return element instanceof Element ? element : element.element(); - } - const vitestUserEvent = { - setup(options) { - return createPreviewUserEvent(userEventBase, options); - }, - async cleanup() { - userEvent = userEventBase.setup(options ?? {}); - }, - async click(element) { - await userEvent.click(toElement(element)); - }, - async dblClick(element) { - await userEvent.dblClick(toElement(element)); - }, - async tripleClick(element) { - await userEvent.tripleClick(toElement(element)); - }, - async selectOptions(element, value) { - const options = (Array.isArray(value) ? value : [value]).map((option) => { - if (typeof option !== "string") { - return toElement(option); - } - return option; - }); - await userEvent.selectOptions(toElement(element), options); - }, - async clear(element) { - await userEvent.clear(toElement(element)); - }, - async hover(element) { - await userEvent.hover(toElement(element)); - }, - async unhover(element) { - await userEvent.unhover(toElement(element)); - }, - async upload(element, files) { - const uploadPromise = (Array.isArray(files) ? files : [files]).map(async (file) => { - if (typeof file !== "string") { - return file; - } - const { content: base64, basename, mime } = await triggerCommand("__vitest_fileInfo", [file, "base64"]); - const fileInstance = fetch(`data:${mime};base64,${base64}`).then((r) => r.blob()).then((blob) => new File([blob], basename, { type: mime })); - return fileInstance; - }); - const uploadFiles = await Promise.all(uploadPromise); - return userEvent.upload(toElement(element), uploadFiles); - }, - async fill(element, text) { - await userEvent.clear(toElement(element)); - return userEvent.type(toElement(element), text); - }, - async dragAndDrop() { - throw new Error(`The "preview" provider doesn't support 'userEvent.dragAndDrop'`); - }, - async type(element, text, options) { - await userEvent.type(toElement(element), text, options); - }, - async tab(options) { - await userEvent.tab(options); - }, - async keyboard(text) { - await userEvent.keyboard(text); - }, - async copy() { - clipboardData = await userEvent.copy(); - }, - async cut() { - clipboardData = await userEvent.cut(); - }, - async paste() { - await userEvent.paste(clipboardData); - } - }; - for (const [name, fn] of Object.entries(vitestUserEvent)) { - if (name !== "setup") { - vitestUserEvent[name] = function(...args) { - return ensureAwaited(() => fn.apply(this, args)); - }; - } - } - return vitestUserEvent; -} -function cdp() { - return getBrowserState().cdp; -} -const screenshotIds = {}; -const page = { - viewport(width, height) { - const id = getBrowserState().iframeId; - channel.postMessage({ - event: "viewport", - width, - height, - iframeId: id - }); - return new Promise((resolve, reject) => { - channel.addEventListener("message", function handler(e) { - if (e.data.event === "viewport:done" && e.data.iframeId === id) { - channel.removeEventListener("message", handler); - resolve(); - } - if (e.data.event === "viewport:fail" && e.data.iframeId === id) { - channel.removeEventListener("message", handler); - reject(new Error(e.data.error)); - } - }); - }); - }, - async screenshot(options = {}) { - const currentTest = getWorkerState().current; - if (!currentTest) { - throw new Error("Cannot take a screenshot outside of a test."); - } - if (currentTest.concurrent) { - throw new Error("Cannot take a screenshot in a concurrent test because " + "concurrent tests run at the same time in the same iframe and affect each other's environment. " + "Use a non-concurrent test to take a screenshot."); - } - const repeatCount = currentTest.result?.repeatCount ?? 0; - const taskName = getTaskFullName(currentTest); - const number = screenshotIds[repeatCount]?.[taskName] ?? 1; - screenshotIds[repeatCount] ??= {}; - screenshotIds[repeatCount][taskName] = number + 1; - const name = options.path || `${taskName.replace(/[^a-z0-9]/gi, "-")}-${number}.png`; - const normalizedOptions = "mask" in options ? { - ...options, - mask: options.mask.map(convertToSelector) - } : options; - return ensureAwaited((error) => triggerCommand("__vitest_screenshot", [name, processTimeoutOptions( - { - ...normalizedOptions, - element: options.element ? convertToSelector(options.element) : undefined - } - /** TODO */ - )], error)); - }, - getByRole() { - throw new Error(`Method "getByRole" is not supported by the "${provider}" provider.`); - }, - getByLabelText() { - throw new Error(`Method "getByLabelText" is not supported by the "${provider}" provider.`); - }, - getByTestId() { - throw new Error(`Method "getByTestId" is not supported by the "${provider}" provider.`); - }, - getByAltText() { - throw new Error(`Method "getByAltText" is not supported by the "${provider}" provider.`); - }, - getByPlaceholder() { - throw new Error(`Method "getByPlaceholder" is not supported by the "${provider}" provider.`); - }, - getByText() { - throw new Error(`Method "getByText" is not supported by the "${provider}" provider.`); - }, - getByTitle() { - throw new Error(`Method "getByTitle" is not supported by the "${provider}" provider.`); - }, - elementLocator() { - throw new Error(`Method "elementLocator" is not supported by the "${provider}" provider.`); - }, - frameLocator() { - throw new Error(`Method "frameLocator" is not supported by the "${provider}" provider.`); - }, - extend(methods) { - for (const key in methods) { - page[key] = methods[key].bind(page); - } - return page; - } -}; -function convertToLocator(element) { - if (element instanceof Element) { - return page.elementLocator(element); - } - return element; -} -function getTaskFullName(task) { - return task.suite ? `${getTaskFullName(task.suite)} ${task.name}` : task.name; -} -const locators = { - createElementLocators: getElementLocatorSelectors, - extend(methods) { - const Locator = __INTERNAL._createLocator("css=body").constructor; - for (const method in methods) { - __INTERNAL._extendedMethods.add(method); - const cb = methods[method]; - // @ts-expect-error types are hard to make work - Locator.prototype[method] = function(...args) { - const selectorOrLocator = cb.call(this, ...args); - if (typeof selectorOrLocator === "string") { - return this.locator(selectorOrLocator); - } - return selectorOrLocator; - }; - page[method] = function(...args) { - const selectorOrLocator = cb.call(this, ...args); - if (typeof selectorOrLocator === "string") { - return __INTERNAL._createLocator(selectorOrLocator); - } - return selectorOrLocator; - }; - } - } -}; -function getElementLocatorSelectors(element) { - const locator = page.elementLocator(element); - return { - getByAltText: (altText, options) => locator.getByAltText(altText, options), - getByLabelText: (labelText, options) => locator.getByLabelText(labelText, options), - getByPlaceholder: (placeholderText, options) => locator.getByPlaceholder(placeholderText, options), - getByRole: (role, options) => locator.getByRole(role, options), - getByTestId: (testId) => locator.getByTestId(testId), - getByText: (text, options) => locator.getByText(text, options), - getByTitle: (title, options) => locator.getByTitle(title, options), - ...Array.from(__INTERNAL._extendedMethods).reduce((methods, method) => { - methods[method] = (...args) => locator[method](...args); - return methods; - }, {}) - }; -} -let defaultOptions; -function debug(el, maxLength, options) { - if (Array.isArray(el)) { - // eslint-disable-next-line no-console - el.forEach((e) => console.log(prettyDOM(e, maxLength, options))); - } else { - // eslint-disable-next-line no-console - console.log(prettyDOM(el, maxLength, options)); - } -} -function prettyDOM(dom, maxLength = Number(defaultOptions?.maxLength ?? import.meta.env.DEBUG_PRINT_LIMIT ?? 7e3), prettyFormatOptions = {}) { - if (maxLength === 0) { - return ""; - } - if (!dom) { - dom = document.body; - } - if ("element" in dom && "all" in dom) { - dom = dom.element(); - } - const type = typeof dom; - if (type !== "object" || !dom.outerHTML) { - const typeName = type === "object" ? dom.constructor.name : type; - throw new TypeError(`Expecting a valid DOM element, but got ${typeName}.`); - } - const pretty = stringify(dom, Number.POSITIVE_INFINITY, { - maxLength, - highlight: true, - ...defaultOptions, - ...prettyFormatOptions - }); - return dom.outerHTML.length > maxLength ? `${pretty.slice(0, maxLength)}...` : pretty; -} -function getElementError(selector, container) { - const error = new Error(`Cannot find element with locator: ${__INTERNAL._asLocator("javascript", selector)}\n\n${prettyDOM(container)}`); - error.name = "VitestBrowserElementError"; - return error; -} -/** -* @experimental -*/ -function configurePrettyDOM(options) { - defaultOptions = options; -} -const utils = { - getElementError, - prettyDOM, - debug, - getElementLocatorSelectors, - configurePrettyDOM -}; - -export { cdp, createUserEvent, locators, page, utils }; diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/expect-element.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/expect-element.js deleted file mode 100644 index 81d2cbc..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/expect-element.js +++ /dev/null @@ -1,27 +0,0 @@ -import{recordArtifact,expect,chai}from"vitest";import{getType}from"vitest/internal/browser";import{k as kAriaCheckedRoles,L as Locator,g as getAriaChecked,a as getAriaRole,b as getAriaDisabled,c as beginAriaCaches,e as endAriaCaches,i as isElementVisible$1,d as getElementAccessibleDescription,f as getElementAccessibleErrorMessage,h as getElementAccessibleName,j as cssEscape,l as convertToSelector,m as getBrowserState,p as processTimeoutOptions}from"./index-D6m36C6U.js";import{server}from"vitest/browser";function getAriaCheckedRoles(){return[...kAriaCheckedRoles]}function queryElementFromUserInput(_,K,q){return _ instanceof Locator&&(_=_.query()),_==null?null:getElementFromUserInput(_,K,q)}function getElementFromUserInput(_,K,q){_ instanceof Locator&&(_=_.element());let J=_?.ownerDocument?.defaultView||window;if(_ instanceof J.HTMLElement||_ instanceof J.SVGElement)return _;throw new UserInputElementTypeError(_,K,q)}function getNodeFromUserInput(_,K,q){_ instanceof Locator&&(_=_.element());let J=_.ownerDocument?.defaultView||window;if(_ instanceof J.Node)return _;throw new UserInputNodeTypeError(_,K,q)}function getMessage(_,K,q,J,Y,X){return[`${K}\n`,`${q}:\n${_.utils.EXPECTED_COLOR(redent(display(_,J),2))}`,`${Y}:\n${_.utils.RECEIVED_COLOR(redent(display(_,X),2))}`].join(` -`)}function redent(_,K){return indentString(stripIndent(_),K)}function indentString(_,K){return _.replace(/^(?!\s*$)/gm,` `.repeat(K))}function minIndent(_){let K=_.match(/^[ \t]*(?=\S)/gm);return K?K.reduce((_,K)=>Math.min(_,K.length),1/0):0}function stripIndent(_){let K=minIndent(_);if(K===0)return _;let q=RegExp(`^[ \\t]{${K}}`,`gm`);return _.replace(q,``)}function display(_,K){return typeof K==`string`?K:_.utils.stringify(K)}function toSentence(_,{wordConnector:K=`, `,lastWordConnector:q=` and `}={}){return[_.slice(0,-1).join(K),_.at(-1)].join(_.length>1?q:``)}class GenericTypeError extends Error{constructor(_,K,q,J){super(),Error.captureStackTrace&&Error.captureStackTrace(this,q);let Y=``;try{Y=J.utils.printWithType(`Received`,K,J.utils.printReceived)}catch{}this.message=[J.utils.matcherHint(`${J.isNot?`.not`:``}.${q.name}`,`received`,``),``,`${J.utils.RECEIVED_COLOR(`received`)} value must ${_} or a Locator that returns ${_}.`,Y].join(` -`)}}class UserInputElementTypeError extends GenericTypeError{constructor(_,K,q){super(`an HTMLElement or an SVGElement`,_,K,q)}}class UserInputNodeTypeError extends GenericTypeError{constructor(_,K,q){super(`a Node`,_,K,q)}}function getTag(_){return _ instanceof HTMLFormElement?`FORM`:_.tagName.toUpperCase()}function isInputElement(_){return getTag(_)===`INPUT`}function getSingleElementValue(_){if(_)switch(getTag(_)){case`INPUT`:return getInputValue(_);case`SELECT`:return getSelectValue(_);default:return _.value??getAccessibleValue(_)}}function getSelectValue({multiple:_,options:K}){let q=[...K].filter(_=>_.selected);if(_)return[...q].map(_=>_.value);if(q.length!==0)return q[0].value}function getInputValue(_){switch(_.type){case`number`:return _.value===``?null:Number(_.value);case`checkbox`:return _.checked;default:return _.value}}const rolesSupportingValues=[`meter`,`progressbar`,`slider`,`spinbutton`];function getAccessibleValue(_){if(rolesSupportingValues.includes(_.getAttribute(`role`)||``))return Number(_.getAttribute(`aria-valuenow`))}function normalize(_){return _.replace(/\s+/g,` `).trim()}function matches(_,K){return K instanceof RegExp?K.test(_):_.includes(String(K))}function arrayAsSetComparison(_,K){if(Array.isArray(_)&&Array.isArray(K)){let q=new Set(K);for(let K of new Set(_))if(!q.has(K))return!1;return!0}}const supportedRoles=getAriaCheckedRoles();function toBeChecked(_){let K=getElementFromUserInput(_,toBeChecked,this);if(!(()=>isInputElement(K)&&[`checkbox`,`radio`].includes(K.type))()&&!(()=>supportedRoles.includes(getAriaRole(K)||``)&&[`true`,`false`].includes(K.getAttribute(`aria-checked`)||``))())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let q=getAriaChecked(K)===!0;return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${_} checked:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function supportedRolesSentence(){return toSentence(supportedRoles.map(_=>`role="${_}"`),{lastWordConnector:` or `})}function toBeEmptyDOMElement(_){let K=getElementFromUserInput(_,toBeEmptyDOMElement,this);return{pass:isEmptyElement(K),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmptyDOMElement`,`element`,``),``,`Received:`,` ${this.utils.printReceived(K.innerHTML)}`].join(` -`)}}function isEmptyElement(_){return[..._.childNodes].filter(_=>_.nodeType!==Node.COMMENT_NODE).length===0}function toBeDisabled(_){let K=getElementFromUserInput(_,toBeDisabled,this),q=isElementDisabled(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeDisabled`,`element`,``),``,`Received element ${_} disabled:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function toBeEnabled(_){let K=getElementFromUserInput(_,toBeEnabled,this),q=isElementDisabled(K);return{pass:!q,message:()=>{let _=q?`is not`:`is`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEnabled`,`element`,``),``,`Received element ${_} enabled:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function isElementDisabled(_){return getTag(_).includes(`-`)?_.hasAttribute(`disabled`):getAriaDisabled(_)}function toBeInTheDocument(_){let K=null;(_!==null||!this.isNot)&&(K=queryElementFromUserInput(_,toBeInTheDocument,this));let q=K===null?!1:K.ownerDocument===K.getRootNode({composed:!0}),J=()=>`expected document not to contain element, found ${this.utils.stringify(K?.cloneNode(!0))} instead`,Y=()=>`element could not be found in the document`;return{pass:q,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInTheDocument`,`element`,``),``,this.utils.RECEIVED_COLOR(this.isNot?J():Y())].join(` -`)}}const FORM_TAGS$1=[`FORM`,`INPUT`,`SELECT`,`TEXTAREA`];function isElementHavingAriaInvalid(_){return _.hasAttribute(`aria-invalid`)&&_.getAttribute(`aria-invalid`)!==`false`}function isSupportsValidityMethod(_){return FORM_TAGS$1.includes(getTag(_))}function isElementInvalid(_){let K=isElementHavingAriaInvalid(_);return isSupportsValidityMethod(_)?K||!_.checkValidity():K}function toBeInvalid(_){let K=getElementFromUserInput(_,toBeInvalid,this),q=isElementInvalid(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInvalid`,`element`,``),``,`Received element ${_} currently invalid:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function toBeValid(_){let K=getElementFromUserInput(_,toBeInvalid,this),q=!isElementInvalid(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeValid`,`element`,``),``,`Received element ${_} currently valid:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function toBeInViewport(_,K){let q=getElementFromUserInput(_,toBeInViewport,this),J=K?.ratio??0;return getViewportIntersection(q,J).then(({pass:_,ratio:K})=>({pass:_,message:()=>{let Y=_?`is`:`is not`,X=J>0?` with ratio ${J}`:``,Z=K===void 0?``:` (actual ratio: ${K.toFixed(3)})`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInViewport`,`element`,``),``,`Received element ${Y} in viewport${X}${Z}:`,` ${this.utils.printReceived(q.cloneNode(!1))}`].join(` -`)}}))}async function getViewportIntersection(_,K){let q=await new Promise(K=>{let q=new IntersectionObserver(_=>{_.length>0?K(_[0].intersectionRatio):K(0),q.disconnect()});q.observe(_),requestAnimationFrame(()=>{})});return{pass:q>0&&q>K-1e-9,ratio:q}}function toBePartiallyChecked(_){let K=getElementFromUserInput(_,toBePartiallyChecked,this);if(!(()=>isInputElement(K)&&K.type===`checkbox`)()&&!(()=>K.getAttribute(`role`)===`checkbox`)())return{pass:!1,message:()=>`only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead`};let q=isAriaMixed(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyChecked`,`element`,``),``,`Received element ${_} partially checked:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function isAriaMixed(_){let K=getAriaChecked(_)===`mixed`;return!K&&isInputElement(_)&&[`checkbox`,`radio`].includes(_.type)&&_.getAttribute(`aria-checked`)===`mixed`?!0:K}const FORM_TAGS=[`SELECT`,`TEXTAREA`],ARIA_FORM_TAGS=[`INPUT`,`SELECT`,`TEXTAREA`],UNSUPPORTED_INPUT_TYPES=[`color`,`hidden`,`range`,`submit`,`image`,`reset`],SUPPORTED_ARIA_ROLES=[`checkbox`,`combobox`,`gridcell`,`listbox`,`radiogroup`,`spinbutton`,`textbox`,`tree`];function isRequiredOnFormTagsExceptInput(_){return FORM_TAGS.includes(getTag(_))&&_.hasAttribute(`required`)}function isRequiredOnSupportedInput(_){return getTag(_)===`INPUT`&&_.hasAttribute(`required`)&&(_.hasAttribute(`type`)&&!UNSUPPORTED_INPUT_TYPES.includes(_.getAttribute(`type`)||``)||!_.hasAttribute(`type`))}function isElementRequiredByARIA(_){return _.hasAttribute(`aria-required`)&&_.getAttribute(`aria-required`)===`true`&&(ARIA_FORM_TAGS.includes(getTag(_))||_.hasAttribute(`role`)&&SUPPORTED_ARIA_ROLES.includes(_.getAttribute(`role`)||``))}function toBeRequired(_){let K=getElementFromUserInput(_,toBeRequired,this),q=isRequiredOnFormTagsExceptInput(K)||isRequiredOnSupportedInput(K)||isElementRequiredByARIA(K);return{pass:q,message:()=>{let _=q?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeRequired`,`element`,``),``,`Received element ${_} required:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function toBeVisible(_){let K=getElementFromUserInput(_,toBeVisible,this),q=K.ownerDocument===K.getRootNode({composed:!0});beginAriaCaches();let J=q&&isElementVisible(K);return endAriaCaches(),{pass:J,message:()=>{let _=J?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeVisible`,`element`,``),``,`Received element ${_} visible${q?``:` (element is not in the document)`}:`,` ${this.utils.printReceived(K.cloneNode(!1))}`].join(` -`)}}}function isElementVisible(_){let K=isElementVisible$1(_);if(server.browser!==`webkit`)return K;let q=_.closest(`details`);return!q||_===q?K:isElementVisibleInDetails(_)}function isElementVisibleInDetails(_){let K=_;for(;K;){if(K.tagName===`DETAILS`){let q=K.querySelector(`summary`)===_;if(!K.open&&!q)return!1}K=K.parentElement}return _.offsetParent!==null}function toContainElement(_,K){let q=getElementFromUserInput(_,toContainElement,this),J=K===null?null:getElementFromUserInput(K,toContainElement,this);return{pass:q.contains(J),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toContainElement`,`element`,`element`),``,this.utils.RECEIVED_COLOR(`${this.utils.stringify(q.cloneNode(!1))} ${this.isNot?`contains:`:`does not contain:`} ${this.utils.stringify(J?J.cloneNode(!1):null)} - `)].join(` -`)}}function getNormalizedHtml(_,K){let q=_.ownerDocument.createElement(`div`);return q.innerHTML=K,q.innerHTML}function toContainHTML(_,K){let q=getElementFromUserInput(_,toContainHTML,this);if(typeof K!=`string`)throw TypeError(`.toContainHTML() expects a string value, got ${K}`);return{pass:q.outerHTML.includes(getNormalizedHtml(q,K)),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toContainHTML`,`element`,``),`Expected:`,` ${this.utils.EXPECTED_COLOR(K)}`,`Received:`,` ${this.utils.printReceived(q.cloneNode(!0))}`].join(` -`)}}function toHaveAccessibleDescription(_,K){let q=getElementFromUserInput(_,toHaveAccessibleDescription,this),J=getElementAccessibleDescription(q,!1),Y=q.ownerDocument.defaultView||window,X=arguments.length===1,Z=!1;return Z=X?J!==``:K instanceof Y.RegExp?K.test(J):this.equals(J,K,this.customTesters),{pass:Z,message:()=>{let _=this.isNot?`not to`:`to`;return getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveAccessibleDescription`,`element`,``),`Expected element ${_} have accessible description`,K,`Received`,J)}}}function toHaveAccessibleErrorMessage(_,K){let q=getElementFromUserInput(_,toHaveAccessibleErrorMessage,this),J=getElementAccessibleErrorMessage(q)??``,Y=q.ownerDocument.defaultView||window,X=arguments.length===1,Z=!1;return Z=X?J!==``:K instanceof Y.RegExp?K.test(J):this.equals(J,K,this.customTesters),{pass:Z,message:()=>{let _=this.isNot?`not to`:`to`;return K==null?[this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveAccessibleErrorMessage`,`element`,``),`Expected element ${_} have accessible error message, but got${this.isNot?``:` nothing`}`,this.isNot?this.utils.RECEIVED_COLOR(redent(J,2)):``].filter(Boolean).join(` - -`):getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveAccessibleErrorMessage`,`element`,``),`Expected element ${_} have accessible error message`,K,`Received`,J)}}}function toHaveAccessibleName(_,K){let q=getElementFromUserInput(_,toHaveAccessibleName,this),J=getElementAccessibleName(q,!1),Y=arguments.length===1,X=q.ownerDocument.defaultView||window,Z=!1;return Z=Y?J!==``:K instanceof X.RegExp?K.test(J):this.equals(J,K,this.customTesters),{pass:Z,message:()=>{let _=this.isNot?`not to`:`to`;return getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${toHaveAccessibleName.name}`,`element`,``),`Expected element ${_} have accessible name`,K,`Received`,J)}}}function toHaveAttribute(_,K,q){let J=getElementFromUserInput(_,toHaveAttribute,this),Y=q!==void 0,X=J.hasAttribute(K),Z=J.getAttribute(K);return{pass:Y?X&&this.equals(Z,q,this.customTesters):X,message:()=>{let _=this.isNot?`not to`:`to`,J=X?printAttribute(this.utils.stringify,K,Z):null,Q=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveAttribute`,`element`,this.utils.printExpected(K),{secondArgument:Y?this.utils.printExpected(q):void 0,comment:getAttributeComment(this.utils.stringify,K,q)});return getMessage(this,Q,`Expected the element ${_} have attribute`,printAttribute(this.utils.stringify,K,q),`Received`,J)}}}function printAttribute(_,K,q){return q===void 0?K:`${K}=${_(q)}`}function getAttributeComment(_,K,q){return q===void 0?`element.hasAttribute(${_(K)})`:`element.getAttribute(${_(K)}) === ${_(q)}`}function toHaveClass(_,...K){let q=getElementFromUserInput(_,toHaveClass,this),{expectedClassNames:J,options:Y}=getExpectedClassNamesAndOptions(K),X=splitClassNames(q.getAttribute(`class`)),Z=J.reduce((_,K)=>_.concat(typeof K==`string`||!K?splitClassNames(K):K),[]),Q=Z.some(_=>_ instanceof RegExp);if(Y.exact&&Q)throw Error(`Exact option does not support RegExp expected class names`);return Y.exact?{pass:isSubset$1(Z,X)&&Z.length===X.length,message:()=>{let _=this.isNot?`not to`:`to`;return getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(Z.join(` `))),`Expected the element ${_} have EXACTLY defined classes`,Z.join(` `),`Received`,X.join(` `))}}:Z.length>0?{pass:isSubset$1(Z,X),message:()=>{let _=this.isNot?`not to`:`to`;return getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(Z.join(` `))),`Expected the element ${_} have class`,Z.join(` `),`Received`,X.join(` `))}}:{pass:this.isNot?X.length>0:!1,message:()=>this.isNot?getMessage(this,this.utils.matcherHint(`.not.toHaveClass`,`element`,``),`Expected the element to have classes`,`(none)`,`Received`,X.join(` `)):[this.utils.matcherHint(`.toHaveClass`,`element`),`At least one expected class must be provided.`].join(` -`)}}function getExpectedClassNamesAndOptions(_){let K=_.pop(),q,J;return typeof K==`object`&&!(K instanceof RegExp)?(q=_,J=K):(q=_.concat(K),J={exact:!1}),{expectedClassNames:q,options:J}}function splitClassNames(_){return _?_.split(/\s+/).filter(_=>_.length>0):[]}function isSubset$1(_,K){return _.every(_=>typeof _==`string`?K.includes(_):K.some(K=>_.test(K)))}function toHaveDisplayValue(_,K){let q=getElementFromUserInput(_,toHaveDisplayValue,this),J=getTag(q);if(![`SELECT`,`INPUT`,`TEXTAREA`].includes(J))throw Error(`.toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.`);if(isInputElement(q)&&[`radio`,`checkbox`].includes(q.type))throw Error(`.toHaveDisplayValue() currently does not support input[type="${q.type}"], try with another matcher instead.`);let Y=getValues(J,q),X=getExpectedValues(K),Z=X.filter(_=>Y.some(K=>_ instanceof RegExp?_.test(K):this.equals(K,String(_),this.customTesters))).length,Q=Z===Y.length,$=Z===X.length;return{pass:Q&&$,message:()=>getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveDisplayValue`,`element`,``),`Expected element ${this.isNot?`not `:``}to have display value`,K,`Received`,Y)}}function getValues(_,K){return _===`SELECT`?Array.from(K).filter(_=>_.selected).map(_=>_.textContent||``):[K.value]}function getExpectedValues(_){return Array.isArray(_)?_:[_]}function toHaveFocus(_){let K=getElementFromUserInput(_,toHaveFocus,this);return{pass:K.ownerDocument.activeElement===K,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveFocus`,`element`,``),``,...this.isNot?[`Received element is focused:`,` ${this.utils.printReceived(K)}`]:[`Expected element with focus:`,` ${this.utils.printExpected(K)}`,`Received element with focus:`,` ${this.utils.printReceived(K.ownerDocument.activeElement)}`]].join(` -`)}}function toHaveFormValues(_,K){let q=getElementFromUserInput(_,toHaveFormValues,this),J=q.ownerDocument.defaultView||window;if(!(q instanceof J.HTMLFieldSetElement)&&!(q instanceof J.HTMLFormElement))throw TypeError(`toHaveFormValues must be called on a form or a fieldset, instead got ${getTag(q)}`);if(!K||typeof K!=`object`)throw TypeError(`toHaveFormValues must be called with an object of expected form values. Got ${K}`);let Y=getAllFormValues(q);return{pass:Object.entries(K).every(([_,K])=>this.equals(Y[_],K,[arrayAsSetComparison,...this.customTesters])),message:()=>{let _=this.isNot?`not to`:`to`,q=`${this.isNot?`.not`:``}.toHaveFormValues`,J={};for(let _ in Y)Object.hasOwn(K,_)&&(J[_]=Y[_]);return[this.utils.matcherHint(q,`element`,``),`Expected the element ${_} have form values`,this.utils.diff(K,J)].join(` - -`)}}}function getMultiElementValue(_){let K=``;for(let q of _){if(K&&K!==q.type)throw Error(`Multiple form elements with the same name must be of the same type`);K=q.type}switch(K){case`radio`:{let K=_.find(_=>_.checked);return K?K.value:void 0}case`checkbox`:return _.filter(_=>_.checked).map(_=>_.value);default:return _.map(_=>_.value)}}function getFormValue(_,K){let q=[..._.querySelectorAll(`[name="${cssEscape(K)}"]`)];if(q.length!==0)switch(q.length){case 1:return getSingleElementValue(q[0]);default:return getMultiElementValue(q)}}function getPureName(_){return/\[\]$/.test(_)?_.slice(0,-2):_}function getAllFormValues(_){let K={};for(let q of _.elements){if(!(`name`in q))continue;let J=q.name;K[getPureName(J)]=getFormValue(_,J)}return K}function toHaveRole(_,K){let q=getElementFromUserInput(_,toHaveRole,this);beginAriaCaches();let J=getAriaRole(q);return endAriaCaches(),{pass:J===K,message:()=>{let _=this.isNot?`not to`:`to`;return getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveRole`,`element`,``),`Expected element ${_} have role`,K,`Received`,J)}}}function toHaveSelection(_,K){let q=getElementFromUserInput(_,toHaveSelection,this),J=K!==void 0;if(J&&typeof K!=`string`)throw Error(`expected selection must be a string or undefined`);let Y=getSelection(q);return{pass:J?this.equals(Y,K,[arrayAsSetComparison,...this.customTesters]):!!Y,message:()=>{let _=this.isNot?`not to`:`to`,q=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveSelection`,`element`,K);return getMessage(this,q,`Expected the element ${_} have selection`,J?K:`(any)`,`Received`,Y)}}}function getSelection(_){let K=_.ownerDocument.getSelection();if(!K)return``;if([`INPUT`,`TEXTAREA`].includes(getTag(_))){let K=_;return[`radio`,`checkbox`].includes(K.type)||K.selectionStart==null||K.selectionEnd==null?``:K.value.toString().substring(K.selectionStart,K.selectionEnd)}if(K.anchorNode===null||K.focusNode===null)return``;let q=K.getRangeAt(0),J=_.ownerDocument.createRange();if(K.containsNode(_,!1))J.selectNodeContents(_),K.removeAllRanges(),K.addRange(J);else if(!(_.contains(K.anchorNode)&&_.contains(K.focusNode))){let Y=_===q.startContainer||_.contains(q.startContainer),X=_===q.endContainer||_.contains(q.endContainer);K.removeAllRanges(),(Y||X)&&(J.selectNodeContents(_),Y&&J.setStart(q.startContainer,q.startOffset),X&&J.setEnd(q.endContainer,q.endOffset),K.addRange(J))}let Y=K.toString();return K.removeAllRanges(),K.addRange(q),Y}const browser=server.config.browser.name,usedValuesProps=new Set(`backgroundPosition.background-position.bottom.left.right.top.height.width.margin-bottom.marginBottom.margin-left.marginLeft.margin-right.marginRight.margin-top.marginTop.min-height.minHeight.min-width.minWidth.padding-bottom.padding-left.padding-right.padding-top.text-indent.paddingBottom.paddingLeft.paddingRight.paddingTop.textIndent`.split(`.`));function toHaveStyle(_,K){let q=getElementFromUserInput(_,toHaveStyle,this),{getComputedStyle:J}=q.ownerDocument.defaultView,Y=typeof K==`object`?getStyleFromObjectCSS(K):computeCSSStyleDeclaration(K),X=J(q),Z=new Set(Array.from(q.style));return{pass:isSubset(Y,q,X,Z),message:()=>{let _=`${this.isNot?`.not`:``}.toHaveStyle`,K=new Set(Object.keys(Y)),J=printoutObjectStyles(Array.from(X).filter(_=>K.has(_)).reduce((_,K)=>(_[K]=(Z.has(K)&&usedValuesProps.has(K)?q.style:X)[K],_),{})),Q=J===``?`Expected styles could not be parsed by the browser. Did you make a typo?`:this.utils.diff(printoutObjectStyles(Y),J);return[this.utils.matcherHint(_,`element`,``),Q].join(` - -`)}}}function getStyleFromObjectCSS(_){let K=browser===`chrome`||browser===`chromium`?document:document.implementation.createHTMLDocument(``),q=K.createElement(`div`);K.body.appendChild(q);let J=Object.keys(_);J.forEach(K=>{q.style[K]=_[K]});let Y={},X=window.getComputedStyle(q);return J.forEach(_=>{let K=(usedValuesProps.has(_)?q.style:X)[_];K!=null&&(Y[_]=K)}),q.remove(),Y}function computeCSSStyleDeclaration(_){let K=browser===`chrome`||browser===`chromium`||browser===`webkit`?document:document.implementation.createHTMLDocument(``),q=K.createElement(`div`);q.setAttribute(`style`,_.replace(/\n/g,``)),K.body.appendChild(q);let J=window.getComputedStyle(q),Y=Array.from(q.style).reduce((_,K)=>(_[K]=usedValuesProps.has(K)?q.style.getPropertyValue(K):J.getPropertyValue(K),_),{});return q.remove(),Y}function printoutObjectStyles(_){return Object.keys(_).sort().map(K=>`${K}: ${_[K]};`).join(` -`)}function isSubset(_,K,q,J){let Y=Object.keys(_);return Y.length?Y.every(Y=>{let X=_[Y],Z=Y.startsWith(`--`),Q=[Y];return Z||Q.push(Y.toLowerCase()),Q.some(_=>{let Z=J.has(Y)&&usedValuesProps.has(Y)?K.style:q;return Z[_]===X||Z.getPropertyValue(_)===X})}):!1}function toHaveTextContent(_,K,q={normalizeWhitespace:!0}){let J=getNodeFromUserInput(_,toHaveTextContent,this),Y=q.normalizeWhitespace?normalize(J.textContent||``):(J.textContent||``).replace(/\u00A0/g,` `),X=Y!==``&&K===``;return{pass:!X&&matches(Y,K),message:()=>{let _=this.isNot?`not to`:`to`;return getMessage(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveTextContent`,`element`,``),X?`Checking with empty string will always match, use .toBeEmptyDOMElement() instead`:`Expected element ${_} have text content`,K,`Received`,Y)}}}function toHaveValue(_,K){let q=getElementFromUserInput(_,toHaveValue,this);if(isInputElement(q)&&[`checkbox`,`radio`].includes(q.type))throw Error(`input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead`);let J=getSingleElementValue(q),Y=K!==void 0,X=K,Z=J;return K==J&&K!==J&&(X=`${K} (${typeof K})`,Z=`${J} (${typeof J})`),{pass:Y?this.equals(J,K,[arrayAsSetComparison,...this.customTesters]):!!J,message:()=>{let _=this.isNot?`not to`:`to`,q=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveValue`,`element`,K);return getMessage(this,q,`Expected the element ${_} have value`,Y?X:`(any)`,`Received`,Z)}}}const counters=new Map([]);async function toMatchScreenshot(K,q,J=typeof q==`object`?q:{}){if(this.isNot)throw Error(`'toMatchScreenshot' cannot be used with "not"`);if(this.task===void 0||this.currentTestName===void 0)throw Error(`'toMatchScreenshot' cannot be used without test context`);let Y=`${this.task.result?.repeatCount??0}${this.testPath}${this.currentTestName}`,X=counters.get(Y);X===void 0&&(X={current:0},counters.set(Y,X)),X.current+=1;let Z=typeof q==`string`?q:`${this.currentTestName} ${X.current}`,Q=J.screenshotOptions&&`mask`in J.screenshotOptions?{...J,screenshotOptions:{...J.screenshotOptions,mask:J.screenshotOptions.mask.map(convertToSelector)}}:J,$=await getBrowserState().commands.triggerCommand(`__vitest_screenshotMatcher`,[Z,this.currentTestName,{element:convertToSelector(K),...Q}]);if($.pass===!1){let K=[];$.reference&&K.push({name:`reference`,...$.reference}),$.actual&&K.push({name:`actual`,...$.actual}),$.diff&&K.push({name:`diff`,...$.diff}),K.length>0&&await recordArtifact(this.task,{type:`internal:toMatchScreenshot`,kind:`visual-regression`,message:$.message,attachments:K})}return{pass:$.pass,message:()=>$.pass?``:[this.utils.matcherHint(`toMatchScreenshot`,`element`,``),``,$.message,$.reference?`\nReference screenshot:\n ${this.utils.EXPECTED_COLOR($.reference.path)}`:null,$.actual?`\nActual screenshot:\n ${this.utils.RECEIVED_COLOR($.actual.path)}`:null,$.diff?this.utils.DIM_COLOR(`\nDiff image:\n ${$.diff.path}`):null,``].filter(_=>_!==null).join(` -`)}}const matchers={toBeDisabled,toBeEnabled,toBeEmptyDOMElement,toBeInTheDocument,toBeInViewport,toBeInvalid,toBeRequired,toBeValid,toBeVisible,toContainElement,toContainHTML,toHaveAccessibleDescription,toHaveAccessibleErrorMessage,toHaveAccessibleName,toHaveAttribute,toHaveClass,toHaveFocus,toHaveFormValues,toHaveStyle,toHaveTextContent,toHaveValue,toHaveDisplayValue,toBeChecked,toBePartiallyChecked,toHaveRole,toHaveSelection,toMatchScreenshot},kLocator=Symbol.for(`$$vitest:locator`);function element(_,Y){if(_!=null&&!(_ instanceof HTMLElement)&&!(_ instanceof SVGElement)&&!(kLocator in _))throw Error(`Invalid element or locator: ${_}. Expected an instance of HTMLElement, SVGElement or Locator, received ${getType(_)}`);let X=expect.poll(function(){if(_ instanceof Element||_==null)return _;let K=chai.util.flag(this,`negate`),J=chai.util.flag(this,`_name`);if(K&&J===`toBeInTheDocument`)return _.query();if(J===`toHaveLength`)return _.elements();if(J===`toMatchScreenshot`&&!chai.util.flag(this,`_poll.assert_once`)&&chai.util.flag(this,`_poll.assert_once`,!0),chai.util.flag(this,`_isLastPollAttempt`))return _.element();let Y=_.query();if(!Y)throw Error(`Cannot find element with locator: ${JSON.stringify(_)}`);return Y},processTimeoutOptions(Y));return chai.util.flag(X,`_poll.element`,!0),X}expect.extend(matchers),expect.element=element; diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index-D6m36C6U.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index-D6m36C6U.js deleted file mode 100644 index 82b0c24..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index-D6m36C6U.js +++ /dev/null @@ -1,6 +0,0 @@ -import{server,page,utils}from"vitest/browser";import{__INTERNAL}from"vitest/internal/browser";var __defProp=Object.defineProperty,__defNormalProp=(e,T,E)=>T in e?__defProp(e,T,{enumerable:!0,configurable:!0,writable:!0,value:E}):e[T]=E,__publicField=(e,T,E)=>__defNormalProp(e,typeof T==`symbol`?T:T+``,E);function escapeWithQuotes(e,T=`'`){let E=JSON.stringify(e),D=E.substring(1,E.length-1).replace(/\\"/g,`"`);if(T===`'`)return T+D.replace(/'/g,`\\'`)+T;if(T===`"`)return T+D.replace(/"/g,`\\"`)+T;if(T==="`")return T+D.replace(/`/g,"`")+T;throw Error(`Invalid escape char`)}function cssEscape(e){let T=``;for(let E=0;E=1&&E<=31||E>=48&&E<=57&&(T===0||T===1&&e.charCodeAt(0)===45)?`\\${E.toString(16)} `:T===0&&E===45&&e.length===1?`\\${e.charAt(T)}`:E>=128||E===45||E===95||E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122?e.charAt(T):`\\${e.charAt(T)}`}function normalizeWhiteSpace(e){return e.replace(/[\u200b\u00ad]/g,``).trim().replace(/\s+/g,` `)}function normalizeEscapedRegexQuotes(e){return e.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,`$1$2$3`)}function escapeRegexForSelector$1(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,`$1$2\\$3`).replace(/>>/g,`\\>\\>`)}function escapeForTextSelector$1(e,T){return typeof e==`string`?`${JSON.stringify(e)}${T?`s`:`i`}`:escapeRegexForSelector$1(e)}function escapeForAttributeSelector(e,T){return typeof e==`string`?`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"${T?`s`:`i`}`:escapeRegexForSelector$1(e)}function trimString(e,T,E=``){if(e.length<=T)return e;let D=[...e];return D.length>T?D.slice(0,T-E.length).join(``)+E:D.join(``)}function trimStringWithEllipsis(e,T){return trimString(e,T,`…`)}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var between=function(e,T,E){return e>=T&&e<=E};function digit(e){return between(e,48,57)}function hexdigit(e){return digit(e)||between(e,65,70)||between(e,97,102)}function uppercaseletter(e){return between(e,65,90)}function lowercaseletter(e){return between(e,97,122)}function letter(e){return uppercaseletter(e)||lowercaseletter(e)}function nonascii(e){return e>=128}function namestartchar(e){return letter(e)||nonascii(e)||e===95}function namechar(e){return namestartchar(e)||digit(e)||e===45}function nonprintable(e){return between(e,0,8)||e===11||between(e,14,31)||e===127}function newline(e){return e===10}function whitespace(e){return newline(e)||e===9||e===32}var maximumallowedcodepoint=1114111,InvalidCharacterError=class extends Error{constructor(e){super(e),this.name=`InvalidCharacterError`}};function preprocess(e){let T=[];for(let E=0;E=T.length?-1:T[e]},A=function(e){if(e===void 0&&(e=1),e>3)throw`Spec Error: no more than three codepoints of lookahead.`;return k(E+e)},j=function(e){return e===void 0&&(e=1),E+=e,O=k(E),!0},M=function(){return--E,!0},N=function(e){return e===void 0&&(e=O),e===-1},P=function(){if(F(),j(),whitespace(O)){for(;whitespace(A());)j();return new WhitespaceToken}else if(O===34)return R();else if(O===35)if(namechar(A())||V(A(1),A(2))){let e=new HashToken(``);return U(A(1),A(2),A(3))&&(e.type=`id`),e.value=Y(),e}else return new DelimToken(O);else if(O===36)return A()===61?(j(),new SuffixMatchToken):new DelimToken(O);else if(O===39)return R();else if(O===40)return new OpenParenToken;else if(O===41)return new CloseParenToken;else if(O===42)return A()===61?(j(),new SubstringMatchToken):new DelimToken(O);else if(O===43)return J()?(M(),I()):new DelimToken(O);else if(O===44)return new CommaToken;else if(O===45)return J()?(M(),I()):A(1)===45&&A(2)===62?(j(2),new CDCToken):K()?(M(),L()):new DelimToken(O);else if(O===46)return J()?(M(),I()):new DelimToken(O);else if(O===58)return new ColonToken;else if(O===59)return new SemicolonToken;else if(O===60)return A(1)===33&&A(2)===45&&A(3)===45?(j(3),new CDOToken):new DelimToken(O);else if(O===64)return U(A(1),A(2),A(3))?new AtKeywordToken(Y()):new DelimToken(O);else if(O===91)return new OpenSquareToken;else if(O===92)return H()?(M(),L()):new DelimToken(O);else if(O===93)return new CloseSquareToken;else if(O===94)return A()===61?(j(),new PrefixMatchToken):new DelimToken(O);else if(O===123)return new OpenCurlyToken;else if(O===124)return A()===61?(j(),new DashMatchToken):A()===124?(j(),new ColumnToken):new DelimToken(O);else if(O===125)return new CloseCurlyToken;else if(O===126)return A()===61?(j(),new IncludeMatchToken):new DelimToken(O);else if(digit(O))return M(),I();else if(namestartchar(O))return M(),L();else if(N())return new EOFToken;else return new DelimToken(O)},F=function(){for(;A(1)===47&&A(2)===42;)for(j(2);;)if(j(),O===42&&A()===47){j();break}else if(N())return},I=function(){let e=X();if(U(A(1),A(2),A(3))){let T=new DimensionToken;return T.value=e.value,T.repr=e.repr,T.type=e.type,T.unit=Y(),T}else if(A()===37){j();let T=new PercentageToken;return T.value=e.value,T.repr=e.repr,T}else{let T=new NumberToken;return T.value=e.value,T.repr=e.repr,T.type=e.type,T}},L=function(){let e=Y();if(e.toLowerCase()===`url`&&A()===40){for(j();whitespace(A(1))&&whitespace(A(2));)j();return A()===34||A()===39||whitespace(A())&&(A(2)===34||A(2)===39)?new FunctionToken(e):z()}else if(A()===40)return j(),new FunctionToken(e);else return new IdentToken(e)},R=function(e){e===void 0&&(e=O);let T=``;for(;j();){if(O===e||N())return new StringToken(T);if(newline(O))return M(),new BadStringToken;O===92?N(A())||(newline(A())?j():T+=stringFromCode(B())):T+=stringFromCode(O)}throw Error(`Internal error`)},z=function(){let e=new URLToken(``);for(;whitespace(A());)j();if(N(A()))return e;for(;j();){if(O===41||N())return e;if(whitespace(O)){for(;whitespace(A());)j();return A()===41||N(A())?(j(),e):(Q(),new BadURLToken)}else if(O===34||O===39||O===40||nonprintable(O))return Q(),new BadURLToken;else if(O===92)if(H())e.value+=stringFromCode(B());else return Q(),new BadURLToken;else e.value+=stringFromCode(O)}throw Error(`Internal error`)},B=function(){if(j(),hexdigit(O)){let e=[O];for(let T=0;T<5&&hexdigit(A());T++)j(),e.push(O);whitespace(A())&&j();let T=Number.parseInt(e.map(e=>String.fromCharCode(e)).join(``),16);return T>maximumallowedcodepoint&&(T=65533),T}else if(N())return 65533;else return O},V=function(e,T){return!(e!==92||newline(T))},H=function(){return V(O,A())},U=function(e,T,E){return e===45?namestartchar(T)||T===45||V(T,E):namestartchar(e)?!0:e===92?V(e,T):!1},K=function(){return U(O,A(1),A(2))},q=function(e,T,E){return e===43||e===45?!!(digit(T)||T===46&&digit(E)):e===46?!!digit(T):!!digit(e)},J=function(){return q(O,A(1),A(2))},Y=function(){let e=``;for(;j();)if(namechar(O))e+=stringFromCode(O);else if(H())e+=stringFromCode(B());else return M(),e;throw Error(`Internal parse error`)},X=function(){let e=``,T=`integer`;for((A()===43||A()===45)&&(j(),e+=stringFromCode(O));digit(A());)j(),e+=stringFromCode(O);if(A(1)===46&&digit(A(2)))for(j(),e+=stringFromCode(O),j(),e+=stringFromCode(O),T=`number`;digit(A());)j(),e+=stringFromCode(O);let E=A(1),D=A(2),k=A(3);if((E===69||E===101)&&digit(D))for(j(),e+=stringFromCode(O),j(),e+=stringFromCode(O),T=`number`;digit(A());)j(),e+=stringFromCode(O);else if((E===69||E===101)&&(D===43||D===45)&&digit(k))for(j(),e+=stringFromCode(O),j(),e+=stringFromCode(O),j(),e+=stringFromCode(O),T=`number`;digit(A());)j(),e+=stringFromCode(O);let M=Z(e);return{type:T,value:M,repr:e}},Z=function(e){return+e},Q=function(){for(;j();){if(O===41||N())return;H()&&B()}},$=0;for(;!N(A());)if(D.push(P()),$++,$>T.length*2)throw Error(`I'm infinite-looping!`);return D}var CSSParserToken=class{constructor(){__publicField(this,`tokenType`,``),__publicField(this,`value`)}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return`${this}`}},BadStringToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`BADSTRING`)}},BadURLToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`BADURL`)}},WhitespaceToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`WHITESPACE`)}toString(){return`WS`}toSource(){return` `}},CDOToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`CDO`)}toSource(){return``}},ColonToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`:`)}},SemicolonToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`;`)}},CommaToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`,`)}},GroupingToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`value`,``),__publicField(this,`mirror`,``)}},OpenCurlyToken=class extends GroupingToken{constructor(){super(),__publicField(this,`tokenType`,`{`),this.value=`{`,this.mirror=`}`}},CloseCurlyToken=class extends GroupingToken{constructor(){super(),__publicField(this,`tokenType`,`}`),this.value=`}`,this.mirror=`{`}},OpenSquareToken=class extends GroupingToken{constructor(){super(),__publicField(this,`tokenType`,`[`),this.value=`[`,this.mirror=`]`}},CloseSquareToken=class extends GroupingToken{constructor(){super(),__publicField(this,`tokenType`,`]`),this.value=`]`,this.mirror=`[`}},OpenParenToken=class extends GroupingToken{constructor(){super(),__publicField(this,`tokenType`,`(`),this.value=`(`,this.mirror=`)`}},CloseParenToken=class extends GroupingToken{constructor(){super(),__publicField(this,`tokenType`,`)`),this.value=`)`,this.mirror=`(`}},IncludeMatchToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`~=`)}},DashMatchToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`|=`)}},PrefixMatchToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`^=`)}},SuffixMatchToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`$=`)}},SubstringMatchToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`*=`)}},ColumnToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`||`)}},EOFToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`tokenType`,`EOF`)}toSource(){return``}},DelimToken=class extends CSSParserToken{constructor(e){super(),__publicField(this,`tokenType`,`DELIM`),__publicField(this,`value`,``),this.value=stringFromCode(e)}toString(){return`DELIM(${this.value})`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value===`\\`?`\\ -`:this.value}},StringValuedToken=class extends CSSParserToken{constructor(){super(...arguments),__publicField(this,`value`,``)}ASCIIMatch(e){return this.value.toLowerCase()===e.toLowerCase()}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}},IdentToken=class extends StringValuedToken{constructor(e){super(),__publicField(this,`tokenType`,`IDENT`),this.value=e}toString(){return`IDENT(${this.value})`}toSource(){return escapeIdent(this.value)}},FunctionToken=class extends StringValuedToken{constructor(e){super(),__publicField(this,`tokenType`,`FUNCTION`),__publicField(this,`mirror`),this.value=e,this.mirror=`)`}toString(){return`FUNCTION(${this.value})`}toSource(){return`${escapeIdent(this.value)}(`}},AtKeywordToken=class extends StringValuedToken{constructor(e){super(),__publicField(this,`tokenType`,`AT-KEYWORD`),this.value=e}toString(){return`AT(${this.value})`}toSource(){return`@${escapeIdent(this.value)}`}},HashToken=class extends StringValuedToken{constructor(e){super(),__publicField(this,`tokenType`,`HASH`),__publicField(this,`type`),this.value=e,this.type=`unrestricted`}toString(){return`HASH(${this.value})`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e}toSource(){return this.type===`id`?`#${escapeIdent(this.value)}`:`#${escapeHash(this.value)}`}},StringToken=class extends StringValuedToken{constructor(e){super(),__publicField(this,`tokenType`,`STRING`),this.value=e}toString(){return`"${escapeString(this.value)}"`}},URLToken=class extends StringValuedToken{constructor(e){super(),__publicField(this,`tokenType`,`URL`),this.value=e}toString(){return`URL(${this.value})`}toSource(){return`url("${escapeString(this.value)}")`}},NumberToken=class extends CSSParserToken{constructor(){super(),__publicField(this,`tokenType`,`NUMBER`),__publicField(this,`type`),__publicField(this,`repr`),this.type=`integer`,this.repr=``}toString(){return this.type===`integer`?`INT(${this.value})`:`NUMBER(${this.value})`}toJSON(){let e=super.toJSON();return e.value=this.value,e.type=this.type,e.repr=this.repr,e}toSource(){return this.repr}},PercentageToken=class extends CSSParserToken{constructor(){super(),__publicField(this,`tokenType`,`PERCENTAGE`),__publicField(this,`repr`),this.repr=``}toString(){return`PERCENTAGE(${this.value})`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.repr=this.repr,e}toSource(){return`${this.repr}%`}},DimensionToken=class extends CSSParserToken{constructor(){super(),__publicField(this,`tokenType`,`DIMENSION`),__publicField(this,`type`),__publicField(this,`repr`),__publicField(this,`unit`),this.type=`integer`,this.repr=``,this.unit=``}toString(){return`DIM(${this.value},${this.unit})`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e.repr=this.repr,e.unit=this.unit,e}toSource(){let e=this.repr,T=escapeIdent(this.unit);return T[0].toLowerCase()===`e`&&(T[1]===`-`||between(T.charCodeAt(1),48,57))&&(T=`\\65 ${T.slice(1,T.length)}`),e+T}};function escapeIdent(e){e=`${e}`;let T=``,E=e.charCodeAt(0);for(let D=0;D=128||O===45||O===95||between(O,48,57)||between(O,65,90)||between(O,97,122)?T+=e[D]:T+=`\\${e[D]}`}return T}function escapeHash(e){e=`${e}`;let T=``;for(let E=0;E=128||D===45||D===95||between(D,48,57)||between(D,65,90)||between(D,97,122)?T+=e[E]:T+=`\\${D.toString(16)} `}return T}function escapeString(e){e=`${e}`;let T=``;for(let E=0;Ee instanceof AtKeywordToken||e instanceof BadStringToken||e instanceof BadURLToken||e instanceof ColumnToken||e instanceof CDOToken||e instanceof CDCToken||e instanceof SemicolonToken||e instanceof OpenCurlyToken||e instanceof CloseCurlyToken||e instanceof URLToken||e instanceof PercentageToken);if(D)throw new InvalidSelectorError(`Unsupported token "${D.toSource()}" while parsing selector "${e}"`);let O=0,k=new Set;function A(){return new InvalidSelectorError(`Unexpected token "${E[O].toSource()}" while parsing selector "${e}"`)}function j(){for(;E[O]instanceof WhitespaceToken;)O++}function M(e=O){return E[e]instanceof IdentToken}function N(e=O){return E[e]instanceof StringToken}function P(e=O){return E[e]instanceof NumberToken}function F(e=O){return E[e]instanceof CommaToken}function I(e=O){return E[e]instanceof OpenParenToken}function L(e=O){return E[e]instanceof CloseParenToken}function R(e=O){return E[e]instanceof FunctionToken}function z(e=O){return E[e]instanceof DelimToken&&E[e].value===`*`}function B(e=O){return E[e]instanceof EOFToken}function V(e=O){return E[e]instanceof DelimToken&&[`>`,`+`,`~`].includes(E[e].value)}function H(e=O){return F(e)||L(e)||B(e)||V(e)||E[e]instanceof WhitespaceToken}function U(){let e=[W()];for(;j(),F();)O++,e.push(W());return e}function W(){return j(),P()||N()?E[O++].value:G()}function G(){let e={simples:[]};for(j(),V()?e.simples.push({selector:{functions:[{name:`scope`,args:[]}]},combinator:``}):e.simples.push({selector:K(),combinator:``});;){if(j(),V())e.simples[e.simples.length-1].combinator=E[O++].value,j();else if(H())break;e.simples.push({combinator:``,selector:K()})}return e}function K(){let e=``,D=[];for(;!H();)if(M()||z())e+=E[O++].toSource();else if(E[O]instanceof HashToken)e+=E[O++].toSource();else if(E[O]instanceof DelimToken&&E[O].value===`.`)if(O++,M())e+=`.${E[O++].toSource()}`;else throw A();else if(E[O]instanceof ColonToken)if(O++,M())if(!T.has(E[O].value.toLowerCase()))e+=`:${E[O++].toSource()}`;else{let e=E[O++].value.toLowerCase();D.push({name:e,args:[]}),k.add(e)}else if(R()){let M=E[O++].value.toLowerCase();if(T.has(M)?(D.push({name:M,args:U()}),k.add(M)):e+=`:${M}(${q()})`,j(),!L())throw A();O++}else throw A();else if(E[O]instanceof OpenSquareToken){for(e+=`[`,O++;!(E[O]instanceof CloseSquareToken)&&!B();)e+=E[O++].toSource();if(!(E[O]instanceof CloseSquareToken))throw A();e+=`]`,O++}else throw A();if(!e&&!D.length)throw A();return{css:e||void 0,functions:D}}function q(){let e=``,T=1;for(;!B()&&((I()||R())&&T++,L()&&T--,T);)e+=E[O++].toSource();return e}let J=U();if(!B())throw A();if(J.some(e=>typeof e!=`object`||!(`simples`in e)))throw new InvalidSelectorError(`Error while parsing selector "${e}"`);return{selector:J,names:Array.from(k)}}var kNestedSelectorNames=new Set([`internal:has`,`internal:has-not`,`internal:and`,`internal:or`,`internal:chain`,`left-of`,`right-of`,`above`,`below`,`near`]),kNestedSelectorNamesWithDistance=new Set([`left-of`,`right-of`,`above`,`below`,`near`]),customCSSNames=new Set([`not`,`is`,`where`,`has`,`scope`,`light`,`visible`,`text`,`text-matches`,`text-is`,`has-text`,`above`,`below`,`right-of`,`left-of`,`near`,`nth-match`]);function parseSelector(e){let T=parseSelectorString(e),E=[];for(let e of T.parts){if(e.name===`css`||e.name===`css:light`){e.name===`css:light`&&(e.body=`:light(${e.body})`);let T=parseCSS(e.body,customCSSNames);E.push({name:`css`,body:T.selector,source:e.body});continue}if(kNestedSelectorNames.has(e.name)){let T,D;try{let E=JSON.parse(`[${e.body}]`);if(!Array.isArray(E)||E.length<1||E.length>2||typeof E[0]!=`string`)throw new InvalidSelectorError(`Malformed selector: ${e.name}=${e.body}`);if(T=E[0],E.length===2){if(typeof E[1]!=`number`||!kNestedSelectorNamesWithDistance.has(e.name))throw new InvalidSelectorError(`Malformed selector: ${e.name}=${e.body}`);D=E[1]}}catch{throw new InvalidSelectorError(`Malformed selector: ${e.name}=${e.body}`)}let O={name:e.name,source:e.body,body:{parsed:parseSelector(T),distance:D}},k=[...O.body.parsed.parts].reverse().find(e=>e.name===`internal:control`&&e.body===`enter-frame`),A=k?O.body.parsed.parts.indexOf(k):-1;A!==-1&&selectorPartsEqual(O.body.parsed.parts.slice(0,A+1),E.slice(0,A+1))&&O.body.parsed.parts.splice(0,A+1),E.push(O);continue}E.push({...e,source:e.body})}if(kNestedSelectorNames.has(E[0].name))throw new InvalidSelectorError(`"${E[0].name}" selector cannot be first`);return{capture:T.capture,parts:E}}function selectorPartsEqual(e,T){return stringifySelector({parts:e})===stringifySelector({parts:T})}function stringifySelector(e,T){return typeof e==`string`?e:e.parts.map((E,D)=>{let O=!0;!T&&D!==e.capture&&(E.name===`css`||E.name===`xpath`&&E.source.startsWith(`//`)||E.source.startsWith(`..`))&&(O=!1);let k=O?`${E.name}=`:``;return`${D===e.capture?`*`:``}${k}${E.source}`}).join(` >> `)}function visitAllSelectorParts(e,T){let E=(e,D)=>{for(let O of e.parts)T(O,D),kNestedSelectorNames.has(O.name)&&E(O.body.parsed,!0)};E(e,!1)}function parseSelectorString(e){let T=0,E,D=0,O={parts:[]},k=()=>{let E=e.substring(D,T).trim(),k=E.indexOf(`=`),A,j;k!==-1&&E.substring(0,k).trim().match(/^[\w\-+:*]+$/)?(A=E.substring(0,k).trim(),j=E.substring(k+1)):E.length>1&&E[0]===`"`&&E[E.length-1]===`"`||E.length>1&&E[0]===`'`&&E[E.length-1]===`'`?(A=`text`,j=E):/^\(*\/\//.test(E)||E.startsWith(`..`)?(A=`xpath`,j=E):(A=`css`,j=E);let M=!1;if(A[0]===`*`&&(M=!0,A=A.substring(1)),O.parts.push({name:A,body:j}),M){if(O.capture!==void 0)throw new InvalidSelectorError(`Only one of the selectors can capture using * modifier`);O.capture=O.parts.length-1}};if(!e.includes(`>>`))return T=e.length,k(),O;let A=()=>{let E=e.substring(D,T).match(/^\s*text\s*=(.*)$/);return!!E&&!!E[1]};for(;T`&&e[T+1]===`>`?(k(),T+=2,D=T):T++}return k(),O}function parseAttributeSelector(e,T){let E=0,D=e.length===0,O=()=>e[E]||``,k=()=>{let T=O();return++E,D=E>=e.length,T},A=T=>{throw D?new InvalidSelectorError(`Unexpected end of selector while parsing selector \`${e}\``):new InvalidSelectorError(`Error while parsing selector \`${e}\` - unexpected symbol "${O()}" at position ${E}${T?` during ${T}`:``}`)};function j(){for(;!D&&/\s/.test(O());)k()}function M(e){return e>=`€`||e>=`0`&&e<=`9`||e>=`A`&&e<=`Z`||e>=`a`&&e<=`z`||e>=`0`&&e<=`9`||e===`_`||e===`-`}function N(){let e=``;for(j();!D&&M(O());)e+=k();return e}function P(e){let T=k();for(T!==e&&A(`parsing quoted string`);!D&&O()!==e;)O()===`\\`&&k(),T+=k();return O()!==e&&A(`parsing quoted string`),T+=k(),T}function F(){k()!==`/`&&A(`parsing regular expression`);let T=``,E=!1;for(;!D;){if(O()===`\\`)T+=k(),D&&A(`parsing regular expression`);else if(E&&O()===`]`)E=!1;else if(!E&&O()===`[`)E=!0;else if(!E&&O()===`/`)break;T+=k()}k()!==`/`&&A(`parsing regular expression`);let j=``;for(;!D&&O().match(/[dgimsuy]/);)j+=k();try{return new RegExp(T,j)}catch(T){throw new InvalidSelectorError(`Error while parsing selector \`${e}\`: ${T.message}`)}}function I(){let e=``;return j(),e=O()===`'`||O()===`"`?P(O()).slice(1,-1):N(),e||A(`parsing property path`),e}function L(){j();let e=``;return D||(e+=k()),!D&&e!==`=`&&(e+=k()),[`=`,`*=`,`^=`,`$=`,`|=`,`~=`].includes(e)||A(`parsing operator`),e}function R(){k();let T=[];for(T.push(I()),j();O()===`.`;)k(),T.push(I()),j();if(O()===`]`)return k(),{name:T.join(`.`),jsonPath:T,op:``,value:null,caseSensitive:!1};let E=L(),N,R=!0;if(j(),O()===`/`){if(E!==`=`)throw new InvalidSelectorError(`Error while parsing selector \`${e}\` - cannot use ${E} in attribute with regular expression`);N=F()}else if(O()===`'`||O()===`"`)N=P(O()).slice(1,-1),j(),O()===`i`||O()===`I`?(R=!1,k()):(O()===`s`||O()===`S`)&&(R=!0,k());else{for(N=``;!D&&(M(O())||O()===`+`||O()===`.`);)N+=k();N===`true`?N=!0:N===`false`&&(N=!1)}if(j(),O()!==`]`&&A(`parsing attribute value`),k(),E!==`=`&&typeof N!=`string`)throw new InvalidSelectorError(`Error while parsing selector \`${e}\` - cannot use ${E} in attribute with non-string matching value - ${N}`);return{name:T.join(`.`),jsonPath:T,op:E,value:N,caseSensitive:R}}let z={name:``,attributes:[]};for(z.name=N(),j();O()===`[`;)z.attributes.push(R()),j();if(D||A(void 0),!z.name&&!z.attributes.length)throw new InvalidSelectorError(`Error while parsing selector \`${e}\` - selector cannot be empty`);return z}function hasExplicitAccessibleName(e){return e.hasAttribute(`aria-label`)||e.hasAttribute(`aria-labelledby`)}var kAncestorPreventingLandmark=`article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]`,kGlobalAriaAttributes=new Map([[`aria-atomic`,void 0],[`aria-busy`,void 0],[`aria-controls`,void 0],[`aria-current`,void 0],[`aria-describedby`,void 0],[`aria-details`,void 0],[`aria-dropeffect`,void 0],[`aria-flowto`,void 0],[`aria-grabbed`,void 0],[`aria-hidden`,void 0],[`aria-keyshortcuts`,void 0],[`aria-label`,new Set([`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])],[`aria-labelledby`,new Set([`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])],[`aria-live`,void 0],[`aria-owns`,void 0],[`aria-relevant`,void 0],[`aria-roledescription`,new Set([`generic`])]]);function hasGlobalAriaAttribute(e,T){return[...kGlobalAriaAttributes].some(([E,D])=>!D?.has(T||``)&&e.hasAttribute(E))}function hasTabIndex(e){return!Number.isNaN(Number(String(e.getAttribute(`tabindex`))))}function isFocusable(e){return!isNativelyDisabled(e)&&(isNativelyFocusable(e)||hasTabIndex(e))}function isNativelyFocusable(e){let T=elementSafeTagName(e);return[`BUTTON`,`DETAILS`,`SELECT`,`TEXTAREA`].includes(T)?!0:T===`A`||T===`AREA`?e.hasAttribute(`href`):T===`INPUT`?!e.hidden:!1}var kImplicitRoleByTagName={A:e=>e.hasAttribute(`href`)?`link`:null,AREA:e=>e.hasAttribute(`href`)?`link`:null,ARTICLE:()=>`article`,ASIDE:()=>`complementary`,BLOCKQUOTE:()=>`blockquote`,BUTTON:()=>`button`,CAPTION:()=>`caption`,CODE:()=>`code`,DATALIST:()=>`listbox`,DD:()=>`definition`,DEL:()=>`deletion`,DETAILS:()=>`group`,DFN:()=>`term`,DIALOG:()=>`dialog`,DT:()=>`term`,EM:()=>`emphasis`,FIELDSET:()=>`group`,FIGURE:()=>`figure`,FOOTER:e=>closestCrossShadow(e,kAncestorPreventingLandmark)?null:`contentinfo`,FORM:e=>hasExplicitAccessibleName(e)?`form`:null,H1:()=>`heading`,H2:()=>`heading`,H3:()=>`heading`,H4:()=>`heading`,H5:()=>`heading`,H6:()=>`heading`,HEADER:e=>closestCrossShadow(e,kAncestorPreventingLandmark)?null:`banner`,HR:()=>`separator`,HTML:()=>`document`,IMG:e=>e.getAttribute(`alt`)===``&&!e.getAttribute(`title`)&&!hasGlobalAriaAttribute(e)&&!hasTabIndex(e)?`presentation`:`img`,INPUT:e=>{let T=e.type.toLowerCase();if(T===`search`)return e.hasAttribute(`list`)?`combobox`:`searchbox`;if([`email`,`tel`,`text`,`url`,``].includes(T)){let T=getIdRefs(e,e.getAttribute(`list`))[0];return T&&elementSafeTagName(T)===`DATALIST`?`combobox`:`textbox`}return T===`hidden`?``:{button:`button`,checkbox:`checkbox`,image:`button`,number:`spinbutton`,radio:`radio`,range:`slider`,reset:`button`,submit:`button`}[T]||`textbox`},INS:()=>`insertion`,LI:()=>`listitem`,MAIN:()=>`main`,MARK:()=>`mark`,MATH:()=>`math`,MENU:()=>`list`,METER:()=>`meter`,NAV:()=>`navigation`,OL:()=>`list`,OPTGROUP:()=>`group`,OPTION:()=>`option`,OUTPUT:()=>`status`,P:()=>`paragraph`,PROGRESS:()=>`progressbar`,SECTION:e=>hasExplicitAccessibleName(e)?`region`:null,SELECT:e=>e.hasAttribute(`multiple`)||e.size>1?`listbox`:`combobox`,STRONG:()=>`strong`,SUB:()=>`subscript`,SUP:()=>`superscript`,SVG:()=>`img`,TABLE:()=>`table`,TBODY:()=>`rowgroup`,TD:e=>{let T=closestCrossShadow(e,`table`),E=T?getExplicitAriaRole(T):``;return E===`grid`||E===`treegrid`?`gridcell`:`cell`},TEXTAREA:()=>`textbox`,TFOOT:()=>`rowgroup`,TH:e=>{if(e.getAttribute(`scope`)===`col`)return`columnheader`;if(e.getAttribute(`scope`)===`row`)return`rowheader`;let T=closestCrossShadow(e,`table`),E=T?getExplicitAriaRole(T):``;return E===`grid`||E===`treegrid`?`gridcell`:`cell`},THEAD:()=>`rowgroup`,TIME:()=>`time`,TR:()=>`row`,UL:()=>`list`},kPresentationInheritanceParents={DD:[`DL`,`DIV`],DIV:[`DL`],DT:[`DL`,`DIV`],LI:[`OL`,`UL`],TBODY:[`TABLE`],TD:[`TR`],TFOOT:[`TABLE`],TH:[`TR`],THEAD:[`TABLE`],TR:[`THEAD`,`TBODY`,`TFOOT`,`TABLE`]};function getImplicitAriaRole(e){let T=kImplicitRoleByTagName[elementSafeTagName(e)]?.call(kImplicitRoleByTagName,e)||``;if(!T)return null;let E=e;for(;E;){let e=parentElementOrShadowHost(E),T=kPresentationInheritanceParents[elementSafeTagName(E)];if(!T||!e||!T.includes(elementSafeTagName(e)))break;let D=getExplicitAriaRole(e);if((D===`none`||D===`presentation`)&&!hasPresentationConflictResolution(e,D))return D;E=e}return T}var allRoles=`alert.alertdialog.application.article.banner.blockquote.button.caption.cell.checkbox.code.columnheader.combobox.command.complementary.composite.contentinfo.definition.deletion.dialog.directory.document.emphasis.feed.figure.form.generic.grid.gridcell.group.heading.img.input.insertion.landmark.link.list.listbox.listitem.log.main.marquee.math.meter.menu.menubar.menuitem.menuitemcheckbox.menuitemradio.navigation.none.note.option.paragraph.presentation.progressbar.radio.radiogroup.range.region.roletype.row.rowgroup.rowheader.scrollbar.search.searchbox.section.sectionhead.select.separator.slider.spinbutton.status.strong.structure.subscript.superscript.switch.tab.table.tablist.tabpanel.term.textbox.time.timer.toolbar.tooltip.tree.treegrid.treeitem.widget.window`.split(`.`),abstractRoles=[`command`,`composite`,`input`,`landmark`,`range`,`roletype`,`section`,`sectionhead`,`select`,`structure`,`widget`,`window`],validRoles=allRoles.filter(e=>!abstractRoles.includes(e));function getExplicitAriaRole(e){return(e.getAttribute(`role`)||``).split(` `).map(e=>e.trim()).find(e=>validRoles.includes(e))||null}function hasPresentationConflictResolution(e,T){return hasGlobalAriaAttribute(e,T)||isFocusable(e)}function getAriaRole(e){let T=getExplicitAriaRole(e);if(!T)return getImplicitAriaRole(e);if(T===`none`||T===`presentation`){let T=getImplicitAriaRole(e);if(hasPresentationConflictResolution(e,T))return T}return T}function getAriaBoolean(e){return e===null?void 0:e.toLowerCase()===`true`}function isElementIgnoredForAria(e){return[`STYLE`,`SCRIPT`,`NOSCRIPT`,`TEMPLATE`].includes(elementSafeTagName(e))}function isElementHiddenForAria(e){if(isElementIgnoredForAria(e))return!0;let T=getElementComputedStyle(e),E=e.nodeName===`SLOT`;if(T?.display===`contents`&&!E){for(let T=e.firstChild;T;T=T.nextSibling)if(T.nodeType===1&&!isElementHiddenForAria(T)||T.nodeType===3&&isVisibleTextNode(T))return!1;return!0}return!(e.nodeName===`OPTION`&&e.closest(`select`))&&!E&&!isElementStyleVisibilityVisible(e,T)?!0:belongsToDisplayNoneOrAriaHiddenOrNonSlotted(e)}function belongsToDisplayNoneOrAriaHiddenOrNonSlotted(e){let T=cacheIsHidden?.get(e);if(T===void 0){if(T=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(T=!0),!T){let E=getElementComputedStyle(e);T=!E||E.display===`none`||getAriaBoolean(e.getAttribute(`aria-hidden`))===!0}if(!T){let E=parentElementOrShadowHost(e);E&&(T=belongsToDisplayNoneOrAriaHiddenOrNonSlotted(E))}cacheIsHidden?.set(e,T)}return T}function getIdRefs(e,T){if(!T)return[];let E=enclosingShadowRootOrDocument(e);if(!E)return[];try{let e=T.split(` `).filter(e=>!!e),D=new Set;for(let T of e){let e=E.querySelector(`#${CSS.escape(T)}`);e&&D.add(e)}return[...D]}catch{return[]}}function trimFlatString(e){return e.trim()}function asFlatString(e){return e.split(`\xA0`).map(e=>e.replace(/\r\n/g,` -`).replace(/[\u200b\u00ad]/g,``).replace(/\s\s*/g,` `)).join(`\xA0`).trim()}function queryInAriaOwned(e,T){let E=[...e.querySelectorAll(T)];for(let D of getIdRefs(e,e.getAttribute(`aria-owns`)))D.matches(T)&&E.push(D),E.push(...D.querySelectorAll(T));return E}function getPseudoContent(e,T){let E=T===`::before`?cachePseudoContentBefore:cachePseudoContentAfter;if(E?.has(e))return E?.get(e)||``;let D=getPseudoContentImpl(getElementComputedStyle(e,T));return E&&E.set(e,D),D}function getPseudoContentImpl(e){if(!e)return``;let T=e.content;if(T[0]===`'`&&T[T.length-1]===`'`||T[0]===`"`&&T[T.length-1]===`"`){let E=T.substring(1,T.length-1);return(e.display||`inline`)===`inline`?E:` ${E} `}return``}function getAriaLabelledByElements(e){let T=e.getAttribute(`aria-labelledby`);return T===null?null:getIdRefs(e,T)}function allowsNameFromContent(e,T){let E=[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`].includes(e),D=T&&[``,`caption`,`code`,`contentinfo`,`definition`,`deletion`,`emphasis`,`insertion`,`list`,`listitem`,`mark`,`none`,`paragraph`,`presentation`,`region`,`row`,`rowgroup`,`section`,`strong`,`subscript`,`superscript`,`table`,`term`,`time`].includes(e);return E||D}function getElementAccessibleName(e,T){let E=T?cacheAccessibleNameHidden:cacheAccessibleName,D=E?.get(e);return D===void 0&&(D=``,[`caption`,`code`,`definition`,`deletion`,`emphasis`,`generic`,`insertion`,`mark`,`paragraph`,`presentation`,`strong`,`subscript`,`suggestion`,`superscript`,`term`,`time`].includes(getAriaRole(e)||``)||(D=asFlatString(getTextAlternativeInternal(e,{includeHidden:T,visitedElements:new Set,embeddedInDescribedBy:void 0,embeddedInLabelledBy:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0,embeddedInTargetElement:`self`}))),E?.set(e,D)),D}function getElementAccessibleDescription(e,T){let E=cacheAccessibleDescription,D=E?.get(e);return D===void 0&&(D=``,D=e.hasAttribute(`aria-describedby`)?asFlatString(getIdRefs(e,e.getAttribute(`aria-describedby`)).map(e=>getTextAlternativeInternal(e,{includeHidden:T,visitedElements:new Set,embeddedInDescribedBy:{element:e,hidden:isElementHiddenForAria(e)}})).join(` `)):e.hasAttribute(`aria-description`)?asFlatString(e.getAttribute(`aria-description`)||``):asFlatString(e.getAttribute(`title`)||``),E?.set(e,D)),D}var kAriaInvalidRoles=[`application`,`checkbox`,`combobox`,`gridcell`,`listbox`,`radiogroup`,`slider`,`spinbutton`,`textbox`,`tree`,`columnheader`,`rowheader`,`searchbox`,`switch`,`treegrid`];function getAriaInvalid(e){let T=getAriaRole(e)||``;if(!T||!kAriaInvalidRoles.includes(T))return`false`;let E=e.getAttribute(`aria-invalid`);return!E||E.trim()===``||E.toLocaleLowerCase()===`false`?`false`:E===`true`||E===`grammar`||E===`spelling`?E:`true`}function getValidityInvalid(e){return`validity`in e?e.validity?.valid===!1:!1}function getElementAccessibleErrorMessage(e){let T=cacheAccessibleErrorMessage,E=cacheAccessibleErrorMessage?.get(e);if(E===void 0){E=``;let D=getAriaInvalid(e)!==`false`,O=getValidityInvalid(e);(D||O)&&(E=getIdRefs(e,e.getAttribute(`aria-errormessage`)).map(e=>asFlatString(getTextAlternativeInternal(e,{visitedElements:new Set,embeddedInDescribedBy:{element:e,hidden:isElementHiddenForAria(e)}}))).join(` `).trim()),T?.set(e,E)}return E}function getTextAlternativeInternal(e,T){if(T.visitedElements.has(e))return``;let E={...T,embeddedInTargetElement:T.embeddedInTargetElement===`self`?`descendant`:T.embeddedInTargetElement};if(!T.includeHidden){let E=!!T.embeddedInLabelledBy?.hidden||!!T.embeddedInDescribedBy?.hidden||!!T.embeddedInNativeTextAlternative?.hidden||!!T.embeddedInLabel?.hidden;if(isElementIgnoredForAria(e)||!E&&isElementHiddenForAria(e))return T.visitedElements.add(e),``}let D=getAriaLabelledByElements(e);if(!T.embeddedInLabelledBy){let e=(D||[]).map(e=>getTextAlternativeInternal(e,{...T,embeddedInLabelledBy:{element:e,hidden:isElementHiddenForAria(e)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(` `);if(e)return e}let O=getAriaRole(e)||``,k=elementSafeTagName(e);if(T.embeddedInLabel||T.embeddedInLabelledBy||T.embeddedInTargetElement===`descendant`){let A=[...e.labels||[]].includes(e),j=(D||[]).includes(e);if(!A&&!j){if(O===`textbox`)return T.visitedElements.add(e),k===`INPUT`||k===`TEXTAREA`?e.value:e.textContent||``;if([`combobox`,`listbox`].includes(O)){T.visitedElements.add(e);let D;if(k===`SELECT`)D=[...e.selectedOptions],!D.length&&e.options.length&&D.push(e.options[0]);else{let T=O===`combobox`?queryInAriaOwned(e,`*`).find(e=>getAriaRole(e)===`listbox`):e;D=T?queryInAriaOwned(T,`[aria-selected="true"]`).filter(e=>getAriaRole(e)===`option`):[]}return!D.length&&k===`INPUT`?e.value:D.map(e=>getTextAlternativeInternal(e,E)).join(` `)}if([`progressbar`,`scrollbar`,`slider`,`spinbutton`,`meter`].includes(O))return T.visitedElements.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`)||``:e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`)||``:e.getAttribute(`value`)||``;if([`menu`].includes(O))return T.visitedElements.add(e),``}}let A=e.getAttribute(`aria-label`)||``;if(trimFlatString(A))return T.visitedElements.add(e),A;if(![`presentation`,`none`].includes(O)){if(k===`INPUT`&&[`button`,`submit`,`reset`].includes(e.type)){T.visitedElements.add(e);let E=e.value||``;return trimFlatString(E)?E:e.type===`submit`?`Submit`:e.type===`reset`?`Reset`:e.getAttribute(`title`)||``}if(k===`INPUT`&&e.type===`image`){T.visitedElements.add(e);let E=e.labels||[];if(E.length&&!T.embeddedInLabelledBy)return getAccessibleNameFromAssociatedLabels(E,T);let D=e.getAttribute(`alt`)||``;if(trimFlatString(D))return D;let O=e.getAttribute(`title`)||``;return trimFlatString(O)?O:`Submit`}if(!D&&k===`BUTTON`){T.visitedElements.add(e);let E=e.labels||[];if(E.length)return getAccessibleNameFromAssociatedLabels(E,T)}if(!D&&k===`OUTPUT`){T.visitedElements.add(e);let E=e.labels||[];return E.length?getAccessibleNameFromAssociatedLabels(E,T):e.getAttribute(`title`)||``}if(!D&&(k===`TEXTAREA`||k===`SELECT`||k===`INPUT`)){T.visitedElements.add(e);let E=e.labels||[];if(E.length)return getAccessibleNameFromAssociatedLabels(E,T);let D=k===`INPUT`&&[`text`,`password`,`search`,`tel`,`email`,`url`].includes(e.type)||k===`TEXTAREA`,O=e.getAttribute(`placeholder`)||``,A=e.getAttribute(`title`)||``;return!D||A?A:O}if(!D&&k===`FIELDSET`){T.visitedElements.add(e);for(let T=e.firstElementChild;T;T=T.nextElementSibling)if(elementSafeTagName(T)===`LEGEND`)return getTextAlternativeInternal(T,{...E,embeddedInNativeTextAlternative:{element:T,hidden:isElementHiddenForAria(T)}});return e.getAttribute(`title`)||``}if(!D&&k===`FIGURE`){T.visitedElements.add(e);for(let T=e.firstElementChild;T;T=T.nextElementSibling)if(elementSafeTagName(T)===`FIGCAPTION`)return getTextAlternativeInternal(T,{...E,embeddedInNativeTextAlternative:{element:T,hidden:isElementHiddenForAria(T)}});return e.getAttribute(`title`)||``}if(k===`IMG`){T.visitedElements.add(e);let E=e.getAttribute(`alt`)||``;return trimFlatString(E)?E:e.getAttribute(`title`)||``}if(k===`TABLE`){T.visitedElements.add(e);for(let T=e.firstElementChild;T;T=T.nextElementSibling)if(elementSafeTagName(T)===`CAPTION`)return getTextAlternativeInternal(T,{...E,embeddedInNativeTextAlternative:{element:T,hidden:isElementHiddenForAria(T)}});let D=e.getAttribute(`summary`)||``;if(D)return D}if(k===`AREA`){T.visitedElements.add(e);let E=e.getAttribute(`alt`)||``;return trimFlatString(E)?E:e.getAttribute(`title`)||``}if(k===`SVG`||e.ownerSVGElement){T.visitedElements.add(e);for(let T=e.firstElementChild;T;T=T.nextElementSibling)if(elementSafeTagName(T)===`TITLE`&&T.ownerSVGElement)return getTextAlternativeInternal(T,{...E,embeddedInLabelledBy:{element:T,hidden:isElementHiddenForAria(T)}})}if(e.ownerSVGElement&&k===`A`){let E=e.getAttribute(`xlink:title`)||``;if(trimFlatString(E))return T.visitedElements.add(e),E}}let j=k===`SUMMARY`&&![`presentation`,`none`].includes(O);if(allowsNameFromContent(O,T.embeddedInTargetElement===`descendant`)||j||T.embeddedInLabelledBy||T.embeddedInDescribedBy||T.embeddedInLabel||T.embeddedInNativeTextAlternative){T.visitedElements.add(e);let D=innerAccumulatedElementText(e,E);if(T.embeddedInTargetElement===`self`?trimFlatString(D):D)return D}if(![`presentation`,`none`].includes(O)||k===`IFRAME`){T.visitedElements.add(e);let E=e.getAttribute(`title`)||``;if(trimFlatString(E))return E}return T.visitedElements.add(e),``}function innerAccumulatedElementText(e,T){let E=[],D=(e,D)=>{if(!(D&&e.assignedSlot))if(e.nodeType===1){let D=getElementComputedStyle(e)?.display||`inline`,O=getTextAlternativeInternal(e,T);(D!==`inline`||e.nodeName===`BR`)&&(O=` `+O+` `),E.push(O)}else e.nodeType===3&&E.push(e.textContent||``)};E.push(getPseudoContent(e,`::before`));let O=e.nodeName===`SLOT`?e.assignedNodes():[];if(O.length)for(let e of O)D(e,!1);else{for(let T=e.firstChild;T;T=T.nextSibling)D(T,!0);if(e.shadowRoot)for(let T=e.shadowRoot.firstChild;T;T=T.nextSibling)D(T,!0);for(let T of getIdRefs(e,e.getAttribute(`aria-owns`)))D(T,!0)}return E.push(getPseudoContent(e,`::after`)),E.join(``)}var kAriaSelectedRoles=[`gridcell`,`option`,`row`,`tab`,`rowheader`,`columnheader`,`treeitem`];function getAriaSelected(e){return elementSafeTagName(e)===`OPTION`?e.selected:kAriaSelectedRoles.includes(getAriaRole(e)||``)?getAriaBoolean(e.getAttribute(`aria-selected`))===!0:!1}var kAriaCheckedRoles=[`checkbox`,`menuitemcheckbox`,`option`,`radio`,`switch`,`menuitemradio`,`treeitem`];function getAriaChecked(e){let T=getChecked(e);return T===`error`?!1:T}function getChecked(e,T){let E=elementSafeTagName(e);if(E===`INPUT`&&e.indeterminate)return`mixed`;if(E===`INPUT`&&[`checkbox`,`radio`].includes(e.type))return e.checked;if(kAriaCheckedRoles.includes(getAriaRole(e)||``)){let T=e.getAttribute(`aria-checked`);return T===`true`?!0:T===`mixed`?`mixed`:!1}return`error`}var kAriaPressedRoles=[`button`];function getAriaPressed(e){if(kAriaPressedRoles.includes(getAriaRole(e)||``)){let T=e.getAttribute(`aria-pressed`);if(T===`true`)return!0;if(T===`mixed`)return`mixed`}return!1}var kAriaExpandedRoles=[`application`,`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`row`,`rowheader`,`tab`,`treeitem`,`columnheader`,`menuitemcheckbox`,`menuitemradio`,`rowheader`,`switch`];function getAriaExpanded(e){if(elementSafeTagName(e)===`DETAILS`)return e.open;if(kAriaExpandedRoles.includes(getAriaRole(e)||``)){let T=e.getAttribute(`aria-expanded`);return T===null?`none`:T===`true`}return`none`}var kAriaLevelRoles=[`heading`,`listitem`,`row`,`treeitem`];function getAriaLevel(e){let T={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[elementSafeTagName(e)];if(T)return T;if(kAriaLevelRoles.includes(getAriaRole(e)||``)){let T=e.getAttribute(`aria-level`),E=T===null?NaN:Number(T);if(Number.isInteger(E)&&E>=1)return E}return 0}var kAriaDisabledRoles=`application.button.composite.gridcell.group.input.link.menuitem.scrollbar.separator.tab.checkbox.columnheader.combobox.grid.listbox.menu.menubar.menuitemcheckbox.menuitemradio.option.radio.radiogroup.row.rowheader.searchbox.select.slider.spinbutton.switch.tablist.textbox.toolbar.tree.treegrid.treeitem`.split(`.`);function getAriaDisabled(e){return isNativelyDisabled(e)||hasExplicitAriaDisabled(e)}function isNativelyDisabled(e){return[`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`OPTION`,`OPTGROUP`].includes(e.tagName)&&(e.hasAttribute(`disabled`)||belongsToDisabledFieldSet(e))}function belongsToDisabledFieldSet(e){let T=e?.closest(`FIELDSET[DISABLED]`);if(!T)return!1;let E=T.querySelector(`:scope > LEGEND`);return!E||!E.contains(e)}function hasExplicitAriaDisabled(e){if(!e)return!1;if(kAriaDisabledRoles.includes(getAriaRole(e)||``)){let T=(e.getAttribute(`aria-disabled`)||``).toLowerCase();if(T===`true`)return!0;if(T===`false`)return!1}return hasExplicitAriaDisabled(parentElementOrShadowHost(e))}function getAccessibleNameFromAssociatedLabels(e,T){return[...e].map(e=>getTextAlternativeInternal(e,{...T,embeddedInLabel:{element:e,hidden:isElementHiddenForAria(e)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(e=>!!e).join(` `)}var cacheAccessibleName,cacheAccessibleNameHidden,cacheAccessibleErrorMessage,cacheAccessibleDescription,cacheIsHidden,cachePseudoContentBefore,cachePseudoContentAfter,cachesCounter=0;function beginAriaCaches(){++cachesCounter,cacheAccessibleName??=new Map,cacheAccessibleNameHidden??=new Map,cacheAccessibleDescription??=new Map,cacheAccessibleErrorMessage??=new Map,cacheIsHidden??=new Map,cachePseudoContentBefore??=new Map,cachePseudoContentAfter??=new Map}function endAriaCaches(){--cachesCounter||(cacheAccessibleName=void 0,cacheAccessibleNameHidden=void 0,cacheAccessibleDescription=void 0,cacheAccessibleErrorMessage=void 0,cacheIsHidden=void 0,cachePseudoContentBefore=void 0,cachePseudoContentAfter=void 0)}function matchesAttributePart(e,T){let E=typeof e==`string`&&!T.caseSensitive?e.toUpperCase():e,D=typeof T.value==`string`&&!T.caseSensitive?T.value.toUpperCase():T.value;return T.op===``?!!E:T.op===`=`?D instanceof RegExp?typeof E==`string`&&!!E.match(D):E===D:typeof E!=`string`||typeof D!=`string`?!1:T.op===`*=`?E.includes(D):T.op===`^=`?E.startsWith(D):T.op===`$=`?E.endsWith(D):T.op===`|=`?E===D||E.startsWith(`${D}-`):T.op===`~=`?E.split(` `).includes(D):!1}function shouldSkipForTextMatching(e){let T=e.ownerDocument;return e.nodeName===`SCRIPT`||e.nodeName===`NOSCRIPT`||e.nodeName===`STYLE`||T.head&&T.head.contains(e)}function elementText(e,T){let E=e.get(T);if(E===void 0){if(E={full:``,normalized:``,immediate:[]},!shouldSkipForTextMatching(T)){let D=``;if(T instanceof HTMLInputElement&&(T.type===`submit`||T.type===`button`))E={full:T.value,normalized:normalizeWhiteSpace(T.value),immediate:[T.value]};else{for(let O=T.firstChild;O;O=O.nextSibling)O.nodeType===Node.TEXT_NODE?(E.full+=O.nodeValue||``,D+=O.nodeValue||``):(D&&E.immediate.push(D),D=``,O.nodeType===Node.ELEMENT_NODE&&(E.full+=elementText(e,O).full));D&&E.immediate.push(D),T.shadowRoot&&(E.full+=elementText(e,T.shadowRoot).full),E.full&&(E.normalized=normalizeWhiteSpace(E.full))}}e.set(T,E)}return E}function elementMatchesText(e,T,E){if(shouldSkipForTextMatching(T)||!E(elementText(e,T)))return`none`;for(let D=T.firstChild;D;D=D.nextSibling)if(D.nodeType===Node.ELEMENT_NODE&&E(elementText(e,D)))return`selfAndChildren`;return T.shadowRoot&&E(elementText(e,T.shadowRoot))?`selfAndChildren`:`self`}function getElementLabels(e,T){let E=getAriaLabelledByElements(T);if(E)return E.map(T=>elementText(e,T));let D=T.getAttribute(`aria-label`);if(D!==null&&D.trim())return[{full:D,normalized:normalizeWhiteSpace(D),immediate:[D]}];let O=T.nodeName===`INPUT`&&T.type!==`hidden`;if([`BUTTON`,`METER`,`OUTPUT`,`PROGRESS`,`SELECT`,`TEXTAREA`].includes(T.nodeName)||O){let E=T.labels;if(E)return[...E].map(T=>elementText(e,T))}return[]}var kSupportedAttributes=[`selected`,`checked`,`pressed`,`expanded`,`level`,`disabled`,`name`,`include-hidden`];kSupportedAttributes.sort();function validateSupportedRole(e,T,E){if(!T.includes(E))throw Error(`"${e}" attribute is only supported for roles: ${T.slice().sort().map(e=>`"${e}"`).join(`, `)}`)}function validateSupportedValues(e,T){if(e.op!==``&&!T.includes(e.value))throw Error(`"${e.name}" must be one of ${T.map(e=>JSON.stringify(e)).join(`, `)}`)}function validateSupportedOp(e,T){if(!T.includes(e.op))throw Error(`"${e.name}" does not support "${e.op}" matcher`)}function validateAttributes(e,T){let E={role:T};for(let D of e)switch(D.name){case`checked`:validateSupportedRole(D.name,kAriaCheckedRoles,T),validateSupportedValues(D,[!0,!1,`mixed`]),validateSupportedOp(D,[``,`=`]),E.checked=D.op===``?!0:D.value;break;case`pressed`:validateSupportedRole(D.name,kAriaPressedRoles,T),validateSupportedValues(D,[!0,!1,`mixed`]),validateSupportedOp(D,[``,`=`]),E.pressed=D.op===``?!0:D.value;break;case`selected`:validateSupportedRole(D.name,kAriaSelectedRoles,T),validateSupportedValues(D,[!0,!1]),validateSupportedOp(D,[``,`=`]),E.selected=D.op===``?!0:D.value;break;case`expanded`:validateSupportedRole(D.name,kAriaExpandedRoles,T),validateSupportedValues(D,[!0,!1]),validateSupportedOp(D,[``,`=`]),E.expanded=D.op===``?!0:D.value;break;case`level`:if(validateSupportedRole(D.name,kAriaLevelRoles,T),typeof D.value==`string`&&(D.value=+D.value),D.op!==`=`||typeof D.value!=`number`||Number.isNaN(D.value))throw Error(`"level" attribute must be compared to a number`);E.level=D.value;break;case`disabled`:validateSupportedValues(D,[!0,!1]),validateSupportedOp(D,[``,`=`]),E.disabled=D.op===``?!0:D.value;break;case`name`:if(D.op===``)throw Error(`"name" attribute must have a value`);if(typeof D.value!=`string`&&!(D.value instanceof RegExp))throw TypeError(`"name" attribute must be a string or a regular expression`);E.name=D.value,E.nameOp=D.op,E.exact=D.caseSensitive;break;case`include-hidden`:validateSupportedValues(D,[!0,!1]),validateSupportedOp(D,[``,`=`]),E.includeHidden=D.op===``?!0:D.value;break;default:throw Error(`Unknown attribute "${D.name}", must be one of ${kSupportedAttributes.map(e=>`"${e}"`).join(`, `)}.`)}return E}function queryRole(e,T,E){let D=[],O=e=>{if(getAriaRole(e)===T.role&&!(T.selected!==void 0&&getAriaSelected(e)!==T.selected)&&!(T.checked!==void 0&&getAriaChecked(e)!==T.checked)&&!(T.pressed!==void 0&&getAriaPressed(e)!==T.pressed)&&!(T.expanded!==void 0&&getAriaExpanded(e)!==T.expanded)&&!(T.level!==void 0&&getAriaLevel(e)!==T.level)&&!(T.disabled!==void 0&&getAriaDisabled(e)!==T.disabled)&&!(!T.includeHidden&&isElementHiddenForAria(e))){if(T.name!==void 0){let D=normalizeWhiteSpace(getElementAccessibleName(e,!!T.includeHidden));if(typeof T.name==`string`&&(T.name=normalizeWhiteSpace(T.name)),E&&!T.exact&&T.nameOp===`=`&&(T.nameOp=`*=`),!matchesAttributePart(D,{op:T.nameOp||`=`,value:T.name,caseSensitive:!!T.exact}))return}D.push(e)}},k=e=>{let T=[];e.shadowRoot&&T.push(e.shadowRoot);for(let E of e.querySelectorAll(`*`))O(E),E.shadowRoot&&T.push(E.shadowRoot);T.forEach(k)};return k(e),D}function createRoleEngine(e){return{queryAll:(T,E)=>{let D=parseAttributeSelector(E),O=D.name.toLowerCase();if(!O)throw Error(`Role must not be empty`);let k=validateAttributes(D.attributes,O);beginAriaCaches();try{return queryRole(T,k,e)}finally{endAriaCaches()}}}}function asLocator(e,T,E=!1){return asLocators(e,T,E)[0]}function asLocators(e,T,E=!1,D=20,O){try{return innerAsLocators(new generators[e](O),parseSelector(T),E,D)}catch{return[T]}}function innerAsLocators(e,T,E=!1,D=20){let O=[...T.parts];for(let e=0;ee.generateLocator(j,`has`,T)));continue}if(E.name===`internal:has-not`){let T=innerAsLocators(e,E.body.parsed,!1,D);k.push(T.map(T=>e.generateLocator(j,`hasNot`,T)));continue}if(E.name===`internal:and`){let T=innerAsLocators(e,E.body.parsed,!1,D);k.push(T.map(T=>e.generateLocator(j,`and`,T)));continue}if(E.name===`internal:or`){let T=innerAsLocators(e,E.body.parsed,!1,D);k.push(T.map(T=>e.generateLocator(j,`or`,T)));continue}if(E.name===`internal:chain`){let T=innerAsLocators(e,E.body.parsed,!1,D);k.push(T.map(T=>e.generateLocator(j,`chain`,T)));continue}if(E.name===`internal:label`){let{exact:T,text:D}=detectExact(E.body);k.push([e.generateLocator(j,`label`,D,{exact:T})]);continue}if(E.name===`internal:role`){let T=parseAttributeSelector(E.body),D={attrs:[]};for(let e of T.attributes)e.name===`name`?(D.exact=e.caseSensitive,D.name=e.value):(e.name===`level`&&typeof e.value==`string`&&(e.value=+e.value),D.attrs.push({name:e.name===`include-hidden`?`includeHidden`:e.name,value:e.value}));k.push([e.generateLocator(j,`role`,T.name,D)]);continue}if(E.name===`internal:testid`){let{value:T}=parseAttributeSelector(E.body).attributes[0];k.push([e.generateLocator(j,`test-id`,T)]);continue}if(E.name===`internal:attr`){let{name:T,value:D,caseSensitive:O}=parseAttributeSelector(E.body).attributes[0],A=D,M=!!O;if(T===`placeholder`){k.push([e.generateLocator(j,`placeholder`,A,{exact:M})]);continue}if(T===`alt`){k.push([e.generateLocator(j,`alt`,A,{exact:M})]);continue}if(T===`title`){k.push([e.generateLocator(j,`title`,A,{exact:M})]);continue}}let M=`default`,N=O[T+1];N&&N.name===`internal:control`&&N.body===`enter-frame`&&(M=`frame`,A=`frame-locator`,T++);let P=stringifySelector({parts:[E]}),F=e.generateLocator(j,M,P);if(M===`default`&&N&&[`internal:has-text`,`internal:has-not-text`].includes(N.name)){let{exact:E,text:D}=detectExact(N.body);if(!E){let O=e.generateLocator(`locator`,N.name===`internal:has-text`?`has-text`:`has-not-text`,D,{exact:E}),A={};N.name===`internal:has-text`?A.hasText=D:A.hasNotText=D;let M=e.generateLocator(j,`default`,P,A);k.push([e.chainLocators([F,O]),M]),T++;continue}}let I;if([`xpath`,`css`].includes(E.name)){let T=stringifySelector({parts:[E]},!0);I=e.generateLocator(j,M,T)}k.push([F,I].filter(Boolean))}return combineTokens(e,k,D)}function combineTokens(e,T,E){let D=T.map(()=>``),O=[],k=A=>{if(A===T.length)return O.push(e.chainLocators(D)),D.lengthe[0].selector[0]!==`/`)}function generateSelectorFor(e,T,E){if(T.ownerDocument.documentElement===T)return[{engine:`css`,selector:`html`,score:1}];let D=(D,k)=>{let A=D===T,j=k?buildTextCandidates(e,D,D===T):[];D!==T&&(j=filterRegexTokens(j));let M=buildNoTextCandidates(e,D,E).map(e=>[e]),N=chooseFirstSelector(e,T.ownerDocument,D,[...j,...M],A);j=filterRegexTokens(j);let P=T=>{let E=k&&!T.length,j=[...T,...M].filter(e=>N?combineScores(e)=combineScores(N))continue;if(P=chooseFirstSelector(e,T,D,j,A),!P)return;let M=[...k,...P];(!N||combineScores(M){let E=T?cacheAllowText:cacheDisallowText,O=E.get(e);return O===void 0&&(O=D(e,T),E.set(e,O)),O};return D(T,!E.noText)}function buildNoTextCandidates(e,T,E){let D=[];for(let e of[`data-testid`,`data-test-id`,`data-test`])e!==E.testIdAttributeName&&T.getAttribute(e)&&D.push({engine:`css`,selector:`[${e}=${quoteCSSAttributeValue(T.getAttribute(e))}]`,score:kOtherTestIdScore});if(!E.noCSSId){let e=T.getAttribute(`id`);e&&!isGuidLike(e)&&D.push({engine:`css`,selector:makeSelectorForId(e),score:kCSSIdScore})}if(D.push({engine:`css`,selector:cssEscape(T.nodeName.toLowerCase()),score:kCSSTagNameScore}),T.nodeName===`IFRAME`){for(let e of[`name`,`title`])T.getAttribute(e)&&D.push({engine:`css`,selector:`${cssEscape(T.nodeName.toLowerCase())}[${e}=${quoteCSSAttributeValue(T.getAttribute(e))}]`,score:kIframeByAttributeScore});return T.getAttribute(E.testIdAttributeName)&&D.push({engine:`css`,selector:`[${E.testIdAttributeName}=${quoteCSSAttributeValue(T.getAttribute(E.testIdAttributeName))}]`,score:kTestIdScore}),penalizeScoreForLength([D]),D}if(T.getAttribute(E.testIdAttributeName)&&D.push({engine:`internal:testid`,selector:`[${E.testIdAttributeName}=${escapeForAttributeSelector(T.getAttribute(E.testIdAttributeName),!0)}]`,score:kTestIdScore}),T.nodeName===`INPUT`||T.nodeName===`TEXTAREA`){let e=T;if(e.placeholder){D.push({engine:`internal:attr`,selector:`[placeholder=${escapeForAttributeSelector(e.placeholder,!0)}]`,score:kPlaceholderScoreExact});for(let T of suitableTextAlternatives(e.placeholder))D.push({engine:`internal:attr`,selector:`[placeholder=${escapeForAttributeSelector(T.text,!1)}]`,score:kPlaceholderScore-T.scoreBouns})}}let O=getElementLabels(e._evaluator._cacheText,T);for(let e of O){let T=e.normalized;D.push({engine:`internal:label`,selector:escapeForTextSelector$1(T,!0),score:kLabelScoreExact});for(let e of suitableTextAlternatives(T))D.push({engine:`internal:label`,selector:escapeForTextSelector$1(e.text,!1),score:kLabelScore-e.scoreBouns})}let k=getAriaRole(T);return k&&![`none`,`presentation`].includes(k)&&D.push({engine:`internal:role`,selector:k,score:kRoleWithoutNameScore}),T.getAttribute(`name`)&&[`BUTTON`,`FORM`,`FIELDSET`,`FRAME`,`IFRAME`,`INPUT`,`KEYGEN`,`OBJECT`,`OUTPUT`,`SELECT`,`TEXTAREA`,`MAP`,`META`,`PARAM`].includes(T.nodeName)&&D.push({engine:`css`,selector:`${cssEscape(T.nodeName.toLowerCase())}[name=${quoteCSSAttributeValue(T.getAttribute(`name`))}]`,score:kCSSInputTypeNameScore}),[`INPUT`,`TEXTAREA`].includes(T.nodeName)&&T.getAttribute(`type`)!==`hidden`&&T.getAttribute(`type`)&&D.push({engine:`css`,selector:`${cssEscape(T.nodeName.toLowerCase())}[type=${quoteCSSAttributeValue(T.getAttribute(`type`))}]`,score:kCSSInputTypeNameScore}),[`INPUT`,`TEXTAREA`,`SELECT`].includes(T.nodeName)&&T.getAttribute(`type`)!==`hidden`&&D.push({engine:`css`,selector:cssEscape(T.nodeName.toLowerCase()),score:kCSSInputTypeNameScore+1}),penalizeScoreForLength([D]),D}function buildTextCandidates(e,T,E){if(T.nodeName===`SELECT`)return[];let D=[],O=T.getAttribute(`title`);if(O){D.push([{engine:`internal:attr`,selector:`[title=${escapeForAttributeSelector(O,!0)}]`,score:kTitleScoreExact}]);for(let e of suitableTextAlternatives(O))D.push([{engine:`internal:attr`,selector:`[title=${escapeForAttributeSelector(e.text,!1)}]`,score:kTitleScore-e.scoreBouns}])}let k=T.getAttribute(`alt`);if(k&&[`APPLET`,`AREA`,`IMG`,`INPUT`].includes(T.nodeName)){D.push([{engine:`internal:attr`,selector:`[alt=${escapeForAttributeSelector(k,!0)}]`,score:kAltTextScoreExact}]);for(let e of suitableTextAlternatives(k))D.push([{engine:`internal:attr`,selector:`[alt=${escapeForAttributeSelector(e.text,!1)}]`,score:kAltTextScore-e.scoreBouns}])}let A=elementText(e._evaluator._cacheText,T).normalized;if(A){let e=suitableTextAlternatives(A);if(E){A.length<=80&&D.push([{engine:`internal:text`,selector:escapeForTextSelector$1(A,!0),score:kTextScoreExact}]);for(let T of e)D.push([{engine:`internal:text`,selector:escapeForTextSelector$1(T.text,!1),score:kTextScore-T.scoreBouns}])}let O={engine:`css`,selector:cssEscape(T.nodeName.toLowerCase()),score:kCSSTagNameScore};for(let T of e)D.push([O,{engine:`internal:has-text`,selector:escapeForTextSelector$1(T.text,!1),score:kTextScore-T.scoreBouns}]);if(A.length<=80){let e=RegExp(`^${escapeRegExp(A)}$`);D.push([O,{engine:`internal:has-text`,selector:escapeForTextSelector$1(e,!1),score:kTextScoreRegex}])}}let j=getAriaRole(T);if(j&&![`none`,`presentation`].includes(j)){let e=getElementAccessibleName(T,!1);if(e){D.push([{engine:`internal:role`,selector:`${j}[name=${escapeForAttributeSelector(e,!0)}]`,score:kRoleWithNameScoreExact}]);for(let T of suitableTextAlternatives(e))D.push([{engine:`internal:role`,selector:`${j}[name=${escapeForAttributeSelector(T.text,!1)}]`,score:kRoleWithNameScore-T.scoreBouns}])}}return penalizeScoreForLength(D),D}function makeSelectorForId(e){return/^[a-z][\w\-]+$/i.test(e)?`#${e}`:`[id="${cssEscape(e)}"]`}function cssFallback(e,T,E){let D=T.ownerDocument,O=[];function k(E){let k=O.slice();E&&k.unshift(E);let A=k.join(` > `),j=e.parseSelector(A);return e.querySelector(j,D,!1)===T?A:void 0}function A(E){let O={engine:`css`,selector:E,score:kCSSFallbackScore},k=e.parseSelector(E),A=e.querySelectorAll(k,D);return A.length===1?[O]:[O,{engine:`nth`,selector:String(A.indexOf(T)),score:kNthScore}]}for(let e=T;e&&e!==D;e=parentElementOrShadowHost(e)){let T=e.nodeName.toLowerCase(),D=``;if(e.id&&!E.noCSSId){let T=makeSelectorForId(e.id),E=k(T);if(E)return A(E);D=T}let j=e.parentNode,N=[...e.classList];for(let e=0;ee.nodeName.toLowerCase()===T).indexOf(e)===0?cssEscape(T):`${cssEscape(T)}:nth-child(${1+E.indexOf(e)})`,N=k(O);if(N)return A(N);D||=O}else D||=cssEscape(T);O.unshift(D)}return A(k())}function penalizeScoreForLength(e){for(let T of e)for(let e of T)e.score>kBeginPenalizedScore&&e.score>`),E=D,D===`css`?T.push(O):T.push(`${D}=${O}`);return T.join(` `)}function combineScores(e){let T=0;for(let E=0;E({tokens:e,score:combineScores(e)}));k.sort((e,T)=>e.score-T.score);let A=null;for(let{tokens:D}of k){let k=e.parseSelector(joinTokens(D)),j=e.querySelectorAll(k,T);if(j[0]===E&&j.length===1)return D;let M=j.indexOf(E);if(!O||A||M===-1||j.length>5)continue;let N={engine:`nth`,selector:String(M),score:kNthScore};A=[...D,N]}return A}function isGuidLike(e){let T,E=0;for(let D=0;D=`a`&&O<=`z`?`lower`:O>=`A`&&O<=`Z`?`upper`:O>=`0`&&O<=`9`?`digit`:`other`,k===`lower`&&T===`upper`){T=k;continue}T&&T!==k&&++E,T=k}}return E>=e.length/4}function trimWordBoundary(e,T){if(e.length<=T)return e;e=e.substring(0,T);let E=e.match(/^(.*)\b(.+)$/);return E?E[1].trimEnd():``}function suitableTextAlternatives(e){let T=[];{let E=e.match(/^([\d.,]+)[^.,\w]/),D=E?E[1].length:0;if(D){let E=trimWordBoundary(e.substring(D).trimStart(),80);T.push({text:E,scoreBouns:E.length<=30?2:1})}}{let E=e.match(/[^.,\w]([\d.,]+)$/),D=E?E[1].length:0;if(D){let E=trimWordBoundary(e.substring(0,e.length-D).trimEnd(),80);T.push({text:E,scoreBouns:E.length<=30?2:1})}}return e.length<=30?T.push({text:e,scoreBouns:0}):(T.push({text:trimWordBoundary(e,80),scoreBouns:0}),T.push({text:trimWordBoundary(e,30),scoreBouns:1})),T=T.filter(e=>e.text),T.length||T.push({text:e.substring(0,80),scoreBouns:0}),T}function boxRightOf(e,T,E){let D=e.left-T.right;if(!(D<0||E!==void 0&&D>E))return D+Math.max(T.bottom-e.bottom,0)+Math.max(e.top-T.top,0)}function boxLeftOf(e,T,E){let D=T.left-e.right;if(!(D<0||E!==void 0&&D>E))return D+Math.max(T.bottom-e.bottom,0)+Math.max(e.top-T.top,0)}function boxAbove(e,T,E){let D=T.top-e.bottom;if(!(D<0||E!==void 0&&D>E))return D+Math.max(e.left-T.left,0)+Math.max(T.right-e.right,0)}function boxBelow(e,T,E){let D=e.top-T.bottom;if(!(D<0||E!==void 0&&D>E))return D+Math.max(e.left-T.left,0)+Math.max(T.right-e.right,0)}function boxNear(e,T,E){let D=E===void 0?50:E,O=0;return e.left-T.right>=0&&(O+=e.left-T.right),T.left-e.right>=0&&(O+=T.left-e.right),T.top-e.bottom>=0&&(O+=T.top-e.bottom),e.top-T.bottom>=0&&(O+=e.top-T.bottom),O>D?void 0:O}var kLayoutSelectorNames=[`left-of`,`right-of`,`above`,`below`,`near`];function layoutSelectorScore(e,T,E,D){let O=T.getBoundingClientRect(),k={"left-of":boxLeftOf,"right-of":boxRightOf,above:boxAbove,below:boxBelow,near:boxNear}[e],A;for(let e of E){if(e===T)continue;let E=k(O,e.getBoundingClientRect(),D);E!==void 0&&(A===void 0||EE.every((T,E)=>e.rest[E]===T));if(k)return k.result;let A=D();return O.push({rest:E,result:A}),A}_checkSelector(e){if(!(typeof e==`object`&&e&&(Array.isArray(e)||`simples`in e&&e.simples.length)))throw Error(`Malformed selector "${e}"`);return e}matches(e,T,E){let D=this._checkSelector(T);this.begin();try{return this._cached(this._cacheMatches,e,[D,E.scope,E.pierceShadow,E.originalScope],()=>Array.isArray(D)?this._matchesEngine(isEngine,e,D,E):(this._hasScopeClause(D)&&(E=this._expandContextForScopeMatching(E)),this._matchesSimple(e,D.simples[D.simples.length-1].selector,E)?this._matchesParents(e,D,D.simples.length-2,E):!1))}finally{this.end()}}query(e,T){let E=this._checkSelector(T);this.begin();try{return this._cached(this._cacheQuery,E,[e.scope,e.pierceShadow,e.originalScope],()=>{if(Array.isArray(E))return this._queryEngine(isEngine,e,E);this._hasScopeClause(E)&&(e=this._expandContextForScopeMatching(e));let T=this._scoreMap;this._scoreMap=new Map;let D=this._querySimple(e,E.simples[E.simples.length-1].selector);return D=D.filter(T=>this._matchesParents(T,E,E.simples.length-2,e)),this._scoreMap.size&&D.sort((e,T)=>{let E=this._scoreMap.get(e),D=this._scoreMap.get(T);return E===D?0:E===void 0?1:D===void 0?-1:E-D}),this._scoreMap=T,D})}finally{this.end()}}_markScore(e,T){this._scoreMap&&this._scoreMap.set(e,T)}_hasScopeClause(e){return e.simples.some(e=>e.selector.functions.some(e=>e.name===`scope`))}_expandContextForScopeMatching(e){if(e.scope.nodeType!==1)return e;let T=parentElementOrShadowHost(e.scope);return T?{...e,scope:T,originalScope:e.originalScope||e.scope}:e}_matchesSimple(e,T,E){return this._cached(this._cacheMatchesSimple,e,[T,E.scope,E.pierceShadow,E.originalScope],()=>{if(e===E.scope||T.css&&!this._matchesCSS(e,T.css))return!1;for(let D of T.functions)if(!this._matchesEngine(this._getEngine(D.name),e,D.args,E))return!1;return!0})}_querySimple(e,T){return T.functions.length?this._cached(this._cacheQuerySimple,T,[e.scope,e.pierceShadow,e.originalScope],()=>{let E=T.css,D=T.functions;E===`*`&&D.length&&(E=void 0);let O,k=-1;E===void 0?(k=D.findIndex(e=>this._getEngine(e.name).query!==void 0),k===-1&&(k=0),O=this._queryEngine(this._getEngine(D[k].name),e,D[k].args)):O=this._queryCSS(e,E);for(let T=0;Tthis._matchesEngine(E,O,D[T].args,e)))}for(let T=0;Tthis._matchesEngine(E,O,D[T].args,e)))}return O}):this._queryCSS(e,T.css||`*`)}_matchesParents(e,T,E,D){return E<0?!0:this._cached(this._cacheMatchesParents,e,[T,E,D.scope,D.pierceShadow,D.originalScope],()=>{let{selector:O,combinator:k}=T.simples[E];if(k===`>`){let k=parentElementOrShadowHostInContext(e,D);return!k||!this._matchesSimple(k,O,D)?!1:this._matchesParents(k,T,E-1,D)}if(k===`+`){let k=previousSiblingInContext(e,D);return!k||!this._matchesSimple(k,O,D)?!1:this._matchesParents(k,T,E-1,D)}if(k===``){let k=parentElementOrShadowHostInContext(e,D);for(;k;){if(this._matchesSimple(k,O,D)){if(this._matchesParents(k,T,E-1,D))return!0;if(T.simples[E-1].combinator===``)break}k=parentElementOrShadowHostInContext(k,D)}return!1}if(k===`~`){let k=previousSiblingInContext(e,D);for(;k;){if(this._matchesSimple(k,O,D)){if(this._matchesParents(k,T,E-1,D))return!0;if(T.simples[E-1].combinator===`~`)break}k=previousSiblingInContext(k,D)}return!1}if(k===`>=`){let k=e;for(;k;){if(this._matchesSimple(k,O,D)){if(this._matchesParents(k,T,E-1,D))return!0;if(T.simples[E-1].combinator===``)break}k=parentElementOrShadowHostInContext(k,D)}return!1}throw Error(`Unsupported combinator "${k}"`)})}_matchesEngine(e,T,E,D){if(e.matches)return this._callMatches(e,T,E,D);if(e.query)return this._callQuery(e,E,D).includes(T);throw Error(`Selector engine should implement "matches" or "query"`)}_queryEngine(e,T,E){if(e.query)return this._callQuery(e,E,T);if(e.matches)return this._queryCSS(T,`*`).filter(D=>this._callMatches(e,D,E,T));throw Error(`Selector engine should implement "matches" or "query"`)}_callMatches(e,T,E,D){return this._cached(this._cacheCallMatches,T,[e,D.scope,D.pierceShadow,D.originalScope,...E],()=>e.matches(T,E,D,this))}_callQuery(e,T,E){return this._cached(this._cacheCallQuery,e,[E.scope,E.pierceShadow,E.originalScope,...T],()=>e.query(E,T,this))}_matchesCSS(e,T){return e.matches(T)}_queryCSS(e,T){return this._cached(this._cacheQueryCSS,T,[e.scope,e.pierceShadow,e.originalScope],()=>{let E=[];function D(O){if(E=E.concat([...O.querySelectorAll(T)]),e.pierceShadow){O.shadowRoot&&D(O.shadowRoot);for(let e of O.querySelectorAll(`*`))e.shadowRoot&&D(e.shadowRoot)}}return D(e.scope),E})}_getEngine(e){let T=this._engines.get(e);if(!T)throw Error(`Unknown selector engine "${e}"`);return T}},isEngine={matches(e,T,E,D){if(T.length===0)throw Error(`"is" engine expects non-empty selector list`);return T.some(T=>D.matches(e,T,E))},query(e,T,E){if(T.length===0)throw Error(`"is" engine expects non-empty selector list`);let D=[];for(let O of T)D=D.concat(E.query(e,O));return T.length===1?D:sortInDOMOrder(D)}},hasEngine={matches(e,T,E,D){if(T.length===0)throw Error(`"has" engine expects non-empty selector list`);return D.query({...E,scope:e},T).length>0}},scopeEngine={matches(e,T,E,D){if(T.length!==0)throw Error(`"scope" engine expects no arguments`);let O=E.originalScope||E.scope;return O.nodeType===9?e===O.documentElement:e===O},query(e,T,E){if(T.length!==0)throw Error(`"scope" engine expects no arguments`);let D=e.originalScope||e.scope;if(D.nodeType===9){let e=D.documentElement;return e?[e]:[]}return D.nodeType===1?[D]:[]}},notEngine={matches(e,T,E,D){if(T.length===0)throw Error(`"not" engine expects non-empty selector list`);return!D.matches(e,T,E)}},lightEngine={query(e,T,E){return E.query({...e,pierceShadow:!1},T)},matches(e,T,E,D){return D.matches(e,T,{...E,pierceShadow:!1})}},visibleEngine={matches(e,T,E,D){if(T.length)throw Error(`"visible" engine expects no arguments`);return isElementVisible(e)}},textEngine={matches(e,T,E,D){if(T.length!==1||typeof T[0]!=`string`)throw Error(`"text" engine expects a single string`);let O=normalizeWhiteSpace(T[0]).toLowerCase();return elementMatchesText(D._cacheText,e,e=>e.normalized.toLowerCase().includes(O))===`self`}},textIsEngine={matches(e,T,E,D){if(T.length!==1||typeof T[0]!=`string`)throw Error(`"text-is" engine expects a single string`);let O=normalizeWhiteSpace(T[0]);return elementMatchesText(D._cacheText,e,e=>!O&&!e.immediate.length?!0:e.immediate.some(e=>normalizeWhiteSpace(e)===O))!==`none`}},textMatchesEngine={matches(e,T,E,D){if(T.length===0||typeof T[0]!=`string`||T.length>2||T.length===2&&typeof T[1]!=`string`)throw Error(`"text-matches" engine expects a regexp body and optional regexp flags`);let O=new RegExp(T[0],T.length===2?T[1]:void 0);return elementMatchesText(D._cacheText,e,e=>O.test(e.full))===`self`}},hasTextEngine={matches(e,T,E,D){if(T.length!==1||typeof T[0]!=`string`)throw Error(`"has-text" engine expects a single string`);if(shouldSkipForTextMatching(e))return!1;let O=normalizeWhiteSpace(T[0]).toLowerCase();return(e=>e.normalized.toLowerCase().includes(O))(elementText(D._cacheText,e))}};function createLayoutEngine(e){return{matches(T,E,D,O){let k=E.length&&typeof E[E.length-1]==`number`?E[E.length-1]:void 0,A=k===void 0?E:E.slice(0,E.length-1);if(E.length<1+(k===void 0?0:1))throw Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);let j=layoutSelectorScore(e,T,O.query(D,A),k);return j===void 0?!1:(O._markScore(T,j),!0)}}}var nthMatchEngine={query(e,T,E){let D=T[T.length-1];if(T.length<2)throw Error(`"nth-match" engine expects non-empty selector list and an index argument`);if(typeof D!=`number`||D<1)throw Error(`"nth-match" engine expects a one-based index as the last argument`);let O=isEngine.query(e,T.slice(0,T.length-1),E);return D--,D1){let T=new Set(E.children);E.children=[];let D=e.firstElementChild;for(;D&&E.children.length`[${e}=${T}]`).join(``)}`}var _Ivya=class e{constructor(){__publicField(this,`_engines`),__publicField(this,`_evaluator`),this._evaluator=new SelectorEvaluatorImpl(new Map),this._engines=new Map,this._engines.set(`xpath`,XPathEngine),this._engines.set(`xpath:light`,XPathEngine),this._engines.set(`role`,createRoleEngine(!1)),this._engines.set(`text`,this._createTextEngine(!0,!1)),this._engines.set(`text:light`,this._createTextEngine(!1,!1)),this._engines.set(`id`,this._createAttributeEngine(`id`,!0)),this._engines.set(`id:light`,this._createAttributeEngine(`id`,!1)),this._engines.set(`data-testid`,this._createAttributeEngine(`data-testid`,!0)),this._engines.set(`data-testid:light`,this._createAttributeEngine(`data-testid`,!1)),this._engines.set(`data-test-id`,this._createAttributeEngine(`data-test-id`,!0)),this._engines.set(`data-test-id:light`,this._createAttributeEngine(`data-test-id`,!1)),this._engines.set(`data-test`,this._createAttributeEngine(`data-test`,!0)),this._engines.set(`data-test:light`,this._createAttributeEngine(`data-test`,!1)),this._engines.set(`css`,this._createCSSEngine()),this._engines.set(`nth`,{queryAll:()=>[]}),this._engines.set(`visible`,this._createVisibleEngine()),this._engines.set(`internal:control`,this._createControlEngine()),this._engines.set(`internal:has`,this._createHasEngine()),this._engines.set(`internal:has-not`,this._createHasNotEngine()),this._engines.set(`internal:and`,{queryAll:()=>[]}),this._engines.set(`internal:or`,{queryAll:()=>[]}),this._engines.set(`internal:chain`,this._createInternalChainEngine()),this._engines.set(`internal:label`,this._createInternalLabelEngine()),this._engines.set(`internal:text`,this._createTextEngine(!0,!0)),this._engines.set(`internal:has-text`,this._createInternalHasTextEngine()),this._engines.set(`internal:has-not-text`,this._createInternalHasNotTextEngine()),this._engines.set(`internal:attr`,this._createNamedAttributeEngine()),this._engines.set(`internal:testid`,this._createNamedAttributeEngine()),this._engines.set(`internal:role`,createRoleEngine(!0))}static create(T){return Object.assign(e.options,T),e.singleton||=new e}queryLocatorSelector(e,T=document.documentElement,E=!0){return this.querySelector(this.parseSelector(e),T,E)}queryLocatorSelectorAll(e,T=document.documentElement){return this.querySelectorAll(this.parseSelector(e),T)}querySelector(e,T,E=!0){let D=this.querySelectorAll(e,T);if(E&&D.length>1)throw this.strictModeViolationError(e,D);return D[0]||null}queryAllByRole(e,T,E=document.documentElement){let D=this.parseSelector(getByRoleSelector(e,T));return this.querySelectorAll(D,E)}queryAllByLabelText(e,T,E=document.documentElement){let D=this.parseSelector(getByLabelSelector(e,T));return this.querySelectorAll(D,E)}queryAllByTestId(T,E=document.documentElement){let D=this.parseSelector(getByTestIdSelector(e.options.testIdAttribute,T));return this.querySelectorAll(D,E)}queryAllByText(e,T,E=document.documentElement){let D=this.parseSelector(getByTextSelector(e,T));return this.querySelectorAll(D,E)}queryAllByTitle(e,T,E=document.documentElement){let D=this.parseSelector(getByTitleSelector(e,T));return this.querySelectorAll(D,E)}queryAllByPlaceholder(e,T,E=document.documentElement){let D=this.parseSelector(getByPlaceholderSelector(e,T));return this.querySelectorAll(D,E)}queryAllByAltText(e,T,E=document.documentElement){let D=this.parseSelector(getByAltTextSelector(e,T));return this.querySelectorAll(D,E)}queryByRole(e,T,E=document.documentElement){let D=this.parseSelector(getByRoleSelector(e,T));return this.querySelector(D,E,!1)}queryByLabelText(e,T,E=document.documentElement){let D=this.parseSelector(getByLabelSelector(e,T));return this.querySelector(D,E,!1)}queryByTestId(T,E=document.documentElement){let D=this.parseSelector(getByTestIdSelector(e.options.testIdAttribute,T));return this.querySelector(D,E,!1)}queryByText(e,T,E=document.documentElement){let D=this.parseSelector(getByTextSelector(e,T));return this.querySelector(D,E,!1)}queryByTitle(e,T,E=document.documentElement){let D=this.parseSelector(getByTitleSelector(e,T));return this.querySelector(D,E,!1)}queryByPlaceholder(e,T,E=document.documentElement){let D=this.parseSelector(getByPlaceholderSelector(e,T));return this.querySelector(D,E,!1)}queryByAltText(e,T,E=document.documentElement){let D=this.parseSelector(getByAltTextSelector(e,T));return this.querySelector(D,E,!1)}strictModeViolationError(e,T){let E=T.slice(0,10).map(e=>({preview:this.previewNode(e),selector:this.generateSelectorSimple(e)})),D=E.map((e,T)=>` - ${T+1}) ${e.preview} aka ${asLocator(`javascript`,e.selector)}`);return E.length{if(!this._engines.has(T.name))throw this.createStacklessError(`Unknown engine "${T.name}" while parsing selector ${e}`)}),T}previewNode(e){if(e.nodeType===Node.TEXT_NODE)return oneLine(`#text=${e.nodeValue||``}`);if(e.nodeType!==Node.ELEMENT_NODE)return oneLine(`<${e.nodeName.toLowerCase()} />`);let T=e,E=[];for(let e=0;ee.length-T.length);let D=trimStringWithEllipsis(E.join(``),500);if(autoClosingTags.has(T.nodeName))return oneLine(`<${T.nodeName.toLowerCase()}${D}/>`);let O=T.childNodes,k=!1;if(O.length<=5){k=!0;for(let e=0;e${trimStringWithEllipsis(A,50)}`)}querySelectorAll(e,T){if(e.capture!==void 0){if(e.parts.some(e=>e.name===`nth`))throw this.createStacklessError(`Can't query n-th element in a request with the capture.`);let E={parts:e.parts.slice(0,e.capture+1)};if(e.captureE.has(e)))}else if(D.name===`internal:or`){let e=this.querySelectorAll(D.body.parsed,T);E=new Set(sortInDOMOrder(new Set([...E,...e])))}else if(kLayoutSelectorNames.includes(D.name))E=this._queryLayoutSelector(E,D,T);else{let e=new Set;for(let T of E){let E=this._queryEngineAll(D,T);for(let T of E)e.add(T)}E=e}return[...E]}finally{this._evaluator.end()}}_queryEngineAll(e,T){let E=this._engines.get(e.name).queryAll(T,e.body);for(let e of E)if(!(`nodeName`in e))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(e)}`);return E}_queryNth(e,T){let E=[...e],D=+T.body;return D===-1&&(D=E.length-1),new Set(E.slice(D,D+1))}_queryLayoutSelector(e,T,E){let D=T.name,O=T.body,k=[],A=this.querySelectorAll(O.parsed,E);for(let T of e){let e=layoutSelectorScore(D,T,A,O.distance);e!==void 0&&k.push({element:T,score:e})}return k.sort((e,T)=>e.score-T.score),new Set(k.map(e=>e.element))}createStacklessError(T){if(e.options.browser===`firefox`){let e=Error(`Error: ${T}`);return e.stack=``,e}let E=Error(T);return delete E.stack,E}_createTextEngine(e,T){return{queryAll:(E,D)=>{let{matcher:O,kind:k}=createTextMatcher(D,T),A=[],j=null,M=e=>{if(k===`lax`&&j&&j.contains(e))return!1;let E=elementMatchesText(this._evaluator._cacheText,e,O);E===`none`&&(j=e),(E===`self`||E===`selfAndChildren`&&k===`strict`&&!T)&&A.push(e)};E.nodeType===Node.ELEMENT_NODE&&M(E);let N=this._evaluator._queryCSS({scope:E,pierceShadow:e},`*`);for(let e of N)M(e);return A}}}_createAttributeEngine(e,T){let E=T=>[{simples:[{selector:{css:`[${e}=${JSON.stringify(T)}]`,functions:[]},combinator:``}]}];return{queryAll:(e,D)=>this._evaluator.query({scope:e,pierceShadow:T},E(D))}}_createCSSEngine(){return{queryAll:(e,T)=>this._evaluator.query({scope:e,pierceShadow:!0},T)}}_createNamedAttributeEngine(){return{queryAll:(e,T)=>{let E=parseAttributeSelector(T);if(E.name||E.attributes.length!==1)throw Error(`Malformed attribute selector: ${T}`);let{name:D,value:O,caseSensitive:k}=E.attributes[0],A=k?null:O.toLowerCase(),j;return j=O instanceof RegExp?e=>!!e.match(O):k?e=>e===O:e=>e.toLowerCase().includes(A),this._evaluator._queryCSS({scope:e,pierceShadow:!0},`[${D}]`).filter(e=>j(e.getAttribute(D)))}}}_createVisibleEngine(){return{queryAll:(e,T)=>e.nodeType===1&&isElementVisible(e)===!!T?[e]:[]}}_createControlEngine(){return{queryAll:(e,T)=>{if(T===`enter-frame`&&e instanceof HTMLIFrameElement){let T=e.contentDocument?.documentElement;return T?[T]:[]}return[]}}}_createHasEngine(){return{queryAll:(e,T)=>e.nodeType===1&&this.querySelector(T.parsed,e,!1)?[e]:[]}}_createHasNotEngine(){return{queryAll:(e,T)=>e.nodeType===1?this.querySelector(T.parsed,e,!1)?[]:[e]:[]}}_createInternalChainEngine(){return{queryAll:(e,T)=>this.querySelectorAll(T.parsed,e)}}_createInternalLabelEngine(){return{queryAll:(e,T)=>{let{matcher:E}=createTextMatcher(T,!0);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},`*`).filter(e=>getElementLabels(this._evaluator._cacheText,e).some(e=>E(e)))}}}_createInternalHasTextEngine(){return{queryAll:(e,T)=>{if(e.nodeType!==1)return[];let E=e,D=elementText(this._evaluator._cacheText,E),{matcher:O}=createTextMatcher(T,!0);return O(D)?[E]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(e,T)=>{if(e.nodeType!==1)return[];let E=e,D=elementText(this._evaluator._cacheText,E),{matcher:O}=createTextMatcher(T,!0);return O(D)?[]:[E]}}}};__publicField(_Ivya,`options`,{testIdAttribute:`data-testid`,browser:`chromium`}),__publicField(_Ivya,`singleton`,null);var Ivya=_Ivya;function oneLine(e){return e.replace(/\n/g,`↵`).replace(/\t/g,`⇆`)}var booleanAttributes=new Set([`checked`,`selected`,`disabled`,`readonly`,`multiple`]),autoClosingTags=new Set([`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`MENUITEM`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`]);function cssUnquote(e){if(e=e.substring(1,e.length-1),!e.includes(`\\`))return e;let T=[],E=0;for(;E0){let T=e.lastIndexOf(`/`),E=new RegExp(e.substring(1,T),e.substring(T+1));return{matcher:e=>E.test(e.full),kind:`regex`}}let E=T?JSON.parse.bind(JSON):cssUnquote,D=!1;return e.length>1&&e[0]===`"`&&e[e.length-1]===`"`?(e=E(e),D=!0):T&&e.length>1&&e[0]===`"`&&e[e.length-2]===`"`&&e[e.length-1]===`i`?(e=E(e.substring(0,e.length-1)),D=!1):T&&e.length>1&&e[0]===`"`&&e[e.length-2]===`"`&&e[e.length-1]===`s`?(e=E(e.substring(0,e.length-1)),D=!0):e.length>1&&e[0]===`'`&&e[e.length-1]===`'`&&(e=E(e),D=!0),e=normalizeWhiteSpace(e),D?T?{kind:`strict`,matcher:T=>T.normalized===e}:{matcher:T=>!e&&!T.immediate.length?!0:T.immediate.some(T=>normalizeWhiteSpace(T)===e),kind:`strict`}:(e=e.toLowerCase(),{kind:`lax`,matcher:T=>T.normalized.toLowerCase().includes(e)})}var XPathEngine={queryAll(e,T){T.startsWith(`/`)&&e.nodeType!==Node.DOCUMENT_NODE&&(T=`.${T}`);let E=[],D=e.ownerDocument||e;if(!D)return E;let O=D.evaluate(T,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let e=O.iterateNext();e;e=O.iterateNext())e.nodeType===Node.ELEMENT_NODE&&E.push(e);return E}};function parentElementOrShadowHost(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function enclosingShadowRootOrDocument(e){let T=e;for(;T.parentNode;)T=T.parentNode;if(T.nodeType===11||T.nodeType===9)return T}function enclosingShadowHost(e){for(;e.parentElement;)e=e.parentElement;return parentElementOrShadowHost(e)}function closestCrossShadow(e,T){for(;e;){let E=e.closest(T);if(E)return E;e=enclosingShadowHost(e)}}function getElementComputedStyle(e,T){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,T):void 0}function isElementStyleVisibilityVisible(e,T){if(T??=getElementComputedStyle(e),!T)return!0;if(Element.prototype.checkVisibility&&Ivya.options.browser!==`webkit`){if(!e.checkVisibility())return!1}else{let T=e.closest(`details,summary`);if(T!==e&&T?.nodeName===`DETAILS`&&!T.open)return!1}return T.visibility===`visible`}function isElementVisible(e){let T=getElementComputedStyle(e);if(!T)return!0;if(T.display===`contents`){for(let T=e.firstChild;T;T=T.nextSibling)if(T.nodeType===1&&isElementVisible(T)||T.nodeType===3&&isVisibleTextNode(T))return!0;return!1}if(!isElementStyleVisibilityVisible(e,T))return!1;let E=e.getBoundingClientRect();return E.width>0&&E.height>0}function isVisibleTextNode(e){let T=e.ownerDocument.createRange();T.selectNode(e);let E=T.getBoundingClientRect();return E.width>0&&E.height>0}function elementSafeTagName(e){return e instanceof HTMLFormElement?`FORM`:e.tagName.toUpperCase()}function ensureAwaited(e){let T=getWorkerState().current;if(!T||T.type!==`test`)return e();let E=!1,D=Error(`STACK_TRACE_ERROR`);T.onFinished??=[],T.onFinished.push(()=>{if(!E){let e=Error(`The call was not awaited. This method is asynchronous and must be awaited; otherwise, the call will not start to avoid unhandled rejections.`);throw e.stack=D.stack?.replace(D.message,e.message),e}});let O;return{then(T,k){return E=!0,(O||=e(D)).then(T,k)},catch(T){return(O||=e(D)).catch(T)},finally(T){return(O||=e(D)).finally(T)},[Symbol.toStringTag]:`Promise`}}function getBrowserState(){return window.__vitest_browser_runner__}function getWorkerState(){let e=window.__vitest_worker__;if(!e)throw Error(`Worker state is not found. This is an issue with Vitest. Please, open an issue.`);return e}const provider=getBrowserState().provider;function convertElementToCssSelector(e){if(!e||!(e instanceof Element))throw Error(`Expected DOM element to be an instance of Element, received ${typeof e}`);return getUniqueCssSelector(e)}function escapeIdForCSSSelector(e){return e.split(``).map(e=>{let T=e.charCodeAt(0);return e===` `||e===`#`||e===`.`||e===`:`||e===`[`||e===`]`||e===`>`||e===`+`||e===`~`||e===`\\`?`\\${e}`:T>=65536?`\\${T.toString(16).toUpperCase().padStart(6,`0`)} `:T<32||T===127||T>=128?`\\${T.toString(16).toUpperCase().padStart(2,`0`)} `:e}).join(``)}function getUniqueCssSelector(e){let T=[],E,D=!1;for(;E=getParent(e);){E.shadowRoot&&(D=!0);let O=e.tagName;if(e.id)T.push(`#${escapeIdForCSSSelector(e.id)}`);else if(!e.nextElementSibling&&!e.previousElementSibling)T.push(O.toLowerCase());else{let D=0,k=0,A=0;for(let T of E.children)D++,T.tagName===O&&k++,T===e&&(A=D);k>1?T.push(`${O.toLowerCase()}:nth-child(${A})`):T.push(O.toLowerCase())}e=E}return`${getBrowserState().provider===`webdriverio`&&D?`>>>`:``}${T.reverse().join(` > `)}`}function getParent(e){let T=e.parentNode;return T instanceof ShadowRoot?T.host:T}const now=Date.now;function processTimeoutOptions(e){if(e&&e.timeout!=null||provider!==`playwright`||getWorkerState().config.browser.providerOptions.actionTimeout!=null)return e;let T=getBrowserState().runner,E=T._currentTaskStartTime;if(!E)return e;let D=T._currentTaskTimeout;if(D===0||D==null||D===1/0)return e;e||={};let O=now(),k=E+D-O;return k<=0||(e.timeout=k-100),e}function getIframeScale(){let e=window.parent.document.querySelector(`iframe[data-vitest]`)?.parentElement;if(!e)throw Error(`Cannot find Tester element. This is a bug in Vitest. Please, open a new issue with reproduction.`);let T=e.getAttribute(`data-scale`),E=Number(T);if(Number.isNaN(E))throw TypeError(`Cannot parse scale value from Tester element (${T}). This is a bug in Vitest. Please, open a new issue with reproduction.`);return E}function escapeRegexForSelector(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,`$1$2\\$3`).replace(/>>/g,`\\>\\>`)}function escapeForTextSelector(e,T){return typeof e==`string`?`${JSON.stringify(e)}i`:escapeRegexForSelector(e)}function convertToSelector(e){if(!e)throw Error(`Expected element or locator to be defined.`);if(e instanceof Element)return convertElementToCssSelector(e);if(isLocator(e))return e.selector;throw Error(`Expected element or locator to be an instance of Element or Locator.`)}const kLocator$1=Symbol.for(`$$vitest:locator`);function isLocator(e){return!!e&&typeof e==`object`&&kLocator$1 in e}__INTERNAL._asLocator=asLocator;const selectorEngine=Ivya.create({browser:(e=>{switch(e){case`edge`:case`chrome`:return`chromium`;case`safari`:return`webkit`;default:return e}})(server.config.browser.name),testIdAttribute:server.config.browser.locators.testIdAttribute}),kLocator=Symbol.for(`$$vitest:locator`);class Locator{_parsedSelector;_container;_pwSelector;constructor(){Object.defineProperty(this,kLocator,{enumerable:!1,writable:!1,configurable:!1,value:kLocator})}click(e){return this.triggerCommand(`__vitest_click`,this.selector,e)}dblClick(e){return this.triggerCommand(`__vitest_dblClick`,this.selector,e)}tripleClick(e){return this.triggerCommand(`__vitest_tripleClick`,this.selector,e)}clear(e){return this.triggerCommand(`__vitest_clear`,this.selector,e)}hover(e){return this.triggerCommand(`__vitest_hover`,this.selector,e)}unhover(e){return this.triggerCommand(`__vitest_hover`,`html > body`,e)}fill(e,T){return this.triggerCommand(`__vitest_fill`,this.selector,e,T)}async upload(e,T){let E=(Array.isArray(e)?e:[e]).map(async e=>{if(typeof e==`string`)return e;let T=await new Promise((T,E)=>{let D=new FileReader;D.onload=()=>T(D.result),D.onerror=()=>E(Error(`Failed to read file: ${e.name}`)),D.readAsDataURL(e)});return{name:e.name,mimeType:e.type,base64:T.slice(T.indexOf(`,`)+1)}});return this.triggerCommand(`__vitest_upload`,this.selector,await Promise.all(E),T)}dropTo(e,T={}){return this.triggerCommand(`__vitest_dragAndDrop`,this.selector,e.selector,T)}selectOptions(e,T){let E=(Array.isArray(e)?e:[e]).map(e=>typeof e==`string`?e:{element:isLocator(e)?e.selector:selectorEngine.generateSelectorSimple(e)});return this.triggerCommand(`__vitest_selectOptions`,this.selector,E,T)}screenshot(e){return page.screenshot({...e,element:this})}getByRole(e,T){return this.locator(getByRoleSelector(e,T))}getByAltText(e,T){return this.locator(getByAltTextSelector(e,T))}getByLabelText(e,T){return this.locator(getByLabelSelector(e,T))}getByPlaceholder(e,T){return this.locator(getByPlaceholderSelector(e,T))}getByTestId(T){return this.locator(getByTestIdSelector(server.config.browser.locators.testIdAttribute,T))}getByText(e,T){return this.locator(getByTextSelector(e,T))}getByTitle(e,T){return this.locator(getByTitleSelector(e,T))}filter(e){let T=[];if(e?.hasText&&T.push(`internal:has-text=${escapeForTextSelector(e.hasText)}`),e?.hasNotText&&T.push(`internal:has-not-text=${escapeForTextSelector(e.hasNotText)}`),e?.has){let E=e.has;T.push(`internal:has=${JSON.stringify(E._pwSelector||E.selector)}`)}if(e?.hasNot){let E=e.hasNot;T.push(`internal:has-not=${JSON.stringify(E._pwSelector||E.selector)}`)}if(!T.length)throw Error(`Locator.filter expects at least one filter. None provided.`);return this.locator(T.join(` >> `))}and(e){return this.locator(`internal:and=${JSON.stringify(e._pwSelector||e.selector)}`)}or(e){return this.locator(`internal:or=${JSON.stringify(e._pwSelector||e.selector)}`)}query(){let e=this._parsedSelector||=selectorEngine.parseSelector(this._pwSelector||this.selector);return selectorEngine.querySelector(e,document.documentElement,!0)}element(){let e=this.query();if(!e)throw utils.getElementError(this._pwSelector||this.selector,this._container||document.body);return e}elements(){let e=this._parsedSelector||=selectorEngine.parseSelector(this._pwSelector||this.selector);return selectorEngine.querySelectorAll(e,document.documentElement)}get length(){return this.elements().length}all(){return this.elements().map(e=>this.elementLocator(e))}nth(e){return this.locator(`nth=${e}`)}first(){return this.nth(0)}last(){return this.nth(-1)}toString(){return this.selector}toJSON(){return this.selector}triggerCommand(e,...T){let E=getBrowserState().commands;return ensureAwaited(D=>E.triggerCommand(e,T,D))}}export{Locator as L,getAriaRole as a,getAriaDisabled as b,beginAriaCaches as c,getElementAccessibleDescription as d,endAriaCaches as e,getElementAccessibleErrorMessage as f,getAriaChecked as g,getElementAccessibleName as h,isElementVisible as i,cssEscape as j,kAriaCheckedRoles as k,convertToSelector as l,getBrowserState as m,convertElementToCssSelector as n,getIframeScale as o,processTimeoutOptions as p,getByAltTextSelector as q,getByLabelSelector as r,selectorEngine as s,getByPlaceholderSelector as t,getByRoleSelector as u,getByTestIdSelector as v,getByTextSelector as w,getByTitleSelector as x}; diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index.d.ts b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index.d.ts deleted file mode 100644 index a7f35ec..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { ResolvedConfig, BrowserCommand, BrowserServerFactory, BrowserProviderOption } from 'vitest/node'; -import { ScreenshotMatcherOptions, NonStandardScreenshotComparators, ScreenshotComparatorRegistry } from '@vitest/browser/context'; - -interface BaseMetadata { - height: number; - width: number; -} -type TypedArray = Buffer | Uint8Array | Uint8ClampedArray; -type Promisable = T | Promise; -type Comparator> = (reference: { - metadata: BaseMetadata; - data: TypedArray; -}, actual: { - metadata: BaseMetadata; - data: TypedArray; -}, options: { - /** - * Allows the comparator to create a diff image. - * - * Note that the comparator might choose to ignore the flag, so a diff image is not guaranteed. - */ - createDiff: boolean; -} & Options) => Promisable<{ - pass: boolean; - diff: TypedArray | null; - message: string | null; -}>; -type CustomComparatorsToRegister = { [Key in keyof NonStandardScreenshotComparators] : Comparator }; -type CustomComparatorsRegistry = keyof CustomComparatorsToRegister extends never ? { - comparators?: Record>>; -} : { - comparators: CustomComparatorsToRegister; -}; -declare module "vitest/node" { - interface ToMatchScreenshotOptions extends Omit, CustomComparatorsRegistry {} - interface ToMatchScreenshotComparators extends ScreenshotComparatorRegistry {} -} - -declare enum DOM_KEY_LOCATION { - STANDARD = 0, - LEFT = 1, - RIGHT = 2, - NUMPAD = 3 -} -interface keyboardKey { - /** Physical location on a keyboard */ - code?: string; - /** Character or functional key descriptor */ - key?: string; - /** Location on the keyboard for keys with multiple representation */ - location?: DOM_KEY_LOCATION; - /** Does the character in `key` require/imply AltRight to be pressed? */ - altGr?: boolean; - /** Does the character in `key` require/imply a shiftKey to be pressed? */ - shift?: boolean; -} -declare function parseKeyDef(text: string): { - keyDef: keyboardKey; - releasePrevious: boolean; - releaseSelf: boolean; - repeat: number; -}[]; -declare function resolveScreenshotPath(testPath: string, name: string, config: ResolvedConfig, customPath: string | undefined): string; - -declare function defineBrowserCommand(fn: BrowserCommand): BrowserCommand; - -declare const createBrowserServer: BrowserServerFactory; -declare function defineBrowserProvider(options: Omit, "serverFactory" | "options"> & { - options?: T; -}): BrowserProviderOption; - -export { createBrowserServer, defineBrowserCommand, defineBrowserProvider, parseKeyDef, resolveScreenshotPath }; -export type { CustomComparatorsRegistry }; diff --git a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index.js b/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index.js deleted file mode 100644 index 853de96..0000000 --- a/node_modules/.pnpm/@vitest+browser@4.0.18_vite@7.3.1_@types+node@20.19.33_tsx@4.21.0__vitest@4.0.18/node_modules/@vitest/browser/dist/index.js +++ /dev/null @@ -1,3397 +0,0 @@ -import { ManualMockedModule, RedirectedModule, AutomockedModule, AutospiedModule, MockerRegistry } from '@vitest/mocker'; -import { dynamicImportPlugin, ServerMockResolver, interceptorPlugin } from '@vitest/mocker/node'; -import c from 'tinyrainbow'; -import { isValidApiRequest, isFileServingAllowed, distDir, resolveApiServerConfig, resolveFsAllow, rolldownVersion, createDebugger, createViteLogger, createViteServer } from 'vitest/node'; -import { fileURLToPath } from 'node:url'; -import fs, { readFileSync, lstatSync, createReadStream, promises, existsSync } from 'node:fs'; -import { createRequire } from 'node:module'; -import { slash as slash$1, toArray, deepMerge } from '@vitest/utils/helpers'; -import MagicString from 'magic-string'; -import sirv from 'sirv'; -import { coverageConfigDefaults } from 'vitest/config'; -import crypto from 'node:crypto'; -import { readFile as readFile$1, mkdir, writeFile as writeFile$1 } from 'node:fs/promises'; -import { parseErrorStacktrace, parseStacktrace } from '@vitest/utils/source-map'; -import { resolve as resolve$1, basename as basename$1, dirname as dirname$1 } from 'node:path'; -import { platform } from 'node:os'; -import { PNG } from 'pngjs'; -import pm from 'pixelmatch'; -import { WebSocketServer } from 'ws'; - -var version = "4.0.18"; - -const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//; -function normalizeWindowsPath(input = "") { - if (!input) { - return input; - } - return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase()); -} - -const _UNC_REGEX = /^[/\\]{2}/; -const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/; -const _DRIVE_LETTER_RE = /^[A-Za-z]:$/; -const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/; -const _EXTNAME_RE = /.(\.[^./]+|\.)$/; -const normalize = function(path) { - if (path.length === 0) { - return "."; - } - path = normalizeWindowsPath(path); - const isUNCPath = path.match(_UNC_REGEX); - const isPathAbsolute = isAbsolute(path); - const trailingSeparator = path[path.length - 1] === "/"; - path = normalizeString(path, !isPathAbsolute); - if (path.length === 0) { - if (isPathAbsolute) { - return "/"; - } - return trailingSeparator ? "./" : "."; - } - if (trailingSeparator) { - path += "/"; - } - if (_DRIVE_LETTER_RE.test(path)) { - path += "/"; - } - if (isUNCPath) { - if (!isPathAbsolute) { - return `//./${path}`; - } - return `//${path}`; - } - return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path; -}; -const join = function(...segments) { - let path = ""; - for (const seg of segments) { - if (!seg) { - continue; - } - if (path.length > 0) { - const pathTrailing = path[path.length - 1] === "/"; - const segLeading = seg[0] === "/"; - const both = pathTrailing && segLeading; - if (both) { - path += seg.slice(1); - } else { - path += pathTrailing || segLeading ? seg : `/${seg}`; - } - } else { - path += seg; - } - } - return normalize(path); -}; -function cwd() { - if (typeof process !== "undefined" && typeof process.cwd === "function") { - return process.cwd().replace(/\\/g, "/"); - } - return "/"; -} -const resolve = function(...arguments_) { - arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument)); - let resolvedPath = ""; - let resolvedAbsolute = false; - for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) { - const path = index >= 0 ? arguments_[index] : cwd(); - if (!path || path.length === 0) { - continue; - } - resolvedPath = `${path}/${resolvedPath}`; - resolvedAbsolute = isAbsolute(path); - } - resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute); - if (resolvedAbsolute && !isAbsolute(resolvedPath)) { - return `/${resolvedPath}`; - } - return resolvedPath.length > 0 ? resolvedPath : "."; -}; -function normalizeString(path, allowAboveRoot) { - let res = ""; - let lastSegmentLength = 0; - let lastSlash = -1; - let dots = 0; - let char = null; - for (let index = 0; index <= path.length; ++index) { - if (index < path.length) { - char = path[index]; - } else if (char === "/") { - break; - } else { - char = "/"; - } - if (char === "/") { - if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") { - if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf("/"); - if (lastSlashIndex === -1) { - res = ""; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf("/"); - } - lastSlash = index; - dots = 0; - continue; - } else if (res.length > 0) { - res = ""; - lastSegmentLength = 0; - lastSlash = index; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - res += res.length > 0 ? "/.." : ".."; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) { - res += `/${path.slice(lastSlash + 1, index)}`; - } else { - res = path.slice(lastSlash + 1, index); - } - lastSegmentLength = index - lastSlash - 1; - } - lastSlash = index; - dots = 0; - } else if (char === "." && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -const isAbsolute = function(p) { - return _IS_ABSOLUTE_RE.test(p); -}; -const extname = function(p) { - if (p === "..") return ""; - const match = _EXTNAME_RE.exec(normalizeWindowsPath(p)); - return match && match[1] || ""; -}; -const relative = function(from, to) { - const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/"); - const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/"); - if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) { - return _to.join("/"); - } - const _fromCopy = [..._from]; - for (const segment of _fromCopy) { - if (_to[0] !== segment) { - break; - } - _from.shift(); - _to.shift(); - } - return [..._from.map(() => ".."), ..._to].join("/"); -}; -const dirname = function(p) { - const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1); - if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) { - segments[0] += "/"; - } - return segments.join("/") || (isAbsolute(p) ? "/" : "."); -}; -const basename = function(p, extension) { - const segments = normalizeWindowsPath(p).split("/"); - let lastSegment = ""; - for (let i = segments.length - 1; i >= 0; i--) { - const val = segments[i]; - if (val) { - lastSegment = val; - break; - } - } - return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment; -}; - -const pkgRoot = resolve(fileURLToPath(import.meta.url), "../.."); -const distRoot = resolve(pkgRoot, "dist"); - -/// - -// (c) 2020-present Andrea Giammarchi - -const {parse: $parse, stringify: $stringify} = JSON; -const {keys} = Object; - -const Primitive = String; // it could be Number -const primitive = 'string'; // it could be 'number' - -const ignore = {}; -const object = 'object'; - -const noop = (_, value) => value; - -const primitives = value => ( - value instanceof Primitive ? Primitive(value) : value -); - -const Primitives = (_, value) => ( - typeof value === primitive ? new Primitive(value) : value -); - -const revive = (input, parsed, output, $) => { - const lazy = []; - for (let ke = keys(output), {length} = ke, y = 0; y < length; y++) { - const k = ke[y]; - const value = output[k]; - if (value instanceof Primitive) { - const tmp = input[value]; - if (typeof tmp === object && !parsed.has(tmp)) { - parsed.add(tmp); - output[k] = ignore; - lazy.push({k, a: [input, parsed, tmp, $]}); - } - else - output[k] = $.call(output, k, tmp); - } - else if (output[k] !== ignore) - output[k] = $.call(output, k, value); - } - for (let {length} = lazy, i = 0; i < length; i++) { - const {k, a} = lazy[i]; - output[k] = $.call(output, k, revive.apply(null, a)); - } - return output; -}; - -const set = (known, input, value) => { - const index = Primitive(input.push(value) - 1); - known.set(value, index); - return index; -}; - -/** - * Converts a specialized flatted string into a JS value. - * @param {string} text - * @param {(this: any, key: string, value: any) => any} [reviver] - * @returns {any} - */ -const parse = (text, reviver) => { - const input = $parse(text, Primitives).map(primitives); - const value = input[0]; - const $ = reviver || noop; - const tmp = typeof value === object && value ? - revive(input, new Set, value, $) : - value; - return $.call({'': tmp}, '', tmp); -}; - -/** - * Converts a JS value into a specialized flatted string. - * @param {any} value - * @param {((this: any, key: string, value: any) => any) | (string | number)[] | null | undefined} [replacer] - * @param {string | number | undefined} [space] - * @returns {string} - */ -const stringify = (value, replacer, space) => { - const $ = replacer && typeof replacer === object ? - (k, v) => (k === '' || -1 < replacer.indexOf(k) ? v : void 0) : - (replacer || noop); - const known = new Map; - const input = []; - const output = []; - let i = +set(known, input, $.call({'': value}, '', value)); - let firstRun = !i; - while (i < input.length) { - firstRun = true; - output[i] = $stringify(input[i++], replace, space); - } - return '[' + output.join(',') + ']'; - function replace(key, value) { - if (firstRun) { - firstRun = !firstRun; - return value; - } - const after = $.call(this, key, value); - switch (typeof after) { - case object: - if (after === null) return after; - case primitive: - return known.get(after) || set(known, input, after); - } - return after; - } -}; - -var DOM_KEY_LOCATION = /*#__PURE__*/ function(DOM_KEY_LOCATION) { - DOM_KEY_LOCATION[DOM_KEY_LOCATION["STANDARD"] = 0] = "STANDARD"; - DOM_KEY_LOCATION[DOM_KEY_LOCATION["LEFT"] = 1] = "LEFT"; - DOM_KEY_LOCATION[DOM_KEY_LOCATION["RIGHT"] = 2] = "RIGHT"; - DOM_KEY_LOCATION[DOM_KEY_LOCATION["NUMPAD"] = 3] = "NUMPAD"; - return DOM_KEY_LOCATION; -}({}); - -/** - * Mapping for a default US-104-QWERTY keyboard - */ const defaultKeyMap = [ - // alphanumeric block - writing system - ...'0123456789'.split('').map((c)=>({ - code: `Digit${c}`, - key: c - })), - ...')!@#$%^&*('.split('').map((c, i)=>({ - code: `Digit${i}`, - key: c, - shiftKey: true - })), - ...'abcdefghijklmnopqrstuvwxyz'.split('').map((c)=>({ - code: `Key${c.toUpperCase()}`, - key: c - })), - ...'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('').map((c)=>({ - code: `Key${c}`, - key: c, - shiftKey: true - })), - { - code: 'BracketLeft', - key: '[' - }, - { - code: 'BracketLeft', - key: '{', - shiftKey: true - }, - { - code: 'BracketRight', - key: ']' - }, - { - code: 'BracketRight', - key: '}', - shiftKey: true - }, - // alphanumeric block - functional - { - code: 'Space', - key: ' ' - }, - { - code: 'AltLeft', - key: 'Alt', - location: DOM_KEY_LOCATION.LEFT - }, - { - code: 'AltRight', - key: 'Alt', - location: DOM_KEY_LOCATION.RIGHT - }, - { - code: 'ShiftLeft', - key: 'Shift', - location: DOM_KEY_LOCATION.LEFT - }, - { - code: 'ShiftRight', - key: 'Shift', - location: DOM_KEY_LOCATION.RIGHT - }, - { - code: 'ControlLeft', - key: 'Control', - location: DOM_KEY_LOCATION.LEFT - }, - { - code: 'ControlRight', - key: 'Control', - location: DOM_KEY_LOCATION.RIGHT - }, - { - code: 'MetaLeft', - key: 'Meta', - location: DOM_KEY_LOCATION.LEFT - }, - { - code: 'MetaRight', - key: 'Meta', - location: DOM_KEY_LOCATION.RIGHT - }, - { - code: 'OSLeft', - key: 'OS', - location: DOM_KEY_LOCATION.LEFT - }, - { - code: 'OSRight', - key: 'OS', - location: DOM_KEY_LOCATION.RIGHT - }, - { - code: 'ContextMenu', - key: 'ContextMenu' - }, - { - code: 'Tab', - key: 'Tab' - }, - { - code: 'CapsLock', - key: 'CapsLock' - }, - { - code: 'Backspace', - key: 'Backspace' - }, - { - code: 'Enter', - key: 'Enter' - }, - // function - { - code: 'Escape', - key: 'Escape' - }, - // arrows - { - code: 'ArrowUp', - key: 'ArrowUp' - }, - { - code: 'ArrowDown', - key: 'ArrowDown' - }, - { - code: 'ArrowLeft', - key: 'ArrowLeft' - }, - { - code: 'ArrowRight', - key: 'ArrowRight' - }, - // control pad - { - code: 'Home', - key: 'Home' - }, - { - code: 'End', - key: 'End' - }, - { - code: 'Delete', - key: 'Delete' - }, - { - code: 'PageUp', - key: 'PageUp' - }, - { - code: 'PageDown', - key: 'PageDown' - }, - // Special keys that are not part of a default US-layout but included for specific behavior - { - code: 'Fn', - key: 'Fn' - }, - { - code: 'Symbol', - key: 'Symbol' - }, - { - code: 'AltRight', - key: 'AltGraph' - } -]; - -var bracketDict = /*#__PURE__*/ function(bracketDict) { - bracketDict["{"] = "}"; - bracketDict["["] = "]"; - return bracketDict; -}(bracketDict || {}); -/** - * Read the next key definition from user input - * - * Describe key per `{descriptor}` or `[descriptor]`. - * Everything else will be interpreted as a single character as descriptor - e.g. `a`. - * Brackets `{` and `[` can be escaped by doubling - e.g. `foo[[bar` translates to `foo[bar`. - * A previously pressed key can be released per `{/descriptor}`. - * Keeping the key pressed can be written as `{descriptor>}`. - * When keeping the key pressed you can choose how long the key is pressed `{descriptor>3}`. - * You can then release the key per `{descriptor>3/}` or keep it pressed and continue with the next key. - */ function readNextDescriptor(text, context) { - let pos = 0; - const startBracket = text[pos] in bracketDict ? text[pos] : ''; - pos += startBracket.length; - const isEscapedChar = new RegExp(`^\\${startBracket}{2}`).test(text); - const type = isEscapedChar ? '' : startBracket; - return { - type, - ...type === '' ? readPrintableChar(text, pos) : readTag(text, pos, type) - }; -} -function readPrintableChar(text, pos, context) { - const descriptor = text[pos]; - assertDescriptor(descriptor, text, pos); - pos += descriptor.length; - return { - consumedLength: pos, - descriptor, - releasePrevious: false, - releaseSelf: true, - repeat: 1 - }; -} -function readTag(text, pos, startBracket, context) { - var _text_slice_match, _text_slice_match1; - const releasePreviousModifier = text[pos] === '/' ? '/' : ''; - pos += releasePreviousModifier.length; - const escapedDescriptor = startBracket === '{' && text[pos] === '\\'; - pos += Number(escapedDescriptor); - const descriptor = escapedDescriptor ? text[pos] : (_text_slice_match = text.slice(pos).match(startBracket === '{' ? /^\w+|^[^}>/]/ : /^\w+/)) === null || _text_slice_match === undefined ? undefined : _text_slice_match[0]; - assertDescriptor(descriptor, text, pos); - pos += descriptor.length; - var _text_slice_match_; - const repeatModifier = (_text_slice_match_ = (_text_slice_match1 = text.slice(pos).match(/^>\d+/)) === null || _text_slice_match1 === undefined ? undefined : _text_slice_match1[0]) !== null && _text_slice_match_ !== undefined ? _text_slice_match_ : ''; - pos += repeatModifier.length; - const releaseSelfModifier = text[pos] === '/' || !repeatModifier && text[pos] === '>' ? text[pos] : ''; - pos += releaseSelfModifier.length; - const expectedEndBracket = bracketDict[startBracket]; - const endBracket = text[pos] === expectedEndBracket ? expectedEndBracket : ''; - if (!endBracket) { - throw new Error(getErrorMessage([ - !repeatModifier && 'repeat modifier', - !releaseSelfModifier && 'release modifier', - `"${expectedEndBracket}"` - ].filter(Boolean).join(' or '), text[pos], text)); - } - pos += endBracket.length; - return { - consumedLength: pos, - descriptor, - releasePrevious: !!releasePreviousModifier, - repeat: repeatModifier ? Math.max(Number(repeatModifier.substr(1)), 1) : 1, - releaseSelf: hasReleaseSelf(releaseSelfModifier, repeatModifier) - }; -} -function assertDescriptor(descriptor, text, pos, context) { - if (!descriptor) { - throw new Error(getErrorMessage('key descriptor', text[pos], text)); - } -} -function hasReleaseSelf(releaseSelfModifier, repeatModifier) { - if (releaseSelfModifier) { - return releaseSelfModifier === '/'; - } - if (repeatModifier) { - return false; - } -} -function getErrorMessage(expected, found, text, context) { - return `Expected ${expected} but found "${found !== null && found !== undefined ? found : ''}" in "${text}" - See ${`https://testing-library.com/docs/user-event/keyboard`} - for more information about how userEvent parses your input.`; -} - -/** - * Parse key definitions per `keyboardMap` - * - * Keys can be referenced by `{key}` or `{special}` as well as physical locations per `[code]`. - * Everything else will be interpreted as a typed character - e.g. `a`. - * Brackets `{` and `[` can be escaped by doubling - e.g. `foo[[bar` translates to `foo[bar`. - * Keeping the key pressed can be written as `{key>}`. - * When keeping the key pressed you can choose how long (how many keydown and keypress) the key is pressed `{key>3}`. - * You can then release the key per `{key>3/}` or keep it pressed and continue with the next key. - */ function parseKeyDef$1(keyboardMap, text) { - const defs = []; - do { - const { type, descriptor, consumedLength, releasePrevious, releaseSelf = true, repeat } = readNextDescriptor(text); - var _keyboardMap_find; - const keyDef = (_keyboardMap_find = keyboardMap.find((def)=>{ - if (type === '[') { - var _def_code; - return ((_def_code = def.code) === null || _def_code === undefined ? undefined : _def_code.toLowerCase()) === descriptor.toLowerCase(); - } else if (type === '{') { - var _def_key; - return ((_def_key = def.key) === null || _def_key === undefined ? undefined : _def_key.toLowerCase()) === descriptor.toLowerCase(); - } - return def.key === descriptor; - })) !== null && _keyboardMap_find !== undefined ? _keyboardMap_find : { - key: 'Unknown', - code: 'Unknown', - [type === '[' ? 'code' : 'key']: descriptor - }; - defs.push({ - keyDef, - releasePrevious, - releaseSelf, - repeat - }); - text = text.slice(consumedLength); - }while (text) - return defs; -} - -function parseKeyDef(text) { - return parseKeyDef$1(defaultKeyMap, text); -} -function replacer(code, values) { - return code.replace(/\{\s*(\w+)\s*\}/g, (_, key) => values[key] ?? _); -} -function resolveScreenshotPath(testPath, name, config, customPath) { - if (customPath) { - return resolve(dirname(testPath), customPath); - } - const dir = dirname(testPath); - const base = basename(testPath); - if (config.browser.screenshotDirectory) { - return resolve(config.browser.screenshotDirectory, relative(config.root, dir), base, name); - } - return resolve(dir, "__screenshots__", base, name); -} -async function getBrowserProvider(options, project) { - const browser = project.config.browser.name; - const name = project.name ? `[${project.name}] ` : ""; - if (!browser) { - throw new Error(`${name}Browser name is required. Please, set \`test.browser.instances[].browser\` option manually.`); - } - if (options.provider == null) { - throw new Error(`Browser Mode requires the "provider" to always be specified.`); - } - const supportedBrowsers = options.provider.supportedBrowser || []; - if (supportedBrowsers.length && !supportedBrowsers.includes(browser)) { - throw new Error(`${name}Browser "${browser}" is not supported by the browser provider "${options.provider.name}". Supported browsers: ${supportedBrowsers.join(", ")}.`); - } - if (typeof options.provider.providerFactory !== "function") { - throw new TypeError(`The "${name}" browser provider does not provide a "providerFactory" function. Received ${typeof options.provider.providerFactory}.`); - } - return options.provider.providerFactory(project); -} -function slash(path) { - return path.replace(/\\/g, "/").replace(/\/+/g, "/"); -} - -async function resolveOrchestrator(globalServer, url, res) { - let sessionId = url.searchParams.get("sessionId"); - // it's possible to open the page without a context - if (!sessionId) { - const contexts = [...globalServer.children].flatMap((p) => [...p.state.orchestrators.keys()]); - sessionId = contexts.at(-1) ?? "none"; - } - // it's ok to not have a session here, especially in the preview provider - // because the user could refresh the page which would remove the session id from the url - const session = globalServer.vitest._browserSessions.getSession(sessionId); - const browserProject = session?.project.browser || [...globalServer.children][0]; - if (!browserProject) { - return; - } - // ignore unknown pages - if (sessionId && sessionId !== "none" && !globalServer.vitest._browserSessions.sessionIds.has(sessionId)) { - return; - } - const injectorJs = typeof globalServer.injectorJs === "string" ? globalServer.injectorJs : await globalServer.injectorJs; - const injector = replacer(injectorJs, { - __VITEST_PROVIDER__: JSON.stringify(browserProject.config.browser.provider?.name || "preview"), - __VITEST_CONFIG__: JSON.stringify(browserProject.wrapSerializedConfig()), - __VITEST_VITE_CONFIG__: JSON.stringify({ root: browserProject.vite.config.root }), - __VITEST_METHOD__: JSON.stringify("orchestrate"), - __VITEST_TYPE__: "\"orchestrator\"", - __VITEST_SESSION_ID__: JSON.stringify(sessionId), - __VITEST_TESTER_ID__: "\"none\"", - __VITEST_OTEL_CARRIER__: url.searchParams.get("otelCarrier") ?? "null", - __VITEST_PROVIDED_CONTEXT__: JSON.stringify(stringify(browserProject.project.getProvidedContext())), - __VITEST_API_TOKEN__: JSON.stringify(globalServer.vitest.config.api.token) - }); - // disable CSP for the orchestrator as we are the ones controlling it - res.removeHeader("Content-Security-Policy"); - if (!globalServer.orchestratorScripts) { - globalServer.orchestratorScripts = (await globalServer.formatScripts(globalServer.config.browser.orchestratorScripts)).map((script) => { - let html = " -``` - -## Usage - -Import the library in your code, and then pick one of the styles you'd like to use - either `assert`, `expect` or `should`: - -```js -import { assert } from 'chai'; // Using Assert style -import { expect } from 'chai'; // Using Expect style -import { should } from 'chai'; // Using Should style -``` - -### Register the chai testing style globally - -```js -import 'chai/register-assert'; // Using Assert style -import 'chai/register-expect'; // Using Expect style -import 'chai/register-should'; // Using Should style -``` - -### Import assertion styles as local variables - -```js -import { assert } from 'chai'; // Using Assert style -import { expect } from 'chai'; // Using Expect style -import { should } from 'chai'; // Using Should style -should(); // Modifies `Object.prototype` - -import { expect, use } from 'chai'; // Creates local variables `expect` and `use`; useful for plugin use -``` - -### Usage with Mocha - -```bash -mocha spec.js --require chai/register-assert.js # Using Assert style -mocha spec.js --require chai/register-expect.js # Using Expect style -mocha spec.js --require chai/register-should.js # Using Should style -``` - -[Read more about these styles in our docs](http://chaijs.com/guide/styles/). - -## Plugins - -Chai offers a robust Plugin architecture for extending Chai's assertions and interfaces. - -- Need a plugin? View the [official plugin list](http://chaijs.com/plugins). -- Want to build a plugin? Read the [plugin api documentation](http://chaijs.com/guide/plugins/). -- Have a plugin and want it listed? Simply add the following keywords to your package.json: - - `chai-plugin` - - `browser` if your plugin works in the browser as well as Node.js - - `browser-only` if your plugin does not work with Node.js - -### Related Projects - -- [chaijs / chai-docs](https://github.com/chaijs/chai-docs): The chaijs.com website source code. -- [chaijs / assertion-error](https://github.com/chaijs/assertion-error): Custom `Error` constructor thrown upon an assertion failing. -- [chaijs / deep-eql](https://github.com/chaijs/deep-eql): Improved deep equality testing for Node.js and the browser. -- [chaijs / check-error](https://github.com/chaijs/check-error): Error comparison and information related utility for Node.js and the browser. -- [chaijs / loupe](https://github.com/chaijs/loupe): Inspect utility for Node.js and browsers. -- [chaijs / pathval](https://github.com/chaijs/pathval): Object value retrieval given a string path. - -### Contributing - -Thank you very much for considering to contribute! - -Please make sure you follow our [Code Of Conduct](https://github.com/chaijs/chai/blob/master/CODE_OF_CONDUCT.md) and we also strongly recommend reading our [Contributing Guide](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md). - -Here are a few issues other contributors frequently ran into when opening pull requests: - -- Please do not commit changes to the `chai.js` build. We do it once per release. -- Before pushing your commits, please make sure you [rebase](https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md#pull-requests) them. - -### Contributors - -Please see the full -[Contributors Graph](https://github.com/chaijs/chai/graphs/contributors) for our -list of contributors. - -### Core Contributors - -Feel free to reach out to any of the core contributors with your questions or -concerns. We will do our best to respond in a timely manner. - -[![Keith Cirkel](https://avatars3.githubusercontent.com/u/118266?v=3&s=50)](https://github.com/keithamus) -[![James Garbutt](https://avatars3.githubusercontent.com/u/5677153?v=3&s=50)](https://github.com/43081j) -[![Kristján Oddsson](https://avatars3.githubusercontent.com/u/318208?v=3&s=50)](https://github.com/koddsson) - -### Core Contributor Alumni - -This project would not be what it is without the contributions from our prior -core contributors, for whom we are forever grateful: - -[![Jake Luer](https://avatars3.githubusercontent.com/u/58988?v=3&s=50)](https://github.com/logicalparadox) -[![Veselin Todorov](https://avatars3.githubusercontent.com/u/330048?v=3&s=50)](https://github.com/vesln) -[![Lucas Fernandes da Costa](https://avatars3.githubusercontent.com/u/6868147?v=3&s=50)](https://github.com/lucasfcosta) -[![Grant Snodgrass](https://avatars3.githubusercontent.com/u/17260989?v=3&s=50)](https://github.com/meeber) diff --git a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.js b/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.js deleted file mode 100644 index 601eb53..0000000 --- a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.js +++ /dev/null @@ -1,4172 +0,0 @@ -var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - -// lib/chai/utils/index.js -var utils_exports = {}; -__export(utils_exports, { - addChainableMethod: () => addChainableMethod, - addLengthGuard: () => addLengthGuard, - addMethod: () => addMethod, - addProperty: () => addProperty, - checkError: () => check_error_exports, - compareByInspect: () => compareByInspect, - eql: () => deep_eql_default, - events: () => events, - expectTypes: () => expectTypes, - flag: () => flag, - getActual: () => getActual, - getMessage: () => getMessage2, - getName: () => getName, - getOperator: () => getOperator, - getOwnEnumerableProperties: () => getOwnEnumerableProperties, - getOwnEnumerablePropertySymbols: () => getOwnEnumerablePropertySymbols, - getPathInfo: () => getPathInfo, - hasProperty: () => hasProperty, - inspect: () => inspect2, - isNaN: () => isNaN2, - isNumeric: () => isNumeric, - isProxyEnabled: () => isProxyEnabled, - isRegExp: () => isRegExp2, - objDisplay: () => objDisplay, - overwriteChainableMethod: () => overwriteChainableMethod, - overwriteMethod: () => overwriteMethod, - overwriteProperty: () => overwriteProperty, - proxify: () => proxify, - test: () => test, - transferFlags: () => transferFlags, - type: () => type -}); - -// node_modules/check-error/index.js -var check_error_exports = {}; -__export(check_error_exports, { - compatibleConstructor: () => compatibleConstructor, - compatibleInstance: () => compatibleInstance, - compatibleMessage: () => compatibleMessage, - getConstructorName: () => getConstructorName, - getMessage: () => getMessage -}); -function isErrorInstance(obj) { - return obj instanceof Error || Object.prototype.toString.call(obj) === "[object Error]"; -} -__name(isErrorInstance, "isErrorInstance"); -function isRegExp(obj) { - return Object.prototype.toString.call(obj) === "[object RegExp]"; -} -__name(isRegExp, "isRegExp"); -function compatibleInstance(thrown, errorLike) { - return isErrorInstance(errorLike) && thrown === errorLike; -} -__name(compatibleInstance, "compatibleInstance"); -function compatibleConstructor(thrown, errorLike) { - if (isErrorInstance(errorLike)) { - return thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor; - } else if ((typeof errorLike === "object" || typeof errorLike === "function") && errorLike.prototype) { - return thrown.constructor === errorLike || thrown instanceof errorLike; - } - return false; -} -__name(compatibleConstructor, "compatibleConstructor"); -function compatibleMessage(thrown, errMatcher) { - const comparisonString = typeof thrown === "string" ? thrown : thrown.message; - if (isRegExp(errMatcher)) { - return errMatcher.test(comparisonString); - } else if (typeof errMatcher === "string") { - return comparisonString.indexOf(errMatcher) !== -1; - } - return false; -} -__name(compatibleMessage, "compatibleMessage"); -function getConstructorName(errorLike) { - let constructorName = errorLike; - if (isErrorInstance(errorLike)) { - constructorName = errorLike.constructor.name; - } else if (typeof errorLike === "function") { - constructorName = errorLike.name; - if (constructorName === "") { - const newConstructorName = new errorLike().name; - constructorName = newConstructorName || constructorName; - } - } - return constructorName; -} -__name(getConstructorName, "getConstructorName"); -function getMessage(errorLike) { - let msg = ""; - if (errorLike && errorLike.message) { - msg = errorLike.message; - } else if (typeof errorLike === "string") { - msg = errorLike; - } - return msg; -} -__name(getMessage, "getMessage"); - -// lib/chai/utils/flag.js -function flag(obj, key, value) { - let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null)); - if (arguments.length === 3) { - flags[key] = value; - } else { - return flags[key]; - } -} -__name(flag, "flag"); - -// lib/chai/utils/test.js -function test(obj, args) { - let negate = flag(obj, "negate"), expr = args[0]; - return negate ? !expr : expr; -} -__name(test, "test"); - -// lib/chai/utils/type-detect.js -function type(obj) { - if (typeof obj === "undefined") { - return "undefined"; - } - if (obj === null) { - return "null"; - } - const stringTag = obj[Symbol.toStringTag]; - if (typeof stringTag === "string") { - return stringTag; - } - const type3 = Object.prototype.toString.call(obj).slice(8, -1); - return type3; -} -__name(type, "type"); - -// node_modules/assertion-error/index.js -var canElideFrames = "captureStackTrace" in Error; -var _AssertionError = class _AssertionError extends Error { - constructor(message = "Unspecified AssertionError", props, ssf) { - super(message); - __publicField(this, "message"); - this.message = message; - if (canElideFrames) { - Error.captureStackTrace(this, ssf || _AssertionError); - } - for (const key in props) { - if (!(key in this)) { - this[key] = props[key]; - } - } - } - get name() { - return "AssertionError"; - } - get ok() { - return false; - } - toJSON(stack) { - return { - ...this, - name: this.name, - message: this.message, - ok: false, - stack: stack !== false ? this.stack : void 0 - }; - } -}; -__name(_AssertionError, "AssertionError"); -var AssertionError = _AssertionError; - -// lib/chai/utils/expectTypes.js -function expectTypes(obj, types) { - let flagMsg = flag(obj, "message"); - let ssfi = flag(obj, "ssfi"); - flagMsg = flagMsg ? flagMsg + ": " : ""; - obj = flag(obj, "object"); - types = types.map(function(t) { - return t.toLowerCase(); - }); - types.sort(); - let str = types.map(function(t, index) { - let art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a"; - let or = types.length > 1 && index === types.length - 1 ? "or " : ""; - return or + art + " " + t; - }).join(", "); - let objType = type(obj).toLowerCase(); - if (!types.some(function(expected) { - return objType === expected; - })) { - throw new AssertionError( - flagMsg + "object tested must be " + str + ", but " + objType + " given", - void 0, - ssfi - ); - } -} -__name(expectTypes, "expectTypes"); - -// lib/chai/utils/getActual.js -function getActual(obj, args) { - return args.length > 4 ? args[4] : obj._obj; -} -__name(getActual, "getActual"); - -// node_modules/loupe/lib/helpers.js -var ansiColors = { - bold: ["1", "22"], - dim: ["2", "22"], - italic: ["3", "23"], - underline: ["4", "24"], - // 5 & 6 are blinking - inverse: ["7", "27"], - hidden: ["8", "28"], - strike: ["9", "29"], - // 10-20 are fonts - // 21-29 are resets for 1-9 - black: ["30", "39"], - red: ["31", "39"], - green: ["32", "39"], - yellow: ["33", "39"], - blue: ["34", "39"], - magenta: ["35", "39"], - cyan: ["36", "39"], - white: ["37", "39"], - brightblack: ["30;1", "39"], - brightred: ["31;1", "39"], - brightgreen: ["32;1", "39"], - brightyellow: ["33;1", "39"], - brightblue: ["34;1", "39"], - brightmagenta: ["35;1", "39"], - brightcyan: ["36;1", "39"], - brightwhite: ["37;1", "39"], - grey: ["90", "39"] -}; -var styles = { - special: "cyan", - number: "yellow", - bigint: "yellow", - boolean: "yellow", - undefined: "grey", - null: "bold", - string: "green", - symbol: "green", - date: "magenta", - regexp: "red" -}; -var truncator = "\u2026"; -function colorise(value, styleType) { - const color = ansiColors[styles[styleType]] || ansiColors[styleType] || ""; - if (!color) { - return String(value); - } - return `\x1B[${color[0]}m${String(value)}\x1B[${color[1]}m`; -} -__name(colorise, "colorise"); -function normaliseOptions({ - showHidden = false, - depth = 2, - colors = false, - customInspect = true, - showProxy = false, - maxArrayLength = Infinity, - breakLength = Infinity, - seen = [], - // eslint-disable-next-line no-shadow - truncate: truncate2 = Infinity, - stylize = String -} = {}, inspect3) { - const options = { - showHidden: Boolean(showHidden), - depth: Number(depth), - colors: Boolean(colors), - customInspect: Boolean(customInspect), - showProxy: Boolean(showProxy), - maxArrayLength: Number(maxArrayLength), - breakLength: Number(breakLength), - truncate: Number(truncate2), - seen, - inspect: inspect3, - stylize - }; - if (options.colors) { - options.stylize = colorise; - } - return options; -} -__name(normaliseOptions, "normaliseOptions"); -function isHighSurrogate(char) { - return char >= "\uD800" && char <= "\uDBFF"; -} -__name(isHighSurrogate, "isHighSurrogate"); -function truncate(string, length, tail = truncator) { - string = String(string); - const tailLength = tail.length; - const stringLength = string.length; - if (tailLength > length && stringLength > tailLength) { - return tail; - } - if (stringLength > length && stringLength > tailLength) { - let end = length - tailLength; - if (end > 0 && isHighSurrogate(string[end - 1])) { - end = end - 1; - } - return `${string.slice(0, end)}${tail}`; - } - return string; -} -__name(truncate, "truncate"); -function inspectList(list, options, inspectItem, separator = ", ") { - inspectItem = inspectItem || options.inspect; - const size = list.length; - if (size === 0) - return ""; - const originalLength = options.truncate; - let output = ""; - let peek = ""; - let truncated = ""; - for (let i = 0; i < size; i += 1) { - const last = i + 1 === list.length; - const secondToLast = i + 2 === list.length; - truncated = `${truncator}(${list.length - i})`; - const value = list[i]; - options.truncate = originalLength - output.length - (last ? 0 : separator.length); - const string = peek || inspectItem(value, options) + (last ? "" : separator); - const nextLength = output.length + string.length; - const truncatedLength = nextLength + truncated.length; - if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) { - break; - } - if (!last && !secondToLast && truncatedLength > originalLength) { - break; - } - peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator); - if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) { - break; - } - output += string; - if (!last && !secondToLast && nextLength + peek.length >= originalLength) { - truncated = `${truncator}(${list.length - i - 1})`; - break; - } - truncated = ""; - } - return `${output}${truncated}`; -} -__name(inspectList, "inspectList"); -function quoteComplexKey(key) { - if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) { - return key; - } - return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); -} -__name(quoteComplexKey, "quoteComplexKey"); -function inspectProperty([key, value], options) { - options.truncate -= 2; - if (typeof key === "string") { - key = quoteComplexKey(key); - } else if (typeof key !== "number") { - key = `[${options.inspect(key, options)}]`; - } - options.truncate -= key.length; - value = options.inspect(value, options); - return `${key}: ${value}`; -} -__name(inspectProperty, "inspectProperty"); - -// node_modules/loupe/lib/array.js -function inspectArray(array, options) { - const nonIndexProperties = Object.keys(array).slice(array.length); - if (!array.length && !nonIndexProperties.length) - return "[]"; - options.truncate -= 4; - const listContents = inspectList(array, options); - options.truncate -= listContents.length; - let propertyContents = ""; - if (nonIndexProperties.length) { - propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty); - } - return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`; -} -__name(inspectArray, "inspectArray"); - -// node_modules/loupe/lib/typedarray.js -var getArrayName = /* @__PURE__ */ __name((array) => { - if (typeof Buffer === "function" && array instanceof Buffer) { - return "Buffer"; - } - if (array[Symbol.toStringTag]) { - return array[Symbol.toStringTag]; - } - return array.constructor.name; -}, "getArrayName"); -function inspectTypedArray(array, options) { - const name = getArrayName(array); - options.truncate -= name.length + 4; - const nonIndexProperties = Object.keys(array).slice(array.length); - if (!array.length && !nonIndexProperties.length) - return `${name}[]`; - let output = ""; - for (let i = 0; i < array.length; i++) { - const string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`; - options.truncate -= string.length; - if (array[i] !== array.length && options.truncate <= 3) { - output += `${truncator}(${array.length - array[i] + 1})`; - break; - } - output += string; - } - let propertyContents = ""; - if (nonIndexProperties.length) { - propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty); - } - return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`; -} -__name(inspectTypedArray, "inspectTypedArray"); - -// node_modules/loupe/lib/date.js -function inspectDate(dateObject, options) { - const stringRepresentation = dateObject.toJSON(); - if (stringRepresentation === null) { - return "Invalid Date"; - } - const split = stringRepresentation.split("T"); - const date = split[0]; - return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date"); -} -__name(inspectDate, "inspectDate"); - -// node_modules/loupe/lib/function.js -function inspectFunction(func, options) { - const functionType = func[Symbol.toStringTag] || "Function"; - const name = func.name; - if (!name) { - return options.stylize(`[${functionType}]`, "special"); - } - return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special"); -} -__name(inspectFunction, "inspectFunction"); - -// node_modules/loupe/lib/map.js -function inspectMapEntry([key, value], options) { - options.truncate -= 4; - key = options.inspect(key, options); - options.truncate -= key.length; - value = options.inspect(value, options); - return `${key} => ${value}`; -} -__name(inspectMapEntry, "inspectMapEntry"); -function mapToEntries(map) { - const entries = []; - map.forEach((value, key) => { - entries.push([key, value]); - }); - return entries; -} -__name(mapToEntries, "mapToEntries"); -function inspectMap(map, options) { - if (map.size === 0) - return "Map{}"; - options.truncate -= 7; - return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`; -} -__name(inspectMap, "inspectMap"); - -// node_modules/loupe/lib/number.js -var isNaN = Number.isNaN || ((i) => i !== i); -function inspectNumber(number, options) { - if (isNaN(number)) { - return options.stylize("NaN", "number"); - } - if (number === Infinity) { - return options.stylize("Infinity", "number"); - } - if (number === -Infinity) { - return options.stylize("-Infinity", "number"); - } - if (number === 0) { - return options.stylize(1 / number === Infinity ? "+0" : "-0", "number"); - } - return options.stylize(truncate(String(number), options.truncate), "number"); -} -__name(inspectNumber, "inspectNumber"); - -// node_modules/loupe/lib/bigint.js -function inspectBigInt(number, options) { - let nums = truncate(number.toString(), options.truncate - 1); - if (nums !== truncator) - nums += "n"; - return options.stylize(nums, "bigint"); -} -__name(inspectBigInt, "inspectBigInt"); - -// node_modules/loupe/lib/regexp.js -function inspectRegExp(value, options) { - const flags = value.toString().split("/")[2]; - const sourceLength = options.truncate - (2 + flags.length); - const source = value.source; - return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp"); -} -__name(inspectRegExp, "inspectRegExp"); - -// node_modules/loupe/lib/set.js -function arrayFromSet(set2) { - const values = []; - set2.forEach((value) => { - values.push(value); - }); - return values; -} -__name(arrayFromSet, "arrayFromSet"); -function inspectSet(set2, options) { - if (set2.size === 0) - return "Set{}"; - options.truncate -= 7; - return `Set{ ${inspectList(arrayFromSet(set2), options)} }`; -} -__name(inspectSet, "inspectSet"); - -// node_modules/loupe/lib/string.js -var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"); -var escapeCharacters = { - "\b": "\\b", - " ": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - "'": "\\'", - "\\": "\\\\" -}; -var hex = 16; -var unicodeLength = 4; -function escape(char) { - return escapeCharacters[char] || `\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`; -} -__name(escape, "escape"); -function inspectString(string, options) { - if (stringEscapeChars.test(string)) { - string = string.replace(stringEscapeChars, escape); - } - return options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string"); -} -__name(inspectString, "inspectString"); - -// node_modules/loupe/lib/symbol.js -function inspectSymbol(value) { - if ("description" in Symbol.prototype) { - return value.description ? `Symbol(${value.description})` : "Symbol()"; - } - return value.toString(); -} -__name(inspectSymbol, "inspectSymbol"); - -// node_modules/loupe/lib/promise.js -var getPromiseValue = /* @__PURE__ */ __name(() => "Promise{\u2026}", "getPromiseValue"); -var promise_default = getPromiseValue; - -// node_modules/loupe/lib/object.js -function inspectObject(object, options) { - const properties = Object.getOwnPropertyNames(object); - const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : []; - if (properties.length === 0 && symbols.length === 0) { - return "{}"; - } - options.truncate -= 4; - options.seen = options.seen || []; - if (options.seen.includes(object)) { - return "[Circular]"; - } - options.seen.push(object); - const propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty); - const symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty); - options.seen.pop(); - let sep = ""; - if (propertyContents && symbolContents) { - sep = ", "; - } - return `{ ${propertyContents}${sep}${symbolContents} }`; -} -__name(inspectObject, "inspectObject"); - -// node_modules/loupe/lib/class.js -var toStringTag = typeof Symbol !== "undefined" && Symbol.toStringTag ? Symbol.toStringTag : false; -function inspectClass(value, options) { - let name = ""; - if (toStringTag && toStringTag in value) { - name = value[toStringTag]; - } - name = name || value.constructor.name; - if (!name || name === "_class") { - name = ""; - } - options.truncate -= name.length; - return `${name}${inspectObject(value, options)}`; -} -__name(inspectClass, "inspectClass"); - -// node_modules/loupe/lib/arguments.js -function inspectArguments(args, options) { - if (args.length === 0) - return "Arguments[]"; - options.truncate -= 13; - return `Arguments[ ${inspectList(args, options)} ]`; -} -__name(inspectArguments, "inspectArguments"); - -// node_modules/loupe/lib/error.js -var errorKeys = [ - "stack", - "line", - "column", - "name", - "message", - "fileName", - "lineNumber", - "columnNumber", - "number", - "description", - "cause" -]; -function inspectObject2(error, options) { - const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1); - const name = error.name; - options.truncate -= name.length; - let message = ""; - if (typeof error.message === "string") { - message = truncate(error.message, options.truncate); - } else { - properties.unshift("message"); - } - message = message ? `: ${message}` : ""; - options.truncate -= message.length + 5; - options.seen = options.seen || []; - if (options.seen.includes(error)) { - return "[Circular]"; - } - options.seen.push(error); - const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty); - return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`; -} -__name(inspectObject2, "inspectObject"); - -// node_modules/loupe/lib/html.js -function inspectAttribute([key, value], options) { - options.truncate -= 3; - if (!value) { - return `${options.stylize(String(key), "yellow")}`; - } - return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`; -} -__name(inspectAttribute, "inspectAttribute"); -function inspectNodeCollection(collection, options) { - return inspectList(collection, options, inspectNode, "\n"); -} -__name(inspectNodeCollection, "inspectNodeCollection"); -function inspectNode(node, options) { - switch (node.nodeType) { - case 1: - return inspectHTML(node, options); - case 3: - return options.inspect(node.data, options); - default: - return options.inspect(node, options); - } -} -__name(inspectNode, "inspectNode"); -function inspectHTML(element, options) { - const properties = element.getAttributeNames(); - const name = element.tagName.toLowerCase(); - const head = options.stylize(`<${name}`, "special"); - const headClose = options.stylize(`>`, "special"); - const tail = options.stylize(``, "special"); - options.truncate -= name.length * 2 + 5; - let propertyContents = ""; - if (properties.length > 0) { - propertyContents += " "; - propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " "); - } - options.truncate -= propertyContents.length; - const truncate2 = options.truncate; - let children = inspectNodeCollection(element.children, options); - if (children && children.length > truncate2) { - children = `${truncator}(${element.children.length})`; - } - return `${head}${propertyContents}${headClose}${children}${tail}`; -} -__name(inspectHTML, "inspectHTML"); - -// node_modules/loupe/lib/index.js -var symbolsSupported = typeof Symbol === "function" && typeof Symbol.for === "function"; -var chaiInspect = symbolsSupported ? /* @__PURE__ */ Symbol.for("chai/inspect") : "@@chai/inspect"; -var nodeInspect = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"); -var constructorMap = /* @__PURE__ */ new WeakMap(); -var stringTagMap = {}; -var baseTypesMap = { - undefined: /* @__PURE__ */ __name((value, options) => options.stylize("undefined", "undefined"), "undefined"), - null: /* @__PURE__ */ __name((value, options) => options.stylize("null", "null"), "null"), - boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), "boolean"), "boolean"), - Boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), "boolean"), "Boolean"), - number: inspectNumber, - Number: inspectNumber, - bigint: inspectBigInt, - BigInt: inspectBigInt, - string: inspectString, - String: inspectString, - function: inspectFunction, - Function: inspectFunction, - symbol: inspectSymbol, - // A Symbol polyfill will return `Symbol` not `symbol` from typedetect - Symbol: inspectSymbol, - Array: inspectArray, - Date: inspectDate, - Map: inspectMap, - Set: inspectSet, - RegExp: inspectRegExp, - Promise: promise_default, - // WeakSet, WeakMap are totally opaque to us - WeakSet: /* @__PURE__ */ __name((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"), - WeakMap: /* @__PURE__ */ __name((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"), - Arguments: inspectArguments, - Int8Array: inspectTypedArray, - Uint8Array: inspectTypedArray, - Uint8ClampedArray: inspectTypedArray, - Int16Array: inspectTypedArray, - Uint16Array: inspectTypedArray, - Int32Array: inspectTypedArray, - Uint32Array: inspectTypedArray, - Float32Array: inspectTypedArray, - Float64Array: inspectTypedArray, - Generator: /* @__PURE__ */ __name(() => "", "Generator"), - DataView: /* @__PURE__ */ __name(() => "", "DataView"), - ArrayBuffer: /* @__PURE__ */ __name(() => "", "ArrayBuffer"), - Error: inspectObject2, - HTMLCollection: inspectNodeCollection, - NodeList: inspectNodeCollection -}; -var inspectCustom = /* @__PURE__ */ __name((value, options, type3, inspectFn) => { - if (chaiInspect in value && typeof value[chaiInspect] === "function") { - return value[chaiInspect](options); - } - if (nodeInspect in value && typeof value[nodeInspect] === "function") { - return value[nodeInspect](options.depth, options, inspectFn); - } - if ("inspect" in value && typeof value.inspect === "function") { - return value.inspect(options.depth, options); - } - if ("constructor" in value && constructorMap.has(value.constructor)) { - return constructorMap.get(value.constructor)(value, options); - } - if (stringTagMap[type3]) { - return stringTagMap[type3](value, options); - } - return ""; -}, "inspectCustom"); -var toString = Object.prototype.toString; -function inspect(value, opts = {}) { - const options = normaliseOptions(opts, inspect); - const { customInspect } = options; - let type3 = value === null ? "null" : typeof value; - if (type3 === "object") { - type3 = toString.call(value).slice(8, -1); - } - if (type3 in baseTypesMap) { - return baseTypesMap[type3](value, options); - } - if (customInspect && value) { - const output = inspectCustom(value, options, type3, inspect); - if (output) { - if (typeof output === "string") - return output; - return inspect(output, options); - } - } - const proto = value ? Object.getPrototypeOf(value) : false; - if (proto === Object.prototype || proto === null) { - return inspectObject(value, options); - } - if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) { - return inspectHTML(value, options); - } - if ("constructor" in value) { - if (value.constructor !== Object) { - return inspectClass(value, options); - } - return inspectObject(value, options); - } - if (value === Object(value)) { - return inspectObject(value, options); - } - return options.stylize(String(value), type3); -} -__name(inspect, "inspect"); - -// lib/chai/config.js -var config = { - /** - * ### config.includeStack - * - * User configurable property, influences whether stack trace - * is included in Assertion error message. Default of false - * suppresses stack trace in the error message. - * - * chai.config.includeStack = true; // enable stack on error - * - * @param {boolean} - * @public - */ - includeStack: false, - /** - * ### config.showDiff - * - * User configurable property, influences whether or not - * the `showDiff` flag should be included in the thrown - * AssertionErrors. `false` will always be `false`; `true` - * will be true when the assertion has requested a diff - * be shown. - * - * @param {boolean} - * @public - */ - showDiff: true, - /** - * ### config.truncateThreshold - * - * User configurable property, sets length threshold for actual and - * expected values in assertion errors. If this threshold is exceeded, for - * example for large data structures, the value is replaced with something - * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`. - * - * Set it to zero if you want to disable truncating altogether. - * - * This is especially userful when doing assertions on arrays: having this - * set to a reasonable large value makes the failure messages readily - * inspectable. - * - * chai.config.truncateThreshold = 0; // disable truncating - * - * @param {number} - * @public - */ - truncateThreshold: 40, - /** - * ### config.useProxy - * - * User configurable property, defines if chai will use a Proxy to throw - * an error when a non-existent property is read, which protects users - * from typos when using property-based assertions. - * - * Set it to false if you want to disable this feature. - * - * chai.config.useProxy = false; // disable use of Proxy - * - * This feature is automatically disabled regardless of this config value - * in environments that don't support proxies. - * - * @param {boolean} - * @public - */ - useProxy: true, - /** - * ### config.proxyExcludedKeys - * - * User configurable property, defines which properties should be ignored - * instead of throwing an error if they do not exist on the assertion. - * This is only applied if the environment Chai is running in supports proxies and - * if the `useProxy` configuration setting is enabled. - * By default, `then` and `inspect` will not throw an error if they do not exist on the - * assertion object because the `.inspect` property is read by `util.inspect` (for example, when - * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking. - * - * // By default these keys will not throw an error if they do not exist on the assertion object - * chai.config.proxyExcludedKeys = ['then', 'inspect']; - * - * @param {Array} - * @public - */ - proxyExcludedKeys: ["then", "catch", "inspect", "toJSON"], - /** - * ### config.deepEqual - * - * User configurable property, defines which a custom function to use for deepEqual - * comparisons. - * By default, the function used is the one from the `deep-eql` package without custom comparator. - * - * // use a custom comparator - * chai.config.deepEqual = (expected, actual) => { - * return chai.util.eql(expected, actual, { - * comparator: (expected, actual) => { - * // for non number comparison, use the default behavior - * if(typeof expected !== 'number') return null; - * // allow a difference of 10 between compared numbers - * return typeof actual === 'number' && Math.abs(actual - expected) < 10 - * } - * }) - * }; - * - * @param {Function} - * @public - */ - deepEqual: null -}; - -// lib/chai/utils/inspect.js -function inspect2(obj, showHidden, depth, colors) { - let options = { - colors, - depth: typeof depth === "undefined" ? 2 : depth, - showHidden, - truncate: config.truncateThreshold ? config.truncateThreshold : Infinity - }; - return inspect(obj, options); -} -__name(inspect2, "inspect"); - -// lib/chai/utils/objDisplay.js -function objDisplay(obj) { - let str = inspect2(obj), type3 = Object.prototype.toString.call(obj); - if (config.truncateThreshold && str.length >= config.truncateThreshold) { - if (type3 === "[object Function]") { - return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]"; - } else if (type3 === "[object Array]") { - return "[ Array(" + obj.length + ") ]"; - } else if (type3 === "[object Object]") { - let keys = Object.keys(obj), kstr = keys.length > 2 ? keys.splice(0, 2).join(", ") + ", ..." : keys.join(", "); - return "{ Object (" + kstr + ") }"; - } else { - return str; - } - } else { - return str; - } -} -__name(objDisplay, "objDisplay"); - -// lib/chai/utils/getMessage.js -function getMessage2(obj, args) { - let negate = flag(obj, "negate"); - let val = flag(obj, "object"); - let expected = args[3]; - let actual = getActual(obj, args); - let msg = negate ? args[2] : args[1]; - let flagMsg = flag(obj, "message"); - if (typeof msg === "function") msg = msg(); - msg = msg || ""; - msg = msg.replace(/#\{this\}/g, function() { - return objDisplay(val); - }).replace(/#\{act\}/g, function() { - return objDisplay(actual); - }).replace(/#\{exp\}/g, function() { - return objDisplay(expected); - }); - return flagMsg ? flagMsg + ": " + msg : msg; -} -__name(getMessage2, "getMessage"); - -// lib/chai/utils/transferFlags.js -function transferFlags(assertion, object, includeAll) { - let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null)); - if (!object.__flags) { - object.__flags = /* @__PURE__ */ Object.create(null); - } - includeAll = arguments.length === 3 ? includeAll : true; - for (let flag3 in flags) { - if (includeAll || flag3 !== "object" && flag3 !== "ssfi" && flag3 !== "lockSsfi" && flag3 != "message") { - object.__flags[flag3] = flags[flag3]; - } - } -} -__name(transferFlags, "transferFlags"); - -// node_modules/deep-eql/index.js -function type2(obj) { - if (typeof obj === "undefined") { - return "undefined"; - } - if (obj === null) { - return "null"; - } - const stringTag = obj[Symbol.toStringTag]; - if (typeof stringTag === "string") { - return stringTag; - } - const sliceStart = 8; - const sliceEnd = -1; - return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd); -} -__name(type2, "type"); -function FakeMap() { - this._key = "chai/deep-eql__" + Math.random() + Date.now(); -} -__name(FakeMap, "FakeMap"); -FakeMap.prototype = { - get: /* @__PURE__ */ __name(function get(key) { - return key[this._key]; - }, "get"), - set: /* @__PURE__ */ __name(function set(key, value) { - if (Object.isExtensible(key)) { - Object.defineProperty(key, this._key, { - value, - configurable: true - }); - } - }, "set") -}; -var MemoizeMap = typeof WeakMap === "function" ? WeakMap : FakeMap; -function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) { - if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) { - return null; - } - var leftHandMap = memoizeMap.get(leftHandOperand); - if (leftHandMap) { - var result = leftHandMap.get(rightHandOperand); - if (typeof result === "boolean") { - return result; - } - } - return null; -} -__name(memoizeCompare, "memoizeCompare"); -function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) { - if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) { - return; - } - var leftHandMap = memoizeMap.get(leftHandOperand); - if (leftHandMap) { - leftHandMap.set(rightHandOperand, result); - } else { - leftHandMap = new MemoizeMap(); - leftHandMap.set(rightHandOperand, result); - memoizeMap.set(leftHandOperand, leftHandMap); - } -} -__name(memoizeSet, "memoizeSet"); -var deep_eql_default = deepEqual; -function deepEqual(leftHandOperand, rightHandOperand, options) { - if (options && options.comparator) { - return extensiveDeepEqual(leftHandOperand, rightHandOperand, options); - } - var simpleResult = simpleEqual(leftHandOperand, rightHandOperand); - if (simpleResult !== null) { - return simpleResult; - } - return extensiveDeepEqual(leftHandOperand, rightHandOperand, options); -} -__name(deepEqual, "deepEqual"); -function simpleEqual(leftHandOperand, rightHandOperand) { - if (leftHandOperand === rightHandOperand) { - return leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand; - } - if (leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare - rightHandOperand !== rightHandOperand) { - return true; - } - if (isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) { - return false; - } - return null; -} -__name(simpleEqual, "simpleEqual"); -function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) { - options = options || {}; - options.memoize = options.memoize === false ? false : options.memoize || new MemoizeMap(); - var comparator = options && options.comparator; - var memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize); - if (memoizeResultLeft !== null) { - return memoizeResultLeft; - } - var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize); - if (memoizeResultRight !== null) { - return memoizeResultRight; - } - if (comparator) { - var comparatorResult = comparator(leftHandOperand, rightHandOperand); - if (comparatorResult === false || comparatorResult === true) { - memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult); - return comparatorResult; - } - var simpleResult = simpleEqual(leftHandOperand, rightHandOperand); - if (simpleResult !== null) { - return simpleResult; - } - } - var leftHandType = type2(leftHandOperand); - if (leftHandType !== type2(rightHandOperand)) { - memoizeSet(leftHandOperand, rightHandOperand, options.memoize, false); - return false; - } - memoizeSet(leftHandOperand, rightHandOperand, options.memoize, true); - var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options); - memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result); - return result; -} -__name(extensiveDeepEqual, "extensiveDeepEqual"); -function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) { - switch (leftHandType) { - case "String": - case "Number": - case "Boolean": - case "Date": - return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf()); - case "Promise": - case "Symbol": - case "function": - case "WeakMap": - case "WeakSet": - return leftHandOperand === rightHandOperand; - case "Error": - return keysEqual(leftHandOperand, rightHandOperand, ["name", "message", "code"], options); - case "Arguments": - case "Int8Array": - case "Uint8Array": - case "Uint8ClampedArray": - case "Int16Array": - case "Uint16Array": - case "Int32Array": - case "Uint32Array": - case "Float32Array": - case "Float64Array": - case "Array": - return iterableEqual(leftHandOperand, rightHandOperand, options); - case "RegExp": - return regexpEqual(leftHandOperand, rightHandOperand); - case "Generator": - return generatorEqual(leftHandOperand, rightHandOperand, options); - case "DataView": - return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options); - case "ArrayBuffer": - return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options); - case "Set": - return entriesEqual(leftHandOperand, rightHandOperand, options); - case "Map": - return entriesEqual(leftHandOperand, rightHandOperand, options); - case "Temporal.PlainDate": - case "Temporal.PlainTime": - case "Temporal.PlainDateTime": - case "Temporal.Instant": - case "Temporal.ZonedDateTime": - case "Temporal.PlainYearMonth": - case "Temporal.PlainMonthDay": - return leftHandOperand.equals(rightHandOperand); - case "Temporal.Duration": - return leftHandOperand.total("nanoseconds") === rightHandOperand.total("nanoseconds"); - case "Temporal.TimeZone": - case "Temporal.Calendar": - return leftHandOperand.toString() === rightHandOperand.toString(); - default: - return objectEqual(leftHandOperand, rightHandOperand, options); - } -} -__name(extensiveDeepEqualByType, "extensiveDeepEqualByType"); -function regexpEqual(leftHandOperand, rightHandOperand) { - return leftHandOperand.toString() === rightHandOperand.toString(); -} -__name(regexpEqual, "regexpEqual"); -function entriesEqual(leftHandOperand, rightHandOperand, options) { - try { - if (leftHandOperand.size !== rightHandOperand.size) { - return false; - } - if (leftHandOperand.size === 0) { - return true; - } - } catch (sizeError) { - return false; - } - var leftHandItems = []; - var rightHandItems = []; - leftHandOperand.forEach(/* @__PURE__ */ __name(function gatherEntries(key, value) { - leftHandItems.push([key, value]); - }, "gatherEntries")); - rightHandOperand.forEach(/* @__PURE__ */ __name(function gatherEntries(key, value) { - rightHandItems.push([key, value]); - }, "gatherEntries")); - return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options); -} -__name(entriesEqual, "entriesEqual"); -function iterableEqual(leftHandOperand, rightHandOperand, options) { - var length = leftHandOperand.length; - if (length !== rightHandOperand.length) { - return false; - } - if (length === 0) { - return true; - } - var index = -1; - while (++index < length) { - if (deepEqual(leftHandOperand[index], rightHandOperand[index], options) === false) { - return false; - } - } - return true; -} -__name(iterableEqual, "iterableEqual"); -function generatorEqual(leftHandOperand, rightHandOperand, options) { - return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options); -} -__name(generatorEqual, "generatorEqual"); -function hasIteratorFunction(target) { - return typeof Symbol !== "undefined" && typeof target === "object" && typeof Symbol.iterator !== "undefined" && typeof target[Symbol.iterator] === "function"; -} -__name(hasIteratorFunction, "hasIteratorFunction"); -function getIteratorEntries(target) { - if (hasIteratorFunction(target)) { - try { - return getGeneratorEntries(target[Symbol.iterator]()); - } catch (iteratorError) { - return []; - } - } - return []; -} -__name(getIteratorEntries, "getIteratorEntries"); -function getGeneratorEntries(generator) { - var generatorResult = generator.next(); - var accumulator = [generatorResult.value]; - while (generatorResult.done === false) { - generatorResult = generator.next(); - accumulator.push(generatorResult.value); - } - return accumulator; -} -__name(getGeneratorEntries, "getGeneratorEntries"); -function getEnumerableKeys(target) { - var keys = []; - for (var key in target) { - keys.push(key); - } - return keys; -} -__name(getEnumerableKeys, "getEnumerableKeys"); -function getEnumerableSymbols(target) { - var keys = []; - var allKeys = Object.getOwnPropertySymbols(target); - for (var i = 0; i < allKeys.length; i += 1) { - var key = allKeys[i]; - if (Object.getOwnPropertyDescriptor(target, key).enumerable) { - keys.push(key); - } - } - return keys; -} -__name(getEnumerableSymbols, "getEnumerableSymbols"); -function keysEqual(leftHandOperand, rightHandOperand, keys, options) { - var length = keys.length; - if (length === 0) { - return true; - } - for (var i = 0; i < length; i += 1) { - if (deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options) === false) { - return false; - } - } - return true; -} -__name(keysEqual, "keysEqual"); -function objectEqual(leftHandOperand, rightHandOperand, options) { - var leftHandKeys = getEnumerableKeys(leftHandOperand); - var rightHandKeys = getEnumerableKeys(rightHandOperand); - var leftHandSymbols = getEnumerableSymbols(leftHandOperand); - var rightHandSymbols = getEnumerableSymbols(rightHandOperand); - leftHandKeys = leftHandKeys.concat(leftHandSymbols); - rightHandKeys = rightHandKeys.concat(rightHandSymbols); - if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) { - if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) { - return false; - } - return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options); - } - var leftHandEntries = getIteratorEntries(leftHandOperand); - var rightHandEntries = getIteratorEntries(rightHandOperand); - if (leftHandEntries.length && leftHandEntries.length === rightHandEntries.length) { - leftHandEntries.sort(); - rightHandEntries.sort(); - return iterableEqual(leftHandEntries, rightHandEntries, options); - } - if (leftHandKeys.length === 0 && leftHandEntries.length === 0 && rightHandKeys.length === 0 && rightHandEntries.length === 0) { - return true; - } - return false; -} -__name(objectEqual, "objectEqual"); -function isPrimitive(value) { - return value === null || typeof value !== "object"; -} -__name(isPrimitive, "isPrimitive"); -function mapSymbols(arr) { - return arr.map(/* @__PURE__ */ __name(function mapSymbol(entry) { - if (typeof entry === "symbol") { - return entry.toString(); - } - return entry; - }, "mapSymbol")); -} -__name(mapSymbols, "mapSymbols"); - -// node_modules/pathval/index.js -function hasProperty(obj, name) { - if (typeof obj === "undefined" || obj === null) { - return false; - } - return name in Object(obj); -} -__name(hasProperty, "hasProperty"); -function parsePath(path) { - const str = path.replace(/([^\\])\[/g, "$1.["); - const parts = str.match(/(\\\.|[^.]+?)+/g); - return parts.map((value) => { - if (value === "constructor" || value === "__proto__" || value === "prototype") { - return {}; - } - const regexp = /^\[(\d+)\]$/; - const mArr = regexp.exec(value); - let parsed = null; - if (mArr) { - parsed = { i: parseFloat(mArr[1]) }; - } else { - parsed = { p: value.replace(/\\([.[\]])/g, "$1") }; - } - return parsed; - }); -} -__name(parsePath, "parsePath"); -function internalGetPathValue(obj, parsed, pathDepth) { - let temporaryValue = obj; - let res = null; - pathDepth = typeof pathDepth === "undefined" ? parsed.length : pathDepth; - for (let i = 0; i < pathDepth; i++) { - const part = parsed[i]; - if (temporaryValue) { - if (typeof part.p === "undefined") { - temporaryValue = temporaryValue[part.i]; - } else { - temporaryValue = temporaryValue[part.p]; - } - if (i === pathDepth - 1) { - res = temporaryValue; - } - } - } - return res; -} -__name(internalGetPathValue, "internalGetPathValue"); -function getPathInfo(obj, path) { - const parsed = parsePath(path); - const last = parsed[parsed.length - 1]; - const info = { - parent: parsed.length > 1 ? internalGetPathValue(obj, parsed, parsed.length - 1) : obj, - name: last.p || last.i, - value: internalGetPathValue(obj, parsed) - }; - info.exists = hasProperty(info.parent, info.name); - return info; -} -__name(getPathInfo, "getPathInfo"); - -// lib/chai/assertion.js -var _Assertion = class _Assertion { - /** - * Creates object for chaining. - * `Assertion` objects contain metadata in the form of flags. Three flags can - * be assigned during instantiation by passing arguments to this constructor: - * - * - `object`: This flag contains the target of the assertion. For example, in - * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will - * contain `numKittens` so that the `equal` assertion can reference it when - * needed. - * - * - `message`: This flag contains an optional custom error message to be - * prepended to the error message that's generated by the assertion when it - * fails. - * - * - `ssfi`: This flag stands for "start stack function indicator". It - * contains a function reference that serves as the starting point for - * removing frames from the stack trace of the error that's created by the - * assertion when it fails. The goal is to provide a cleaner stack trace to - * end users by removing Chai's internal functions. Note that it only works - * in environments that support `Error.captureStackTrace`, and only when - * `Chai.config.includeStack` hasn't been set to `false`. - * - * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag - * should retain its current value, even as assertions are chained off of - * this object. This is usually set to `true` when creating a new assertion - * from within another assertion. It's also temporarily set to `true` before - * an overwritten assertion gets called by the overwriting assertion. - * - * - `eql`: This flag contains the deepEqual function to be used by the assertion. - * - * @param {unknown} obj target of the assertion - * @param {string} [msg] (optional) custom error message - * @param {Function} [ssfi] (optional) starting point for removing stack frames - * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked - */ - constructor(obj, msg, ssfi, lockSsfi) { - /** @type {{}} */ - __publicField(this, "__flags", {}); - flag(this, "ssfi", ssfi || _Assertion); - flag(this, "lockSsfi", lockSsfi); - flag(this, "object", obj); - flag(this, "message", msg); - flag(this, "eql", config.deepEqual || deep_eql_default); - return proxify(this); - } - /** @returns {boolean} */ - static get includeStack() { - console.warn( - "Assertion.includeStack is deprecated, use chai.config.includeStack instead." - ); - return config.includeStack; - } - /** @param {boolean} value */ - static set includeStack(value) { - console.warn( - "Assertion.includeStack is deprecated, use chai.config.includeStack instead." - ); - config.includeStack = value; - } - /** @returns {boolean} */ - static get showDiff() { - console.warn( - "Assertion.showDiff is deprecated, use chai.config.showDiff instead." - ); - return config.showDiff; - } - /** @param {boolean} value */ - static set showDiff(value) { - console.warn( - "Assertion.showDiff is deprecated, use chai.config.showDiff instead." - ); - config.showDiff = value; - } - /** - * @param {string} name - * @param {Function} fn - */ - static addProperty(name, fn) { - addProperty(this.prototype, name, fn); - } - /** - * @param {string} name - * @param {Function} fn - */ - static addMethod(name, fn) { - addMethod(this.prototype, name, fn); - } - /** - * @param {string} name - * @param {Function} fn - * @param {Function} chainingBehavior - */ - static addChainableMethod(name, fn, chainingBehavior) { - addChainableMethod(this.prototype, name, fn, chainingBehavior); - } - /** - * @param {string} name - * @param {Function} fn - */ - static overwriteProperty(name, fn) { - overwriteProperty(this.prototype, name, fn); - } - /** - * @param {string} name - * @param {Function} fn - */ - static overwriteMethod(name, fn) { - overwriteMethod(this.prototype, name, fn); - } - /** - * @param {string} name - * @param {Function} fn - * @param {Function} chainingBehavior - */ - static overwriteChainableMethod(name, fn, chainingBehavior) { - overwriteChainableMethod(this.prototype, name, fn, chainingBehavior); - } - /** - * ### .assert(expression, message, negateMessage, expected, actual, showDiff) - * - * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass. - * - * @name assert - * @param {unknown} _expr to be tested - * @param {string | Function} msg or function that returns message to display if expression fails - * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails - * @param {unknown} expected value (remember to check for negation) - * @param {unknown} _actual (optional) will default to `this.obj` - * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails - * @returns {void} - */ - assert(_expr, msg, _negateMsg, expected, _actual, showDiff) { - const ok = test(this, arguments); - if (false !== showDiff) showDiff = true; - if (void 0 === expected && void 0 === _actual) showDiff = false; - if (true !== config.showDiff) showDiff = false; - if (!ok) { - msg = getMessage2(this, arguments); - const actual = getActual(this, arguments); - const assertionErrorObjectProperties = { - actual, - expected, - showDiff - }; - const operator = getOperator(this, arguments); - if (operator) { - assertionErrorObjectProperties.operator = operator; - } - throw new AssertionError( - msg, - assertionErrorObjectProperties, - // @ts-expect-error Not sure what to do about these types yet - config.includeStack ? this.assert : flag(this, "ssfi") - ); - } - } - /** - * Quick reference to stored `actual` value for plugin developers. - * - * @returns {unknown} - */ - get _obj() { - return flag(this, "object"); - } - /** - * Quick reference to stored `actual` value for plugin developers. - * - * @param {unknown} val - */ - set _obj(val) { - flag(this, "object", val); - } -}; -__name(_Assertion, "Assertion"); -var Assertion = _Assertion; - -// lib/chai/utils/events.js -var events = new EventTarget(); -var _PluginEvent = class _PluginEvent extends Event { - constructor(type3, name, fn) { - super(type3); - this.name = String(name); - this.fn = fn; - } -}; -__name(_PluginEvent, "PluginEvent"); -var PluginEvent = _PluginEvent; - -// lib/chai/utils/isProxyEnabled.js -function isProxyEnabled() { - return config.useProxy && typeof Proxy !== "undefined" && typeof Reflect !== "undefined"; -} -__name(isProxyEnabled, "isProxyEnabled"); - -// lib/chai/utils/addProperty.js -function addProperty(ctx, name, getter) { - getter = getter === void 0 ? function() { - } : getter; - Object.defineProperty(ctx, name, { - get: /* @__PURE__ */ __name(function propertyGetter() { - if (!isProxyEnabled() && !flag(this, "lockSsfi")) { - flag(this, "ssfi", propertyGetter); - } - let result = getter.call(this); - if (result !== void 0) return result; - let newAssertion = new Assertion(); - transferFlags(this, newAssertion); - return newAssertion; - }, "propertyGetter"), - configurable: true - }); - events.dispatchEvent(new PluginEvent("addProperty", name, getter)); -} -__name(addProperty, "addProperty"); - -// lib/chai/utils/addLengthGuard.js -var fnLengthDesc = Object.getOwnPropertyDescriptor(function() { -}, "length"); -function addLengthGuard(fn, assertionName, isChainable) { - if (!fnLengthDesc.configurable) return fn; - Object.defineProperty(fn, "length", { - get: /* @__PURE__ */ __name(function() { - if (isChainable) { - throw Error( - "Invalid Chai property: " + assertionName + '.length. Due to a compatibility issue, "length" cannot directly follow "' + assertionName + '". Use "' + assertionName + '.lengthOf" instead.' - ); - } - throw Error( - "Invalid Chai property: " + assertionName + '.length. See docs for proper usage of "' + assertionName + '".' - ); - }, "get") - }); - return fn; -} -__name(addLengthGuard, "addLengthGuard"); - -// lib/chai/utils/getProperties.js -function getProperties(object) { - let result = Object.getOwnPropertyNames(object); - function addProperty2(property) { - if (result.indexOf(property) === -1) { - result.push(property); - } - } - __name(addProperty2, "addProperty"); - let proto = Object.getPrototypeOf(object); - while (proto !== null) { - Object.getOwnPropertyNames(proto).forEach(addProperty2); - proto = Object.getPrototypeOf(proto); - } - return result; -} -__name(getProperties, "getProperties"); - -// lib/chai/utils/proxify.js -var builtins = ["__flags", "__methods", "_obj", "assert"]; -function proxify(obj, nonChainableMethodName) { - if (!isProxyEnabled()) return obj; - return new Proxy(obj, { - get: /* @__PURE__ */ __name(function proxyGetter(target, property) { - if (typeof property === "string" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) { - if (nonChainableMethodName) { - throw Error( - "Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".' - ); - } - let suggestion = null; - let suggestionDistance = 4; - getProperties(target).forEach(function(prop) { - if ( - // we actually mean to check `Object.prototype` here - // eslint-disable-next-line no-prototype-builtins - !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1 - ) { - let dist = stringDistanceCapped(property, prop, suggestionDistance); - if (dist < suggestionDistance) { - suggestion = prop; - suggestionDistance = dist; - } - } - }); - if (suggestion !== null) { - throw Error( - "Invalid Chai property: " + property + '. Did you mean "' + suggestion + '"?' - ); - } else { - throw Error("Invalid Chai property: " + property); - } - } - if (builtins.indexOf(property) === -1 && !flag(target, "lockSsfi")) { - flag(target, "ssfi", proxyGetter); - } - return Reflect.get(target, property); - }, "proxyGetter") - }); -} -__name(proxify, "proxify"); -function stringDistanceCapped(strA, strB, cap) { - if (Math.abs(strA.length - strB.length) >= cap) { - return cap; - } - let memo = []; - for (let i = 0; i <= strA.length; i++) { - memo[i] = Array(strB.length + 1).fill(0); - memo[i][0] = i; - } - for (let j = 0; j < strB.length; j++) { - memo[0][j] = j; - } - for (let i = 1; i <= strA.length; i++) { - let ch = strA.charCodeAt(i - 1); - for (let j = 1; j <= strB.length; j++) { - if (Math.abs(i - j) >= cap) { - memo[i][j] = cap; - continue; - } - memo[i][j] = Math.min( - memo[i - 1][j] + 1, - memo[i][j - 1] + 1, - memo[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1) - ); - } - } - return memo[strA.length][strB.length]; -} -__name(stringDistanceCapped, "stringDistanceCapped"); - -// lib/chai/utils/addMethod.js -function addMethod(ctx, name, method) { - let methodWrapper = /* @__PURE__ */ __name(function() { - if (!flag(this, "lockSsfi")) { - flag(this, "ssfi", methodWrapper); - } - let result = method.apply(this, arguments); - if (result !== void 0) return result; - let newAssertion = new Assertion(); - transferFlags(this, newAssertion); - return newAssertion; - }, "methodWrapper"); - addLengthGuard(methodWrapper, name, false); - ctx[name] = proxify(methodWrapper, name); - events.dispatchEvent(new PluginEvent("addMethod", name, method)); -} -__name(addMethod, "addMethod"); - -// lib/chai/utils/overwriteProperty.js -function overwriteProperty(ctx, name, getter) { - let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name(function() { - }, "_super"); - if (_get && "function" === typeof _get.get) _super = _get.get; - Object.defineProperty(ctx, name, { - get: /* @__PURE__ */ __name(function overwritingPropertyGetter() { - if (!isProxyEnabled() && !flag(this, "lockSsfi")) { - flag(this, "ssfi", overwritingPropertyGetter); - } - let origLockSsfi = flag(this, "lockSsfi"); - flag(this, "lockSsfi", true); - let result = getter(_super).call(this); - flag(this, "lockSsfi", origLockSsfi); - if (result !== void 0) { - return result; - } - let newAssertion = new Assertion(); - transferFlags(this, newAssertion); - return newAssertion; - }, "overwritingPropertyGetter"), - configurable: true - }); -} -__name(overwriteProperty, "overwriteProperty"); - -// lib/chai/utils/overwriteMethod.js -function overwriteMethod(ctx, name, method) { - let _method = ctx[name], _super = /* @__PURE__ */ __name(function() { - throw new Error(name + " is not a function"); - }, "_super"); - if (_method && "function" === typeof _method) _super = _method; - let overwritingMethodWrapper = /* @__PURE__ */ __name(function() { - if (!flag(this, "lockSsfi")) { - flag(this, "ssfi", overwritingMethodWrapper); - } - let origLockSsfi = flag(this, "lockSsfi"); - flag(this, "lockSsfi", true); - let result = method(_super).apply(this, arguments); - flag(this, "lockSsfi", origLockSsfi); - if (result !== void 0) { - return result; - } - let newAssertion = new Assertion(); - transferFlags(this, newAssertion); - return newAssertion; - }, "overwritingMethodWrapper"); - addLengthGuard(overwritingMethodWrapper, name, false); - ctx[name] = proxify(overwritingMethodWrapper, name); -} -__name(overwriteMethod, "overwriteMethod"); - -// lib/chai/utils/addChainableMethod.js -var canSetPrototype = typeof Object.setPrototypeOf === "function"; -var testFn = /* @__PURE__ */ __name(function() { -}, "testFn"); -var excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) { - let propDesc = Object.getOwnPropertyDescriptor(testFn, name); - if (typeof propDesc !== "object") return true; - return !propDesc.configurable; -}); -var call = Function.prototype.call; -var apply = Function.prototype.apply; -var _PluginAddChainableMethodEvent = class _PluginAddChainableMethodEvent extends PluginEvent { - constructor(type3, name, fn, chainingBehavior) { - super(type3, name, fn); - this.chainingBehavior = chainingBehavior; - } -}; -__name(_PluginAddChainableMethodEvent, "PluginAddChainableMethodEvent"); -var PluginAddChainableMethodEvent = _PluginAddChainableMethodEvent; -function addChainableMethod(ctx, name, method, chainingBehavior) { - if (typeof chainingBehavior !== "function") { - chainingBehavior = /* @__PURE__ */ __name(function() { - }, "chainingBehavior"); - } - let chainableBehavior = { - method, - chainingBehavior - }; - if (!ctx.__methods) { - ctx.__methods = {}; - } - ctx.__methods[name] = chainableBehavior; - Object.defineProperty(ctx, name, { - get: /* @__PURE__ */ __name(function chainableMethodGetter() { - chainableBehavior.chainingBehavior.call(this); - let chainableMethodWrapper = /* @__PURE__ */ __name(function() { - if (!flag(this, "lockSsfi")) { - flag(this, "ssfi", chainableMethodWrapper); - } - let result = chainableBehavior.method.apply(this, arguments); - if (result !== void 0) { - return result; - } - let newAssertion = new Assertion(); - transferFlags(this, newAssertion); - return newAssertion; - }, "chainableMethodWrapper"); - addLengthGuard(chainableMethodWrapper, name, true); - if (canSetPrototype) { - let prototype = Object.create(this); - prototype.call = call; - prototype.apply = apply; - Object.setPrototypeOf(chainableMethodWrapper, prototype); - } else { - let asserterNames = Object.getOwnPropertyNames(ctx); - asserterNames.forEach(function(asserterName) { - if (excludeNames.indexOf(asserterName) !== -1) { - return; - } - let pd = Object.getOwnPropertyDescriptor(ctx, asserterName); - Object.defineProperty(chainableMethodWrapper, asserterName, pd); - }); - } - transferFlags(this, chainableMethodWrapper); - return proxify(chainableMethodWrapper); - }, "chainableMethodGetter"), - configurable: true - }); - events.dispatchEvent( - new PluginAddChainableMethodEvent( - "addChainableMethod", - name, - method, - chainingBehavior - ) - ); -} -__name(addChainableMethod, "addChainableMethod"); - -// lib/chai/utils/overwriteChainableMethod.js -function overwriteChainableMethod(ctx, name, method, chainingBehavior) { - let chainableBehavior = ctx.__methods[name]; - let _chainingBehavior = chainableBehavior.chainingBehavior; - chainableBehavior.chainingBehavior = /* @__PURE__ */ __name(function overwritingChainableMethodGetter() { - let result = chainingBehavior(_chainingBehavior).call(this); - if (result !== void 0) { - return result; - } - let newAssertion = new Assertion(); - transferFlags(this, newAssertion); - return newAssertion; - }, "overwritingChainableMethodGetter"); - let _method = chainableBehavior.method; - chainableBehavior.method = /* @__PURE__ */ __name(function overwritingChainableMethodWrapper() { - let result = method(_method).apply(this, arguments); - if (result !== void 0) { - return result; - } - let newAssertion = new Assertion(); - transferFlags(this, newAssertion); - return newAssertion; - }, "overwritingChainableMethodWrapper"); -} -__name(overwriteChainableMethod, "overwriteChainableMethod"); - -// lib/chai/utils/compareByInspect.js -function compareByInspect(a, b) { - return inspect2(a) < inspect2(b) ? -1 : 1; -} -__name(compareByInspect, "compareByInspect"); - -// lib/chai/utils/getOwnEnumerablePropertySymbols.js -function getOwnEnumerablePropertySymbols(obj) { - if (typeof Object.getOwnPropertySymbols !== "function") return []; - return Object.getOwnPropertySymbols(obj).filter(function(sym) { - return Object.getOwnPropertyDescriptor(obj, sym).enumerable; - }); -} -__name(getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols"); - -// lib/chai/utils/getOwnEnumerableProperties.js -function getOwnEnumerableProperties(obj) { - return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj)); -} -__name(getOwnEnumerableProperties, "getOwnEnumerableProperties"); - -// lib/chai/utils/isNaN.js -var isNaN2 = Number.isNaN; - -// lib/chai/utils/getOperator.js -function isObjectType(obj) { - let objectType = type(obj); - let objectTypes = ["Array", "Object", "Function"]; - return objectTypes.indexOf(objectType) !== -1; -} -__name(isObjectType, "isObjectType"); -function getOperator(obj, args) { - let operator = flag(obj, "operator"); - let negate = flag(obj, "negate"); - let expected = args[3]; - let msg = negate ? args[2] : args[1]; - if (operator) { - return operator; - } - if (typeof msg === "function") msg = msg(); - msg = msg || ""; - if (!msg) { - return void 0; - } - if (/\shave\s/.test(msg)) { - return void 0; - } - let isObject = isObjectType(expected); - if (/\snot\s/.test(msg)) { - return isObject ? "notDeepStrictEqual" : "notStrictEqual"; - } - return isObject ? "deepStrictEqual" : "strictEqual"; -} -__name(getOperator, "getOperator"); - -// lib/chai/utils/index.js -function getName(fn) { - return fn.name; -} -__name(getName, "getName"); -function isRegExp2(obj) { - return Object.prototype.toString.call(obj) === "[object RegExp]"; -} -__name(isRegExp2, "isRegExp"); -function isNumeric(obj) { - return ["Number", "BigInt"].includes(type(obj)); -} -__name(isNumeric, "isNumeric"); - -// lib/chai/core/assertions.js -var { flag: flag2 } = utils_exports; -[ - "to", - "be", - "been", - "is", - "and", - "has", - "have", - "with", - "that", - "which", - "at", - "of", - "same", - "but", - "does", - "still", - "also" -].forEach(function(chain) { - Assertion.addProperty(chain); -}); -Assertion.addProperty("not", function() { - flag2(this, "negate", true); -}); -Assertion.addProperty("deep", function() { - flag2(this, "deep", true); -}); -Assertion.addProperty("nested", function() { - flag2(this, "nested", true); -}); -Assertion.addProperty("own", function() { - flag2(this, "own", true); -}); -Assertion.addProperty("ordered", function() { - flag2(this, "ordered", true); -}); -Assertion.addProperty("any", function() { - flag2(this, "any", true); - flag2(this, "all", false); -}); -Assertion.addProperty("all", function() { - flag2(this, "all", true); - flag2(this, "any", false); -}); -var functionTypes = { - function: [ - "function", - "asyncfunction", - "generatorfunction", - "asyncgeneratorfunction" - ], - asyncfunction: ["asyncfunction", "asyncgeneratorfunction"], - generatorfunction: ["generatorfunction", "asyncgeneratorfunction"], - asyncgeneratorfunction: ["asyncgeneratorfunction"] -}; -function an(type3, msg) { - if (msg) flag2(this, "message", msg); - type3 = type3.toLowerCase(); - let obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type3.charAt(0)) ? "an " : "a "; - const detectedType = type(obj).toLowerCase(); - if (functionTypes["function"].includes(type3)) { - this.assert( - functionTypes[type3].includes(detectedType), - "expected #{this} to be " + article + type3, - "expected #{this} not to be " + article + type3 - ); - } else { - this.assert( - type3 === detectedType, - "expected #{this} to be " + article + type3, - "expected #{this} not to be " + article + type3 - ); - } -} -__name(an, "an"); -Assertion.addChainableMethod("an", an); -Assertion.addChainableMethod("a", an); -function SameValueZero(a, b) { - return isNaN2(a) && isNaN2(b) || a === b; -} -__name(SameValueZero, "SameValueZero"); -function includeChainingBehavior() { - flag2(this, "contains", true); -} -__name(includeChainingBehavior, "includeChainingBehavior"); -function include(val, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), negate = flag2(this, "negate"), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), descriptor = isDeep ? "deep " : "", isEql = isDeep ? flag2(this, "eql") : SameValueZero; - flagMsg = flagMsg ? flagMsg + ": " : ""; - let included = false; - switch (objType) { - case "string": - included = obj.indexOf(val) !== -1; - break; - case "weakset": - if (isDeep) { - throw new AssertionError( - flagMsg + "unable to use .deep.include with WeakSet", - void 0, - ssfi - ); - } - included = obj.has(val); - break; - case "map": - obj.forEach(function(item) { - included = included || isEql(item, val); - }); - break; - case "set": - if (isDeep) { - obj.forEach(function(item) { - included = included || isEql(item, val); - }); - } else { - included = obj.has(val); - } - break; - case "array": - if (isDeep) { - included = obj.some(function(item) { - return isEql(item, val); - }); - } else { - included = obj.indexOf(val) !== -1; - } - break; - default: { - if (val !== Object(val)) { - throw new AssertionError( - flagMsg + "the given combination of arguments (" + objType + " and " + type(val).toLowerCase() + ") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a " + type(val).toLowerCase(), - void 0, - ssfi - ); - } - let props = Object.keys(val); - let firstErr = null; - let numErrs = 0; - props.forEach(function(prop) { - let propAssertion = new Assertion(obj); - transferFlags(this, propAssertion, true); - flag2(propAssertion, "lockSsfi", true); - if (!negate || props.length === 1) { - propAssertion.property(prop, val[prop]); - return; - } - try { - propAssertion.property(prop, val[prop]); - } catch (err) { - if (!check_error_exports.compatibleConstructor(err, AssertionError)) { - throw err; - } - if (firstErr === null) firstErr = err; - numErrs++; - } - }, this); - if (negate && props.length > 1 && numErrs === props.length) { - throw firstErr; - } - return; - } - } - this.assert( - included, - "expected #{this} to " + descriptor + "include " + inspect2(val), - "expected #{this} to not " + descriptor + "include " + inspect2(val) - ); -} -__name(include, "include"); -Assertion.addChainableMethod("include", include, includeChainingBehavior); -Assertion.addChainableMethod("contain", include, includeChainingBehavior); -Assertion.addChainableMethod("contains", include, includeChainingBehavior); -Assertion.addChainableMethod("includes", include, includeChainingBehavior); -Assertion.addProperty("ok", function() { - this.assert( - flag2(this, "object"), - "expected #{this} to be truthy", - "expected #{this} to be falsy" - ); -}); -Assertion.addProperty("true", function() { - this.assert( - true === flag2(this, "object"), - "expected #{this} to be true", - "expected #{this} to be false", - flag2(this, "negate") ? false : true - ); -}); -Assertion.addProperty("numeric", function() { - const object = flag2(this, "object"); - this.assert( - ["Number", "BigInt"].includes(type(object)), - "expected #{this} to be numeric", - "expected #{this} to not be numeric", - flag2(this, "negate") ? false : true - ); -}); -Assertion.addProperty("callable", function() { - const val = flag2(this, "object"); - const ssfi = flag2(this, "ssfi"); - const message = flag2(this, "message"); - const msg = message ? `${message}: ` : ""; - const negate = flag2(this, "negate"); - const assertionMessage = negate ? `${msg}expected ${inspect2(val)} not to be a callable function` : `${msg}expected ${inspect2(val)} to be a callable function`; - const isCallable = [ - "Function", - "AsyncFunction", - "GeneratorFunction", - "AsyncGeneratorFunction" - ].includes(type(val)); - if (isCallable && negate || !isCallable && !negate) { - throw new AssertionError(assertionMessage, void 0, ssfi); - } -}); -Assertion.addProperty("false", function() { - this.assert( - false === flag2(this, "object"), - "expected #{this} to be false", - "expected #{this} to be true", - flag2(this, "negate") ? true : false - ); -}); -Assertion.addProperty("null", function() { - this.assert( - null === flag2(this, "object"), - "expected #{this} to be null", - "expected #{this} not to be null" - ); -}); -Assertion.addProperty("undefined", function() { - this.assert( - void 0 === flag2(this, "object"), - "expected #{this} to be undefined", - "expected #{this} not to be undefined" - ); -}); -Assertion.addProperty("NaN", function() { - this.assert( - isNaN2(flag2(this, "object")), - "expected #{this} to be NaN", - "expected #{this} not to be NaN" - ); -}); -function assertExist() { - let val = flag2(this, "object"); - this.assert( - val !== null && val !== void 0, - "expected #{this} to exist", - "expected #{this} to not exist" - ); -} -__name(assertExist, "assertExist"); -Assertion.addProperty("exist", assertExist); -Assertion.addProperty("exists", assertExist); -Assertion.addProperty("empty", function() { - let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount; - flagMsg = flagMsg ? flagMsg + ": " : ""; - switch (type(val).toLowerCase()) { - case "array": - case "string": - itemsCount = val.length; - break; - case "map": - case "set": - itemsCount = val.size; - break; - case "weakmap": - case "weakset": - throw new AssertionError( - flagMsg + ".empty was passed a weak collection", - void 0, - ssfi - ); - case "function": { - const msg = flagMsg + ".empty was passed a function " + getName(val); - throw new AssertionError(msg.trim(), void 0, ssfi); - } - default: - if (val !== Object(val)) { - throw new AssertionError( - flagMsg + ".empty was passed non-string primitive " + inspect2(val), - void 0, - ssfi - ); - } - itemsCount = Object.keys(val).length; - } - this.assert( - 0 === itemsCount, - "expected #{this} to be empty", - "expected #{this} not to be empty" - ); -}); -function checkArguments() { - let obj = flag2(this, "object"), type3 = type(obj); - this.assert( - "Arguments" === type3, - "expected #{this} to be arguments but got " + type3, - "expected #{this} to not be arguments" - ); -} -__name(checkArguments, "checkArguments"); -Assertion.addProperty("arguments", checkArguments); -Assertion.addProperty("Arguments", checkArguments); -function assertEqual(val, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"); - if (flag2(this, "deep")) { - let prevLockSsfi = flag2(this, "lockSsfi"); - flag2(this, "lockSsfi", true); - this.eql(val); - flag2(this, "lockSsfi", prevLockSsfi); - } else { - this.assert( - val === obj, - "expected #{this} to equal #{exp}", - "expected #{this} to not equal #{exp}", - val, - this._obj, - true - ); - } -} -__name(assertEqual, "assertEqual"); -Assertion.addMethod("equal", assertEqual); -Assertion.addMethod("equals", assertEqual); -Assertion.addMethod("eq", assertEqual); -function assertEql(obj, msg) { - if (msg) flag2(this, "message", msg); - let eql = flag2(this, "eql"); - this.assert( - eql(obj, flag2(this, "object")), - "expected #{this} to deeply equal #{exp}", - "expected #{this} to not deeply equal #{exp}", - obj, - this._obj, - true - ); -} -__name(assertEql, "assertEql"); -Assertion.addMethod("eql", assertEql); -Assertion.addMethod("eqls", assertEql); -function assertAbove(n, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(); - if (doLength && objType !== "map" && objType !== "set") { - new Assertion(obj, flagMsg, ssfi, true).to.have.property("length"); - } - if (!doLength && objType === "date" && nType !== "date") { - throw new AssertionError( - msgPrefix + "the argument to above must be a date", - void 0, - ssfi - ); - } else if (!isNumeric(n) && (doLength || isNumeric(obj))) { - throw new AssertionError( - msgPrefix + "the argument to above must be a number", - void 0, - ssfi - ); - } else if (!doLength && objType !== "date" && !isNumeric(obj)) { - let printObj = objType === "string" ? "'" + obj + "'" : obj; - throw new AssertionError( - msgPrefix + "expected " + printObj + " to be a number or a date", - void 0, - ssfi - ); - } - if (doLength) { - let descriptor = "length", itemsCount; - if (objType === "map" || objType === "set") { - descriptor = "size"; - itemsCount = obj.size; - } else { - itemsCount = obj.length; - } - this.assert( - itemsCount > n, - "expected #{this} to have a " + descriptor + " above #{exp} but got #{act}", - "expected #{this} to not have a " + descriptor + " above #{exp}", - n, - itemsCount - ); - } else { - this.assert( - obj > n, - "expected #{this} to be above #{exp}", - "expected #{this} to be at most #{exp}", - n - ); - } -} -__name(assertAbove, "assertAbove"); -Assertion.addMethod("above", assertAbove); -Assertion.addMethod("gt", assertAbove); -Assertion.addMethod("greaterThan", assertAbove); -function assertLeast(n, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true; - if (doLength && objType !== "map" && objType !== "set") { - new Assertion(obj, flagMsg, ssfi, true).to.have.property("length"); - } - if (!doLength && objType === "date" && nType !== "date") { - errorMessage = msgPrefix + "the argument to least must be a date"; - } else if (!isNumeric(n) && (doLength || isNumeric(obj))) { - errorMessage = msgPrefix + "the argument to least must be a number"; - } else if (!doLength && objType !== "date" && !isNumeric(obj)) { - let printObj = objType === "string" ? "'" + obj + "'" : obj; - errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; - } else { - shouldThrow = false; - } - if (shouldThrow) { - throw new AssertionError(errorMessage, void 0, ssfi); - } - if (doLength) { - let descriptor = "length", itemsCount; - if (objType === "map" || objType === "set") { - descriptor = "size"; - itemsCount = obj.size; - } else { - itemsCount = obj.length; - } - this.assert( - itemsCount >= n, - "expected #{this} to have a " + descriptor + " at least #{exp} but got #{act}", - "expected #{this} to have a " + descriptor + " below #{exp}", - n, - itemsCount - ); - } else { - this.assert( - obj >= n, - "expected #{this} to be at least #{exp}", - "expected #{this} to be below #{exp}", - n - ); - } -} -__name(assertLeast, "assertLeast"); -Assertion.addMethod("least", assertLeast); -Assertion.addMethod("gte", assertLeast); -Assertion.addMethod("greaterThanOrEqual", assertLeast); -function assertBelow(n, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true; - if (doLength && objType !== "map" && objType !== "set") { - new Assertion(obj, flagMsg, ssfi, true).to.have.property("length"); - } - if (!doLength && objType === "date" && nType !== "date") { - errorMessage = msgPrefix + "the argument to below must be a date"; - } else if (!isNumeric(n) && (doLength || isNumeric(obj))) { - errorMessage = msgPrefix + "the argument to below must be a number"; - } else if (!doLength && objType !== "date" && !isNumeric(obj)) { - let printObj = objType === "string" ? "'" + obj + "'" : obj; - errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; - } else { - shouldThrow = false; - } - if (shouldThrow) { - throw new AssertionError(errorMessage, void 0, ssfi); - } - if (doLength) { - let descriptor = "length", itemsCount; - if (objType === "map" || objType === "set") { - descriptor = "size"; - itemsCount = obj.size; - } else { - itemsCount = obj.length; - } - this.assert( - itemsCount < n, - "expected #{this} to have a " + descriptor + " below #{exp} but got #{act}", - "expected #{this} to not have a " + descriptor + " below #{exp}", - n, - itemsCount - ); - } else { - this.assert( - obj < n, - "expected #{this} to be below #{exp}", - "expected #{this} to be at least #{exp}", - n - ); - } -} -__name(assertBelow, "assertBelow"); -Assertion.addMethod("below", assertBelow); -Assertion.addMethod("lt", assertBelow); -Assertion.addMethod("lessThan", assertBelow); -function assertMost(n, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true; - if (doLength && objType !== "map" && objType !== "set") { - new Assertion(obj, flagMsg, ssfi, true).to.have.property("length"); - } - if (!doLength && objType === "date" && nType !== "date") { - errorMessage = msgPrefix + "the argument to most must be a date"; - } else if (!isNumeric(n) && (doLength || isNumeric(obj))) { - errorMessage = msgPrefix + "the argument to most must be a number"; - } else if (!doLength && objType !== "date" && !isNumeric(obj)) { - let printObj = objType === "string" ? "'" + obj + "'" : obj; - errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; - } else { - shouldThrow = false; - } - if (shouldThrow) { - throw new AssertionError(errorMessage, void 0, ssfi); - } - if (doLength) { - let descriptor = "length", itemsCount; - if (objType === "map" || objType === "set") { - descriptor = "size"; - itemsCount = obj.size; - } else { - itemsCount = obj.length; - } - this.assert( - itemsCount <= n, - "expected #{this} to have a " + descriptor + " at most #{exp} but got #{act}", - "expected #{this} to have a " + descriptor + " above #{exp}", - n, - itemsCount - ); - } else { - this.assert( - obj <= n, - "expected #{this} to be at most #{exp}", - "expected #{this} to be above #{exp}", - n - ); - } -} -__name(assertMost, "assertMost"); -Assertion.addMethod("most", assertMost); -Assertion.addMethod("lte", assertMost); -Assertion.addMethod("lessThanOrEqual", assertMost); -Assertion.addMethod("within", function(start, finish, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), doLength = flag2(this, "doLength"), flagMsg = flag2(this, "message"), msgPrefix = flagMsg ? flagMsg + ": " : "", ssfi = flag2(this, "ssfi"), objType = type(obj).toLowerCase(), startType = type(start).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = startType === "date" && finishType === "date" ? start.toISOString() + ".." + finish.toISOString() : start + ".." + finish; - if (doLength && objType !== "map" && objType !== "set") { - new Assertion(obj, flagMsg, ssfi, true).to.have.property("length"); - } - if (!doLength && objType === "date" && (startType !== "date" || finishType !== "date")) { - errorMessage = msgPrefix + "the arguments to within must be dates"; - } else if ((!isNumeric(start) || !isNumeric(finish)) && (doLength || isNumeric(obj))) { - errorMessage = msgPrefix + "the arguments to within must be numbers"; - } else if (!doLength && objType !== "date" && !isNumeric(obj)) { - let printObj = objType === "string" ? "'" + obj + "'" : obj; - errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; - } else { - shouldThrow = false; - } - if (shouldThrow) { - throw new AssertionError(errorMessage, void 0, ssfi); - } - if (doLength) { - let descriptor = "length", itemsCount; - if (objType === "map" || objType === "set") { - descriptor = "size"; - itemsCount = obj.size; - } else { - itemsCount = obj.length; - } - this.assert( - itemsCount >= start && itemsCount <= finish, - "expected #{this} to have a " + descriptor + " within " + range, - "expected #{this} to not have a " + descriptor + " within " + range - ); - } else { - this.assert( - obj >= start && obj <= finish, - "expected #{this} to be within " + range, - "expected #{this} to not be within " + range - ); - } -}); -function assertInstanceOf(constructor, msg) { - if (msg) flag2(this, "message", msg); - let target = flag2(this, "object"); - let ssfi = flag2(this, "ssfi"); - let flagMsg = flag2(this, "message"); - let isInstanceOf; - try { - isInstanceOf = target instanceof constructor; - } catch (err) { - if (err instanceof TypeError) { - flagMsg = flagMsg ? flagMsg + ": " : ""; - throw new AssertionError( - flagMsg + "The instanceof assertion needs a constructor but " + type(constructor) + " was given.", - void 0, - ssfi - ); - } - throw err; - } - let name = getName(constructor); - if (name == null) { - name = "an unnamed constructor"; - } - this.assert( - isInstanceOf, - "expected #{this} to be an instance of " + name, - "expected #{this} to not be an instance of " + name - ); -} -__name(assertInstanceOf, "assertInstanceOf"); -Assertion.addMethod("instanceof", assertInstanceOf); -Assertion.addMethod("instanceOf", assertInstanceOf); -function assertProperty(name, val, msg) { - if (msg) flag2(this, "message", msg); - let isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name; - flagMsg = flagMsg ? flagMsg + ": " : ""; - if (isNested) { - if (nameType !== "string") { - throw new AssertionError( - flagMsg + "the argument to property must be a string when using nested syntax", - void 0, - ssfi - ); - } - } else { - if (nameType !== "string" && nameType !== "number" && nameType !== "symbol") { - throw new AssertionError( - flagMsg + "the argument to property must be a string, number, or symbol", - void 0, - ssfi - ); - } - } - if (isNested && isOwn) { - throw new AssertionError( - flagMsg + 'The "nested" and "own" flags cannot be combined.', - void 0, - ssfi - ); - } - if (obj === null || obj === void 0) { - throw new AssertionError( - flagMsg + "Target cannot be null or undefined.", - void 0, - ssfi - ); - } - let isDeep = flag2(this, "deep"), negate = flag2(this, "negate"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2; - let descriptor = ""; - if (isDeep) descriptor += "deep "; - if (isOwn) descriptor += "own "; - if (isNested) descriptor += "nested "; - descriptor += "property "; - let hasProperty2; - if (isOwn) hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name); - else if (isNested) hasProperty2 = pathInfo.exists; - else hasProperty2 = hasProperty(obj, name); - if (!negate || arguments.length === 1) { - this.assert( - hasProperty2, - "expected #{this} to have " + descriptor + inspect2(name), - "expected #{this} to not have " + descriptor + inspect2(name) - ); - } - if (arguments.length > 1) { - this.assert( - hasProperty2 && isEql(val, value), - "expected #{this} to have " + descriptor + inspect2(name) + " of #{exp}, but got #{act}", - "expected #{this} to not have " + descriptor + inspect2(name) + " of #{act}", - val, - value - ); - } - flag2(this, "object", value); -} -__name(assertProperty, "assertProperty"); -Assertion.addMethod("property", assertProperty); -function assertOwnProperty(_name, _value, _msg) { - flag2(this, "own", true); - assertProperty.apply(this, arguments); -} -__name(assertOwnProperty, "assertOwnProperty"); -Assertion.addMethod("ownProperty", assertOwnProperty); -Assertion.addMethod("haveOwnProperty", assertOwnProperty); -function assertOwnPropertyDescriptor(name, descriptor, msg) { - if (typeof descriptor === "string") { - msg = descriptor; - descriptor = null; - } - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"); - let actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name); - let eql = flag2(this, "eql"); - if (actualDescriptor && descriptor) { - this.assert( - eql(descriptor, actualDescriptor), - "expected the own property descriptor for " + inspect2(name) + " on #{this} to match " + inspect2(descriptor) + ", got " + inspect2(actualDescriptor), - "expected the own property descriptor for " + inspect2(name) + " on #{this} to not match " + inspect2(descriptor), - descriptor, - actualDescriptor, - true - ); - } else { - this.assert( - actualDescriptor, - "expected #{this} to have an own property descriptor for " + inspect2(name), - "expected #{this} to not have an own property descriptor for " + inspect2(name) - ); - } - flag2(this, "object", actualDescriptor); -} -__name(assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor"); -Assertion.addMethod("ownPropertyDescriptor", assertOwnPropertyDescriptor); -Assertion.addMethod("haveOwnPropertyDescriptor", assertOwnPropertyDescriptor); -function assertLengthChain() { - flag2(this, "doLength", true); -} -__name(assertLengthChain, "assertLengthChain"); -function assertLength(n, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount; - switch (objType) { - case "map": - case "set": - descriptor = "size"; - itemsCount = obj.size; - break; - default: - new Assertion(obj, flagMsg, ssfi, true).to.have.property("length"); - itemsCount = obj.length; - } - this.assert( - itemsCount == n, - "expected #{this} to have a " + descriptor + " of #{exp} but got #{act}", - "expected #{this} to not have a " + descriptor + " of #{act}", - n, - itemsCount - ); -} -__name(assertLength, "assertLength"); -Assertion.addChainableMethod("length", assertLength, assertLengthChain); -Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain); -function assertMatch(re, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"); - this.assert( - re.exec(obj), - "expected #{this} to match " + re, - "expected #{this} not to match " + re - ); -} -__name(assertMatch, "assertMatch"); -Assertion.addMethod("match", assertMatch); -Assertion.addMethod("matches", assertMatch); -Assertion.addMethod("string", function(str, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); - new Assertion(obj, flagMsg, ssfi, true).is.a("string"); - this.assert( - ~obj.indexOf(str), - "expected #{this} to contain " + inspect2(str), - "expected #{this} to not contain " + inspect2(str) - ); -}); -function assertKeys(keys) { - let obj = flag2(this, "object"), objType = type(obj), keysType = type(keys), ssfi = flag2(this, "ssfi"), isDeep = flag2(this, "deep"), str, deepStr = "", actual, ok = true, flagMsg = flag2(this, "message"); - flagMsg = flagMsg ? flagMsg + ": " : ""; - let mixedArgsMsg = flagMsg + "when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments"; - if (objType === "Map" || objType === "Set") { - deepStr = isDeep ? "deeply " : ""; - actual = []; - obj.forEach(function(val, key) { - actual.push(key); - }); - if (keysType !== "Array") { - keys = Array.prototype.slice.call(arguments); - } - } else { - actual = getOwnEnumerableProperties(obj); - switch (keysType) { - case "Array": - if (arguments.length > 1) { - throw new AssertionError(mixedArgsMsg, void 0, ssfi); - } - break; - case "Object": - if (arguments.length > 1) { - throw new AssertionError(mixedArgsMsg, void 0, ssfi); - } - keys = Object.keys(keys); - break; - default: - keys = Array.prototype.slice.call(arguments); - } - keys = keys.map(function(val) { - return typeof val === "symbol" ? val : String(val); - }); - } - if (!keys.length) { - throw new AssertionError(flagMsg + "keys required", void 0, ssfi); - } - let len = keys.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2; - if (!any && !all) { - all = true; - } - if (any) { - ok = expected.some(function(expectedKey) { - return actual.some(function(actualKey) { - return isEql(expectedKey, actualKey); - }); - }); - } - if (all) { - ok = expected.every(function(expectedKey) { - return actual.some(function(actualKey) { - return isEql(expectedKey, actualKey); - }); - }); - if (!flag2(this, "contains")) { - ok = ok && keys.length == actual.length; - } - } - if (len > 1) { - keys = keys.map(function(key) { - return inspect2(key); - }); - let last = keys.pop(); - if (all) { - str = keys.join(", ") + ", and " + last; - } - if (any) { - str = keys.join(", ") + ", or " + last; - } - } else { - str = inspect2(keys[0]); - } - str = (len > 1 ? "keys " : "key ") + str; - str = (flag2(this, "contains") ? "contain " : "have ") + str; - this.assert( - ok, - "expected #{this} to " + deepStr + str, - "expected #{this} to not " + deepStr + str, - expected.slice(0).sort(compareByInspect), - actual.sort(compareByInspect), - true - ); -} -__name(assertKeys, "assertKeys"); -Assertion.addMethod("keys", assertKeys); -Assertion.addMethod("key", assertKeys); -function assertThrows(errorLike, errMsgMatcher, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || false; - new Assertion(obj, flagMsg, ssfi, true).is.a("function"); - if (isRegExp2(errorLike) || typeof errorLike === "string") { - errMsgMatcher = errorLike; - errorLike = null; - } - let caughtErr; - let errorWasThrown = false; - try { - obj(); - } catch (err) { - errorWasThrown = true; - caughtErr = err; - } - let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0; - let everyArgIsDefined = Boolean(errorLike && errMsgMatcher); - let errorLikeFail = false; - let errMsgMatcherFail = false; - if (everyArgIsUndefined || !everyArgIsUndefined && !negate) { - let errorLikeString = "an error"; - if (errorLike instanceof Error) { - errorLikeString = "#{exp}"; - } else if (errorLike) { - errorLikeString = check_error_exports.getConstructorName(errorLike); - } - let actual = caughtErr; - if (caughtErr instanceof Error) { - actual = caughtErr.toString(); - } else if (typeof caughtErr === "string") { - actual = caughtErr; - } else if (caughtErr && (typeof caughtErr === "object" || typeof caughtErr === "function")) { - try { - actual = check_error_exports.getConstructorName(caughtErr); - } catch (_err) { - } - } - this.assert( - errorWasThrown, - "expected #{this} to throw " + errorLikeString, - "expected #{this} to not throw an error but #{act} was thrown", - errorLike && errorLike.toString(), - actual - ); - } - if (errorLike && caughtErr) { - if (errorLike instanceof Error) { - let isCompatibleInstance = check_error_exports.compatibleInstance( - caughtErr, - errorLike - ); - if (isCompatibleInstance === negate) { - if (everyArgIsDefined && negate) { - errorLikeFail = true; - } else { - this.assert( - negate, - "expected #{this} to throw #{exp} but #{act} was thrown", - "expected #{this} to not throw #{exp}" + (caughtErr && !negate ? " but #{act} was thrown" : ""), - errorLike.toString(), - caughtErr.toString() - ); - } - } - } - let isCompatibleConstructor = check_error_exports.compatibleConstructor( - caughtErr, - errorLike - ); - if (isCompatibleConstructor === negate) { - if (everyArgIsDefined && negate) { - errorLikeFail = true; - } else { - this.assert( - negate, - "expected #{this} to throw #{exp} but #{act} was thrown", - "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), - errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike), - caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr) - ); - } - } - } - if (caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) { - let placeholder = "including"; - if (isRegExp2(errMsgMatcher)) { - placeholder = "matching"; - } - let isCompatibleMessage = check_error_exports.compatibleMessage( - caughtErr, - errMsgMatcher - ); - if (isCompatibleMessage === negate) { - if (everyArgIsDefined && negate) { - errMsgMatcherFail = true; - } else { - this.assert( - negate, - "expected #{this} to throw error " + placeholder + " #{exp} but got #{act}", - "expected #{this} to throw error not " + placeholder + " #{exp}", - errMsgMatcher, - check_error_exports.getMessage(caughtErr) - ); - } - } - } - if (errorLikeFail && errMsgMatcherFail) { - this.assert( - negate, - "expected #{this} to throw #{exp} but #{act} was thrown", - "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), - errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike), - caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr) - ); - } - flag2(this, "object", caughtErr); -} -__name(assertThrows, "assertThrows"); -Assertion.addMethod("throw", assertThrows); -Assertion.addMethod("throws", assertThrows); -Assertion.addMethod("Throw", assertThrows); -function respondTo(method, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), itself = flag2(this, "itself"), context = "function" === typeof obj && !itself ? obj.prototype[method] : obj[method]; - this.assert( - "function" === typeof context, - "expected #{this} to respond to " + inspect2(method), - "expected #{this} to not respond to " + inspect2(method) - ); -} -__name(respondTo, "respondTo"); -Assertion.addMethod("respondTo", respondTo); -Assertion.addMethod("respondsTo", respondTo); -Assertion.addProperty("itself", function() { - flag2(this, "itself", true); -}); -function satisfy(matcher, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"); - let result = matcher(obj); - this.assert( - result, - "expected #{this} to satisfy " + objDisplay(matcher), - "expected #{this} to not satisfy" + objDisplay(matcher), - flag2(this, "negate") ? false : true, - result - ); -} -__name(satisfy, "satisfy"); -Assertion.addMethod("satisfy", satisfy); -Assertion.addMethod("satisfies", satisfy); -function closeTo(expected, delta, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); - new Assertion(obj, flagMsg, ssfi, true).is.numeric; - let message = "A `delta` value is required for `closeTo`"; - if (delta == void 0) { - throw new AssertionError( - flagMsg ? `${flagMsg}: ${message}` : message, - void 0, - ssfi - ); - } - new Assertion(delta, flagMsg, ssfi, true).is.numeric; - message = "A `expected` value is required for `closeTo`"; - if (expected == void 0) { - throw new AssertionError( - flagMsg ? `${flagMsg}: ${message}` : message, - void 0, - ssfi - ); - } - new Assertion(expected, flagMsg, ssfi, true).is.numeric; - const abs = /* @__PURE__ */ __name((x) => x < 0 ? -x : x, "abs"); - const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip"); - this.assert( - strip(abs(obj - expected)) <= delta, - "expected #{this} to be close to " + expected + " +/- " + delta, - "expected #{this} not to be close to " + expected + " +/- " + delta - ); -} -__name(closeTo, "closeTo"); -Assertion.addMethod("closeTo", closeTo); -Assertion.addMethod("approximately", closeTo); -function isSubsetOf(_subset, _superset, cmp, contains, ordered) { - let superset = Array.from(_superset); - let subset = Array.from(_subset); - if (!contains) { - if (subset.length !== superset.length) return false; - superset = superset.slice(); - } - return subset.every(function(elem, idx) { - if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx]; - if (!cmp) { - let matchIdx = superset.indexOf(elem); - if (matchIdx === -1) return false; - if (!contains) superset.splice(matchIdx, 1); - return true; - } - return superset.some(function(elem2, matchIdx) { - if (!cmp(elem, elem2)) return false; - if (!contains) superset.splice(matchIdx, 1); - return true; - }); - }); -} -__name(isSubsetOf, "isSubsetOf"); -Assertion.addMethod("members", function(subset, msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); - new Assertion(obj, flagMsg, ssfi, true).to.be.iterable; - new Assertion(subset, flagMsg, ssfi, true).to.be.iterable; - let contains = flag2(this, "contains"); - let ordered = flag2(this, "ordered"); - let subject, failMsg, failNegateMsg; - if (contains) { - subject = ordered ? "an ordered superset" : "a superset"; - failMsg = "expected #{this} to be " + subject + " of #{exp}"; - failNegateMsg = "expected #{this} to not be " + subject + " of #{exp}"; - } else { - subject = ordered ? "ordered members" : "members"; - failMsg = "expected #{this} to have the same " + subject + " as #{exp}"; - failNegateMsg = "expected #{this} to not have the same " + subject + " as #{exp}"; - } - let cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0; - this.assert( - isSubsetOf(subset, obj, cmp, contains, ordered), - failMsg, - failNegateMsg, - subset, - obj, - true - ); -}); -Assertion.addProperty("iterable", function(msg) { - if (msg) flag2(this, "message", msg); - let obj = flag2(this, "object"); - this.assert( - obj != void 0 && obj[Symbol.iterator], - "expected #{this} to be an iterable", - "expected #{this} to not be an iterable", - obj - ); -}); -function oneOf(list, msg) { - if (msg) flag2(this, "message", msg); - let expected = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), contains = flag2(this, "contains"), isDeep = flag2(this, "deep"), eql = flag2(this, "eql"); - new Assertion(list, flagMsg, ssfi, true).to.be.an("array"); - if (contains) { - this.assert( - list.some(function(possibility) { - return expected.indexOf(possibility) > -1; - }), - "expected #{this} to contain one of #{exp}", - "expected #{this} to not contain one of #{exp}", - list, - expected - ); - } else { - if (isDeep) { - this.assert( - list.some(function(possibility) { - return eql(expected, possibility); - }), - "expected #{this} to deeply equal one of #{exp}", - "expected #{this} to deeply equal one of #{exp}", - list, - expected - ); - } else { - this.assert( - list.indexOf(expected) > -1, - "expected #{this} to be one of #{exp}", - "expected #{this} to not be one of #{exp}", - list, - expected - ); - } - } -} -__name(oneOf, "oneOf"); -Assertion.addMethod("oneOf", oneOf); -function assertChanges(subject, prop, msg) { - if (msg) flag2(this, "message", msg); - let fn = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); - new Assertion(fn, flagMsg, ssfi, true).is.a("function"); - let initial; - if (!prop) { - new Assertion(subject, flagMsg, ssfi, true).is.a("function"); - initial = subject(); - } else { - new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop); - initial = subject[prop]; - } - fn(); - let final = prop === void 0 || prop === null ? subject() : subject[prop]; - let msgObj = prop === void 0 || prop === null ? initial : "." + prop; - flag2(this, "deltaMsgObj", msgObj); - flag2(this, "initialDeltaValue", initial); - flag2(this, "finalDeltaValue", final); - flag2(this, "deltaBehavior", "change"); - flag2(this, "realDelta", final !== initial); - this.assert( - initial !== final, - "expected " + msgObj + " to change", - "expected " + msgObj + " to not change" - ); -} -__name(assertChanges, "assertChanges"); -Assertion.addMethod("change", assertChanges); -Assertion.addMethod("changes", assertChanges); -function assertIncreases(subject, prop, msg) { - if (msg) flag2(this, "message", msg); - let fn = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); - new Assertion(fn, flagMsg, ssfi, true).is.a("function"); - let initial; - if (!prop) { - new Assertion(subject, flagMsg, ssfi, true).is.a("function"); - initial = subject(); - } else { - new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop); - initial = subject[prop]; - } - new Assertion(initial, flagMsg, ssfi, true).is.a("number"); - fn(); - let final = prop === void 0 || prop === null ? subject() : subject[prop]; - let msgObj = prop === void 0 || prop === null ? initial : "." + prop; - flag2(this, "deltaMsgObj", msgObj); - flag2(this, "initialDeltaValue", initial); - flag2(this, "finalDeltaValue", final); - flag2(this, "deltaBehavior", "increase"); - flag2(this, "realDelta", final - initial); - this.assert( - final - initial > 0, - "expected " + msgObj + " to increase", - "expected " + msgObj + " to not increase" - ); -} -__name(assertIncreases, "assertIncreases"); -Assertion.addMethod("increase", assertIncreases); -Assertion.addMethod("increases", assertIncreases); -function assertDecreases(subject, prop, msg) { - if (msg) flag2(this, "message", msg); - let fn = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); - new Assertion(fn, flagMsg, ssfi, true).is.a("function"); - let initial; - if (!prop) { - new Assertion(subject, flagMsg, ssfi, true).is.a("function"); - initial = subject(); - } else { - new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop); - initial = subject[prop]; - } - new Assertion(initial, flagMsg, ssfi, true).is.a("number"); - fn(); - let final = prop === void 0 || prop === null ? subject() : subject[prop]; - let msgObj = prop === void 0 || prop === null ? initial : "." + prop; - flag2(this, "deltaMsgObj", msgObj); - flag2(this, "initialDeltaValue", initial); - flag2(this, "finalDeltaValue", final); - flag2(this, "deltaBehavior", "decrease"); - flag2(this, "realDelta", initial - final); - this.assert( - final - initial < 0, - "expected " + msgObj + " to decrease", - "expected " + msgObj + " to not decrease" - ); -} -__name(assertDecreases, "assertDecreases"); -Assertion.addMethod("decrease", assertDecreases); -Assertion.addMethod("decreases", assertDecreases); -function assertDelta(delta, msg) { - if (msg) flag2(this, "message", msg); - let msgObj = flag2(this, "deltaMsgObj"); - let initial = flag2(this, "initialDeltaValue"); - let final = flag2(this, "finalDeltaValue"); - let behavior = flag2(this, "deltaBehavior"); - let realDelta = flag2(this, "realDelta"); - let expression; - if (behavior === "change") { - expression = Math.abs(final - initial) === Math.abs(delta); - } else { - expression = realDelta === Math.abs(delta); - } - this.assert( - expression, - "expected " + msgObj + " to " + behavior + " by " + delta, - "expected " + msgObj + " to not " + behavior + " by " + delta - ); -} -__name(assertDelta, "assertDelta"); -Assertion.addMethod("by", assertDelta); -Assertion.addProperty("extensible", function() { - let obj = flag2(this, "object"); - let isExtensible = obj === Object(obj) && Object.isExtensible(obj); - this.assert( - isExtensible, - "expected #{this} to be extensible", - "expected #{this} to not be extensible" - ); -}); -Assertion.addProperty("sealed", function() { - let obj = flag2(this, "object"); - let isSealed = obj === Object(obj) ? Object.isSealed(obj) : true; - this.assert( - isSealed, - "expected #{this} to be sealed", - "expected #{this} to not be sealed" - ); -}); -Assertion.addProperty("frozen", function() { - let obj = flag2(this, "object"); - let isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true; - this.assert( - isFrozen, - "expected #{this} to be frozen", - "expected #{this} to not be frozen" - ); -}); -Assertion.addProperty("finite", function(_msg) { - let obj = flag2(this, "object"); - this.assert( - typeof obj === "number" && isFinite(obj), - "expected #{this} to be a finite number", - "expected #{this} to not be a finite number" - ); -}); -function compareSubset(expected, actual) { - if (expected === actual) { - return true; - } - if (typeof actual !== typeof expected) { - return false; - } - if (typeof expected !== "object" || expected === null) { - return expected === actual; - } - if (!actual) { - return false; - } - if (Array.isArray(expected)) { - if (!Array.isArray(actual)) { - return false; - } - return expected.every(function(exp) { - return actual.some(function(act) { - return compareSubset(exp, act); - }); - }); - } - if (expected instanceof Date) { - if (actual instanceof Date) { - return expected.getTime() === actual.getTime(); - } else { - return false; - } - } - return Object.keys(expected).every(function(key) { - let expectedValue = expected[key]; - let actualValue = actual[key]; - if (typeof expectedValue === "object" && expectedValue !== null && actualValue !== null) { - return compareSubset(expectedValue, actualValue); - } - if (typeof expectedValue === "function") { - return expectedValue(actualValue); - } - return actualValue === expectedValue; - }); -} -__name(compareSubset, "compareSubset"); -Assertion.addMethod("containSubset", function(expected) { - const actual = flag(this, "object"); - const showDiff = config.showDiff; - this.assert( - compareSubset(expected, actual), - "expected #{act} to contain subset #{exp}", - "expected #{act} to not contain subset #{exp}", - expected, - actual, - showDiff - ); -}); - -// lib/chai/interface/expect.js -function expect(val, message) { - return new Assertion(val, message); -} -__name(expect, "expect"); -expect.fail = function(actual, expected, message, operator) { - if (arguments.length < 2) { - message = actual; - actual = void 0; - } - message = message || "expect.fail()"; - throw new AssertionError( - message, - { - actual, - expected, - operator - }, - expect.fail - ); -}; - -// lib/chai/interface/should.js -var should_exports = {}; -__export(should_exports, { - Should: () => Should, - should: () => should -}); -function loadShould() { - function shouldGetter() { - if (this instanceof String || this instanceof Number || this instanceof Boolean || typeof Symbol === "function" && this instanceof Symbol || typeof BigInt === "function" && this instanceof BigInt) { - return new Assertion(this.valueOf(), null, shouldGetter); - } - return new Assertion(this, null, shouldGetter); - } - __name(shouldGetter, "shouldGetter"); - function shouldSetter(value) { - Object.defineProperty(this, "should", { - value, - enumerable: true, - configurable: true, - writable: true - }); - } - __name(shouldSetter, "shouldSetter"); - Object.defineProperty(Object.prototype, "should", { - set: shouldSetter, - get: shouldGetter, - configurable: true - }); - let should2 = {}; - should2.fail = function(actual, expected, message, operator) { - if (arguments.length < 2) { - message = actual; - actual = void 0; - } - message = message || "should.fail()"; - throw new AssertionError( - message, - { - actual, - expected, - operator - }, - should2.fail - ); - }; - should2.equal = function(actual, expected, message) { - new Assertion(actual, message).to.equal(expected); - }; - should2.Throw = function(fn, errt, errs, msg) { - new Assertion(fn, msg).to.Throw(errt, errs); - }; - should2.exist = function(val, msg) { - new Assertion(val, msg).to.exist; - }; - should2.not = {}; - should2.not.equal = function(actual, expected, msg) { - new Assertion(actual, msg).to.not.equal(expected); - }; - should2.not.Throw = function(fn, errt, errs, msg) { - new Assertion(fn, msg).to.not.Throw(errt, errs); - }; - should2.not.exist = function(val, msg) { - new Assertion(val, msg).to.not.exist; - }; - should2["throw"] = should2["Throw"]; - should2.not["throw"] = should2.not["Throw"]; - return should2; -} -__name(loadShould, "loadShould"); -var should = loadShould; -var Should = loadShould; - -// lib/chai/interface/assert.js -function assert(express, errmsg) { - let test2 = new Assertion(null, null, assert, true); - test2.assert(express, errmsg, "[ negation message unavailable ]"); -} -__name(assert, "assert"); -assert.fail = function(actual, expected, message, operator) { - if (arguments.length < 2) { - message = actual; - actual = void 0; - } - message = message || "assert.fail()"; - throw new AssertionError( - message, - { - actual, - expected, - operator - }, - assert.fail - ); -}; -assert.isOk = function(val, msg) { - new Assertion(val, msg, assert.isOk, true).is.ok; -}; -assert.isNotOk = function(val, msg) { - new Assertion(val, msg, assert.isNotOk, true).is.not.ok; -}; -assert.equal = function(act, exp, msg) { - let test2 = new Assertion(act, msg, assert.equal, true); - test2.assert( - exp == flag(test2, "object"), - "expected #{this} to equal #{exp}", - "expected #{this} to not equal #{act}", - exp, - act, - true - ); -}; -assert.notEqual = function(act, exp, msg) { - let test2 = new Assertion(act, msg, assert.notEqual, true); - test2.assert( - exp != flag(test2, "object"), - "expected #{this} to not equal #{exp}", - "expected #{this} to equal #{act}", - exp, - act, - true - ); -}; -assert.strictEqual = function(act, exp, msg) { - new Assertion(act, msg, assert.strictEqual, true).to.equal(exp); -}; -assert.notStrictEqual = function(act, exp, msg) { - new Assertion(act, msg, assert.notStrictEqual, true).to.not.equal(exp); -}; -assert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) { - new Assertion(act, msg, assert.deepEqual, true).to.eql(exp); -}; -assert.notDeepEqual = function(act, exp, msg) { - new Assertion(act, msg, assert.notDeepEqual, true).to.not.eql(exp); -}; -assert.isAbove = function(val, abv, msg) { - new Assertion(val, msg, assert.isAbove, true).to.be.above(abv); -}; -assert.isAtLeast = function(val, atlst, msg) { - new Assertion(val, msg, assert.isAtLeast, true).to.be.least(atlst); -}; -assert.isBelow = function(val, blw, msg) { - new Assertion(val, msg, assert.isBelow, true).to.be.below(blw); -}; -assert.isAtMost = function(val, atmst, msg) { - new Assertion(val, msg, assert.isAtMost, true).to.be.most(atmst); -}; -assert.isTrue = function(val, msg) { - new Assertion(val, msg, assert.isTrue, true).is["true"]; -}; -assert.isNotTrue = function(val, msg) { - new Assertion(val, msg, assert.isNotTrue, true).to.not.equal(true); -}; -assert.isFalse = function(val, msg) { - new Assertion(val, msg, assert.isFalse, true).is["false"]; -}; -assert.isNotFalse = function(val, msg) { - new Assertion(val, msg, assert.isNotFalse, true).to.not.equal(false); -}; -assert.isNull = function(val, msg) { - new Assertion(val, msg, assert.isNull, true).to.equal(null); -}; -assert.isNotNull = function(val, msg) { - new Assertion(val, msg, assert.isNotNull, true).to.not.equal(null); -}; -assert.isNaN = function(val, msg) { - new Assertion(val, msg, assert.isNaN, true).to.be.NaN; -}; -assert.isNotNaN = function(value, message) { - new Assertion(value, message, assert.isNotNaN, true).not.to.be.NaN; -}; -assert.exists = function(val, msg) { - new Assertion(val, msg, assert.exists, true).to.exist; -}; -assert.notExists = function(val, msg) { - new Assertion(val, msg, assert.notExists, true).to.not.exist; -}; -assert.isUndefined = function(val, msg) { - new Assertion(val, msg, assert.isUndefined, true).to.equal(void 0); -}; -assert.isDefined = function(val, msg) { - new Assertion(val, msg, assert.isDefined, true).to.not.equal(void 0); -}; -assert.isCallable = function(value, message) { - new Assertion(value, message, assert.isCallable, true).is.callable; -}; -assert.isNotCallable = function(value, message) { - new Assertion(value, message, assert.isNotCallable, true).is.not.callable; -}; -assert.isObject = function(val, msg) { - new Assertion(val, msg, assert.isObject, true).to.be.a("object"); -}; -assert.isNotObject = function(val, msg) { - new Assertion(val, msg, assert.isNotObject, true).to.not.be.a("object"); -}; -assert.isArray = function(val, msg) { - new Assertion(val, msg, assert.isArray, true).to.be.an("array"); -}; -assert.isNotArray = function(val, msg) { - new Assertion(val, msg, assert.isNotArray, true).to.not.be.an("array"); -}; -assert.isString = function(val, msg) { - new Assertion(val, msg, assert.isString, true).to.be.a("string"); -}; -assert.isNotString = function(val, msg) { - new Assertion(val, msg, assert.isNotString, true).to.not.be.a("string"); -}; -assert.isNumber = function(val, msg) { - new Assertion(val, msg, assert.isNumber, true).to.be.a("number"); -}; -assert.isNotNumber = function(val, msg) { - new Assertion(val, msg, assert.isNotNumber, true).to.not.be.a("number"); -}; -assert.isNumeric = function(val, msg) { - new Assertion(val, msg, assert.isNumeric, true).is.numeric; -}; -assert.isNotNumeric = function(val, msg) { - new Assertion(val, msg, assert.isNotNumeric, true).is.not.numeric; -}; -assert.isFinite = function(val, msg) { - new Assertion(val, msg, assert.isFinite, true).to.be.finite; -}; -assert.isBoolean = function(val, msg) { - new Assertion(val, msg, assert.isBoolean, true).to.be.a("boolean"); -}; -assert.isNotBoolean = function(val, msg) { - new Assertion(val, msg, assert.isNotBoolean, true).to.not.be.a("boolean"); -}; -assert.typeOf = function(val, type3, msg) { - new Assertion(val, msg, assert.typeOf, true).to.be.a(type3); -}; -assert.notTypeOf = function(value, type3, message) { - new Assertion(value, message, assert.notTypeOf, true).to.not.be.a(type3); -}; -assert.instanceOf = function(val, type3, msg) { - new Assertion(val, msg, assert.instanceOf, true).to.be.instanceOf(type3); -}; -assert.notInstanceOf = function(val, type3, msg) { - new Assertion(val, msg, assert.notInstanceOf, true).to.not.be.instanceOf( - type3 - ); -}; -assert.include = function(exp, inc, msg) { - new Assertion(exp, msg, assert.include, true).include(inc); -}; -assert.notInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.notInclude, true).not.include(inc); -}; -assert.deepInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.deepInclude, true).deep.include(inc); -}; -assert.notDeepInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.notDeepInclude, true).not.deep.include(inc); -}; -assert.nestedInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.nestedInclude, true).nested.include(inc); -}; -assert.notNestedInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.notNestedInclude, true).not.nested.include( - inc - ); -}; -assert.deepNestedInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.deepNestedInclude, true).deep.nested.include( - inc - ); -}; -assert.notDeepNestedInclude = function(exp, inc, msg) { - new Assertion( - exp, - msg, - assert.notDeepNestedInclude, - true - ).not.deep.nested.include(inc); -}; -assert.ownInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.ownInclude, true).own.include(inc); -}; -assert.notOwnInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.notOwnInclude, true).not.own.include(inc); -}; -assert.deepOwnInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.deepOwnInclude, true).deep.own.include(inc); -}; -assert.notDeepOwnInclude = function(exp, inc, msg) { - new Assertion(exp, msg, assert.notDeepOwnInclude, true).not.deep.own.include( - inc - ); -}; -assert.match = function(exp, re, msg) { - new Assertion(exp, msg, assert.match, true).to.match(re); -}; -assert.notMatch = function(exp, re, msg) { - new Assertion(exp, msg, assert.notMatch, true).to.not.match(re); -}; -assert.property = function(obj, prop, msg) { - new Assertion(obj, msg, assert.property, true).to.have.property(prop); -}; -assert.notProperty = function(obj, prop, msg) { - new Assertion(obj, msg, assert.notProperty, true).to.not.have.property(prop); -}; -assert.propertyVal = function(obj, prop, val, msg) { - new Assertion(obj, msg, assert.propertyVal, true).to.have.property(prop, val); -}; -assert.notPropertyVal = function(obj, prop, val, msg) { - new Assertion(obj, msg, assert.notPropertyVal, true).to.not.have.property( - prop, - val - ); -}; -assert.deepPropertyVal = function(obj, prop, val, msg) { - new Assertion(obj, msg, assert.deepPropertyVal, true).to.have.deep.property( - prop, - val - ); -}; -assert.notDeepPropertyVal = function(obj, prop, val, msg) { - new Assertion( - obj, - msg, - assert.notDeepPropertyVal, - true - ).to.not.have.deep.property(prop, val); -}; -assert.ownProperty = function(obj, prop, msg) { - new Assertion(obj, msg, assert.ownProperty, true).to.have.own.property(prop); -}; -assert.notOwnProperty = function(obj, prop, msg) { - new Assertion(obj, msg, assert.notOwnProperty, true).to.not.have.own.property( - prop - ); -}; -assert.ownPropertyVal = function(obj, prop, value, msg) { - new Assertion(obj, msg, assert.ownPropertyVal, true).to.have.own.property( - prop, - value - ); -}; -assert.notOwnPropertyVal = function(obj, prop, value, msg) { - new Assertion( - obj, - msg, - assert.notOwnPropertyVal, - true - ).to.not.have.own.property(prop, value); -}; -assert.deepOwnPropertyVal = function(obj, prop, value, msg) { - new Assertion( - obj, - msg, - assert.deepOwnPropertyVal, - true - ).to.have.deep.own.property(prop, value); -}; -assert.notDeepOwnPropertyVal = function(obj, prop, value, msg) { - new Assertion( - obj, - msg, - assert.notDeepOwnPropertyVal, - true - ).to.not.have.deep.own.property(prop, value); -}; -assert.nestedProperty = function(obj, prop, msg) { - new Assertion(obj, msg, assert.nestedProperty, true).to.have.nested.property( - prop - ); -}; -assert.notNestedProperty = function(obj, prop, msg) { - new Assertion( - obj, - msg, - assert.notNestedProperty, - true - ).to.not.have.nested.property(prop); -}; -assert.nestedPropertyVal = function(obj, prop, val, msg) { - new Assertion( - obj, - msg, - assert.nestedPropertyVal, - true - ).to.have.nested.property(prop, val); -}; -assert.notNestedPropertyVal = function(obj, prop, val, msg) { - new Assertion( - obj, - msg, - assert.notNestedPropertyVal, - true - ).to.not.have.nested.property(prop, val); -}; -assert.deepNestedPropertyVal = function(obj, prop, val, msg) { - new Assertion( - obj, - msg, - assert.deepNestedPropertyVal, - true - ).to.have.deep.nested.property(prop, val); -}; -assert.notDeepNestedPropertyVal = function(obj, prop, val, msg) { - new Assertion( - obj, - msg, - assert.notDeepNestedPropertyVal, - true - ).to.not.have.deep.nested.property(prop, val); -}; -assert.lengthOf = function(exp, len, msg) { - new Assertion(exp, msg, assert.lengthOf, true).to.have.lengthOf(len); -}; -assert.hasAnyKeys = function(obj, keys, msg) { - new Assertion(obj, msg, assert.hasAnyKeys, true).to.have.any.keys(keys); -}; -assert.hasAllKeys = function(obj, keys, msg) { - new Assertion(obj, msg, assert.hasAllKeys, true).to.have.all.keys(keys); -}; -assert.containsAllKeys = function(obj, keys, msg) { - new Assertion(obj, msg, assert.containsAllKeys, true).to.contain.all.keys( - keys - ); -}; -assert.doesNotHaveAnyKeys = function(obj, keys, msg) { - new Assertion(obj, msg, assert.doesNotHaveAnyKeys, true).to.not.have.any.keys( - keys - ); -}; -assert.doesNotHaveAllKeys = function(obj, keys, msg) { - new Assertion(obj, msg, assert.doesNotHaveAllKeys, true).to.not.have.all.keys( - keys - ); -}; -assert.hasAnyDeepKeys = function(obj, keys, msg) { - new Assertion(obj, msg, assert.hasAnyDeepKeys, true).to.have.any.deep.keys( - keys - ); -}; -assert.hasAllDeepKeys = function(obj, keys, msg) { - new Assertion(obj, msg, assert.hasAllDeepKeys, true).to.have.all.deep.keys( - keys - ); -}; -assert.containsAllDeepKeys = function(obj, keys, msg) { - new Assertion( - obj, - msg, - assert.containsAllDeepKeys, - true - ).to.contain.all.deep.keys(keys); -}; -assert.doesNotHaveAnyDeepKeys = function(obj, keys, msg) { - new Assertion( - obj, - msg, - assert.doesNotHaveAnyDeepKeys, - true - ).to.not.have.any.deep.keys(keys); -}; -assert.doesNotHaveAllDeepKeys = function(obj, keys, msg) { - new Assertion( - obj, - msg, - assert.doesNotHaveAllDeepKeys, - true - ).to.not.have.all.deep.keys(keys); -}; -assert.throws = function(fn, errorLike, errMsgMatcher, msg) { - if ("string" === typeof errorLike || errorLike instanceof RegExp) { - errMsgMatcher = errorLike; - errorLike = null; - } - let assertErr = new Assertion(fn, msg, assert.throws, true).to.throw( - errorLike, - errMsgMatcher - ); - return flag(assertErr, "object"); -}; -assert.doesNotThrow = function(fn, errorLike, errMsgMatcher, message) { - if ("string" === typeof errorLike || errorLike instanceof RegExp) { - errMsgMatcher = errorLike; - errorLike = null; - } - new Assertion(fn, message, assert.doesNotThrow, true).to.not.throw( - errorLike, - errMsgMatcher - ); -}; -assert.operator = function(val, operator, val2, msg) { - let ok; - switch (operator) { - case "==": - ok = val == val2; - break; - case "===": - ok = val === val2; - break; - case ">": - ok = val > val2; - break; - case ">=": - ok = val >= val2; - break; - case "<": - ok = val < val2; - break; - case "<=": - ok = val <= val2; - break; - case "!=": - ok = val != val2; - break; - case "!==": - ok = val !== val2; - break; - default: - msg = msg ? msg + ": " : msg; - throw new AssertionError( - msg + 'Invalid operator "' + operator + '"', - void 0, - assert.operator - ); - } - let test2 = new Assertion(ok, msg, assert.operator, true); - test2.assert( - true === flag(test2, "object"), - "expected " + inspect2(val) + " to be " + operator + " " + inspect2(val2), - "expected " + inspect2(val) + " to not be " + operator + " " + inspect2(val2) - ); -}; -assert.closeTo = function(act, exp, delta, msg) { - new Assertion(act, msg, assert.closeTo, true).to.be.closeTo(exp, delta); -}; -assert.approximately = function(act, exp, delta, msg) { - new Assertion(act, msg, assert.approximately, true).to.be.approximately( - exp, - delta - ); -}; -assert.sameMembers = function(set1, set2, msg) { - new Assertion(set1, msg, assert.sameMembers, true).to.have.same.members(set2); -}; -assert.notSameMembers = function(set1, set2, msg) { - new Assertion( - set1, - msg, - assert.notSameMembers, - true - ).to.not.have.same.members(set2); -}; -assert.sameDeepMembers = function(set1, set2, msg) { - new Assertion( - set1, - msg, - assert.sameDeepMembers, - true - ).to.have.same.deep.members(set2); -}; -assert.notSameDeepMembers = function(set1, set2, msg) { - new Assertion( - set1, - msg, - assert.notSameDeepMembers, - true - ).to.not.have.same.deep.members(set2); -}; -assert.sameOrderedMembers = function(set1, set2, msg) { - new Assertion( - set1, - msg, - assert.sameOrderedMembers, - true - ).to.have.same.ordered.members(set2); -}; -assert.notSameOrderedMembers = function(set1, set2, msg) { - new Assertion( - set1, - msg, - assert.notSameOrderedMembers, - true - ).to.not.have.same.ordered.members(set2); -}; -assert.sameDeepOrderedMembers = function(set1, set2, msg) { - new Assertion( - set1, - msg, - assert.sameDeepOrderedMembers, - true - ).to.have.same.deep.ordered.members(set2); -}; -assert.notSameDeepOrderedMembers = function(set1, set2, msg) { - new Assertion( - set1, - msg, - assert.notSameDeepOrderedMembers, - true - ).to.not.have.same.deep.ordered.members(set2); -}; -assert.includeMembers = function(superset, subset, msg) { - new Assertion(superset, msg, assert.includeMembers, true).to.include.members( - subset - ); -}; -assert.notIncludeMembers = function(superset, subset, msg) { - new Assertion( - superset, - msg, - assert.notIncludeMembers, - true - ).to.not.include.members(subset); -}; -assert.includeDeepMembers = function(superset, subset, msg) { - new Assertion( - superset, - msg, - assert.includeDeepMembers, - true - ).to.include.deep.members(subset); -}; -assert.notIncludeDeepMembers = function(superset, subset, msg) { - new Assertion( - superset, - msg, - assert.notIncludeDeepMembers, - true - ).to.not.include.deep.members(subset); -}; -assert.includeOrderedMembers = function(superset, subset, msg) { - new Assertion( - superset, - msg, - assert.includeOrderedMembers, - true - ).to.include.ordered.members(subset); -}; -assert.notIncludeOrderedMembers = function(superset, subset, msg) { - new Assertion( - superset, - msg, - assert.notIncludeOrderedMembers, - true - ).to.not.include.ordered.members(subset); -}; -assert.includeDeepOrderedMembers = function(superset, subset, msg) { - new Assertion( - superset, - msg, - assert.includeDeepOrderedMembers, - true - ).to.include.deep.ordered.members(subset); -}; -assert.notIncludeDeepOrderedMembers = function(superset, subset, msg) { - new Assertion( - superset, - msg, - assert.notIncludeDeepOrderedMembers, - true - ).to.not.include.deep.ordered.members(subset); -}; -assert.oneOf = function(inList, list, msg) { - new Assertion(inList, msg, assert.oneOf, true).to.be.oneOf(list); -}; -assert.isIterable = function(obj, msg) { - if (obj == void 0 || !obj[Symbol.iterator]) { - msg = msg ? `${msg} expected ${inspect2(obj)} to be an iterable` : `expected ${inspect2(obj)} to be an iterable`; - throw new AssertionError(msg, void 0, assert.isIterable); - } -}; -assert.changes = function(fn, obj, prop, msg) { - if (arguments.length === 3 && typeof obj === "function") { - msg = prop; - prop = null; - } - new Assertion(fn, msg, assert.changes, true).to.change(obj, prop); -}; -assert.changesBy = function(fn, obj, prop, delta, msg) { - if (arguments.length === 4 && typeof obj === "function") { - let tmpMsg = delta; - delta = prop; - msg = tmpMsg; - } else if (arguments.length === 3) { - delta = prop; - prop = null; - } - new Assertion(fn, msg, assert.changesBy, true).to.change(obj, prop).by(delta); -}; -assert.doesNotChange = function(fn, obj, prop, msg) { - if (arguments.length === 3 && typeof obj === "function") { - msg = prop; - prop = null; - } - return new Assertion(fn, msg, assert.doesNotChange, true).to.not.change( - obj, - prop - ); -}; -assert.changesButNotBy = function(fn, obj, prop, delta, msg) { - if (arguments.length === 4 && typeof obj === "function") { - let tmpMsg = delta; - delta = prop; - msg = tmpMsg; - } else if (arguments.length === 3) { - delta = prop; - prop = null; - } - new Assertion(fn, msg, assert.changesButNotBy, true).to.change(obj, prop).but.not.by(delta); -}; -assert.increases = function(fn, obj, prop, msg) { - if (arguments.length === 3 && typeof obj === "function") { - msg = prop; - prop = null; - } - return new Assertion(fn, msg, assert.increases, true).to.increase(obj, prop); -}; -assert.increasesBy = function(fn, obj, prop, delta, msg) { - if (arguments.length === 4 && typeof obj === "function") { - let tmpMsg = delta; - delta = prop; - msg = tmpMsg; - } else if (arguments.length === 3) { - delta = prop; - prop = null; - } - new Assertion(fn, msg, assert.increasesBy, true).to.increase(obj, prop).by(delta); -}; -assert.doesNotIncrease = function(fn, obj, prop, msg) { - if (arguments.length === 3 && typeof obj === "function") { - msg = prop; - prop = null; - } - return new Assertion(fn, msg, assert.doesNotIncrease, true).to.not.increase( - obj, - prop - ); -}; -assert.increasesButNotBy = function(fn, obj, prop, delta, msg) { - if (arguments.length === 4 && typeof obj === "function") { - let tmpMsg = delta; - delta = prop; - msg = tmpMsg; - } else if (arguments.length === 3) { - delta = prop; - prop = null; - } - new Assertion(fn, msg, assert.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta); -}; -assert.decreases = function(fn, obj, prop, msg) { - if (arguments.length === 3 && typeof obj === "function") { - msg = prop; - prop = null; - } - return new Assertion(fn, msg, assert.decreases, true).to.decrease(obj, prop); -}; -assert.decreasesBy = function(fn, obj, prop, delta, msg) { - if (arguments.length === 4 && typeof obj === "function") { - let tmpMsg = delta; - delta = prop; - msg = tmpMsg; - } else if (arguments.length === 3) { - delta = prop; - prop = null; - } - new Assertion(fn, msg, assert.decreasesBy, true).to.decrease(obj, prop).by(delta); -}; -assert.doesNotDecrease = function(fn, obj, prop, msg) { - if (arguments.length === 3 && typeof obj === "function") { - msg = prop; - prop = null; - } - return new Assertion(fn, msg, assert.doesNotDecrease, true).to.not.decrease( - obj, - prop - ); -}; -assert.doesNotDecreaseBy = function(fn, obj, prop, delta, msg) { - if (arguments.length === 4 && typeof obj === "function") { - let tmpMsg = delta; - delta = prop; - msg = tmpMsg; - } else if (arguments.length === 3) { - delta = prop; - prop = null; - } - return new Assertion(fn, msg, assert.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta); -}; -assert.decreasesButNotBy = function(fn, obj, prop, delta, msg) { - if (arguments.length === 4 && typeof obj === "function") { - let tmpMsg = delta; - delta = prop; - msg = tmpMsg; - } else if (arguments.length === 3) { - delta = prop; - prop = null; - } - new Assertion(fn, msg, assert.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta); -}; -assert.ifError = function(val) { - if (val) { - throw val; - } -}; -assert.isExtensible = function(obj, msg) { - new Assertion(obj, msg, assert.isExtensible, true).to.be.extensible; -}; -assert.isNotExtensible = function(obj, msg) { - new Assertion(obj, msg, assert.isNotExtensible, true).to.not.be.extensible; -}; -assert.isSealed = function(obj, msg) { - new Assertion(obj, msg, assert.isSealed, true).to.be.sealed; -}; -assert.isNotSealed = function(obj, msg) { - new Assertion(obj, msg, assert.isNotSealed, true).to.not.be.sealed; -}; -assert.isFrozen = function(obj, msg) { - new Assertion(obj, msg, assert.isFrozen, true).to.be.frozen; -}; -assert.isNotFrozen = function(obj, msg) { - new Assertion(obj, msg, assert.isNotFrozen, true).to.not.be.frozen; -}; -assert.isEmpty = function(val, msg) { - new Assertion(val, msg, assert.isEmpty, true).to.be.empty; -}; -assert.isNotEmpty = function(val, msg) { - new Assertion(val, msg, assert.isNotEmpty, true).to.not.be.empty; -}; -assert.containsSubset = function(val, exp, msg) { - new Assertion(val, msg).to.containSubset(exp); -}; -assert.doesNotContainSubset = function(val, exp, msg) { - new Assertion(val, msg).to.not.containSubset(exp); -}; -var aliases = [ - ["isOk", "ok"], - ["isNotOk", "notOk"], - ["throws", "throw"], - ["throws", "Throw"], - ["isExtensible", "extensible"], - ["isNotExtensible", "notExtensible"], - ["isSealed", "sealed"], - ["isNotSealed", "notSealed"], - ["isFrozen", "frozen"], - ["isNotFrozen", "notFrozen"], - ["isEmpty", "empty"], - ["isNotEmpty", "notEmpty"], - ["isCallable", "isFunction"], - ["isNotCallable", "isNotFunction"], - ["containsSubset", "containSubset"] -]; -for (const [name, as] of aliases) { - assert[as] = assert[name]; -} - -// lib/chai.js -var used = []; -function use(fn) { - const exports = { - use, - AssertionError, - util: utils_exports, - config, - expect, - assert, - Assertion, - ...should_exports - }; - if (!~used.indexOf(fn)) { - fn(exports, utils_exports); - used.push(fn); - } - return exports; -} -__name(use, "use"); -export { - Assertion, - AssertionError, - Should, - assert, - config, - expect, - should, - use, - utils_exports as util -}; diff --git a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/package.json b/node_modules/.pnpm/chai@6.2.2/node_modules/chai/package.json deleted file mode 100644 index f2ad34b..0000000 --- a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "author": "Jake Luer ", - "name": "chai", - "type": "module", - "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.", - "keywords": [ - "test", - "assertion", - "assert", - "testing", - "chai" - ], - "files": [ - "index.js", - "register-*.js" - ], - "homepage": "http://chaijs.com", - "license": "MIT", - "contributors": [ - "Jake Luer ", - "Domenic Denicola (http://domenicdenicola.com)", - "Veselin Todorov ", - "John Firebaugh " - ], - "version": "6.2.2", - "repository": { - "type": "git", - "url": "https://github.com/chaijs/chai" - }, - "bugs": { - "url": "https://github.com/chaijs/chai/issues" - }, - "main": "./index.js", - "scripts": { - "build": "esbuild --bundle --format=esm --target=es2021 --keep-names --legal-comments=none --outfile=index.js lib/chai.js", - "prebuild": "npm run clean", - "format": "prettier --write lib", - "pretest": "npm run lint", - "test": "npm run test-node && npm run test-chrome", - "test-node": "c8 --99 --check-coverage mocha --require ./test/bootstrap/index.js test/*.js", - "test-chrome": "web-test-runner --playwright", - "lint": "npm run lint:js && npm run lint:format", - "lint:js": "eslint lib/", - "lint:format": "prettier --check lib", - "lint:types": "tsc", - "clean": "rm -rf index.js coverage/" - }, - "engines": { - "node": ">=18" - }, - "devDependencies": { - "@eslint/js": "^9.17.0", - "@rollup/plugin-commonjs": "^29.0.0", - "@web/dev-server-rollup": "^0.6.1", - "@web/test-runner": "^0.20.0", - "@web/test-runner-playwright": "^0.11.0", - "assertion-error": "^2.0.1", - "c8": "^10.1.3", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "esbuild": "^0.27.0", - "eslint": "^9.0.0", - "eslint-plugin-jsdoc": "^61.0.0", - "globals": "^16.3.0", - "loupe": "^3.1.0", - "mocha": "^11.0.0", - "pathval": "^2.0.0", - "prettier": "^3.4.2", - "typescript": "~5.9.0" - } -} diff --git a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-assert.js b/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-assert.js deleted file mode 100644 index f593717..0000000 --- a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-assert.js +++ /dev/null @@ -1,3 +0,0 @@ -import {assert} from './index.js'; - -globalThis.assert = assert; diff --git a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-expect.js b/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-expect.js deleted file mode 100644 index 2807b89..0000000 --- a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-expect.js +++ /dev/null @@ -1,3 +0,0 @@ -import {expect} from './index.js'; - -globalThis.expect = expect; diff --git a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-should.js b/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-should.js deleted file mode 100644 index 1339ee4..0000000 --- a/node_modules/.pnpm/chai@6.2.2/node_modules/chai/register-should.js +++ /dev/null @@ -1,3 +0,0 @@ -import {should} from './index.js'; - -globalThis.should = should(); diff --git a/node_modules/.pnpm/commander@12.1.0/node_modules/commander/LICENSE b/node_modules/.pnpm/commander@12.1.0/node_modules/commander/LICENSE deleted file mode 100644 index 10f997a..0000000 --- a/node_modules/.pnpm/commander@12.1.0/node_modules/commander/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2011 TJ Holowaychuk - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/.pnpm/commander@12.1.0/node_modules/commander/Readme.md b/node_modules/.pnpm/commander@12.1.0/node_modules/commander/Readme.md deleted file mode 100644 index e4e3657..0000000 --- a/node_modules/.pnpm/commander@12.1.0/node_modules/commander/Readme.md +++ /dev/null @@ -1,1157 +0,0 @@ -# Commander.js - -[![Build Status](https://github.com/tj/commander.js/workflows/build/badge.svg)](https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22) -[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) -[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true) -[![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander) - -The complete solution for [node.js](http://nodejs.org) command-line interfaces. - -Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - -- [Commander.js](#commanderjs) - - [Installation](#installation) - - [Quick Start](#quick-start) - - [Declaring _program_ variable](#declaring-program-variable) - - [Options](#options) - - [Common option types, boolean and value](#common-option-types-boolean-and-value) - - [Default option value](#default-option-value) - - [Other option types, negatable boolean and boolean|value](#other-option-types-negatable-boolean-and-booleanvalue) - - [Required option](#required-option) - - [Variadic option](#variadic-option) - - [Version option](#version-option) - - [More configuration](#more-configuration) - - [Custom option processing](#custom-option-processing) - - [Commands](#commands) - - [Command-arguments](#command-arguments) - - [More configuration](#more-configuration-1) - - [Custom argument processing](#custom-argument-processing) - - [Action handler](#action-handler) - - [Stand-alone executable (sub)commands](#stand-alone-executable-subcommands) - - [Life cycle hooks](#life-cycle-hooks) - - [Automated help](#automated-help) - - [Custom help](#custom-help) - - [Display help after errors](#display-help-after-errors) - - [Display help from code](#display-help-from-code) - - [.name](#name) - - [.usage](#usage) - - [.description and .summary](#description-and-summary) - - [.helpOption(flags, description)](#helpoptionflags-description) - - [.helpCommand()](#helpcommand) - - [More configuration](#more-configuration-2) - - [Custom event listeners](#custom-event-listeners) - - [Bits and pieces](#bits-and-pieces) - - [.parse() and .parseAsync()](#parse-and-parseasync) - - [Parsing Configuration](#parsing-configuration) - - [Legacy options as properties](#legacy-options-as-properties) - - [TypeScript](#typescript) - - [createCommand()](#createcommand) - - [Node options such as `--harmony`](#node-options-such-as---harmony) - - [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands) - - [npm run-script](#npm-run-script) - - [Display error](#display-error) - - [Override exit and output handling](#override-exit-and-output-handling) - - [Additional documentation](#additional-documentation) - - [Support](#support) - - [Commander for enterprise](#commander-for-enterprise) - -For information about terms used in this document see: [terminology](./docs/terminology.md) - -## Installation - -```sh -npm install commander -``` - -## Quick Start - -You write code to describe your command line interface. -Commander looks after parsing the arguments into options and command-arguments, -displays usage errors for problems, and implements a help system. - -Commander is strict and displays an error for unrecognised options. -The two most used option types are a boolean option, and an option which takes its value from the following argument. - -Example file: [split.js](./examples/split.js) - -```js -const { program } = require('commander'); - -program - .option('--first') - .option('-s, --separator '); - -program.parse(); - -const options = program.opts(); -const limit = options.first ? 1 : undefined; -console.log(program.args[0].split(options.separator, limit)); -``` - -```console -$ node split.js -s / --fits a/b/c -error: unknown option '--fits' -(Did you mean --first?) -$ node split.js -s / --first a/b/c -[ 'a' ] -``` - -Here is a more complete program using a subcommand and with descriptions for the help. In a multi-command program, you have an action handler for each command (or stand-alone executables for the commands). - -Example file: [string-util.js](./examples/string-util.js) - -```js -const { Command } = require('commander'); -const program = new Command(); - -program - .name('string-util') - .description('CLI to some JavaScript string utilities') - .version('0.8.0'); - -program.command('split') - .description('Split a string into substrings and display as an array') - .argument('', 'string to split') - .option('--first', 'display just the first substring') - .option('-s, --separator ', 'separator character', ',') - .action((str, options) => { - const limit = options.first ? 1 : undefined; - console.log(str.split(options.separator, limit)); - }); - -program.parse(); -``` - -```console -$ node string-util.js help split -Usage: string-util split [options] - -Split a string into substrings and display as an array. - -Arguments: - string string to split - -Options: - --first display just the first substring - -s, --separator separator character (default: ",") - -h, --help display help for command - -$ node string-util.js split --separator=/ a/b/c -[ 'a', 'b', 'c' ] -``` - -More samples can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory. - -## Declaring _program_ variable - -Commander exports a global object which is convenient for quick programs. -This is used in the examples in this README for brevity. - -```js -// CommonJS (.cjs) -const { program } = require('commander'); -``` - -For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use. - -```js -// CommonJS (.cjs) -const { Command } = require('commander'); -const program = new Command(); -``` - -```js -// ECMAScript (.mjs) -import { Command } from 'commander'; -const program = new Command(); -``` - -```ts -// TypeScript (.ts) -import { Command } from 'commander'; -const program = new Command(); -``` - -## Options - -Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|'). - -The parsed options can be accessed by calling `.opts()` on a `Command` object, and are passed to the action handler. - -Multi-word options such as "--template-engine" are camel-cased, becoming `program.opts().templateEngine` etc. - -An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly or follow an `=` for a long option. - -```sh -serve -p 80 -serve -p80 -serve --port 80 -serve --port=80 -``` - -You can use `--` to indicate the end of the options, and any remaining arguments will be used without being interpreted. - -By default, options on the command line are not positional, and can be specified before or after other arguments. - -There are additional related routines for when `.opts()` is not enough: - -- `.optsWithGlobals()` returns merged local and global option values -- `.getOptionValue()` and `.setOptionValue()` work with a single option value -- `.getOptionValueSource()` and `.setOptionValueWithSource()` include where the option value came from - -### Common option types, boolean and value - -The two most used option types are a boolean option, and an option which takes its value -from the following argument (declared with angle brackets like `--expect `). Both are `undefined` unless specified on command line. - -Example file: [options-common.js](./examples/options-common.js) - -```js -program - .option('-d, --debug', 'output extra debugging') - .option('-s, --small', 'small pizza size') - .option('-p, --pizza-type ', 'flavour of pizza'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.debug) console.log(options); -console.log('pizza details:'); -if (options.small) console.log('- small pizza size'); -if (options.pizzaType) console.log(`- ${options.pizzaType}`); -``` - -```console -$ pizza-options -p -error: option '-p, --pizza-type ' argument missing -$ pizza-options -d -s -p vegetarian -{ debug: true, small: true, pizzaType: 'vegetarian' } -pizza details: -- small pizza size -- vegetarian -$ pizza-options --pizza-type=cheese -pizza details: -- cheese -``` - -Multiple boolean short options may be combined following the dash, and may be followed by a single short option taking a value. -For example `-d -s -p cheese` may be written as `-ds -p cheese` or even `-dsp cheese`. - -Options with an expected option-argument are greedy and will consume the following argument whatever the value. -So `--id -xyz` reads `-xyz` as the option-argument. - -`program.parse(arguments)` processes the arguments, leaving any args not consumed by the program options in the `program.args` array. The parameter is optional and defaults to `process.argv`. - -### Default option value - -You can specify a default value for an option. - -Example file: [options-defaults.js](./examples/options-defaults.js) - -```js -program - .option('-c, --cheese ', 'add the specified type of cheese', 'blue'); - -program.parse(); - -console.log(`cheese: ${program.opts().cheese}`); -``` - -```console -$ pizza-options -cheese: blue -$ pizza-options --cheese stilton -cheese: stilton -``` - -### Other option types, negatable boolean and boolean|value - -You can define a boolean option long name with a leading `no-` to set the option value to false when used. -Defined alone this also makes the option true by default. - -If you define `--foo` first, adding `--no-foo` does not change the default value from what it would -otherwise be. - -Example file: [options-negatable.js](./examples/options-negatable.js) - -```js -program - .option('--no-sauce', 'Remove sauce') - .option('--cheese ', 'cheese flavour', 'mozzarella') - .option('--no-cheese', 'plain with no cheese') - .parse(); - -const options = program.opts(); -const sauceStr = options.sauce ? 'sauce' : 'no sauce'; -const cheeseStr = (options.cheese === false) ? 'no cheese' : `${options.cheese} cheese`; -console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); -``` - -```console -$ pizza-options -You ordered a pizza with sauce and mozzarella cheese -$ pizza-options --sauce -error: unknown option '--sauce' -$ pizza-options --cheese=blue -You ordered a pizza with sauce and blue cheese -$ pizza-options --no-sauce --no-cheese -You ordered a pizza with no sauce and no cheese -``` - -You can specify an option which may be used as a boolean option but may optionally take an option-argument -(declared with square brackets like `--optional [value]`). - -Example file: [options-boolean-or-value.js](./examples/options-boolean-or-value.js) - -```js -program - .option('-c, --cheese [type]', 'Add cheese with optional type'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.cheese === undefined) console.log('no cheese'); -else if (options.cheese === true) console.log('add cheese'); -else console.log(`add cheese type ${options.cheese}`); -``` - -```console -$ pizza-options -no cheese -$ pizza-options --cheese -add cheese -$ pizza-options --cheese mozzarella -add cheese type mozzarella -``` - -Options with an optional option-argument are not greedy and will ignore arguments starting with a dash. -So `id` behaves as a boolean option for `--id -5`, but you can use a combined form if needed like `--id=-5`. - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-in-depth.md). - -### Required option - -You may specify a required (mandatory) option using `.requiredOption()`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (say from environment). The method is otherwise the same as `.option()` in format, taking flags and description, and optional default value or custom processing. - -Example file: [options-required.js](./examples/options-required.js) - -```js -program - .requiredOption('-c, --cheese ', 'pizza must have cheese'); - -program.parse(); -``` - -```console -$ pizza -error: required option '-c, --cheese ' not specified -``` - -### Variadic option - -You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you -can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments -are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value -is specified in the same argument as the option then no further values are read. - -Example file: [options-variadic.js](./examples/options-variadic.js) - -```js -program - .option('-n, --number ', 'specify numbers') - .option('-l, --letter [letters...]', 'specify letters'); - -program.parse(); - -console.log('Options: ', program.opts()); -console.log('Remaining arguments: ', program.args); -``` - -```console -$ collect -n 1 2 3 --letter a b c -Options: { number: [ '1', '2', '3' ], letter: [ 'a', 'b', 'c' ] } -Remaining arguments: [] -$ collect --letter=A -n80 operand -Options: { number: [ '80' ], letter: [ 'A' ] } -Remaining arguments: [ 'operand' ] -$ collect --letter -n 1 -n 2 3 -- operand -Options: { number: [ '1', '2', '3' ], letter: true } -Remaining arguments: [ 'operand' ] -``` - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-in-depth.md). - -### Version option - -The optional `version` method adds handling for displaying the command version. The default option flags are `-V` and `--version`, and when present the command prints the version number and exits. - -```js -program.version('0.0.1'); -``` - -```console -$ ./examples/pizza -V -0.0.1 -``` - -You may change the flags and description by passing additional parameters to the `version` method, using -the same syntax for flags as the `option` method. - -```js -program.version('0.0.1', '-v, --vers', 'output the current version'); -``` - -### More configuration - -You can add most options using the `.option()` method, but there are some additional features available -by constructing an `Option` explicitly for less common cases. - -Example files: [options-extra.js](./examples/options-extra.js), [options-env.js](./examples/options-env.js), [options-conflicts.js](./examples/options-conflicts.js), [options-implies.js](./examples/options-implies.js) - -```js -program - .addOption(new Option('-s, --secret').hideHelp()) - .addOption(new Option('-t, --timeout ', 'timeout in seconds').default(60, 'one minute')) - .addOption(new Option('-d, --drink ', 'drink size').choices(['small', 'medium', 'large'])) - .addOption(new Option('-p, --port ', 'port number').env('PORT')) - .addOption(new Option('--donate [amount]', 'optional donation in dollars').preset('20').argParser(parseFloat)) - .addOption(new Option('--disable-server', 'disables the server').conflicts('port')) - .addOption(new Option('--free-drink', 'small drink included free ').implies({ drink: 'small' })); -``` - -```console -$ extra --help -Usage: help [options] - -Options: - -t, --timeout timeout in seconds (default: one minute) - -d, --drink drink cup size (choices: "small", "medium", "large") - -p, --port port number (env: PORT) - --donate [amount] optional donation in dollars (preset: "20") - --disable-server disables the server - --free-drink small drink included free - -h, --help display help for command - -$ extra --drink huge -error: option '-d, --drink ' argument 'huge' is invalid. Allowed choices are small, medium, large. - -$ PORT=80 extra --donate --free-drink -Options: { timeout: 60, donate: 20, port: '80', freeDrink: true, drink: 'small' } - -$ extra --disable-server --port 8000 -error: option '--disable-server' cannot be used with option '-p, --port ' -``` - -Specify a required (mandatory) option using the `Option` method `.makeOptionMandatory()`. This matches the `Command` method [.requiredOption()](#required-option). - -### Custom option processing - -You may specify a function to do custom processing of option-arguments. The callback function receives two parameters, -the user specified option-argument and the previous value for the option. It returns the new value for the option. - -This allows you to coerce the option-argument to the desired type, or accumulate values, or do entirely custom processing. - -You can optionally specify the default/starting value for the option after the function parameter. - -Example file: [options-custom-processing.js](./examples/options-custom-processing.js) - -```js -function myParseInt(value, dummyPrevious) { - // parseInt takes a string and a radix - const parsedValue = parseInt(value, 10); - if (isNaN(parsedValue)) { - throw new commander.InvalidArgumentError('Not a number.'); - } - return parsedValue; -} - -function increaseVerbosity(dummyValue, previous) { - return previous + 1; -} - -function collect(value, previous) { - return previous.concat([value]); -} - -function commaSeparatedList(value, dummyPrevious) { - return value.split(','); -} - -program - .option('-f, --float ', 'float argument', parseFloat) - .option('-i, --integer ', 'integer argument', myParseInt) - .option('-v, --verbose', 'verbosity that can be increased', increaseVerbosity, 0) - .option('-c, --collect ', 'repeatable value', collect, []) - .option('-l, --list ', 'comma separated list', commaSeparatedList) -; - -program.parse(); - -const options = program.opts(); -if (options.float !== undefined) console.log(`float: ${options.float}`); -if (options.integer !== undefined) console.log(`integer: ${options.integer}`); -if (options.verbose > 0) console.log(`verbosity: ${options.verbose}`); -if (options.collect.length > 0) console.log(options.collect); -if (options.list !== undefined) console.log(options.list); -``` - -```console -$ custom -f 1e2 -float: 100 -$ custom --integer 2 -integer: 2 -$ custom -v -v -v -verbose: 3 -$ custom -c a -c b -c c -[ 'a', 'b', 'c' ] -$ custom --list x,y,z -[ 'x', 'y', 'z' ] -``` - -## Commands - -You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an action handler attached to the command, or as a stand-alone executable file (described in more detail later). The subcommands may be nested ([example](./examples/nestedCommands.js)). - -In the first parameter to `.command()` you specify the command name. You may append the command-arguments after the command name, or specify them separately using `.argument()`. The arguments may be `` or `[optional]`, and the last argument may also be `variadic...`. - -You can use `.addCommand()` to add an already configured subcommand to the program. - -For example: - -```js -// Command implemented using action handler (description is supplied separately to `.command`) -// Returns new command for configuring. -program - .command('clone [destination]') - .description('clone a repository into a newly created directory') - .action((source, destination) => { - console.log('clone command called'); - }); - -// Command implemented using stand-alone executable file, indicated by adding description as second parameter to `.command`. -// Returns `this` for adding more commands. -program - .command('start ', 'start named service') - .command('stop [service]', 'stop named service, or all if no name supplied'); - -// Command prepared separately. -// Returns `this` for adding more commands. -program - .addCommand(build.makeBuildCommand()); -``` - -Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will -remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other -subcommand is specified ([example](./examples/defaultCommand.js)). - -You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js)) - -`.command()` automatically copies the inherited settings from the parent command to the newly created subcommand. This is only done during creation, any later setting changes to the parent are not inherited. - -For safety, `.addCommand()` does not automatically copy the inherited settings from the parent command. There is a helper routine `.copyInheritedSettings()` for copying the settings when they are wanted. - -### Command-arguments - -For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This -is the only method usable for subcommands implemented using a stand-alone executable, but for other subcommands -you can instead use the following method. - -To configure a command, you can use `.argument()` to specify each expected command-argument. -You supply the argument name and an optional description. The argument may be `` or `[optional]`. -You can specify a default value for an optional command-argument. - -Example file: [argument.js](./examples/argument.js) - -```js -program - .version('0.1.0') - .argument('', 'user to login') - .argument('[password]', 'password for user, if required', 'no password given') - .action((username, password) => { - console.log('username:', username); - console.log('password:', password); - }); -``` - - The last argument of a command can be variadic, and only the last argument. To make an argument variadic you - append `...` to the argument name. A variadic argument is passed to the action handler as an array. For example: - -```js -program - .version('0.1.0') - .command('rmdir') - .argument('') - .action(function (dirs) { - dirs.forEach((dir) => { - console.log('rmdir %s', dir); - }); - }); -``` - -There is a convenience method to add multiple arguments at once, but without descriptions: - -```js -program - .arguments(' '); -``` - -#### More configuration - -There are some additional features available by constructing an `Argument` explicitly for less common cases. - -Example file: [arguments-extra.js](./examples/arguments-extra.js) - -```js -program - .addArgument(new commander.Argument('', 'drink cup size').choices(['small', 'medium', 'large'])) - .addArgument(new commander.Argument('[timeout]', 'timeout in seconds').default(60, 'one minute')) -``` - -#### Custom argument processing - -You may specify a function to do custom processing of command-arguments (like for option-arguments). -The callback function receives two parameters, the user specified command-argument and the previous value for the argument. -It returns the new value for the argument. - -The processed argument values are passed to the action handler, and saved as `.processedArgs`. - -You can optionally specify the default/starting value for the argument after the function parameter. - -Example file: [arguments-custom-processing.js](./examples/arguments-custom-processing.js) - -```js -program - .command('add') - .argument('', 'integer argument', myParseInt) - .argument('[second]', 'integer argument', myParseInt, 1000) - .action((first, second) => { - console.log(`${first} + ${second} = ${first + second}`); - }) -; -``` - -### Action handler - -The action handler gets passed a parameter for each command-argument you declared, and two additional parameters -which are the parsed options and the command object itself. - -Example file: [thank.js](./examples/thank.js) - -```js -program - .argument('') - .option('-t, --title ', 'title to use before name') - .option('-d, --debug', 'display some debugging') - .action((name, options, command) => { - if (options.debug) { - console.error('Called %s with options %o', command.name(), options); - } - const title = options.title ? `${options.title} ` : ''; - console.log(`Thank-you ${title}${name}`); - }); -``` - -If you prefer, you can work with the command directly and skip declaring the parameters for the action handler. The `this` keyword is set to the running command and can be used from a function expression (but not from an arrow function). - -Example file: [action-this.js](./examples/action-this.js) - -```js -program - .command('serve') - .argument(' - ``` - -- `tabReplace` and `useBR` that were used in different places are also unified - into the global options object and are to be set using `configure(options)`. - This function is documented in our [API docs][]. Also note that these - parameters are gone from `highlightBlock` and `fixMarkup` which are now also - rely on `configure`. - -- We removed public-facing (though undocumented) object `hljs.LANGUAGES` which - was used to register languages with the library in favor of two new methods: - `registerLanguage` and `getLanguage`. Both are documented in our [API docs][]. - -- Result returned from `highlight` and `highlightAuto` no longer contains two - separate attributes contributing to relevance score, `relevance` and - `keyword_count`. They are now unified in `relevance`. - -Another technically compatible change that nonetheless might need attention: - -- The structure of the NPM package was refactored, so if you had installed it - locally, you'll have to update your paths. The usual `require('highlight.js')` - works as before. This is contributed by [Dmitry Smolin][]. - -New features: - -- Languages now can be recognized by multiple names like "js" for JavaScript or - "html" for, well, HTML (which earlier insisted on calling it "xml"). These - aliases can be specified in the class attribute of the code container in your - HTML as well as in various API calls. For now there are only a few very common - aliases but we'll expand it in the future. All of them are listed in the - [class reference][cr]. - -- Language detection can now be restricted to a subset of languages relevant in - a given context — a web page or even a single highlighting call. This is - especially useful for node.js build that includes all the known languages. - Another example is a StackOverflow-style site where users specify languages - as tags rather than in the markdown-formatted code snippets. This is - documented in the [API reference][] (see methods `highlightAuto` and - `configure`). - -- Language definition syntax streamlined with [variants][] and - [beginKeywords][]. - -New languages and styles: - -- *Oxygene* by [Carlo Kok][] -- *Mathematica* by [Daniel Kvasnička][] -- *Autohotkey* by [Seongwon Lee][] -- *Atelier* family of styles in 10 variants by [Bram de Haan][] -- *Paraíso* styles by [Jan T. Sott][] - -Miscellaneous improvements: - -- Highlighting `=>` prompts in Clojure. -- [Jeremy Hull][] fixed a lot of styles for consistency. -- Finally, highlighting PHP and HTML [mixed in peculiar ways][php-html]. -- Objective C and C# now properly highlight titles in method definition. -- Big overhaul of relevance counting for a number of languages. Please do report - bugs about mis-detection of non-trivial code snippets! - -[API reference]: http://highlightjs.readthedocs.org/en/latest/api.html - -[cr]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html -[api docs]: http://highlightjs.readthedocs.org/en/latest/api.html -[variants]: https://groups.google.com/d/topic/highlightjs/VoGC9-1p5vk/discussion -[beginKeywords]: https://github.com/isagalaev/highlight.js/commit/6c7fdea002eb3949577a85b3f7930137c7c3038d -[php-html]: https://twitter.com/highlightjs/status/408890903017689088 - -[Carlo Kok]: https://github.com/carlokok -[Bram de Haan]: https://github.com/atelierbram -[Daniel Kvasnička]: https://github.com/dkvasnicka -[Dmitry Smolin]: https://github.com/dimsmol -[Jeremy Hull]: https://github.com/sourrust -[Seongwon Lee]: https://github.com/dlimpid -[Jan T. Sott]: https://github.com/idleberg - - -## Version 7.5 - -A catch-up release dealing with some of the accumulated contributions. This one -is probably will be the last before the 8.0 which will be slightly backwards -incompatible regarding some advanced use-cases. - -One outstanding change in this version is the addition of 6 languages to the -[hosted script][d]: Markdown, ObjectiveC, CoffeeScript, Apache, Nginx and -Makefile. It now weighs about 6K more but we're going to keep it under 30K. - -New languages: - -- OCaml by [Mehdi Dogguy][mehdid] and [Nicolas Braud-Santoni][nbraud] -- [LiveCode Server][lcs] by [Ralf Bitter][revig] -- Scilab by [Sylvestre Ledru][sylvestre] -- basic support for Makefile by [Ivan Sagalaev][isagalaev] - -Improvements: - -- Ruby's got support for characters like `?A`, `?1`, `?\012` etc. and `%r{..}` - regexps. -- Clojure now allows a function call in the beginning of s-expressions - `(($filter "myCount") (arr 1 2 3 4 5))`. -- Haskell's got new keywords and now recognizes more things like pragmas, - preprocessors, modules, containers, FFIs etc. Thanks to [Zena Treep][treep] - for the implementation and to [Jeremy Hull][sourrust] for guiding it. -- Miscellaneous fixes in PHP, Brainfuck, SCSS, Asciidoc, CMake, Python and F#. - -[mehdid]: https://github.com/mehdid -[nbraud]: https://github.com/nbraud -[revig]: https://github.com/revig -[lcs]: http://livecode.com/developers/guides/server/ -[sylvestre]: https://github.com/sylvestre -[isagalaev]: https://github.com/isagalaev -[treep]: https://github.com/treep -[sourrust]: https://github.com/sourrust -[d]: http://highlightjs.org/download/ - - -## New core developers - -The latest long period of almost complete inactivity in the project coincided -with growing interest to it led to a decision that now seems completely obvious: -we need more core developers. - -So without further ado let me welcome to the core team two long-time -contributors: [Jeremy Hull][] and [Oleg -Efimov][]. - -Hope now we'll be able to work through stuff faster! - -P.S. The historical commit is [here][1] for the record. - -[Jeremy Hull]: https://github.com/sourrust -[Oleg Efimov]: https://github.com/sannis -[1]: https://github.com/isagalaev/highlight.js/commit/f3056941bda56d2b72276b97bc0dd5f230f2473f - - -## Version 7.4 - -This long overdue version is a snapshot of the current source tree with all the -changes that happened during the past year. Sorry for taking so long! - -Along with the changes in code highlight.js has finally got its new home at -, moving from its cradle on Software Maniacs which it -outgrew a long time ago. Be sure to report any bugs about the site to -. - -On to what's new… - -New languages: - -- Handlebars templates by [Robin Ward][] -- Oracle Rules Language by [Jason Jacobson][] -- F# by [Joans Follesø][] -- AsciiDoc and Haml by [Dan Allen][] -- Lasso by [Eric Knibbe][] -- SCSS by [Kurt Emch][] -- VB.NET by [Poren Chiang][] -- Mizar by [Kelley van Evert][] - -[Robin Ward]: https://github.com/eviltrout -[Jason Jacobson]: https://github.com/jayce7 -[Joans Follesø]: https://github.com/follesoe -[Dan Allen]: https://github.com/mojavelinux -[Eric Knibbe]: https://github.com/EricFromCanada -[Kurt Emch]: https://github.com/kemch -[Poren Chiang]: https://github.com/rschiang -[Kelley van Evert]: https://github.com/kelleyvanevert - -New style themes: - -- Monokai Sublime by [noformnocontent][] -- Railscasts by [Damien White][] -- Obsidian by [Alexander Marenin][] -- Docco by [Simon Madine][] -- Mono Blue by [Ivan Sagalaev][] (uses a single color hue for everything) -- Foundation by [Dan Allen][] - -[noformnocontent]: http://nn.mit-license.org/ -[Damien White]: https://github.com/visoft -[Alexander Marenin]: https://github.com/ioncreature -[Simon Madine]: https://github.com/thingsinjars -[Ivan Sagalaev]: https://github.com/isagalaev - -Other notable changes: - -- Corrected many corner cases in CSS. -- Dropped Python 2 version of the build tool. -- Implemented building for the AMD format. -- Updated Rust keywords (thanks to [Dmitry Medvinsky][]). -- Literal regexes can now be used in language definitions. -- CoffeeScript highlighting is now significantly more robust and rich due to - input from [Cédric Néhémie][]. - -[Dmitry Medvinsky]: https://github.com/dmedvinsky -[Cédric Néhémie]: https://github.com/abe33 - - -## Version 7.3 - -- Since this version highlight.js no longer works in IE version 8 and older. - It's made it possible to reduce the library size and dramatically improve code - readability and made it easier to maintain. Time to go forward! - -- New languages: AppleScript (by [Nathan Grigg][ng] and [Dr. Drang][dd]) and - Brainfuck (by [Evgeny Stepanischev][bolk]). - -- Improvements to existing languages: - - - interpreter prompt in Python (`>>>` and `...`) - - @-properties and classes in CoffeeScript - - E4X in JavaScript (by [Oleg Efimov][oe]) - - new keywords in Perl (by [Kirk Kimmel][kk]) - - big Ruby syntax update (by [Vasily Polovnyov][vast]) - - small fixes in Bash - -- Also Oleg Efimov did a great job of moving all the docs for language and style - developers and contributors from the old wiki under the source code in the - "docs" directory. Now these docs are nicely presented at - . - -[ng]: https://github.com/nathan11g -[dd]: https://github.com/drdrang -[bolk]: https://github.com/bolknote -[oe]: https://github.com/Sannis -[kk]: https://github.com/kimmel -[vast]: https://github.com/vast - - -## Version 7.2 - -A regular bug-fix release without any significant new features. Enjoy! - - -## Version 7.1 - -A Summer crop: - -- [Marc Fornos][mf] made the definition for Clojure along with the matching - style Rainbow (which, of course, works for other languages too). -- CoffeeScript support continues to improve getting support for regular - expressions. -- Yoshihide Jimbo ported to highlight.js [five Tomorrow styles][tm] from the - [project by Chris Kempson][tm0]. -- Thanks to [Casey Duncun][cd] the library can now be built in the popular - [AMD format][amd]. -- And last but not least, we've got a fair number of correctness and consistency - fixes, including a pretty significant refactoring of Ruby. - -[mf]: https://github.com/mfornos -[tm]: http://jmblog.github.com/color-themes-for-highlightjs/ -[tm0]: https://github.com/ChrisKempson/Tomorrow-Theme -[cd]: https://github.com/caseman -[amd]: http://requirejs.org/docs/whyamd.html - - -## Version 7.0 - -The reason for the new major version update is a global change of keyword syntax -which resulted in the library getting smaller once again. For example, the -hosted build is 2K less than at the previous version while supporting two new -languages. - -Notable changes: - -- The library now works not only in a browser but also with [node.js][]. It is - installable with `npm install highlight.js`. [API][] docs are available on our - wiki. - -- The new unique feature (apparently) among syntax highlighters is highlighting - *HTTP* headers and an arbitrary language in the request body. The most useful - languages here are *XML* and *JSON* both of which highlight.js does support. - Here's [the detailed post][p] about the feature. - -- Two new style themes: a dark "south" *[Pojoaque][]* by Jason Tate and an - emulation of*XCode* IDE by [Angel Olloqui][ao]. - -- Three new languages: *D* by [Aleksandar Ružičić][ar], *R* by [Joe Cheng][jc] - and *GLSL* by [Sergey Tikhomirov][st]. - -- *Nginx* syntax has become a million times smaller and more universal thanks to - remaking it in a more generic manner that doesn't require listing all the - directives in the known universe. - -- Function titles are now highlighted in *PHP*. - -- *Haskell* and *VHDL* were significantly reworked to be more rich and correct - by their respective maintainers [Jeremy Hull][sr] and [Igor Kalnitsky][ik]. - -And last but not least, many bugs have been fixed around correctness and -language detection. - -Overall highlight.js currently supports 51 languages and 20 style themes. - -[node.js]: http://nodejs.org/ -[api]: http://softwaremaniacs.org/wiki/doku.php/highlight.js:api -[p]: http://softwaremaniacs.org/blog/2012/05/10/http-and-json-in-highlight-js/en/ -[pojoaque]: http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html -[ao]: https://github.com/angelolloqui -[ar]: https://github.com/raleksandar -[jc]: https://github.com/jcheng5 -[st]: https://github.com/tikhomirov -[sr]: https://github.com/sourrust -[ik]: https://github.com/ikalnitsky - - -## Version 6.2 - -A lot of things happened in highlight.js since the last version! We've got nine -new contributors, the discussion group came alive, and the main branch on GitHub -now counts more than 350 followers. Here are most significant results coming -from all this activity: - -- 5 (five!) new languages: Rust, ActionScript, CoffeeScript, MatLab and - experimental support for markdown. Thanks go to [Andrey Vlasovskikh][av], - [Alexander Myadzel][am], [Dmytrii Nagirniak][dn], [Oleg Efimov][oe], [Denis - Bardadym][db] and [John Crepezzi][jc]. - -- 2 new style themes: Monokai by [Luigi Maselli][lm] and stylistic imitation of - another well-known highlighter Google Code Prettify by [Aahan Krish][ak]. - -- A vast number of [correctness fixes and code refactorings][log], mostly made - by [Oleg Efimov][oe] and [Evgeny Stepanischev][es]. - -[av]: https://github.com/vlasovskikh -[am]: https://github.com/myadzel -[dn]: https://github.com/dnagir -[oe]: https://github.com/Sannis -[db]: https://github.com/btd -[jc]: https://github.com/seejohnrun -[lm]: http://grigio.org/ -[ak]: https://github.com/geekpanth3r -[es]: https://github.com/bolknote -[log]: https://github.com/isagalaev/highlight.js/commits/ - - -## Version 6.1 — Solarized - -[Jeremy Hull][jh] has implemented my dream feature — a port of [Solarized][] -style theme famous for being based on the intricate color theory to achieve -correct contrast and color perception. It is now available for highlight.js in -both variants — light and dark. - -This version also adds a new original style Arta. Its author pumbur maintains a -[heavily modified fork of highlight.js][pb] on GitHub. - -[jh]: https://github.com/sourrust -[solarized]: http://ethanschoonover.com/solarized -[pb]: https://github.com/pumbur/highlight.js - - -## Version 6.0 - -New major version of the highlighter has been built on a significantly -refactored syntax. Due to this it's even smaller than the previous one while -supporting more languages! - -New languages are: - -- Haskell by [Jeremy Hull][sourrust] -- Erlang in two varieties — module and REPL — made collectively by [Nikolay - Zakharov][desh], [Dmitry Kovega][arhibot] and [Sergey Ignatov][ignatov] -- Objective C by [Valerii Hiora][vhbit] -- Vala by [Antono Vasiljev][antono] -- Go by [Stephan Kountso][steplg] - -[sourrust]: https://github.com/sourrust -[desh]: http://desh.su/ -[arhibot]: https://github.com/arhibot -[ignatov]: https://github.com/ignatov -[vhbit]: https://github.com/vhbit -[antono]: https://github.com/antono -[steplg]: https://github.com/steplg - -Also this version is marginally faster and fixes a number of small long-standing -bugs. - -Developer overview of the new language syntax is available in a [blog post about -recent beta release][beta]. - -[beta]: http://softwaremaniacs.org/blog/2011/04/25/highlight-js-60-beta/en/ - -P.S. New version is not yet available on a Yandex CDN, so for now you have to -download [your own copy][d]. - -[d]: /soft/highlight/en/download/ - - -## Version 5.14 - -Fixed bugs in HTML/XML detection and relevance introduced in previous -refactoring. - -Also test.html now shows the second best result of language detection by -relevance. - - -## Version 5.13 - -Past weekend began with a couple of simple additions for existing languages but -ended up in a big code refactoring bringing along nice improvements for language -developers. - -### For users - -- Description of C++ has got new keywords from the upcoming [C++ 0x][] standard. -- Description of HTML has got new tags from [HTML 5][]. -- CSS-styles have been unified to use consistent padding and also have lost - pop-outs with names of detected languages. -- [Igor Kalnitsky][ik] has sent two new language descriptions: CMake & VHDL. - -This makes total number of languages supported by highlight.js to reach 35. - -Bug fixes: - -- Custom classes on `
` tags are not being overridden anymore
-- More correct highlighting of code blocks inside non-`
` containers:
-  highlighter now doesn't insist on replacing them with its own container and
-  just replaces the contents.
-- Small fixes in browser compatibility and heuristics.
-
-[c++ 0x]: http://ru.wikipedia.org/wiki/C%2B%2B0x
-[html 5]: http://en.wikipedia.org/wiki/HTML5
-[ik]: http://kalnitsky.org.ua/
-
-### For developers
-
-The most significant change is the ability to include language submodes right
-under `contains` instead of defining explicit named submodes in the main array:
-
-    contains: [
-      'string',
-      'number',
-      {begin: '\\n', end: hljs.IMMEDIATE_RE}
-    ]
-
-This is useful for auxiliary modes needed only in one place to define parsing.
-Note that such modes often don't have `className` and hence won't generate a
-separate `` in the resulting markup. This is similar in effect to
-`noMarkup: true`. All existing languages have been refactored accordingly.
-
-Test file test.html has at last become a real test. Now it not only puts the
-detected language name under the code snippet but also tests if it matches the
-expected one. Test summary is displayed right above all language snippets.
-
-
-## CDN
-
-Fine people at [Yandex][] agreed to host highlight.js on their big fast servers.
-[Link up][l]!
-
-[yandex]: http://yandex.com/
-[l]: http://softwaremaniacs.org/soft/highlight/en/download/
-
-
-## Version 5.10 — "Paris".
-
-Though I'm on a vacation in Paris, I decided to release a new version with a
-couple of small fixes:
-
-- Tomas Vitvar discovered that TAB replacement doesn't always work when used
-  with custom markup in code
-- SQL parsing is even more rigid now and doesn't step over SmallTalk in tests
-
-
-## Version 5.9
-
-A long-awaited version is finally released.
-
-New languages:
-
-- Andrew Fedorov made a definition for Lua
-- a long-time highlight.js contributor [Peter Leonov][pl] made a definition for
-  Nginx config
-- [Vladimir Moskva][vm] made a definition for TeX
-
-[pl]: http://kung-fu-tzu.ru/
-[vm]: http://fulc.ru/
-
-Fixes for existing languages:
-
-- [Loren Segal][ls] reworked the Ruby definition and added highlighting for
-  [YARD][] inline documentation
-- the definition of SQL has become more solid and now it shouldn't be overly
-  greedy when it comes to language detection
-
-[ls]: http://gnuu.org/
-[yard]: http://yardoc.org/
-
-The highlighter has become more usable as a library allowing to do highlighting
-from initialization code of JS frameworks and in ajax methods (see.
-readme.eng.txt).
-
-Also this version drops support for the [WordPress][wp] plugin. Everyone is
-welcome to [pick up its maintenance][p] if needed.
-
-[wp]: http://wordpress.org/
-[p]: http://bazaar.launchpad.net/~isagalaev/+junk/highlight/annotate/342/src/wp_highlight.js.php
-
-
-## Version 5.8
-
-- Jan Berkel has contributed a definition for Scala. +1 to hotness!
-- All CSS-styles are rewritten to work only inside `
` tags to avoid
-  conflicts with host site styles.
-
-
-## Version 5.7.
-
-Fixed escaping of quotes in VBScript strings.
-
-
-## Version 5.5
-
-This version brings a small change: now .ini-files allow digits, underscores and
-square brackets in key names.
-
-
-## Version 5.4
-
-Fixed small but upsetting bug in the packer which caused incorrect highlighting
-of explicitly specified languages. Thanks to Andrew Fedorov for precise
-diagnostics!
-
-
-## Version 5.3
-
-The version to fulfil old promises.
-
-The most significant change is that highlight.js now preserves custom user
-markup in code along with its own highlighting markup. This means that now it's
-possible to use, say, links in code. Thanks to [Vladimir Dolzhenko][vd] for the
-[initial proposal][1] and for making a proof-of-concept patch.
-
-Also in this version:
-
-- [Vasily Polovnyov][vp] has sent a GitHub-like style and has implemented
-  support for CSS @-rules and Ruby symbols.
-- Yura Zaripov has sent two styles: Brown Paper and School Book.
-- Oleg Volchkov has sent a definition for [Parser 3][p3].
-
-[1]: http://softwaremaniacs.org/forum/highlightjs/6612/
-[p3]: http://www.parser.ru/
-[vp]: http://vasily.polovnyov.ru/
-[vd]: http://dolzhenko.blogspot.com/
-
-
-## Version 5.2
-
-- at last it's possible to replace indentation TABs with something sensible
-  (e.g. 2 or 4 spaces)
-- new keywords and built-ins for 1C by Sergey Baranov
-- a couple of small fixes to Apache highlighting
-
-
-## Version 5.1
-
-This is one of those nice version consisting entirely of new and shiny
-contributions!
-
-- [Vladimir Ermakov][vooon] created highlighting for AVR Assembler
-- [Ruslan Keba][rukeba] created highlighting for Apache config file. Also his
-  original visual style for it is now available for all highlight.js languages
-  under the name "Magula".
-- [Shuen-Huei Guan][drake] (aka Drake) sent new keywords for RenderMan
-  languages. Also thanks go to [Konstantin Evdokimenko][ke] for his advice on
-  the matter.
-
-[vooon]: http://vehq.ru/about/
-[rukeba]: http://rukeba.com/
-[drake]: http://drakeguan.org/
-[ke]: http://k-evdokimenko.moikrug.ru/
-
-
-## Version 5.0
-
-The main change in the new major version of highlight.js is a mechanism for
-packing several languages along with the library itself into a single compressed
-file. Now sites using several languages will load considerably faster because
-the library won't dynamically include additional files while loading.
-
-Also this version fixes a long-standing bug with Javascript highlighting that
-couldn't distinguish between regular expressions and division operations.
-
-And as usually there were a couple of minor correctness fixes.
-
-Great thanks to all contributors! Keep using highlight.js.
-
-
-## Version 4.3
-
-This version comes with two contributions from [Jason Diamond][jd]:
-
-- language definition for C# (yes! it was a long-missed thing!)
-- Visual Studio-like highlighting style
-
-Plus there are a couple of minor bug fixes for parsing HTML and XML attributes.
-
-[jd]: http://jason.diamond.name/weblog/
-
-
-## Version 4.2
-
-The biggest news is highlighting for Lisp, courtesy of Vasily Polovnyov. It's
-somewhat experimental meaning that for highlighting "keywords" it doesn't use
-any pre-defined set of a Lisp dialect. Instead it tries to highlight first word
-in parentheses wherever it makes sense. I'd like to ask people programming in
-Lisp to confirm if it's a good idea and send feedback to [the forum][f].
-
-Other changes:
-
-- Smalltalk was excluded from DEFAULT_LANGUAGES to save traffic
-- [Vladimir Epifanov][voldmar] has implemented javascript style switcher for
-  test.html
-- comments now allowed inside Ruby function definition
-- [MEL][] language from [Shuen-Huei Guan][drake]
-- whitespace now allowed between `
` and ``
-- better auto-detection of C++ and PHP
-- HTML allows embedded VBScript (`<% .. %>`)
-
-[f]: http://softwaremaniacs.org/forum/highlightjs/
-[voldmar]: http://voldmar.ya.ru/
-[mel]: http://en.wikipedia.org/wiki/Maya_Embedded_Language
-[drake]: http://drakeguan.org/
-
-
-## Version 4.1
-
-Languages:
-
-- Bash from Vah
-- DOS bat-files from Alexander Makarov (Sam)
-- Diff files from Vasily Polovnyov
-- Ini files from myself though initial idea was from Sam
-
-Styles:
-
-- Zenburn from Vladimir Epifanov, this is an imitation of a
-  [well-known theme for Vim][zenburn].
-- Ascetic from myself, as a realization of ideals of non-flashy highlighting:
-  just one color in only three gradations :-)
-
-In other news. [One small bug][bug] was fixed, built-in keywords were added for
-Python and C++ which improved auto-detection for the latter (it was shame that
-[my wife's blog][alenacpp] had issues with it from time to time). And lastly
-thanks go to Sam for getting rid of my stylistic comments in code that were
-getting in the way of [JSMin][].
-
-[zenburn]: http://en.wikipedia.org/wiki/Zenburn
-[alenacpp]: http://alenacpp.blogspot.com/
-[bug]: http://softwaremaniacs.org/forum/viewtopic.php?id=1823
-[jsmin]: http://code.google.com/p/jsmin-php/
-
-
-## Version 4.0
-
-New major version is a result of vast refactoring and of many contributions.
-
-Visible new features:
-
-- Highlighting of embedded languages. Currently is implemented highlighting of
-  Javascript and CSS inside HTML.
-- Bundled 5 ready-made style themes!
-
-Invisible new features:
-
-- Highlight.js no longer pollutes global namespace. Only one object and one
-  function for backward compatibility.
-- Performance is further increased by about 15%.
-
-Changing of a major version number caused by a new format of language definition
-files. If you use some third-party language files they should be updated.
-
-
-## Version 3.5
-
-A very nice version in my opinion fixing a number of small bugs and slightly
-increased speed in a couple of corner cases. Thanks to everybody who reports
-bugs in he [forum][f] and by email!
-
-There is also a new language — XML. A custom XML formerly was detected as HTML
-and didn't highlight custom tags. In this version I tried to make custom XML to
-be detected and highlighted by its own rules. Which by the way include such
-things as CDATA sections and processing instructions (``).
-
-[f]: http://softwaremaniacs.org/forum/viewforum.php?id=6
-
-
-## Version 3.3
-
-[Vladimir Gubarkov][xonix] has provided an interesting and useful addition.
-File export.html contains a little program that shows and allows to copy and
-paste an HTML code generated by the highlighter for any code snippet. This can
-be useful in situations when one can't use the script itself on a site.
-
-
-[xonix]: http://xonixx.blogspot.com/
-
-
-## Version 3.2 consists completely of contributions:
-
-- Vladimir Gubarkov has described SmallTalk
-- Yuri Ivanov has described 1C
-- Peter Leonov has packaged the highlighter as a Firefox extension
-- Vladimir Ermakov has compiled a mod for phpBB
-
-Many thanks to you all!
-
-
-## Version 3.1
-
-Three new languages are available: Django templates, SQL and Axapta. The latter
-two are sent by [Dmitri Roudakov][1]. However I've almost entirely rewrote an
-SQL definition but I'd never started it be it from the ground up :-)
-
-The engine itself has got a long awaited feature of grouping keywords
-("keyword", "built-in function", "literal"). No more hacks!
-
-[1]: http://roudakov.ru/
-
-
-## Version 3.0
-
-It is major mainly because now highlight.js has grown large and has become
-modular. Now when you pass it a list of languages to highlight it will
-dynamically load into a browser only those languages.
-
-Also:
-
-- Konstantin Evdokimenko of [RibKit][] project has created a highlighting for
-  RenderMan Shading Language and RenderMan Interface Bytestream. Yay for more
-  languages!
-- Heuristics for C++ and HTML got better.
-- I've implemented (at last) a correct handling of backslash escapes in C-like
-  languages.
-
-There is also a small backwards incompatible change in the new version. The
-function initHighlighting that was used to initialize highlighting instead of
-initHighlightingOnLoad a long time ago no longer works. If you by chance still
-use it — replace it with the new one.
-
-[RibKit]: http://ribkit.sourceforge.net/
-
-
-## Version 2.9
-
-Highlight.js is a parser, not just a couple of regular expressions. That said
-I'm glad to announce that in the new version 2.9 has support for:
-
-- in-string substitutions for Ruby -- `#{...}`
-- strings from from numeric symbol codes (like #XX) for Delphi
-
-
-## Version 2.8
-
-A maintenance release with more tuned heuristics. Fully backwards compatible.
-
-
-## Version 2.7
-
-- Nikita Ledyaev presents highlighting for VBScript, yay!
-- A couple of bugs with escaping in strings were fixed thanks to Mickle
-- Ongoing tuning of heuristics
-
-Fixed bugs were rather unpleasant so I encourage everyone to upgrade!
-
-
-## Version 2.4
-
-- Peter Leonov provides another improved highlighting for Perl
-- Javascript gets a new kind of keywords — "literals". These are the words
-  "true", "false" and "null"
-
-Also highlight.js homepage now lists sites that use the library. Feel free to
-add your site by [dropping me a message][mail] until I find the time to build a
-submit form.
-
-[mail]: mailto:Maniac@SoftwareManiacs.Org
-
-
-## Version 2.3
-
-This version fixes IE breakage in previous version. My apologies to all who have
-already downloaded that one!
-
-
-## Version 2.2
-
-- added highlighting for Javascript
-- at last fixed parsing of Delphi's escaped apostrophes in strings
-- in Ruby fixed highlighting of keywords 'def' and 'class', same for 'sub' in
-  Perl
-
-
-## Version 2.0
-
-- Ruby support by [Anton Kovalyov][ak]
-- speed increased by orders of magnitude due to new way of parsing
-- this same way allows now correct highlighting of keywords in some tricky
-  places (like keyword "End" at the end of Delphi classes)
-
-[ak]: http://anton.kovalyov.net/
-
-
-## Version 1.0
-
-Version 1.0 of javascript syntax highlighter is released!
-
-It's the first version available with English description. Feel free to post
-your comments and question to [highlight.js forum][forum]. And don't be afraid
-if you find there some fancy Cyrillic letters -- it's for Russian users too :-)
-
-[forum]: http://softwaremaniacs.org/forum/viewforum.php?id=6
diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/LICENSE b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/LICENSE
deleted file mode 100644
index 2250cc7..0000000
--- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/LICENSE
+++ /dev/null
@@ -1,29 +0,0 @@
-BSD 3-Clause License
-
-Copyright (c) 2006, Ivan Sagalaev.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
-  list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-
-* Neither the name of the copyright holder nor the names of its
-  contributors may be used to endorse or promote products derived from
-  this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/README.md b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/README.md
deleted file mode 100644
index b01f59f..0000000
--- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/README.md
+++ /dev/null
@@ -1,521 +0,0 @@
-# Highlight.js
-
-[![latest version](https://badgen.net/npm/v/highlight.js?label=latest)](https://www.npmjs.com/package/highlight.js)
-[![license](https://badgen.net/github/license/highlightjs/highlight.js?color=cyan)](https://github.com/highlightjs/highlight.js/blob/main/LICENSE)
-[![install size](https://badgen.net/packagephobia/install/highlight.js?label=npm+install)](https://packagephobia.now.sh/result?p=highlight.js)
-![minified](https://img.shields.io/github/size/highlightjs/cdn-release/build/highlight.min.js?label=minified)
-[![NPM downloads weekly](https://badgen.net/npm/dw/highlight.js?label=npm+downloads&color=purple)](https://www.npmjs.com/package/highlight.js)
-[![jsDelivr CDN downloads](https://badgen.net/jsdelivr/hits/gh/highlightjs/cdn-release?label=jsDelivr+CDN&color=purple)](https://www.jsdelivr.com/package/gh/highlightjs/cdn-release)
-
-[![ci status](https://badgen.net/github/checks/highlightjs/highlight.js/main?label=build)](https://github.com/highlightjs/highlight.js/actions/workflows/tests.js.yml)
-[![CodeQL](https://github.com/highlightjs/highlight.js/workflows/CodeQL/badge.svg)](https://github.com/highlightjs/highlight.js/actions/workflows/github-code-scanning/codeql)
-[![vulnerabilities](https://badgen.net/snyk/highlightjs/highlight.js)](https://snyk.io/test/github/highlightjs/highlight.js?targetFile=package.json)
-
-[![discord](https://badgen.net/badge/icon/discord?icon=discord&label&color=pink)](https://discord.gg/M24EbU7ja9)
-[![open issues](https://badgen.net/github/open-issues/highlightjs/highlight.js?label=issues)](https://github.com/highlightjs/highlight.js/issues)
-[![help welcome issues](https://badgen.net/github/label-issues/highlightjs/highlight.js/help%20welcome/open)](https://github.com/highlightjs/highlight.js/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+welcome%22)
-[![good first issue](https://badgen.net/github/label-issues/highlightjs/highlight.js/good%20first%20issue/open)](https://github.com/highlightjs/highlight.js/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
-
-
-
-
-
-
-
-
-Highlight.js is a syntax highlighter written in JavaScript. It works in
-the browser as well as on the server. It can work with pretty much any
-markup, doesn’t depend on any other frameworks, and has automatic language
-detection.
-
-**Contents**
-
-- [Basic Usage](#basic-usage)
-  - [In the Browser](#in-the-browser)
-    - [Plaintext Code Blocks](#plaintext-code-blocks)
-    - [Ignoring a Code Block](#ignoring-a-code-block)
-  - [Node.js on the Server](#nodejs-on-the-server)
-- [Supported Languages](#supported-languages)
-- [Custom Usage](#custom-usage)
-  - [Using custom HTML](#using-custom-html)
-  - [Using with Vue.js](#using-with-vuejs)
-  - [Using Web Workers](#using-web-workers)
-- [Importing the Library](#importing-the-library)
-  - [Node.js CommonJS Modules / `require`](#nodejs-commonjs-modules--require)
-  - [Node.js ES6 Modules / `import`](#nodejs-es6-modules--import)
-  - [Browser ES6 Modules](#browser-es6-modules)
-- [Getting the Library](#getting-the-library)
-  - [Fetch via CDN](#fetch-via-cdn)
-    - [cdnjs (link)](#cdnjs-link)
-    - [jsdelivr (link)](#jsdelivr-link)
-    - [unpkg (link)](#unpkg-link)
-  - [Download prebuilt CDN assets](#download-prebuilt-cdn-assets)
-  - [Download from our website](#download-from-our-website)
-  - [Install via NPM package](#install-via-npm-package)
-  - [Build from Source](#build-from-source)
-- [Requirements](#requirements)
-- [License](#license)
-- [Links](#links)
-
----
-
-#### Upgrading to Version 11
-
-As always, major releases do contain breaking changes which may require action from users.  Please read [VERSION_11_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_11_UPGRADE.md) for a detailed summary of breaking changes and any actions you may need to take.
-
-
-#### Support for older versions 
-
-Please see [SECURITY.md](https://github.com/highlightjs/highlight.js/blob/main/SECURITY.md) for long-term support information.
-
----
-
-## Basic Usage
-### In the Browser
-
-The bare minimum for using highlight.js on a web page is linking to the
-library along with one of the themes and calling [`highlightAll`][1]:
-
-```html
-
-
-
-```
-
-This will find and highlight code inside of `
` tags; it tries
-to detect the language automatically. If automatic detection doesn’t
-work for you, or you simply prefer to be explicit, you can specify the language manually by using the `class` attribute:
-
-
-```html
-
...
-``` - -#### Plaintext Code Blocks - -To apply the Highlight.js styling to plaintext without actually highlighting it, use the `plaintext` language: - -```html -
...
-``` - -#### Ignoring a Code Block - -To skip highlighting of a code block completely, use the `nohighlight` class: - -```html -
...
-``` - -### Node.js on the Server - -The bare minimum to auto-detect the language and highlight some code. - -```js -// load the library and ALL languages -hljs = require('highlight.js'); -html = hljs.highlightAuto('

Hello World!

').value -``` - -To load only a "common" subset of popular languages: - -```js -hljs = require('highlight.js/lib/common'); -``` - -To highlight code with a specific language, use `highlight`: - -```js -html = hljs.highlight('

Hello World!

', {language: 'xml'}).value -``` - -See [Importing the Library](#importing-the-library) for more examples of `require` vs `import` usage, etc. For more information about the result object returned by `highlight` or `highlightAuto` refer to the [api docs](https://highlightjs.readthedocs.io/en/latest/api.html). - - - -## Supported Languages - -Highlight.js supports over 180 languages in the core library. There are also 3rd party -language definitions available to support even more languages. You can find the full list of supported languages in [SUPPORTED_LANGUAGES.md][9]. - -## Custom Usage - -If you need a bit more control over the initialization of -Highlight.js, you can use the [`highlightElement`][3] and [`configure`][4] -functions. This allows you to better control *what* to highlight and *when*. - -For example, here’s the rough equivalent of calling [`highlightAll`][1] but doing the work manually instead: - -```js -document.addEventListener('DOMContentLoaded', (event) => { - document.querySelectorAll('pre code').forEach((el) => { - hljs.highlightElement(el); - }); -}); -``` - -Please refer to the documentation for [`configure`][4] options. - - -### Using custom HTML - -We strongly recommend `
` wrapping for code blocks. It's quite
-semantic and "just works" out of the box with zero fiddling. It is possible to
-use other HTML elements (or combos), but you may need to pay special attention to
-preserving linebreaks.
-
-Let's say your markup for code blocks uses divs:
-
-```html
-
...
-``` - -To highlight such blocks manually: - -```js -// first, find all the div.code blocks -document.querySelectorAll('div.code').forEach(el => { - // then highlight each - hljs.highlightElement(el); -}); -``` - -Without using a tag that preserves linebreaks (like `pre`) you'll need some -additional CSS to help preserve them. You could also [pre and post-process line -breaks with a plug-in][brPlugin], but *we recommend using CSS*. - -[brPlugin]: https://github.com/highlightjs/highlight.js/issues/2559 - -To preserve linebreaks inside a `div` using CSS: - -```css -div.code { - white-space: pre; -} -``` - - -### Using with Vue.js - -See [highlightjs/vue-plugin](https://github.com/highlightjs/vue-plugin) for a simple Vue plugin that works great with Highlight.js. - -An example of `vue-plugin` in action: - -```html -
- - - - -
-``` - -### Using Web Workers - -You can run highlighting inside a web worker to avoid freezing the browser -window while dealing with very big chunks of code. - -In your main script: - -```js -addEventListener('load', () => { - const code = document.querySelector('#code'); - const worker = new Worker('worker.js'); - worker.onmessage = (event) => { code.innerHTML = event.data; } - worker.postMessage(code.textContent); -}); -``` - -In worker.js: - -```js -onmessage = (event) => { - importScripts('/highlight.min.js'); - const result = self.hljs.highlightAuto(event.data); - postMessage(result.value); -}; -``` - -## Importing the Library - -First, you'll likely be installing the library via `npm` or `yarn` -- see [Getting the Library](#getting-the-library). - - -### Node.js CommonJS Modules / `require` - -Requiring the top-level library will load all languages: - -```js -// require the highlight.js library, including all languages -const hljs = require('./highlight.js'); -const highlightedCode = hljs.highlightAuto('Hello World!').value -``` - -For a smaller footprint, load our common subset of languages (the same set used for our default web build). - -```js -const hljs = require('highlight.js/lib/common'); -``` - -For the smallest footprint, load only the languages you need: - -```js -const hljs = require('highlight.js/lib/core'); -hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml')); - -const highlightedCode = hljs.highlight('Hello World!', {language: 'xml'}).value -``` - - -### Node.js ES6 Modules / `import` - -The default import will register all languages: - -```js -import hljs from 'highlight.js'; -``` - -It is more efficient to import only the library and register the languages you need: - -```js -import hljs from 'highlight.js/lib/core'; -import javascript from 'highlight.js/lib/languages/javascript'; -hljs.registerLanguage('javascript', javascript); -``` - -If your build tool processes CSS imports, you can also import the theme directly as a module: - -```js -import hljs from 'highlight.js'; -import 'highlight.js/styles/github.css'; -``` - -### Browser ES6 Modules - -*Note: For now you'll want to install `@highlightjs/cdn-assets` package instead of `highlight.js`. -See [Download prebuilt CDN assets](#download-prebuilt-cdn-assets)* - -To import the library and register only those languages that you need: - -```js -import hljs from './assets/js/@highlightjs/cdn-assets/es/core.js'; -import javascript from './assets/js/@highlightjs/cdn-assets/es/languages/javascript.min.js'; - -hljs.registerLanguage('javascript', javascript); -``` - -To import the library and register all languages: - -```js -import hljs from './assets/js/@highlightjs/cdn-assets/es/highlight.js'; -``` - -*Note: The path to these files will vary depending on where you have installed/copied them -within your project or site. The above path is only an example.* - -You can also use [`importmap`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) to import in similar way as Node: - -```html - -``` - -Use the above code in your HTML. After that, your JavaScript can import using the named key from -your `importmap`, for example `@highlightjs` in this case: - -```js -import hljs from '@highlightjs/core.js'; -import javascript from '@highlightjs/languages/javascript.min.js'; - -hljs.registerLanguage('javascript', javascript); -``` - -*Note: You can also import directly from fully static URLs, such as our very own pre-built ES6 Module CDN resources. See [Fetch via CDN](#fetch-via-cdn) for specific examples.* - - -## Getting the Library - -You can get highlight.js as a hosted, or custom-build, browser script or -as a server module. Right out of the box the browser script supports -both AMD and CommonJS, so if you wish you can use RequireJS or -Browserify without having to build from source. The server module also -works perfectly fine with Browserify, but there is the option to use a -build specific to browsers rather than something meant for a server. - - -**Do not link to GitHub directly.** The library is not supposed to work straight -from the source, it requires building. If none of the pre-packaged options -work for you refer to the [building documentation][6]. - -**On Almond.** You need to use the optimizer to give the module a name. For -example: - -```bash -r.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js -``` - -### Fetch via CDN - -A prebuilt version of Highlight.js bundled with many common languages is hosted by several popular CDNs. -When using Highlight.js via CDN you can use Subresource Integrity for additional security. For details -see [DIGESTS.md](https://github.com/highlightjs/cdn-release/blob/main/DIGESTS.md). - -#### cdnjs ([link](https://cdnjs.com/libraries/highlight.js)) - -##### Common JS - -```html - - - - -``` - -##### ES6 Modules - -````html - - - -```` - - -#### jsdelivr ([link](https://www.jsdelivr.com/package/gh/highlightjs/cdn-release)) - -##### Common JS - -```html - - - - -``` - -##### ES6 Modules - -```html - - -``` - -#### unpkg ([link](https://unpkg.com/browse/@highlightjs/cdn-assets/)) - -##### Common JS - -```html - - - - -``` - -##### ES6 Modules - -```html - - -``` - - -**Note:** *The CDN-hosted `highlight.min.js` package doesn't bundle every language.* It would be -very large. You can find our list of "common" languages that we bundle by default on our [download page][5]. - -### Download prebuilt CDN assets - -You can also download and self-host the same assets we serve up via our own CDNs. We publish those builds to the [cdn-release](https://github.com/highlightjs/cdn-release) GitHub repository. You can easily pull individual files off the CDN endpoints with `curl`, etc; if say you only needed `highlight.min.js` and a single CSS file. - -There is also an npm package [@highlightjs/cdn-assets](https://www.npmjs.com/package/@highlightjs/cdn-assets) if pulling the assets in via `npm` or `yarn` would be easier for your build process. - -### Download from our website - -The [download page][5] can quickly generate a custom single-file minified bundle including only the languages you desire. - -**Note:** [Building from source](#build-from-source) can produce slightly smaller builds than the website download. - - -### Install via NPM package - -Our NPM package including all supported languages can be installed with NPM or Yarn: - -```bash -npm install highlight.js -# or -yarn add highlight.js -``` - -There is also another npm package [@highlightjs/cdn-assets](https://www.npmjs.com/package/@highlightjs/cdn-assets) that contains prebuilt CDN assets including [ES6 Modules that can be imported in browser](#browser-es6-modules): - -```bash -npm install @highlightjs/cdn-assets -# or -yarn add @highlightjs/cdn-assets -``` - -Alternatively, you can build the NPM package from source. - - -### Build from Source - -The [current source code][10] is always available on GitHub. - -```bash -node tools/build.js -t node -node tools/build.js -t browser :common -node tools/build.js -t cdn :common -``` - -See our [building documentation][6] for more information. - - -## Requirements - -Highlight.js works on all modern browsers and currently supported Node.js versions. You'll need the following software to contribute to the core library: - -- Node.js >= 12.x -- npm >= 6.x - -## License - -Highlight.js is released under the BSD License. See our [LICENSE][7] file -for details. - - -## Links - -The official website for the library is . - -Further in-depth documentation for the API and other topics is at -. - -A list of the Core Team and contributors can be found in the [CONTRIBUTORS.md][8] file. - -[1]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightall -[2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html -[3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightelement -[4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure -[5]: https://highlightjs.org/download/ -[6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html -[7]: https://github.com/highlightjs/highlight.js/blob/main/LICENSE -[8]: https://github.com/highlightjs/highlight.js/blob/main/CONTRIBUTORS.md -[9]: https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md -[10]: https://github.com/highlightjs/ diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/SECURITY.md b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/SECURITY.md deleted file mode 100644 index 086a034..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/SECURITY.md +++ /dev/null @@ -1,19 +0,0 @@ -# Security Policy - -Due to both time and resource constrains the Highlight.js core team fully supports only the current major/minor release of the library. Prior major releases may be supported for a short time after new major releases are issued. Problems with minor releases are often resolved by upgrading to the most recent minor release. - -### Release Status - -| Version | Support | Status | -| :-----: | :-: | :------ | -| 11.x | :white_check_mark: | The 11.x series recieves regular updates, new features & security fixes. | -| 10.7.x | :x: | No longer supported.
See [VERSION_11_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/master/VERSION_11_UPGRADE.md).| -| <= 10.4.0 | :x: | Known vulnerabities. | -| <= 9.18.5 | :x: | Known vulnerabities. [EOL](https://github.com/highlightjs/highlight.js/issues/2877) | -| 7.x, 8.x | :x: | Obsolete. Known vulnerabities. | - - -### Reporting a Vulnerability - -Many vulnerabilities can simply be reported (and tracked) via our [GitHub issues](https://github.com/highlightjs/highlight.js/issues). If you feel your issue is more sensitive than that you can always reach us via email: [security@highlightjs.org](mailto:security@highlightjs.org) - diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/SUPPORTED_LANGUAGES.md b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/SUPPORTED_LANGUAGES.md deleted file mode 100644 index 3757dfa..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/SUPPORTED_LANGUAGES.md +++ /dev/null @@ -1,283 +0,0 @@ -# Supported Languages - -The table below shows the full list of languages (and corresponding classes/aliases) supported by Highlight.js. Languages that list a **Package** below are 3rd party languages and are not bundled with the core library. You can find their repositories by following the links. - -**Note:** The languages available will depend on how you've built or are included the library in your app. For example our default minified web build includes only ~40 popular languages. See [Getting the Library][1] and [Importing the Library][2] in the README for examples of how to load additional/specific languages. - - -| Language | Aliases | Package | -| :-----------------------| :--------------------- | :------ | -| 1C | 1c | | -| 4D | 4d |[highlightjs-4d](https://github.com/highlightjs/highlightjs-4d) | -| ABAP | sap-abap, abap |[highlight-sap-abap](https://github.com/highlightjs/highlightjs-sap-abap) | -| ABNF | abnf | | -| Access logs | accesslog | | -| Ada | ada | | -| Apex | apex | [highlightjs-apex](https://github.com/highlightjs/highlightjs-apex/) | -| Arduino (C++ w/Arduino libs) | arduino, ino | | -| ARM assembler | armasm, arm | | -| AVR assembler | avrasm | | -| ActionScript | actionscript, as | | -| Alan IF | alan, i | [highlightjs-alan](https://github.com/highlightjs/highlightjs-alan) | -| Alan | ln | [highlightjs-alan](https://github.com/alantech/highlightjs-alan) | -| AngelScript | angelscript, asc | | -| Apache | apache, apacheconf | | -| AppleScript | applescript, osascript | | -| Arcade | arcade | | -| AsciiDoc | asciidoc, adoc | | -| AspectJ | aspectj | | -| AutoHotkey | autohotkey | | -| AutoIt | autoit | | -| Awk | awk, mawk, nawk, gawk | | -| Ballerina | ballerina, bal | [highlightjs-ballerina](https://github.com/highlightjs/highlightjs-ballerina) | -| Bash | bash, sh, zsh | | -| Basic | basic | | -| BBCode | bbcode | [highlightjs-bbcode](https://github.com/RedGuy12/highlightjs-bbcode) | -| Blade (Laravel) | blade | [highlightjs-blade](https://github.com/miken32/highlightjs-blade) | -| BNF | bnf | | -| BQN | bqn | [highlightjs-bqn](https://github.com/razetime/highlightjs-bqn) | -| Brainfuck | brainfuck, bf | | -| C# | csharp, cs | | -| C | c, h | | -| C++ | cpp, hpp, cc, hh, c++, h++, cxx, hxx | | -| C/AL | cal | | -| C3 | c3 | [highlightjs-c3](https://github.com/highlightjs/highlightjs-c3) | -| Cache Object Script | cos, cls | | -| Candid | candid, did | [highlightjs-motoko](https://github.com/rvanasa/highlightjs-motoko) | -| CMake | cmake, cmake.in | | -| COBOL | cobol, standard-cobol | [highlightjs-cobol](https://github.com/otterkit/highlightjs-cobol) | -| CODEOWNERS | codeowners | [highlightjs-codeowners](https://github.com/highlightjs/highlightjs-codeowners) | -| Coq | coq | | -| CSP | csp | | -| CSS | css | | -| Cap’n Proto | capnproto, capnp | | -| Chaos | chaos, kaos | [highlightjs-chaos](https://github.com/chaos-lang/highlightjs-chaos) | -| Chapel | chapel, chpl | [highlightjs-chapel](https://github.com/chapel-lang/highlightjs-chapel) | -| Cisco CLI | cisco | [highlightjs-cisco-cli](https://github.com/BMatheas/highlightjs-cisco-cli) | -| Clojure | clojure, clj | | -| CoffeeScript | coffeescript, coffee, cson, iced | | -| CpcdosC+ | cpc | [highlightjs-cpcdos](https://github.com/SPinti-Software/highlightjs-cpcdos) | -| Crmsh | crmsh, crm, pcmk | | -| Crystal | crystal, cr | | -| cURL | curl | [highlightjs-curl](https://github.com/highlightjs/highlightjs-curl) | -| Cypher (Neo4j) | cypher | [highlightjs-cypher](https://github.com/highlightjs/highlightjs-cypher) | -| D | d | | -| Dafny | dafny | [highlightjs-dafny](https://github.com/ConsenSys/highlightjs-dafny)| -| Dart | dart | | -| Delphi | dpr, dfm, pas, pascal | | -| Diff | diff, patch | | -| Django | django, jinja | | -| DNS Zone file | dns, zone, bind | | -| Dockerfile | dockerfile, docker | | -| DOS | dos, bat, cmd | | -| dsconfig | dsconfig | | -| DTS (Device Tree) | dts | | -| Dust | dust, dst | | -| Dylan | dylan | [highlightjs-dylan](https://github.com/highlightjs/highlightjs-dylan) | -| EBNF | ebnf | | -| Elixir | elixir | | -| Elm | elm | | -| Erlang | erlang, erl | | -| Excel | excel, xls, xlsx | | -| Extempore | extempore, xtlang, xtm | [highlightjs-xtlang](https://github.com/highlightjs/highlightjs-xtlang) | -| F# | fsharp, fs, fsx, fsi, fsscript | | -| FIX | fix | | -| Flix | flix | [highlightjs-flix](https://github.com/flix/highlightjs-flix) | -| Fortran | fortran, f90, f95 | | -| FunC | func | [highlightjs-func](https://github.com/highlightjs/highlightjs-func) | -| G-Code | gcode, nc | | -| Gams | gams, gms | | -| GAUSS | gauss, gss | | -| GDScript | godot, gdscript | [highlightjs-gdscript](https://github.com/highlightjs/highlightjs-gdscript) | -| Gherkin | gherkin | | -| Glimmer and EmberJS | hbs, glimmer, html.hbs, html.handlebars, htmlbars | [highlightjs-glimmer](https://github.com/NullVoxPopuli/highlightjs-glimmer) | -| GN for Ninja | gn, gni | [highlightjs-GN](https://github.com/highlightjs/highlightjs-GN) | -| Go | go, golang | | -| Grammatical Framework | gf | [highlightjs-gf](https://github.com/johnjcamilleri/highlightjs-gf) | -| Golo | golo, gololang | | -| Gradle | gradle | | -| GraphQL | graphql, gql | | -| Groovy | groovy | | -| GSQL | gsql | [highlightjs-gsql](https://github.com/DanBarkus/highlightjs-gsql) | -| HTML, XML | xml, html, xhtml, rss, atom, xjb, xsd, xsl, plist, svg | | -| HTTP | http, https | | -| Haml | haml | | -| Handlebars | handlebars, hbs, html.hbs, html.handlebars | | -| Haskell | haskell, hs | | -| Haxe | haxe, hx | | -| High-level shader language| hlsl | [highlightjs-hlsl](https://github.com/highlightjs/highlightjs-hlsl) | -| Hy | hy, hylang | | -| Ini, TOML | ini, toml | | -| Inform7 | inform7, i7 | | -| IRPF90 | irpf90 | | -| Iptables | iptables | [highlightjs-iptables](https://github.com/highlightjs/highlightjs-iptables) | -| JSON | json, jsonc | | -| JSONata | jsonata | [highlightjs-jsonata](https://github.com/DevDimov/highlightjs-jsonata) | -| Java | java, jsp | | -| JavaScript | javascript, js, jsx | | -| Jolie | jolie, iol, ol | [highlightjs-jolie](https://github.com/xiroV/highlightjs-jolie) | -| Julia | julia, jl | | -| Julia REPL | julia-repl | | -| Kotlin | kotlin, kt | | -| Lang | | [highlightjs-lang](https://github.com/highlightjs/highlightjs-lang) -| LaTeX | tex | | -| Leaf | leaf | | -| Lean | lean | [highlightjs-lean](https://github.com/leanprover-community/highlightjs-lean) | -| Lasso | lasso, ls, lassoscript | | -| Less | less | | -| LDIF | ldif | | -| Liquid | liquid | [highlightjs-liquid](https://github.com/highlightjs/highlightjs-liquid) | -| Lisp | lisp | | -| LiveCode Server | livecodeserver | | -| LiveScript | livescript, ls | | -| LookML | lookml | [highlightjs-lookml](https://github.com/spectacles-ci/highlightjs-lookml) | -| Lua | lua, pluto | | -| Luau | luau | [highlightjs-luau](https://github.com/highlightjs/highlightjs-luau) | -| Macaulay2 | macaulay2 | [highlightjs-macaulay2](https://github.com/d-torrance/highlightjs-macaulay2) | -| Makefile | makefile, mk, mak, make | | -| Markdown | markdown, md, mkdown, mkd | | -| Mathematica | mathematica, mma, wl | | -| Matlab | matlab | | -| Maxima | maxima | | -| Maya Embedded Language | mel | | -| Mercury | mercury | | -| MetaPost | metapost | [highlightjs-metapost](https://github.com/chupinmaxime/highlightjs-metapost) | | -| MIPS Assembler | mips, mipsasm | | -| Mint | mint | [highlightjs-mint](https://github.com/mint-lang/highlightjs-mint) | -| Mirth | mirth | [highlightjs-mirth](https://github.com/highlightjs/highlightjs-mirth) | -| mIRC Scripting Language | mirc, mrc | [highlightjs-mirc](https://github.com/highlightjs/highlightjs-mirc) | -| Mizar | mizar | | -| MKB | mkb | [highlightjs-mkb](https://github.com/Dereavy/highlightjs-mkb) | -| MLIR | mlir | [highlightjs-mlir](https://github.com/highlightjs/highlightjs-mlir) | -| Mojolicious | mojolicious | | -| Monkey | monkey | | -| Moonscript | moonscript, moon | | -| Motoko | motoko, mo | [highlightjs-motoko](https://github.com/rvanasa/highlightjs-motoko) | -| N1QL | n1ql | | -| NSIS | nsis | | -| Never | never | [highlightjs-never](https://github.com/never-lang/highlightjs-never) | -| Nginx | nginx, nginxconf | | -| Nim | nim, nimrod | | -| Nix | nix | | -| Oak | oak | [highlightjs-oak](https://github.com/timlabs/highlightjs-oak) | -| Object Constraint Language | ocl | [highlightjs-ocl](https://github.com/nhomble/highlightjs-ocl) | -| OCaml | ocaml, ml | | -| Objective C | objectivec, mm, objc, obj-c, obj-c++, objective-c++ | | -| Odin | odin | [highlightjs-odin](https://github.com/NinjasCL/highlightjs-odin) | -| OpenGL Shading Language | glsl | | -| OpenSCAD | openscad, scad | | -| Oracle Rules Language | ruleslanguage | | -| Oxygene | oxygene | | -| PF | pf, pf.conf | | -| PHP | php | | -| Papyrus | papyrus, psc |[highlightjs-papyrus](https://github.com/Pickysaurus/highlightjs-papyrus) | -| Parser3 | parser3 | | -| Perl | perl, pl, pm | | -| Phix | phix | [highlightjs-phix](https://github.com/highlightjs/highlightjs-phix) | -| Pine Script | pine, pinescript | [highlightjs-pine](https://github.com/jeyllani/highlightjs-pine) | -| Plaintext | plaintext, txt, text | | -| Pony | pony | | -| PostgreSQL & PL/pgSQL | pgsql, postgres, postgresql | | -| PowerOn | poweron, po | [highlightjs-poweron](https://github.com/libum-llc/highlightjs-poweron) | -| PowerShell | powershell, ps, ps1 | | -| Processing | processing | | -| Prolog | prolog | | -| Properties | properties | | -| Protocol Buffers | proto, protobuf | | -| Puppet | puppet, pp | | -| Python | python, py, gyp | | -| Python profiler results | profile | | -| Python REPL | python-repl, pycon | | -| Q# | qsharp | [highlightjs-qsharp](https://github.com/fedonman/highlightjs-qsharp) | -| Q | k, kdb | | -| QML | qml | | -| R | r | | -| Raku | raku, perl6, p6, pm6, rakumod | [highlightjs-raku](https://github.com/highlightjs/highlightjs-raku) | -| RakuDoc | pod6, rakudoc | [highlightjs-raku](https://github.com/highlightjs/highlightjs-raku) | -| RakuQuoting | rakuquoting | [highlightjs-raku](https://github.com/highlightjs/highlightjs-raku) | -| RakuRegexe | rakuregexe | [highlightjs-raku](https://github.com/highlightjs/highlightjs-raku) | -| Razor CSHTML | cshtml, razor, razor-cshtml | [highlightjs-cshtml-razor](https://github.com/highlightjs/highlightjs-cshtml-razor) | -| ReasonML | reasonml, re | | -| Rebol & Red | redbol, rebol, red, red-system | [highlightjs-redbol](https://github.com/oldes/highlightjs-redbol) | -| RenderMan RIB | rib | | -| RenderMan RSL | rsl | | -| ReScript | rescript, res | [highlightjs-rescript](https://github.com/tsnobip/highlightjs-rescript) | -| RiScript | risc, riscript | [highlightjs-riscript](https://github.com/highlightjs/highlightjs-riscript) | -| RISC-V Assembly | riscv, riscvasm | [highlightjs-riscvasm](https://github.com/highlightjs/highlightjs-riscvasm) | -| Roboconf | graph, instances | | -| Robot Framework | robot, rf | [highlightjs-robot](https://github.com/highlightjs/highlightjs-robot) | -| RPM spec files | rpm-specfile, rpm, spec, rpm-spec, specfile | [highlightjs-rpm-specfile](https://github.com/highlightjs/highlightjs-rpm-specfile) | -| Ruby | ruby, rb, gemspec, podspec, thor, irb | | -| Rust | rust, rs | | -| RVT Script | rvt, rvt-script | [highlightjs-rvt-script](https://github.com/Sopitive/highlightjs-rvt-script) | -| SAS | SAS, sas | | -| SCSS | scss | | -| SQL | sql | | -| STEP Part 21 | p21, step, stp | | -| Scala | scala | | -| Scheme | scheme | | -| Scilab | scilab, sci | | -| SFZ | sfz | [highlightjs-sfz](https://github.com/sfz/highlight.js) | -| Shape Expressions | shexc | [highlightjs-shexc](https://github.com/highlightjs/highlightjs-shexc) | -| Shell | shell, console | | -| Smali | smali | | -| Smalltalk | smalltalk, st | | -| SML | sml, ml | | -| Solidity | solidity, sol | [highlightjs-solidity](https://github.com/highlightjs/highlightjs-solidity) | -| Splunk SPL | spl | [highlightjs-spl](https://github.com/swsoyee/highlightjs-spl) | -| Stan | stan, stanfuncs | | -| Stata | stata | | -| Structured Text | iecst, scl, stl, structured-text | [highlightjs-structured-text](https://github.com/highlightjs/highlightjs-structured-text) | -| Stylus | stylus, styl | | -| SubUnit | subunit | | -| Supercollider | supercollider, sc | [highlightjs-supercollider](https://github.com/highlightjs/highlightjs-supercollider) | -| Svelte | svelte | [highlight.svelte](https://github.com/moonlitgrace/highlight.svelte) | -| Swift | swift | | -| Tcl | tcl, tk | | -| Terraform (HCL) | terraform, tf, hcl | [highlightjs-terraform](https://github.com/highlightjs/highlightjs-terraform) | -| Test Anything Protocol | tap | | -| Thrift | thrift | | -| Toit | toit | [toit-highlight](https://github.com/snxx-lppxx/toit-highlight) | -| TP | tp | | -| Transact-SQL | tsql | [highlightjs-tsql](https://github.com/highlightjs/highlightjs-tsql) | -| TTCN-3 | ttcn, ttcnpp, ttcn3 | [highlightjs-ttcn3](https://gitea.osmocom.org/ttcn3/highlightjs-ttcn3) | -| Twig | twig, craftcms | | -| TypeScript | typescript, ts, tsx, mts, cts | | -| Unicorn Rails log | unicorn-rails-log | [highlightjs-unicorn-rails-log](https://github.com/sweetppro/highlightjs-unicorn-rails-log) | -| Unison | unison, u | [highlightjs-unison](https://github.com/highlightjs/highlightjs-unison) | -| VB.Net | vbnet, vb | | -| VBA | vba | [highlightjs-vba](https://github.com/dullin/highlightjs-vba) | -| VBScript | vbscript, vbs | | -| VHDL | vhdl | | -| Vala | vala | | -| Verilog | verilog, v | | -| Vim Script | vim | | -| WGSL | wgsl | [highlightjs-wgsl](https://github.com/highlightjs/highlightjs-wgsl) | -| X# | xsharp, xs, prg | [highlightjs-xsharp](https://github.com/InfomindsAg/highlightjs-xsharp) | -| X++ | axapta, x++ | | -| x86 Assembly | x86asm | | -| x86 Assembly (AT&T) | x86asmatt | [highlightjs-x86asmatt](https://github.com/gondow/highlightjs-x86asmatt) | -| XL | xl, tao | | -| XQuery | xquery, xpath, xq, xqm | | -| YAML | yml, yaml | | -| ZenScript | zenscript, zs |[highlightjs-zenscript](https://github.com/highlightjs/highlightjs-zenscript) | -| Zephir | zephir, zep | | -| Zig | zig |[highlightjs-zig](https://github.com/fwx5618177/highlightjs-zig) | - - - -## Alias Overlap - -If you are using either of these languages at the same time please be sure to -use the full name and not the alias to avoid any ambiguity. - -| Language | Overlap | -| :-----------------------| :--------------------- | -| SML | ml | -| OCaml | ml | -| Lasso | ls | -| LiveScript | ls | - - -[1]: https://github.com/highlightjs/highlight.js#getting-the-library -[2]: https://github.com/highlightjs/highlight.js#importing-the-library diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/VERSION_10_UPGRADE.md b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/VERSION_10_UPGRADE.md deleted file mode 100644 index 645c88e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/VERSION_10_UPGRADE.md +++ /dev/null @@ -1,58 +0,0 @@ -# Upgrading to Version 10.0 - -Welcome to version 10.0. This a major release and therefore will contain breaking changes. - -## Breaking Changes - -Our normal minor releases try to never break anything, holding all breaking changes for major releases. -We tried to squeeze in as many as we could this time so that after 10.0 ships we'll be back to quiet sailing for a while before we need to push version 11. That said, we're very conservative about what we consider a breaking change. - -*IE, if there it could possibly break things for anyone, it's typically a breaking change.* The fact is a vast majority of users should upgrade and probably not notice any changes at all. - -See [VERSION_10_BREAKING_CHANGES.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_10_BREAKING_CHANGES.md) for a comprehensive list of breaking changes, but here is a summary... if you use: - -### Core highlight.js lib on the client (with no extra CDN languages) - -Just keep doing that. - -- If you're using `darkula.css`, you'll need to change that to `darcula.css` -- The minified distributable has changed from `.pack.js` to `.min.js`, update your name when you update your URL. -- If your users have very old browsers, they may no longer be supported (no more IE11, etc.). (We're using ES2015 code now.) -- `nohighlight` or `no-highlight` are the only two CSS classes that will SKIP highlighting completely. `*text*` and `*plain*` no longer will do this. - -### Core highlight.js lib on the client (plus additional CDN languages) - -Quite a few grammars have been renamed. Ex: `nimrod.js` is now `nim.js`. - -- Check the renamed grammars to see if you might need to update your links. -- Be aware that you can't use version 9 CDN JS files anymore, they aren't compatible. -- Plus read the above list of items. - -### highlight.js on the server (via NPM) and only use the public API - -If you're just pulling in the FULL library (`require('./highlight.js')`) just keep doing that. You might not need to change anything. - -- If you're manually loading a smaller set of languages and using `registerLanguage` make sure you check out all the renamed grammars and dependency changes. -- Read the client-side lists above also. - -### highlight.js on the server (via NPM) with a custom integration - -Read the complete breaking changes list carefully. - -- Read the client-side lists above also. - -### highlight.js lib on the client, with source directly from our GitHub repo - -That will no longer work. The source needs to be built to work properly and cannot be used "raw" unless you've also setup your own build pipeline (rollup, etc.). Fetch a static build from the CDN, the [cdn-release repo](https://github.com/highlightjs/cdn-release) or use the new [`highlightjs-dist`]() NPM package. - -### highlight.js source code directly from our GitHub repo with a custom integration - -All bets are off, since we only try to guarantee stability of our NPM and CDN builds and the public API. Read all the breaking changes and perhaps skim the commit history. - -- We're using ES6 modules now. -- We're using an entirely new build system. -- The source will likely become more and more modular during the 10.0 timeline. - -## Enjoy and good luck. - -As always if you have any questions or issues, jump on the [Github Issues](https://github.com/highlightjs/highlight.js/issues). diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/VERSION_11_UPGRADE.md b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/VERSION_11_UPGRADE.md deleted file mode 100644 index 29364ca..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/VERSION_11_UPGRADE.md +++ /dev/null @@ -1,203 +0,0 @@ -# Upgrading to Highlight.js v11.0 - -- [Overview of Breaking Changes](#overview-of-breaking-changes) - - [Built-in set of "Common" Languages](#built-in-set-of-common-languages) - - [Language Files](#language-files) - - [Language Aliases](#language-aliases) - - [Styles and CSS](#styles-and-css) - - [Grammar Scopes](#grammar-scopes) - - [Behavioral changes](#behavioral-changes) - - [API changes](#api-changes) - - [Changes to Result Data](#changes-to-result-data) - - [Feature Removal](#feature-removal) - - [Small Things](#small-things) - - [Upgrading from Version 9.x](#upgrading-from-version-9x) - - -## Overview of Breaking Changes - -Welcome to version 11.0. This a major release and therefore contains breaking changes. Below is a complete list of those such changes. - - -### Built-in set of "Common" Languages - -The default `highlight.min.js` build **removes** a few less popular grammars: - -- apache -- http -- nginx -- properties -- coffeescript - -If you need any of these, you can always create a custom build. - -Ref: https://github.com/highlightjs/highlight.js/issues/2848 - - -### Language Files - -This would matter if you are requiring any of these files directly (via Node.js or CDN). - -- `htmlbars` has been removed. Use `handlebars` instead. -- `c-like` has been removed. Use `c`, `cpp`, or `arduino`. -- `sql_more` has been removed. Use `sql` instead or a more specific 3rd party grammar. - - -### Language Aliases - -This would matter if you are using these aliases. - -- `php3`,`php4`,`php5`, `php6`, `php7`, and `php8` have been removed. Use `php` instead. -- `zsh` has been removed. Use `sh` or `bash` instead. -- `freepascal`, `lazarus`, `lpr`, and `lpm` removed. Use `delphi` instead. - -You can of course re-register any of these aliases easily if necessary. For example to restore the PHP aliases: - -```js -hljs.registerAliases(["php3","php4","php5","php6","php7","php8"],{ languageName: "php" }) -``` - -### Styles and CSS - -- The default padding on `.hljs` element has been increased and is now `1em` (it was `0.5em` previously). If your design depends on the smaller spacing you may need to update your CSS to override. -- `schoolbook` no longer has a custom lined background, it is solid color now. The old image and CSS can be found in the [10-stable branch](https://github.com/highlightjs/highlight.js/tree/10-stable/src/styles) if you wish to manually copy it into your project. -- `github` includes significant changes to more properly match modern GitHub syntax highlighting. If you desire the old theme you can manually copy it into your project from the [10-stable branch](https://github.com/highlightjs/highlight.js/tree/10-stable/src/styles). -- `github-gist` has been removed in favor of `github` as GitHub and GitHub Gist have converged. If you desire the theme you can manually copy it into your project from the [10-stable branch](https://github.com/highlightjs/highlight.js/tree/10-stable/src/styles). -- The `.hljs` CSS selector is now further scoped. It now targets `code.hljs` (inline code) and `pre code.hljs` (code blocks). If you are using a different element you may need to update your CSS to reapply some styling. -- All [Base16 themes](https://github.com/highlightjs/base16-highlightjs) now live in the `styles/base16` directory - this means some CSS files have moved. Please confirm themes you use reference the new locations. - - -#### Grammar Scopes - -- `.meta-string` removed/deprecated. Use `.meta .string` (a nested scope) instead. See [meta-keyword][]. -- `.meta-keyword` removed/deprecated. Use `.meta .keyword` (a nested scope) instead. See [meta-keyword][]. - -### Behavioral changes - -- `after:highlightElement` plugin callback is now fired *after* the DOM has been updated, not before. - -#### API changes - -- The option `ignoreIllegals` is now `true` by default (for `highlight()`). Previously it was `false`. -- The `highlight(language,code, ...args)` API no longer accepts `continuation` as a 4th argument. -- The `highlight(language,code, ...args)` API is deprecated (to be removed in 12.0). - -The new call signature is `highlight(code, {options})`. ([see docs](https://highlightjs.readthedocs.io/en/latest/api.html#highlight)) - -Code using the old API: - -```js -// highlight(language, code, ignoreIllegals, continuation) -highlight("javascript", "var a = 5;", true) -``` -...would be upgraded to the newer API as follows: - -```js -// highlight(code, {language, ignoreIllegals}) -highlight("var a = 5;", {language: "javascript", ignoreIllegals: true}) -``` - -The new API purposely does not support `continuation` as this is only intended for internal library usage. - -- `initHighlighting()` is deprecated (to be removed in 12.0). -- `initHighlightingOnLoad()` is deprecated (to be removed in 12.0). - -**Use `highlightAll()` instead.** ([see docs](https://highlightjs.readthedocs.io/en/latest/api.html#highlight-all)) The old functions are now simply aliases of `highlightAll()`. The new function may be called before or after the DOM is loaded and should do the correct thing in all cases, replacing the need for the previous individual functions. - -Note: `highlightAll()` does not guard against calling itself repeatedly as the previous functions did. Your code should be careful to avoid doing this. - -- `highlightBlock()` is deprecated (to be removed in 12.0). - -**Use `highlightElement()` instead.** ([see docs](https://highlightjs.readthedocs.io/en/latest/api.html#highlight-element)) This is merely a naming change. - -Note: The object literal passed to the `before:highlightElement` callback now passes the element in the `el` key vs the `block` key. - -##### Changes to Result Data - -- `highlightAuto()`'s `second_best` key has been renamed to `secondBest` -- `highlightElement()`'s result now no longer includes a `re` key. Use the `relevance` key now. -- `highlight()` renames some result keys to more clearly mark them as private: `_top`, `_emitter`, and `_illegalBy`. You should not depend on these keys as they are subject to change at any time. -- The `relevance` key returned by `highlight()` is no longer guaranteed to be an even integer. -- `highlightElement` now always tags blocks with a consistent `language-[name]` class - -This behavior was inconsistent before. Sometimes `[name]` class would be added, sometimes the alias name would be added, something no class would be added. now `language-[name]` is always added. This also affects sublanguage `span` tags which now also include the `language-` prefix. - -#### Feature Removal - -- HTML auto-passthru is now no longer included in core. Use a plugin instead. For a possible plugin please see [#2889](https://github.com/highlightjs/highlight.js/issues/2889). - -An example: - -```html -

-var a = 4;
-var a = 4;
-
-``` - -Unescaped HTML like this will now be ignored (stripped before highlighting) and a warning will be logged to the console. All HTML to be highlighted should be properly escaped to avoid potential HTML/JS injection attacks. - -- `fixMarkup` has been removed. - -This function was deprecated in v10.2. It is not our goal to provide random string utilities. You may need to provide your own replacement [Ref: #2534](https://github.com/highlightjs/highlight.js/issues/2634) - -- `CSS_NUMBER_MODE` has been removed. - -This rule was too broad for bring inclusion in core and has been removed. - -- `lexemes` mode attribute has been removed. - -Use the new `keywords.$pattern` instead. - -Before: - -```js -{ - keywords: "do.it start.now begin.later end.immediately" - lexemes: /[a-z.]+/ -} -``` - -After: - -```js -{ - keywords: { - $pattern: /[a-z.]+/ - keyword: "do.it start.now begin.later end.immediately", - } -} -``` - -This may required converting your `keywords` key into an object if it's not already (as shown above). - -- `endSameAsBegin` mode attribute has been removed. - -Use the new `END_SAME_AS_BEGIN` mode rule/function instead. - -- `useBR` configuration has been removed. - -This configuration option was deprecated in v10.1. Use a plugin or preferably simply CSS `white-space: pre`. [Ref: #2559](https://github.com/highlightjs/highlight.js/issues/2559) - - -- `tabReplace` configuration has been removed. - -This configuration option was deprecated in v10.5. Use a plugin or pre-render content instead with desired spacing. [Ref: #2874](https://github.com/highlightjs/highlight.js/issues/2874) - - - - - -### Small Things - -- The `regex` utility `join` has been renamed to `_eitherRewriteBackreferences` (this has always been intended for internal use only) - -### Upgrading from Version 9.x - -If you're upgrading all the way from version 9 it may still be helpful to review all the breaking changes in version 10 as well: - -- [VERSION_10_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_10_UPGRADE.md) -- [VERSION_10_BREAKING_CHANGES.md](https://github.com/highlightjs/highlight.js/blob/main/VERSION_10_BREAKING_CHANGES.md) - - -[meta-keyword]: https://github.com/highlightjs/highlight.js/pull/3167 diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.d.ts b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.d.ts deleted file mode 100644 index 202edff..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import hljs from "highlight.js"; -export default hljs; - diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js deleted file mode 100644 index 94dcc95..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +++ /dev/null @@ -1,4 +0,0 @@ -// https://nodejs.org/api/packages.html#packages_writing_dual_packages_while_avoiding_or_minimizing_hazards -import HighlightJS from '../lib/common.js'; -export { HighlightJS }; -export default HighlightJS; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.d.ts b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.d.ts deleted file mode 100644 index 202edff..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import hljs from "highlight.js"; -export default hljs; - diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js deleted file mode 100644 index f115fde..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +++ /dev/null @@ -1,4 +0,0 @@ -// https://nodejs.org/api/packages.html#packages_writing_dual_packages_while_avoiding_or_minimizing_hazards -import HighlightJS from '../lib/core.js'; -export { HighlightJS }; -export default HighlightJS; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/index.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/index.js deleted file mode 100644 index 603e048..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/index.js +++ /dev/null @@ -1,4 +0,0 @@ -// https://nodejs.org/api/packages.html#packages_writing_dual_packages_while_avoiding_or_minimizing_hazards -import HighlightJS from '../lib/index.js'; -export { HighlightJS }; -export default HighlightJS; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/1c.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/1c.js deleted file mode 100644 index 206f9b5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/1c.js +++ /dev/null @@ -1,544 +0,0 @@ -/* -Language: 1C:Enterprise -Author: Stanislav Belov -Description: built-in language 1C:Enterprise (v7, v8) -Category: enterprise -*/ - -function _1c(hljs) { - // общий паттерн для определения идентификаторов - const UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+'; - - // v7 уникальные ключевые слова, отсутствующие в v8 ==> keyword - const v7_keywords = - 'далее '; - - // v8 ключевые слова ==> keyword - const v8_keywords = - 'возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли ' - + 'конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт '; - - // keyword : ключевые слова - const KEYWORD = v7_keywords + v8_keywords; - - // v7 уникальные директивы, отсутствующие в v8 ==> meta-keyword - const v7_meta_keywords = - 'загрузитьизфайла '; - - // v8 ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях ==> meta-keyword - const v8_meta_keywords = - 'вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер ' - + 'наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед ' - + 'после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент '; - - // meta-keyword : ключевые слова в инструкциях препроцессора, директивах компиляции, аннотациях - const METAKEYWORD = v7_meta_keywords + v8_meta_keywords; - - // v7 системные константы ==> built_in - const v7_system_constants = - 'разделительстраниц разделительстрок символтабуляции '; - - // v7 уникальные методы глобального контекста, отсутствующие в v8 ==> built_in - const v7_global_context_methods = - 'ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов ' - + 'датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя ' - + 'кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца ' - + 'коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид ' - + 'назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца ' - + 'начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов ' - + 'основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута ' - + 'получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта ' - + 'префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына ' - + 'рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента ' - + 'счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон '; - - // v8 методы глобального контекста ==> built_in - const v8_global_context_methods = - 'acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока ' - + 'xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ' - + 'ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации ' - + 'выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода ' - + 'деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы ' - + 'загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации ' - + 'заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию ' - + 'значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла ' - + 'изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке ' - + 'каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку ' - + 'кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты ' - + 'конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы ' - + 'копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти ' - + 'найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы ' - + 'началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя ' - + 'начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты ' - + 'начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов ' - + 'начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя ' - + 'начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога ' - + 'начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией ' - + 'начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы ' - + 'номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения ' - + 'обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении ' - + 'отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения ' - + 'открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально ' - + 'отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа ' - + 'перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту ' - + 'подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения ' - + 'подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки ' - + 'показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение ' - + 'показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя ' - + 'получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса ' - + 'получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора ' - + 'получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса ' - + 'получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации ' - + 'получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла ' - + 'получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации ' - + 'получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления ' - + 'получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу ' - + 'получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы ' - + 'получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет ' - + 'получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима ' - + 'получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения ' - + 'получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути ' - + 'получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы ' - + 'получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю ' - + 'получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных ' - + 'получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию ' - + 'получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище ' - + 'поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода ' - + 'представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение ' - + 'прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока ' - + 'рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных ' - + 'раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени ' - + 'смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить ' - + 'состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс ' - + 'строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений ' - + 'стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах ' - + 'текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации ' - + 'текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы ' - + 'удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим ' - + 'установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту ' - + 'установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных ' - + 'установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации ' - + 'установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения ' - + 'установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования ' - + 'установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима ' - + 'установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим ' - + 'установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией ' - + 'установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы ' - + 'установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса ' - + 'формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища '; - - // v8 свойства глобального контекста ==> built_in - const v8_global_context_property = - 'wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы ' - + 'внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль ' - + 'документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты ' - + 'историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений ' - + 'отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик ' - + 'планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок ' - + 'рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений ' - + 'регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа ' - + 'средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек ' - + 'хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков ' - + 'хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек '; - - // built_in : встроенные или библиотечные объекты (константы, классы, функции) - const BUILTIN = - v7_system_constants - + v7_global_context_methods + v8_global_context_methods - + v8_global_context_property; - - // v8 системные наборы значений ==> class - const v8_system_sets_of_values = - 'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля '; - - // v8 системные перечисления - интерфейсные ==> class - const v8_system_enums_interface = - 'автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий ' - + 'анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы ' - + 'вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы ' - + 'виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя ' - + 'видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение ' - + 'горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы ' - + 'группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания ' - + 'интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки ' - + 'используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы ' - + 'источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева ' - + 'начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ' - + 'ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме ' - + 'отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы ' - + 'отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы ' - + 'отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы ' - + 'отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска ' - + 'отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования ' - + 'отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта ' - + 'отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы ' - + 'поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы ' - + 'поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы ' - + 'положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы ' - + 'положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы ' - + 'положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском ' - + 'положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы ' - + 'размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта ' - + 'режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты ' - + 'режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения ' - + 'режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра ' - + 'режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения ' - + 'режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы ' - + 'режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки ' - + 'режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание ' - + 'сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы ' - + 'способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление ' - + 'статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы ' - + 'типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы ' - + 'типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления ' - + 'типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы ' - + 'типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы ' - + 'типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений ' - + 'типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы ' - + 'типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы ' - + 'типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы ' - + 'факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени ' - + 'форматкартинки ширинаподчиненныхэлементовформы '; - - // v8 системные перечисления - свойства прикладных объектов ==> class - const v8_system_enums_objects_properties = - 'виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса ' - + 'использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения ' - + 'использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента '; - - // v8 системные перечисления - планы обмена ==> class - const v8_system_enums_exchange_plans = - 'авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных '; - - // v8 системные перечисления - табличный документ ==> class - const v8_system_enums_tabular_document = - 'использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы ' - + 'положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента ' - + 'способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента ' - + 'типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента ' - + 'типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы ' - + 'типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента ' - + 'типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц '; - - // v8 системные перечисления - планировщик ==> class - const v8_system_enums_sheduler = - 'отображениевремениэлементовпланировщика '; - - // v8 системные перечисления - форматированный документ ==> class - const v8_system_enums_formatted_document = - 'типфайлаформатированногодокумента '; - - // v8 системные перечисления - запрос ==> class - const v8_system_enums_query = - 'обходрезультатазапроса типзаписизапроса '; - - // v8 системные перечисления - построитель отчета ==> class - const v8_system_enums_report_builder = - 'видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов '; - - // v8 системные перечисления - работа с файлами ==> class - const v8_system_enums_files = - 'доступкфайлу режимдиалогавыборафайла режимоткрытияфайла '; - - // v8 системные перечисления - построитель запроса ==> class - const v8_system_enums_query_builder = - 'типизмеренияпостроителязапроса '; - - // v8 системные перечисления - анализ данных ==> class - const v8_system_enums_data_analysis = - 'видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных ' - + 'типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений ' - + 'типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций ' - + 'типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных ' - + 'типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных ' - + 'типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений '; - - // v8 системные перечисления - xml, json, xs, dom, xdto, web-сервисы ==> class - const v8_system_enums_xml_json_xs_dom_xdto_ws = - 'wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto ' - + 'действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs ' - + 'исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs ' - + 'методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ' - + 'ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson ' - + 'типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs ' - + 'форматдатыjson экранированиесимволовjson '; - - // v8 системные перечисления - система компоновки данных ==> class - const v8_system_enums_data_composition_system = - 'видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных ' - + 'расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных ' - + 'расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных ' - + 'расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных ' - + 'типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных ' - + 'типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных ' - + 'типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных ' - + 'расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных ' - + 'режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных ' - + 'режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных ' - + 'вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных ' - + 'использованиеусловногооформлениякомпоновкиданных '; - - // v8 системные перечисления - почта ==> class - const v8_system_enums_email = - 'важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения ' - + 'способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты ' - + 'статусразборапочтовогосообщения '; - - // v8 системные перечисления - журнал регистрации ==> class - const v8_system_enums_logbook = - 'режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации '; - - // v8 системные перечисления - криптография ==> class - const v8_system_enums_cryptography = - 'расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии ' - + 'типхранилищасертификатовкриптографии '; - - // v8 системные перечисления - ZIP ==> class - const v8_system_enums_zip = - 'кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip ' - + 'режимсохраненияпутейzip уровеньсжатияzip '; - - // v8 системные перечисления - - // Блокировка данных, Фоновые задания, Автоматизированное тестирование, - // Доставляемые уведомления, Встроенные покупки, Интернет, Работа с двоичными данными ==> class - const v8_system_enums_other = - 'звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных ' - + 'сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp '; - - // v8 системные перечисления - схема запроса ==> class - const v8_system_enums_request_schema = - 'направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса ' - + 'типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса '; - - // v8 системные перечисления - свойства объектов метаданных ==> class - const v8_system_enums_properties_of_metadata_objects = - 'httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления ' - + 'видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование ' - + 'использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения ' - + 'использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита ' - + 'назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных ' - + 'оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи ' - + 'основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении ' - + 'периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений ' - + 'повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение ' - + 'разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита ' - + 'режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности ' - + 'режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов ' - + 'режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса ' - + 'режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов ' - + 'сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования ' - + 'типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса ' - + 'типномерадокумента типномеразадачи типформы удалениедвижений '; - - // v8 системные перечисления - разные ==> class - const v8_system_enums_differents = - 'важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения ' - + 'вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки ' - + 'видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак ' - + 'использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога ' - + 'кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных ' - + 'отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения ' - + 'режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных ' - + 'способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter ' - + 'типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты'; - - // class: встроенные наборы значений, системные перечисления (содержат дочерние значения, обращения к которым через разыменование) - const CLASS = - v8_system_sets_of_values - + v8_system_enums_interface - + v8_system_enums_objects_properties - + v8_system_enums_exchange_plans - + v8_system_enums_tabular_document - + v8_system_enums_sheduler - + v8_system_enums_formatted_document - + v8_system_enums_query - + v8_system_enums_report_builder - + v8_system_enums_files - + v8_system_enums_query_builder - + v8_system_enums_data_analysis - + v8_system_enums_xml_json_xs_dom_xdto_ws - + v8_system_enums_data_composition_system - + v8_system_enums_email - + v8_system_enums_logbook - + v8_system_enums_cryptography - + v8_system_enums_zip - + v8_system_enums_other - + v8_system_enums_request_schema - + v8_system_enums_properties_of_metadata_objects - + v8_system_enums_differents; - - // v8 общие объекты (у объектов есть конструктор, экземпляры создаются методом НОВЫЙ) ==> type - const v8_shared_object = - 'comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs ' - + 'блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема ' - + 'географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма ' - + 'диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания ' - + 'диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление ' - + 'записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom ' - + 'запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта ' - + 'интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs ' - + 'использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных ' - + 'итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла ' - + 'компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных ' - + 'конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных ' - + 'макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson ' - + 'обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs ' - + 'объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации ' - + 'описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных ' - + 'описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs ' - + 'определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom ' - + 'определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных ' - + 'параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных ' - + 'полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных ' - + 'построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml ' - + 'процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент ' - + 'процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml ' - + 'результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto ' - + 'сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows ' - + 'сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш ' - + 'сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент ' - + 'текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток ' - + 'фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs ' - + 'фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs ' - + 'фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs ' - + 'фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент ' - + 'фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла ' - + 'чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных '; - - // v8 универсальные коллекции значений ==> type - const v8_universal_collection = - 'comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура ' - + 'фиксированноесоответствие фиксированныймассив '; - - // type : встроенные типы - const TYPE = - v8_shared_object - + v8_universal_collection; - - // literal : примитивные типы - const LITERAL = 'null истина ложь неопределено'; - - // number : числа - const NUMBERS = hljs.inherit(hljs.NUMBER_MODE); - - // string : строки - const STRINGS = { - className: 'string', - begin: '"|\\|', - end: '"|$', - contains: [ { begin: '""' } ] - }; - - // number : даты - const DATE = { - begin: "'", - end: "'", - excludeBegin: true, - excludeEnd: true, - contains: [ - { - className: 'number', - begin: '\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}' - } - ] - }; - - const PUNCTUATION = { - match: /[;()+\-:=,]/, - className: "punctuation", - relevance: 0 - }; - - // comment : комментарии - const COMMENTS = hljs.inherit(hljs.C_LINE_COMMENT_MODE); - - // meta : инструкции препроцессора, директивы компиляции - const META = { - className: 'meta', - - begin: '#|&', - end: '$', - keywords: { - $pattern: UNDERSCORE_IDENT_RE, - keyword: KEYWORD + METAKEYWORD - }, - contains: [ COMMENTS ] - }; - - // symbol : метка goto - const SYMBOL = { - className: 'symbol', - begin: '~', - end: ';|:', - excludeEnd: true - }; - - // function : объявление процедур и функций - const FUNCTION = { - className: 'function', - variants: [ - { - begin: 'процедура|функция', - end: '\\)', - keywords: 'процедура функция' - }, - { - begin: 'конецпроцедуры|конецфункции', - keywords: 'конецпроцедуры конецфункции' - } - ], - contains: [ - { - begin: '\\(', - end: '\\)', - endsParent: true, - contains: [ - { - className: 'params', - begin: UNDERSCORE_IDENT_RE, - end: ',', - excludeEnd: true, - endsWithParent: true, - keywords: { - $pattern: UNDERSCORE_IDENT_RE, - keyword: 'знач', - literal: LITERAL - }, - contains: [ - NUMBERS, - STRINGS, - DATE - ] - }, - COMMENTS - ] - }, - hljs.inherit(hljs.TITLE_MODE, { begin: UNDERSCORE_IDENT_RE }) - ] - }; - - return { - name: '1C:Enterprise', - case_insensitive: true, - keywords: { - $pattern: UNDERSCORE_IDENT_RE, - keyword: KEYWORD, - built_in: BUILTIN, - class: CLASS, - type: TYPE, - literal: LITERAL - }, - contains: [ - META, - FUNCTION, - COMMENTS, - SYMBOL, - NUMBERS, - STRINGS, - DATE, - PUNCTUATION - ] - }; -} - -export { _1c as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/1c.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/1c.js.js deleted file mode 100644 index af41c0e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/1c.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/1c" instead of "highlight.js/lib/languages/1c.js"' - ); - } - } - emitWarning(); - import lang from './1c.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/abnf.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/abnf.js deleted file mode 100644 index 8b7d81f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/abnf.js +++ /dev/null @@ -1,83 +0,0 @@ -/* -Language: Augmented Backus-Naur Form -Author: Alex McKibben -Website: https://tools.ietf.org/html/rfc5234 -Category: syntax -Audit: 2020 -*/ - -/** @type LanguageFn */ -function abnf(hljs) { - const regex = hljs.regex; - const IDENT = /^[a-zA-Z][a-zA-Z0-9-]*/; - - const KEYWORDS = [ - "ALPHA", - "BIT", - "CHAR", - "CR", - "CRLF", - "CTL", - "DIGIT", - "DQUOTE", - "HEXDIG", - "HTAB", - "LF", - "LWSP", - "OCTET", - "SP", - "VCHAR", - "WSP" - ]; - - const COMMENT = hljs.COMMENT(/;/, /$/); - - const TERMINAL_BINARY = { - scope: "symbol", - match: /%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/ - }; - - const TERMINAL_DECIMAL = { - scope: "symbol", - match: /%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/ - }; - - const TERMINAL_HEXADECIMAL = { - scope: "symbol", - match: /%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/ - }; - - const CASE_SENSITIVITY = { - scope: "symbol", - match: /%[si](?=".*")/ - }; - - const RULE_DECLARATION = { - scope: "attribute", - match: regex.concat(IDENT, /(?=\s*=)/) - }; - - const ASSIGNMENT = { - scope: "operator", - match: /=\/?/ - }; - - return { - name: 'Augmented Backus-Naur Form', - illegal: /[!@#$^&',?+~`|:]/, - keywords: KEYWORDS, - contains: [ - ASSIGNMENT, - RULE_DECLARATION, - COMMENT, - TERMINAL_BINARY, - TERMINAL_DECIMAL, - TERMINAL_HEXADECIMAL, - CASE_SENSITIVITY, - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE - ] - }; -} - -export { abnf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/abnf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/abnf.js.js deleted file mode 100644 index dc6be99..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/abnf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/abnf" instead of "highlight.js/lib/languages/abnf.js"' - ); - } - } - emitWarning(); - import lang from './abnf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/accesslog.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/accesslog.js deleted file mode 100644 index fa4b977..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/accesslog.js +++ /dev/null @@ -1,92 +0,0 @@ -/* - Language: Apache Access Log - Author: Oleg Efimov - Description: Apache/Nginx Access Logs - Website: https://httpd.apache.org/docs/2.4/logs.html#accesslog - Category: web, logs - Audit: 2020 - */ - -/** @type LanguageFn */ -function accesslog(hljs) { - const regex = hljs.regex; - // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods - const HTTP_VERBS = [ - "GET", - "POST", - "HEAD", - "PUT", - "DELETE", - "CONNECT", - "OPTIONS", - "PATCH", - "TRACE" - ]; - return { - name: 'Apache Access Log', - contains: [ - // IP - { - className: 'number', - begin: /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/, - relevance: 5 - }, - // Other numbers - { - className: 'number', - begin: /\b\d+\b/, - relevance: 0 - }, - // Requests - { - className: 'string', - begin: regex.concat(/"/, regex.either(...HTTP_VERBS)), - end: /"/, - keywords: HTTP_VERBS, - illegal: /\n/, - relevance: 5, - contains: [ - { - begin: /HTTP\/[12]\.\d'/, - relevance: 5 - } - ] - }, - // Dates - { - className: 'string', - // dates must have a certain length, this prevents matching - // simple array accesses a[123] and [] and other common patterns - // found in other languages - begin: /\[\d[^\]\n]{8,}\]/, - illegal: /\n/, - relevance: 1 - }, - { - className: 'string', - begin: /\[/, - end: /\]/, - illegal: /\n/, - relevance: 0 - }, - // User agent / relevance boost - { - className: 'string', - begin: /"Mozilla\/\d\.\d \(/, - end: /"/, - illegal: /\n/, - relevance: 3 - }, - // Strings - { - className: 'string', - begin: /"/, - end: /"/, - illegal: /\n/, - relevance: 0 - } - ] - }; -} - -export { accesslog as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/accesslog.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/accesslog.js.js deleted file mode 100644 index 5cfe625..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/accesslog.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/accesslog" instead of "highlight.js/lib/languages/accesslog.js"' - ); - } - } - emitWarning(); - import lang from './accesslog.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/actionscript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/actionscript.js deleted file mode 100644 index e267f58..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/actionscript.js +++ /dev/null @@ -1,153 +0,0 @@ -/* -Language: ActionScript -Author: Alexander Myadzel -Category: scripting -Audit: 2020 -*/ - -/** @type LanguageFn */ -function actionscript(hljs) { - const regex = hljs.regex; - const IDENT_RE = /[a-zA-Z_$][a-zA-Z0-9_$]*/; - const PKG_NAME_RE = regex.concat( - IDENT_RE, - regex.concat("(\\.", IDENT_RE, ")*") - ); - const IDENT_FUNC_RETURN_TYPE_RE = /([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/; - - const AS3_REST_ARG_MODE = { - className: 'rest_arg', - begin: /[.]{3}/, - end: IDENT_RE, - relevance: 10 - }; - - const KEYWORDS = [ - "as", - "break", - "case", - "catch", - "class", - "const", - "continue", - "default", - "delete", - "do", - "dynamic", - "each", - "else", - "extends", - "final", - "finally", - "for", - "function", - "get", - "if", - "implements", - "import", - "in", - "include", - "instanceof", - "interface", - "internal", - "is", - "namespace", - "native", - "new", - "override", - "package", - "private", - "protected", - "public", - "return", - "set", - "static", - "super", - "switch", - "this", - "throw", - "try", - "typeof", - "use", - "var", - "void", - "while", - "with" - ]; - const LITERALS = [ - "true", - "false", - "null", - "undefined" - ]; - - return { - name: 'ActionScript', - aliases: [ 'as' ], - keywords: { - keyword: KEYWORDS, - literal: LITERALS - }, - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_NUMBER_MODE, - { - match: [ - /\bpackage/, - /\s+/, - PKG_NAME_RE - ], - className: { - 1: "keyword", - 3: "title.class" - } - }, - { - match: [ - /\b(?:class|interface|extends|implements)/, - /\s+/, - IDENT_RE - ], - className: { - 1: "keyword", - 3: "title.class" - } - }, - { - className: 'meta', - beginKeywords: 'import include', - end: /;/, - keywords: { keyword: 'import include' } - }, - { - beginKeywords: 'function', - end: /[{;]/, - excludeEnd: true, - illegal: /\S/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { className: "title.function" }), - { - className: 'params', - begin: /\(/, - end: /\)/, - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - AS3_REST_ARG_MODE - ] - }, - { begin: regex.concat(/:\s*/, IDENT_FUNC_RETURN_TYPE_RE) } - ] - }, - hljs.METHOD_GUARD - ], - illegal: /#/ - }; -} - -export { actionscript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/actionscript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/actionscript.js.js deleted file mode 100644 index ab44fb7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/actionscript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/actionscript" instead of "highlight.js/lib/languages/actionscript.js"' - ); - } - } - emitWarning(); - import lang from './actionscript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ada.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ada.js deleted file mode 100644 index 734c617..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ada.js +++ /dev/null @@ -1,265 +0,0 @@ -/* -Language: Ada -Author: Lars Schulna -Description: Ada is a general-purpose programming language that has great support for saftey critical and real-time applications. - It has been developed by the DoD and thus has been used in military and safety-critical applications (like civil aviation). - The first version appeared in the 80s, but it's still actively developed today with - the newest standard being Ada2012. -*/ - -// We try to support full Ada2012 -// -// We highlight all appearances of types, keywords, literals (string, char, number, bool) -// and titles (user defined function/procedure/package) -// CSS classes are set accordingly -// -// Languages causing problems for language detection: -// xml (broken by Foo : Bar type), elm (broken by Foo : Bar type), vbscript-html (broken by body keyword) -// sql (ada default.txt has a lot of sql keywords) - -/** @type LanguageFn */ -function ada(hljs) { - // Regular expression for Ada numeric literals. - // stolen form the VHDL highlighter - - // Decimal literal: - const INTEGER_RE = '\\d(_|\\d)*'; - const EXPONENT_RE = '[eE][-+]?' + INTEGER_RE; - const DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?'; - - // Based literal: - const BASED_INTEGER_RE = '\\w+'; - const BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?'; - - const NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')'; - - // Identifier regex - const ID_REGEX = '[A-Za-z](_?[A-Za-z0-9.])*'; - - // bad chars, only allowed in literals - const BAD_CHARS = `[]\\{\\}%#'"`; - - // Ada doesn't have block comments, only line comments - const COMMENTS = hljs.COMMENT('--', '$'); - - // variable declarations of the form - // Foo : Bar := Baz; - // where only Bar will be highlighted - const VAR_DECLS = { - // TODO: These spaces are not required by the Ada syntax - // however, I have yet to see handwritten Ada code where - // someone does not put spaces around : - begin: '\\s+:\\s+', - end: '\\s*(:=|;|\\)|=>|$)', - // endsWithParent: true, - // returnBegin: true, - illegal: BAD_CHARS, - contains: [ - { - // workaround to avoid highlighting - // named loops and declare blocks - beginKeywords: 'loop for declare others', - endsParent: true - }, - { - // properly highlight all modifiers - className: 'keyword', - beginKeywords: 'not null constant access function procedure in out aliased exception' - }, - { - className: 'type', - begin: ID_REGEX, - endsParent: true, - relevance: 0 - } - ] - }; - - const KEYWORDS = [ - "abort", - "else", - "new", - "return", - "abs", - "elsif", - "not", - "reverse", - "abstract", - "end", - "accept", - "entry", - "select", - "access", - "exception", - "of", - "separate", - "aliased", - "exit", - "or", - "some", - "all", - "others", - "subtype", - "and", - "for", - "out", - "synchronized", - "array", - "function", - "overriding", - "at", - "tagged", - "generic", - "package", - "task", - "begin", - "goto", - "pragma", - "terminate", - "body", - "private", - "then", - "if", - "procedure", - "type", - "case", - "in", - "protected", - "constant", - "interface", - "is", - "raise", - "use", - "declare", - "range", - "delay", - "limited", - "record", - "when", - "delta", - "loop", - "rem", - "while", - "digits", - "renames", - "with", - "do", - "mod", - "requeue", - "xor" - ]; - - return { - name: 'Ada', - case_insensitive: true, - keywords: { - keyword: KEYWORDS, - literal: [ - "True", - "False" - ] - }, - contains: [ - COMMENTS, - // strings "foobar" - { - className: 'string', - begin: /"/, - end: /"/, - contains: [ - { - begin: /""/, - relevance: 0 - } - ] - }, - // characters '' - { - // character literals always contain one char - className: 'string', - begin: /'.'/ - }, - { - // number literals - className: 'number', - begin: NUMBER_RE, - relevance: 0 - }, - { - // Attributes - className: 'symbol', - begin: "'" + ID_REGEX - }, - { - // package definition, maybe inside generic - className: 'title', - begin: '(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?', - end: '(is|$)', - keywords: 'package body', - excludeBegin: true, - excludeEnd: true, - illegal: BAD_CHARS - }, - { - // function/procedure declaration/definition - // maybe inside generic - begin: '(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+', - end: '(\\bis|\\bwith|\\brenames|\\)\\s*;)', - keywords: 'overriding function procedure with is renames return', - // we need to re-match the 'function' keyword, so that - // the title mode below matches only exactly once - returnBegin: true, - contains: - [ - COMMENTS, - { - // name of the function/procedure - className: 'title', - begin: '(\\bwith\\s+)?\\b(function|procedure)\\s+', - end: '(\\(|\\s+|$)', - excludeBegin: true, - excludeEnd: true, - illegal: BAD_CHARS - }, - // 'self' - // // parameter types - VAR_DECLS, - { - // return type - className: 'type', - begin: '\\breturn\\s+', - end: '(\\s+|;|$)', - keywords: 'return', - excludeBegin: true, - excludeEnd: true, - // we are done with functions - endsParent: true, - illegal: BAD_CHARS - - } - ] - }, - { - // new type declarations - // maybe inside generic - className: 'type', - begin: '\\b(sub)?type\\s+', - end: '\\s+', - keywords: 'type', - excludeBegin: true, - illegal: BAD_CHARS - }, - - // see comment above the definition - VAR_DECLS - - // no markup - // relevance boosters for small snippets - // {begin: '\\s*=>\\s*'}, - // {begin: '\\s*:=\\s*'}, - // {begin: '\\s+:=\\s+'}, - ] - }; -} - -export { ada as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ada.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ada.js.js deleted file mode 100644 index 40096ef..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ada.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ada" instead of "highlight.js/lib/languages/ada.js"' - ); - } - } - emitWarning(); - import lang from './ada.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/angelscript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/angelscript.js deleted file mode 100644 index 6bc1f6b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/angelscript.js +++ /dev/null @@ -1,178 +0,0 @@ -/* -Language: AngelScript -Author: Melissa Geels -Category: scripting -Website: https://www.angelcode.com/angelscript/ -*/ - -/** @type LanguageFn */ -function angelscript(hljs) { - const builtInTypeMode = { - className: 'built_in', - begin: '\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)' - }; - - const objectHandleMode = { - className: 'symbol', - begin: '[a-zA-Z0-9_]+@' - }; - - const genericMode = { - className: 'keyword', - begin: '<', - end: '>', - contains: [ - builtInTypeMode, - objectHandleMode - ] - }; - - builtInTypeMode.contains = [ genericMode ]; - objectHandleMode.contains = [ genericMode ]; - - const KEYWORDS = [ - "for", - "in|0", - "break", - "continue", - "while", - "do|0", - "return", - "if", - "else", - "case", - "switch", - "namespace", - "is", - "cast", - "or", - "and", - "xor", - "not", - "get|0", - "in", - "inout|10", - "out", - "override", - "set|0", - "private", - "public", - "const", - "default|0", - "final", - "shared", - "external", - "mixin|10", - "enum", - "typedef", - "funcdef", - "this", - "super", - "import", - "from", - "interface", - "abstract|0", - "try", - "catch", - "protected", - "explicit", - "property" - ]; - - return { - name: 'AngelScript', - aliases: [ 'asc' ], - - keywords: KEYWORDS, - - // avoid close detection with C# and JS - illegal: '(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])', - - contains: [ - { // 'strings' - className: 'string', - begin: '\'', - end: '\'', - illegal: '\\n', - contains: [ hljs.BACKSLASH_ESCAPE ], - relevance: 0 - }, - - // """heredoc strings""" - { - className: 'string', - begin: '"""', - end: '"""' - }, - - { // "strings" - className: 'string', - begin: '"', - end: '"', - illegal: '\\n', - contains: [ hljs.BACKSLASH_ESCAPE ], - relevance: 0 - }, - - hljs.C_LINE_COMMENT_MODE, // single-line comments - hljs.C_BLOCK_COMMENT_MODE, // comment blocks - - { // metadata - className: 'string', - begin: '^\\s*\\[', - end: '\\]' - }, - - { // interface or namespace declaration - beginKeywords: 'interface namespace', - end: /\{/, - illegal: '[;.\\-]', - contains: [ - { // interface or namespace name - className: 'symbol', - begin: '[a-zA-Z0-9_]+' - } - ] - }, - - { // class declaration - beginKeywords: 'class', - end: /\{/, - illegal: '[;.\\-]', - contains: [ - { // class name - className: 'symbol', - begin: '[a-zA-Z0-9_]+', - contains: [ - { - begin: '[:,]\\s*', - contains: [ - { - className: 'symbol', - begin: '[a-zA-Z0-9_]+' - } - ] - } - ] - } - ] - }, - - builtInTypeMode, // built-in types - objectHandleMode, // object handles - - { // literals - className: 'literal', - begin: '\\b(null|true|false)' - }, - - { // numbers - className: 'number', - relevance: 0, - begin: '(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)' - } - ] - }; -} - -export { angelscript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/angelscript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/angelscript.js.js deleted file mode 100644 index f25e7fa..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/angelscript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/angelscript" instead of "highlight.js/lib/languages/angelscript.js"' - ); - } - } - emitWarning(); - import lang from './angelscript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.js deleted file mode 100644 index f8f9e4f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.js +++ /dev/null @@ -1,105 +0,0 @@ -/* -Language: Apache config -Author: Ruslan Keba -Contributors: Ivan Sagalaev -Website: https://httpd.apache.org -Description: language definition for Apache configuration files (httpd.conf & .htaccess) -Category: config, web -Audit: 2020 -*/ - -/** @type LanguageFn */ -function apache(hljs) { - const NUMBER_REF = { - className: 'number', - begin: /[$%]\d+/ - }; - const NUMBER = { - className: 'number', - begin: /\b\d+/ - }; - const IP_ADDRESS = { - className: "number", - begin: /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/ - }; - const PORT_NUMBER = { - className: "number", - begin: /:\d{1,5}/ - }; - return { - name: 'Apache config', - aliases: [ 'apacheconf' ], - case_insensitive: true, - contains: [ - hljs.HASH_COMMENT_MODE, - { - className: 'section', - begin: /<\/?/, - end: />/, - contains: [ - IP_ADDRESS, - PORT_NUMBER, - // low relevance prevents us from claming XML/HTML where this rule would - // match strings inside of XML tags - hljs.inherit(hljs.QUOTE_STRING_MODE, { relevance: 0 }) - ] - }, - { - className: 'attribute', - begin: /\w+/, - relevance: 0, - // keywords aren’t needed for highlighting per se, they only boost relevance - // for a very generally defined mode (starts with a word, ends with line-end - keywords: { _: [ - "order", - "deny", - "allow", - "setenv", - "rewriterule", - "rewriteengine", - "rewritecond", - "documentroot", - "sethandler", - "errordocument", - "loadmodule", - "options", - "header", - "listen", - "serverroot", - "servername" - ] }, - starts: { - end: /$/, - relevance: 0, - keywords: { literal: 'on off all deny allow' }, - contains: [ - { - scope: "punctuation", - match: /\\\n/ - }, - { - className: 'meta', - begin: /\s\[/, - end: /\]$/ - }, - { - className: 'variable', - begin: /[\$%]\{/, - end: /\}/, - contains: [ - 'self', - NUMBER_REF - ] - }, - IP_ADDRESS, - NUMBER, - hljs.QUOTE_STRING_MODE - ] - } - } - ], - illegal: /\S/ - }; -} - -export { apache as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.js.js deleted file mode 100644 index a30877d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/apache" instead of "highlight.js/lib/languages/apache.js"' - ); - } - } - emitWarning(); - import lang from './apache.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/applescript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/applescript.js deleted file mode 100644 index 7807429..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/applescript.js +++ /dev/null @@ -1,149 +0,0 @@ -/* -Language: AppleScript -Authors: Nathan Grigg , Dr. Drang -Category: scripting -Website: https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html -Audit: 2020 -*/ - -/** @type LanguageFn */ -function applescript(hljs) { - const regex = hljs.regex; - const STRING = hljs.inherit( - hljs.QUOTE_STRING_MODE, { illegal: null }); - const PARAMS = { - className: 'params', - begin: /\(/, - end: /\)/, - contains: [ - 'self', - hljs.C_NUMBER_MODE, - STRING - ] - }; - const COMMENT_MODE_1 = hljs.COMMENT(/--/, /$/); - const COMMENT_MODE_2 = hljs.COMMENT( - /\(\*/, - /\*\)/, - { contains: [ - 'self', // allow nesting - COMMENT_MODE_1 - ] } - ); - const COMMENTS = [ - COMMENT_MODE_1, - COMMENT_MODE_2, - hljs.HASH_COMMENT_MODE - ]; - - const KEYWORD_PATTERNS = [ - /apart from/, - /aside from/, - /instead of/, - /out of/, - /greater than/, - /isn't|(doesn't|does not) (equal|come before|come after|contain)/, - /(greater|less) than( or equal)?/, - /(starts?|ends|begins?) with/, - /contained by/, - /comes (before|after)/, - /a (ref|reference)/, - /POSIX (file|path)/, - /(date|time) string/, - /quoted form/ - ]; - - const BUILT_IN_PATTERNS = [ - /clipboard info/, - /the clipboard/, - /info for/, - /list (disks|folder)/, - /mount volume/, - /path to/, - /(close|open for) access/, - /(get|set) eof/, - /current date/, - /do shell script/, - /get volume settings/, - /random number/, - /set volume/, - /system attribute/, - /system info/, - /time to GMT/, - /(load|run|store) script/, - /scripting components/, - /ASCII (character|number)/, - /localized string/, - /choose (application|color|file|file name|folder|from list|remote application|URL)/, - /display (alert|dialog)/ - ]; - - return { - name: 'AppleScript', - aliases: [ 'osascript' ], - keywords: { - keyword: - 'about above after against and around as at back before beginning ' - + 'behind below beneath beside between but by considering ' - + 'contain contains continue copy div does eighth else end equal ' - + 'equals error every exit fifth first for fourth from front ' - + 'get given global if ignoring in into is it its last local me ' - + 'middle mod my ninth not of on onto or over prop property put ref ' - + 'reference repeat returning script second set seventh since ' - + 'sixth some tell tenth that the|0 then third through thru ' - + 'timeout times to transaction try until where while whose with ' - + 'without', - literal: - 'AppleScript false linefeed return pi quote result space tab true', - built_in: - 'alias application boolean class constant date file integer list ' - + 'number real record string text ' - + 'activate beep count delay launch log offset read round ' - + 'run say summarize write ' - + 'character characters contents day frontmost id item length ' - + 'month name|0 paragraph paragraphs rest reverse running time version ' - + 'weekday word words year' - }, - contains: [ - STRING, - hljs.C_NUMBER_MODE, - { - className: 'built_in', - begin: regex.concat( - /\b/, - regex.either(...BUILT_IN_PATTERNS), - /\b/ - ) - }, - { - className: 'built_in', - begin: /^\s*return\b/ - }, - { - className: 'literal', - begin: - /\b(text item delimiters|current application|missing value)\b/ - }, - { - className: 'keyword', - begin: regex.concat( - /\b/, - regex.either(...KEYWORD_PATTERNS), - /\b/ - ) - }, - { - beginKeywords: 'on', - illegal: /[${=;\n]/, - contains: [ - hljs.UNDERSCORE_TITLE_MODE, - PARAMS - ] - }, - ...COMMENTS - ], - illegal: /\/\/|->|=>|\[\[/ - }; -} - -export { applescript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/applescript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/applescript.js.js deleted file mode 100644 index f377013..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/applescript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/applescript" instead of "highlight.js/lib/languages/applescript.js"' - ); - } - } - emitWarning(); - import lang from './applescript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arcade.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arcade.js deleted file mode 100644 index 29101d4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arcade.js +++ /dev/null @@ -1,428 +0,0 @@ -/* - Language: ArcGIS Arcade - Category: scripting - Website: https://developers.arcgis.com/arcade/ - Description: ArcGIS Arcade is an expression language used in many Esri ArcGIS products such as Pro, Online, Server, Runtime, JavaScript, and Python -*/ - -/** @type LanguageFn */ -function arcade(hljs) { - const regex = hljs.regex; - const IDENT_RE = '[A-Za-z_][0-9A-Za-z_]*'; - const KEYWORDS = { - keyword: [ - "break", - "case", - "catch", - "continue", - "debugger", - "do", - "else", - "export", - "for", - "function", - "if", - "import", - "in", - "new", - "of", - "return", - "switch", - "try", - "var", - "void", - "while" - ], - literal: [ - "BackSlash", - "DoubleQuote", - "ForwardSlash", - "Infinity", - "NaN", - "NewLine", - "PI", - "SingleQuote", - "Tab", - "TextFormatting", - "false", - "null", - "true", - "undefined" - ], - built_in: [ - "Abs", - "Acos", - "All", - "Angle", - "Any", - "Area", - "AreaGeodetic", - "Array", - "Asin", - "Atan", - "Atan2", - "Attachments", - "Average", - "Back", - "Bearing", - "Boolean", - "Buffer", - "BufferGeodetic", - "Ceil", - "Centroid", - "ChangeTimeZone", - "Clip", - "Concatenate", - "Console", - "Constrain", - "Contains", - "ConvertDirection", - "ConvexHull", - "Cos", - "Count", - "Crosses", - "Cut", - "Date|0", - "DateAdd", - "DateDiff", - "DateOnly", - "Day", - "Decode", - "DefaultValue", - "Densify", - "DensifyGeodetic", - "Dictionary", - "Difference", - "Disjoint", - "Distance", - "DistanceGeodetic", - "DistanceToCoordinate", - "Distinct", - "Domain", - "DomainCode", - "DomainName", - "EnvelopeIntersects", - "Equals", - "Erase", - "Exp", - "Expects", - "Extent", - "Feature", - "FeatureInFilter", - "FeatureSet", - "FeatureSetByAssociation", - "FeatureSetById", - "FeatureSetByName", - "FeatureSetByPortalItem", - "FeatureSetByRelationshipClass", - "FeatureSetByRelationshipName", - "Filter", - "FilterBySubtypeCode", - "Find", - "First|0", - "Floor", - "FromCharCode", - "FromCodePoint", - "FromJSON", - "Front", - "GdbVersion", - "Generalize", - "Geometry", - "GetEnvironment", - "GetFeatureSet", - "GetFeatureSetInfo", - "GetUser", - "GroupBy", - "Guid", - "HasKey", - "HasValue", - "Hash", - "Hour", - "IIf", - "ISOMonth", - "ISOWeek", - "ISOWeekday", - "ISOYear", - "Includes", - "IndexOf", - "Insert", - "Intersection", - "Intersects", - "IsEmpty", - "IsNan", - "IsSelfIntersecting", - "IsSimple", - "KnowledgeGraphByPortalItem", - "Left|0", - "Length", - "Length3D", - "LengthGeodetic", - "Log", - "Lower", - "Map", - "Max", - "Mean", - "MeasureToCoordinate", - "Mid", - "Millisecond", - "Min", - "Minute", - "Month", - "MultiPartToSinglePart", - "Multipoint", - "NearestCoordinate", - "NearestVertex", - "NextSequenceValue", - "None", - "Now", - "Number", - "Offset", - "OrderBy", - "Overlaps", - "Point", - "PointToCoordinate", - "Polygon", - "Polyline", - "Pop", - "Portal", - "Pow", - "Proper", - "Push", - "QueryGraph", - "Random", - "Reduce", - "Relate", - "Replace", - "Resize", - "Reverse", - "Right|0", - "RingIsClockwise", - "Rotate", - "Round", - "Schema", - "Second", - "SetGeometry", - "Simplify", - "Sin", - "Slice", - "Sort", - "Splice", - "Split", - "Sqrt", - "StandardizeFilename", - "StandardizeGuid", - "Stdev", - "SubtypeCode", - "SubtypeName", - "Subtypes", - "Sum", - "SymmetricDifference", - "Tan", - "Text", - "Time", - "TimeZone", - "TimeZoneOffset", - "Timestamp", - "ToCharCode", - "ToCodePoint", - "ToHex", - "ToLocal", - "ToUTC", - "Today", - "Top|0", - "Touches", - "TrackAccelerationAt", - "TrackAccelerationWindow", - "TrackCurrentAcceleration", - "TrackCurrentDistance", - "TrackCurrentSpeed", - "TrackCurrentTime", - "TrackDistanceAt", - "TrackDistanceWindow", - "TrackDuration", - "TrackFieldWindow", - "TrackGeometryWindow", - "TrackIndex", - "TrackSpeedAt", - "TrackSpeedWindow", - "TrackStartTime", - "TrackWindow", - "Trim", - "TypeOf", - "Union", - "Upper", - "UrlEncode", - "Variance", - "Week", - "Weekday", - "When|0", - "Within", - "Year|0", - ] - }; - const PROFILE_VARS = [ - "aggregatedFeatures", - "analytic", - "config", - "datapoint", - "datastore", - "editcontext", - "feature", - "featureSet", - "feedfeature", - "fencefeature", - "fencenotificationtype", - "graph", - "join", - "layer", - "locationupdate", - "map", - "measure", - "measure", - "originalFeature", - "record", - "reference", - "rowindex", - "sourcedatastore", - "sourcefeature", - "sourcelayer", - "target", - "targetdatastore", - "targetfeature", - "targetlayer", - "userInput", - "value", - "variables", - "view" - ]; - const SYMBOL = { - className: 'symbol', - begin: '\\$' + regex.either(...PROFILE_VARS) - }; - const NUMBER = { - className: 'number', - variants: [ - { begin: '\\b(0[bB][01]+)' }, - { begin: '\\b(0[oO][0-7]+)' }, - { begin: hljs.C_NUMBER_RE } - ], - relevance: 0 - }; - const SUBST = { - className: 'subst', - begin: '\\$\\{', - end: '\\}', - keywords: KEYWORDS, - contains: [] // defined later - }; - const TEMPLATE_STRING = { - className: 'string', - begin: '`', - end: '`', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }; - SUBST.contains = [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - TEMPLATE_STRING, - NUMBER, - hljs.REGEXP_MODE - ]; - const PARAMS_CONTAINS = SUBST.contains.concat([ - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_LINE_COMMENT_MODE - ]); - - return { - name: 'ArcGIS Arcade', - case_insensitive: true, - keywords: KEYWORDS, - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - TEMPLATE_STRING, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - SYMBOL, - NUMBER, - { // object attr container - begin: /[{,]\s*/, - relevance: 0, - contains: [ - { - begin: IDENT_RE + '\\s*:', - returnBegin: true, - relevance: 0, - contains: [ - { - className: 'attr', - begin: IDENT_RE, - relevance: 0 - } - ] - } - ] - }, - { // "value" container - begin: '(' + hljs.RE_STARTERS_RE + '|\\b(return)\\b)\\s*', - keywords: 'return', - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.REGEXP_MODE, - { - className: 'function', - begin: '(\\(.*?\\)|' + IDENT_RE + ')\\s*=>', - returnBegin: true, - end: '\\s*=>', - contains: [ - { - className: 'params', - variants: [ - { begin: IDENT_RE }, - { begin: /\(\s*\)/ }, - { - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - contains: PARAMS_CONTAINS - } - ] - } - ] - } - ], - relevance: 0 - }, - { - beginKeywords: 'function', - end: /\{/, - excludeEnd: true, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - className: "title.function", - begin: IDENT_RE - }), - { - className: 'params', - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - contains: PARAMS_CONTAINS - } - ], - illegal: /\[|%/ - }, - { begin: /\$[(.]/ } - ], - illegal: /#(?!!)/ - }; -} - -export { arcade as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arcade.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arcade.js.js deleted file mode 100644 index 46b21ae..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arcade.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/arcade" instead of "highlight.js/lib/languages/arcade.js"' - ); - } - } - emitWarning(); - import lang from './arcade.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js deleted file mode 100644 index cb8a772..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js +++ /dev/null @@ -1,1008 +0,0 @@ -/* -Language: C++ -Category: common, system -Website: https://isocpp.org -*/ - -/** @type LanguageFn */ -function cPlusPlus(hljs) { - const regex = hljs.regex; - // added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does - // not include such support nor can we be sure all the grammars depending - // on it would desire this behavior - const C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$', { contains: [ { begin: /\\\n/ } ] }); - const DECLTYPE_AUTO_RE = 'decltype\\(auto\\)'; - const NAMESPACE_RE = '[a-zA-Z_]\\w*::'; - const TEMPLATE_ARGUMENT_RE = '<[^<>]+>'; - const FUNCTION_TYPE_RE = '(?!struct)(' - + DECLTYPE_AUTO_RE + '|' - + regex.optional(NAMESPACE_RE) - + '[a-zA-Z_]\\w*' + regex.optional(TEMPLATE_ARGUMENT_RE) - + ')'; - - const CPP_PRIMITIVE_TYPES = { - className: 'type', - begin: '\\b[a-z\\d_]*_t\\b' - }; - - // https://en.cppreference.com/w/cpp/language/escape - // \\ \x \xFF \u2837 \u00323747 \374 - const CHARACTER_ESCAPES = '\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)'; - const STRINGS = { - className: 'string', - variants: [ - { - begin: '(u8?|U|L)?"', - end: '"', - illegal: '\\n', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: '(u8?|U|L)?\'(' + CHARACTER_ESCAPES + '|.)', - end: '\'', - illegal: '.' - }, - hljs.END_SAME_AS_BEGIN({ - begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/, - end: /\)([^()\\ ]{0,16})"/ - }) - ] - }; - - const NUMBERS = { - className: 'number', - variants: [ - // Floating-point literal. - { begin: - "[+-]?(?:" // Leading sign. - // Decimal. - + "(?:" - +"[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?" - + "|\\.[0-9](?:'?[0-9])*" - + ")(?:[Ee][+-]?[0-9](?:'?[0-9])*)?" - + "|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*" - // Hexadecimal. - + "|0[Xx](?:" - +"[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?" - + "|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*" - + ")[Pp][+-]?[0-9](?:'?[0-9])*" - + ")(?:" // Literal suffixes. - + "[Ff](?:16|32|64|128)?" - + "|(BF|bf)16" - + "|[Ll]" - + "|" // Literal suffix is optional. - + ")" - }, - // Integer literal. - { begin: - "[+-]?\\b(?:" // Leading sign. - + "0[Bb][01](?:'?[01])*" // Binary. - + "|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*" // Hexadecimal. - + "|0(?:'?[0-7])*" // Octal or just a lone zero. - + "|[1-9](?:'?[0-9])*" // Decimal. - + ")(?:" // Literal suffixes. - + "[Uu](?:LL?|ll?)" - + "|[Uu][Zz]?" - + "|(?:LL?|ll?)[Uu]?" - + "|[Zz][Uu]" - + "|" // Literal suffix is optional. - + ")" - // Note: there are user-defined literal suffixes too, but perhaps having the custom suffix not part of the - // literal highlight actually makes it stand out more. - } - ], - relevance: 0 - }; - - const PREPROCESSOR = { - className: 'meta', - begin: /#\s*[a-z]+\b/, - end: /$/, - keywords: { keyword: - 'if else elif endif define undef warning error line ' - + 'pragma _Pragma ifdef ifndef include' }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - hljs.inherit(STRINGS, { className: 'string' }), - { - className: 'string', - begin: /<.*?>/ - }, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; - - const TITLE_MODE = { - className: 'title', - begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE, - relevance: 0 - }; - - const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + '\\s*\\('; - - // https://en.cppreference.com/w/cpp/keyword - const RESERVED_KEYWORDS = [ - 'alignas', - 'alignof', - 'and', - 'and_eq', - 'asm', - 'atomic_cancel', - 'atomic_commit', - 'atomic_noexcept', - 'auto', - 'bitand', - 'bitor', - 'break', - 'case', - 'catch', - 'class', - 'co_await', - 'co_return', - 'co_yield', - 'compl', - 'concept', - 'const_cast|10', - 'consteval', - 'constexpr', - 'constinit', - 'continue', - 'decltype', - 'default', - 'delete', - 'do', - 'dynamic_cast|10', - 'else', - 'enum', - 'explicit', - 'export', - 'extern', - 'false', - 'final', - 'for', - 'friend', - 'goto', - 'if', - 'import', - 'inline', - 'module', - 'mutable', - 'namespace', - 'new', - 'noexcept', - 'not', - 'not_eq', - 'nullptr', - 'operator', - 'or', - 'or_eq', - 'override', - 'private', - 'protected', - 'public', - 'reflexpr', - 'register', - 'reinterpret_cast|10', - 'requires', - 'return', - 'sizeof', - 'static_assert', - 'static_cast|10', - 'struct', - 'switch', - 'synchronized', - 'template', - 'this', - 'thread_local', - 'throw', - 'transaction_safe', - 'transaction_safe_dynamic', - 'true', - 'try', - 'typedef', - 'typeid', - 'typename', - 'union', - 'using', - 'virtual', - 'volatile', - 'while', - 'xor', - 'xor_eq' - ]; - - // https://en.cppreference.com/w/cpp/keyword - const RESERVED_TYPES = [ - 'bool', - 'char', - 'char16_t', - 'char32_t', - 'char8_t', - 'double', - 'float', - 'int', - 'long', - 'short', - 'void', - 'wchar_t', - 'unsigned', - 'signed', - 'const', - 'static' - ]; - - const TYPE_HINTS = [ - 'any', - 'auto_ptr', - 'barrier', - 'binary_semaphore', - 'bitset', - 'complex', - 'condition_variable', - 'condition_variable_any', - 'counting_semaphore', - 'deque', - 'false_type', - 'flat_map', - 'flat_set', - 'future', - 'imaginary', - 'initializer_list', - 'istringstream', - 'jthread', - 'latch', - 'lock_guard', - 'multimap', - 'multiset', - 'mutex', - 'optional', - 'ostringstream', - 'packaged_task', - 'pair', - 'promise', - 'priority_queue', - 'queue', - 'recursive_mutex', - 'recursive_timed_mutex', - 'scoped_lock', - 'set', - 'shared_future', - 'shared_lock', - 'shared_mutex', - 'shared_timed_mutex', - 'shared_ptr', - 'stack', - 'string_view', - 'stringstream', - 'timed_mutex', - 'thread', - 'true_type', - 'tuple', - 'unique_lock', - 'unique_ptr', - 'unordered_map', - 'unordered_multimap', - 'unordered_multiset', - 'unordered_set', - 'variant', - 'vector', - 'weak_ptr', - 'wstring', - 'wstring_view' - ]; - - const FUNCTION_HINTS = [ - 'abort', - 'abs', - 'acos', - 'apply', - 'as_const', - 'asin', - 'atan', - 'atan2', - 'calloc', - 'ceil', - 'cerr', - 'cin', - 'clog', - 'cos', - 'cosh', - 'cout', - 'declval', - 'endl', - 'exchange', - 'exit', - 'exp', - 'fabs', - 'floor', - 'fmod', - 'forward', - 'fprintf', - 'fputs', - 'free', - 'frexp', - 'fscanf', - 'future', - 'invoke', - 'isalnum', - 'isalpha', - 'iscntrl', - 'isdigit', - 'isgraph', - 'islower', - 'isprint', - 'ispunct', - 'isspace', - 'isupper', - 'isxdigit', - 'labs', - 'launder', - 'ldexp', - 'log', - 'log10', - 'make_pair', - 'make_shared', - 'make_shared_for_overwrite', - 'make_tuple', - 'make_unique', - 'malloc', - 'memchr', - 'memcmp', - 'memcpy', - 'memset', - 'modf', - 'move', - 'pow', - 'printf', - 'putchar', - 'puts', - 'realloc', - 'scanf', - 'sin', - 'sinh', - 'snprintf', - 'sprintf', - 'sqrt', - 'sscanf', - 'std', - 'stderr', - 'stdin', - 'stdout', - 'strcat', - 'strchr', - 'strcmp', - 'strcpy', - 'strcspn', - 'strlen', - 'strncat', - 'strncmp', - 'strncpy', - 'strpbrk', - 'strrchr', - 'strspn', - 'strstr', - 'swap', - 'tan', - 'tanh', - 'terminate', - 'to_underlying', - 'tolower', - 'toupper', - 'vfprintf', - 'visit', - 'vprintf', - 'vsprintf' - ]; - - const LITERALS = [ - 'NULL', - 'false', - 'nullopt', - 'nullptr', - 'true' - ]; - - // https://en.cppreference.com/w/cpp/keyword - const BUILT_IN = [ '_Pragma' ]; - - const CPP_KEYWORDS = { - type: RESERVED_TYPES, - keyword: RESERVED_KEYWORDS, - literal: LITERALS, - built_in: BUILT_IN, - _type_hints: TYPE_HINTS - }; - - const FUNCTION_DISPATCH = { - className: 'function.dispatch', - relevance: 0, - keywords: { - // Only for relevance, not highlighting. - _hint: FUNCTION_HINTS }, - begin: regex.concat( - /\b/, - /(?!decltype)/, - /(?!if)/, - /(?!for)/, - /(?!switch)/, - /(?!while)/, - hljs.IDENT_RE, - regex.lookahead(/(<[^<>]+>|)\s*\(/)) - }; - - const EXPRESSION_CONTAINS = [ - FUNCTION_DISPATCH, - PREPROCESSOR, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - NUMBERS, - STRINGS - ]; - - const EXPRESSION_CONTEXT = { - // This mode covers expression context where we can't expect a function - // definition and shouldn't highlight anything that looks like one: - // `return some()`, `else if()`, `(x*sum(1, 2))` - variants: [ - { - begin: /=/, - end: /;/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - beginKeywords: 'new throw return else', - end: /;/ - } - ], - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ 'self' ]), - relevance: 0 - } - ]), - relevance: 0 - }; - - const FUNCTION_DECLARATION = { - className: 'function', - begin: '(' + FUNCTION_TYPE_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE, - returnBegin: true, - end: /[{;=]/, - excludeEnd: true, - keywords: CPP_KEYWORDS, - illegal: /[^\w\s\*&:<>.]/, - contains: [ - { // to prevent it from being confused as the function title - begin: DECLTYPE_AUTO_RE, - keywords: CPP_KEYWORDS, - relevance: 0 - }, - { - begin: FUNCTION_TITLE, - returnBegin: true, - contains: [ TITLE_MODE ], - relevance: 0 - }, - // needed because we do not have look-behind on the below rule - // to prevent it from grabbing the final : in a :: pair - { - begin: /::/, - relevance: 0 - }, - // initializers - { - begin: /:/, - endsWithParent: true, - contains: [ - STRINGS, - NUMBERS - ] - }, - // allow for multiple declarations, e.g.: - // extern void f(int), g(char); - { - relevance: 0, - match: /,/ - }, - { - className: 'params', - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES, - // Count matching parentheses. - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - 'self', - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES - ] - } - ] - }, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - PREPROCESSOR - ] - }; - - return { - name: 'C++', - aliases: [ - 'cc', - 'c++', - 'h++', - 'hpp', - 'hh', - 'hxx', - 'cxx' - ], - keywords: CPP_KEYWORDS, - illegal: ' rooms (9);` - begin: '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)', - end: '>', - keywords: CPP_KEYWORDS, - contains: [ - 'self', - CPP_PRIMITIVE_TYPES - ] - }, - { - begin: hljs.IDENT_RE + '::', - keywords: CPP_KEYWORDS - }, - { - match: [ - // extra complexity to deal with `enum class` and `enum struct` - /\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/, - /\s+/, - /\w+/ - ], - className: { - 1: 'keyword', - 3: 'title.class' - } - } - ]) - }; -} - -/* -Language: Arduino -Author: Stefania Mellai -Description: The Arduino® Language is a superset of C++. This rules are designed to highlight the Arduino® source code. For info about language see http://www.arduino.cc. -Website: https://www.arduino.cc -Category: system -*/ - - -/** @type LanguageFn */ -function arduino(hljs) { - const ARDUINO_KW = { - type: [ - "boolean", - "byte", - "word", - "String" - ], - built_in: [ - "KeyboardController", - "MouseController", - "SoftwareSerial", - "EthernetServer", - "EthernetClient", - "LiquidCrystal", - "RobotControl", - "GSMVoiceCall", - "EthernetUDP", - "EsploraTFT", - "HttpClient", - "RobotMotor", - "WiFiClient", - "GSMScanner", - "FileSystem", - "Scheduler", - "GSMServer", - "YunClient", - "YunServer", - "IPAddress", - "GSMClient", - "GSMModem", - "Keyboard", - "Ethernet", - "Console", - "GSMBand", - "Esplora", - "Stepper", - "Process", - "WiFiUDP", - "GSM_SMS", - "Mailbox", - "USBHost", - "Firmata", - "PImage", - "Client", - "Server", - "GSMPIN", - "FileIO", - "Bridge", - "Serial", - "EEPROM", - "Stream", - "Mouse", - "Audio", - "Servo", - "File", - "Task", - "GPRS", - "WiFi", - "Wire", - "TFT", - "GSM", - "SPI", - "SD" - ], - _hints: [ - "setup", - "loop", - "runShellCommandAsynchronously", - "analogWriteResolution", - "retrieveCallingNumber", - "printFirmwareVersion", - "analogReadResolution", - "sendDigitalPortPair", - "noListenOnLocalhost", - "readJoystickButton", - "setFirmwareVersion", - "readJoystickSwitch", - "scrollDisplayRight", - "getVoiceCallStatus", - "scrollDisplayLeft", - "writeMicroseconds", - "delayMicroseconds", - "beginTransmission", - "getSignalStrength", - "runAsynchronously", - "getAsynchronously", - "listenOnLocalhost", - "getCurrentCarrier", - "readAccelerometer", - "messageAvailable", - "sendDigitalPorts", - "lineFollowConfig", - "countryNameWrite", - "runShellCommand", - "readStringUntil", - "rewindDirectory", - "readTemperature", - "setClockDivider", - "readLightSensor", - "endTransmission", - "analogReference", - "detachInterrupt", - "countryNameRead", - "attachInterrupt", - "encryptionType", - "readBytesUntil", - "robotNameWrite", - "readMicrophone", - "robotNameRead", - "cityNameWrite", - "userNameWrite", - "readJoystickY", - "readJoystickX", - "mouseReleased", - "openNextFile", - "scanNetworks", - "noInterrupts", - "digitalWrite", - "beginSpeaker", - "mousePressed", - "isActionDone", - "mouseDragged", - "displayLogos", - "noAutoscroll", - "addParameter", - "remoteNumber", - "getModifiers", - "keyboardRead", - "userNameRead", - "waitContinue", - "processInput", - "parseCommand", - "printVersion", - "readNetworks", - "writeMessage", - "blinkVersion", - "cityNameRead", - "readMessage", - "setDataMode", - "parsePacket", - "isListening", - "setBitOrder", - "beginPacket", - "isDirectory", - "motorsWrite", - "drawCompass", - "digitalRead", - "clearScreen", - "serialEvent", - "rightToLeft", - "setTextSize", - "leftToRight", - "requestFrom", - "keyReleased", - "compassRead", - "analogWrite", - "interrupts", - "WiFiServer", - "disconnect", - "playMelody", - "parseFloat", - "autoscroll", - "getPINUsed", - "setPINUsed", - "setTimeout", - "sendAnalog", - "readSlider", - "analogRead", - "beginWrite", - "createChar", - "motorsStop", - "keyPressed", - "tempoWrite", - "readButton", - "subnetMask", - "debugPrint", - "macAddress", - "writeGreen", - "randomSeed", - "attachGPRS", - "readString", - "sendString", - "remotePort", - "releaseAll", - "mouseMoved", - "background", - "getXChange", - "getYChange", - "answerCall", - "getResult", - "voiceCall", - "endPacket", - "constrain", - "getSocket", - "writeJSON", - "getButton", - "available", - "connected", - "findUntil", - "readBytes", - "exitValue", - "readGreen", - "writeBlue", - "startLoop", - "IPAddress", - "isPressed", - "sendSysex", - "pauseMode", - "gatewayIP", - "setCursor", - "getOemKey", - "tuneWrite", - "noDisplay", - "loadImage", - "switchPIN", - "onRequest", - "onReceive", - "changePIN", - "playFile", - "noBuffer", - "parseInt", - "overflow", - "checkPIN", - "knobRead", - "beginTFT", - "bitClear", - "updateIR", - "bitWrite", - "position", - "writeRGB", - "highByte", - "writeRed", - "setSpeed", - "readBlue", - "noStroke", - "remoteIP", - "transfer", - "shutdown", - "hangCall", - "beginSMS", - "endWrite", - "attached", - "maintain", - "noCursor", - "checkReg", - "checkPUK", - "shiftOut", - "isValid", - "shiftIn", - "pulseIn", - "connect", - "println", - "localIP", - "pinMode", - "getIMEI", - "display", - "noBlink", - "process", - "getBand", - "running", - "beginSD", - "drawBMP", - "lowByte", - "setBand", - "release", - "bitRead", - "prepare", - "pointTo", - "readRed", - "setMode", - "noFill", - "remove", - "listen", - "stroke", - "detach", - "attach", - "noTone", - "exists", - "buffer", - "height", - "bitSet", - "circle", - "config", - "cursor", - "random", - "IRread", - "setDNS", - "endSMS", - "getKey", - "micros", - "millis", - "begin", - "print", - "write", - "ready", - "flush", - "width", - "isPIN", - "blink", - "clear", - "press", - "mkdir", - "rmdir", - "close", - "point", - "yield", - "image", - "BSSID", - "click", - "delay", - "read", - "text", - "move", - "peek", - "beep", - "rect", - "line", - "open", - "seek", - "fill", - "size", - "turn", - "stop", - "home", - "find", - "step", - "tone", - "sqrt", - "RSSI", - "SSID", - "end", - "bit", - "tan", - "cos", - "sin", - "pow", - "map", - "abs", - "max", - "min", - "get", - "run", - "put" - ], - literal: [ - "DIGITAL_MESSAGE", - "FIRMATA_STRING", - "ANALOG_MESSAGE", - "REPORT_DIGITAL", - "REPORT_ANALOG", - "INPUT_PULLUP", - "SET_PIN_MODE", - "INTERNAL2V56", - "SYSTEM_RESET", - "LED_BUILTIN", - "INTERNAL1V1", - "SYSEX_START", - "INTERNAL", - "EXTERNAL", - "DEFAULT", - "OUTPUT", - "INPUT", - "HIGH", - "LOW" - ] - }; - - const ARDUINO = cPlusPlus(hljs); - - const kws = /** @type {Record} */ (ARDUINO.keywords); - - kws.type = [ - ...kws.type, - ...ARDUINO_KW.type - ]; - kws.literal = [ - ...kws.literal, - ...ARDUINO_KW.literal - ]; - kws.built_in = [ - ...kws.built_in, - ...ARDUINO_KW.built_in - ]; - kws._hints = ARDUINO_KW._hints; - - ARDUINO.name = 'Arduino'; - ARDUINO.aliases = [ 'ino' ]; - ARDUINO.supersetOf = "cpp"; - - return ARDUINO; -} - -export { arduino as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js.js deleted file mode 100644 index 5415d1d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/arduino.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/arduino" instead of "highlight.js/lib/languages/arduino.js"' - ); - } - } - emitWarning(); - import lang from './arduino.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/armasm.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/armasm.js deleted file mode 100644 index 40e7eec..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/armasm.js +++ /dev/null @@ -1,124 +0,0 @@ -/* -Language: ARM Assembly -Author: Dan Panzarella -Description: ARM Assembly including Thumb and Thumb2 instructions -Category: assembler -*/ - -/** @type LanguageFn */ -function armasm(hljs) { - // local labels: %?[FB]?[AT]?\d{1,2}\w+ - - const COMMENT = { variants: [ - hljs.COMMENT('^[ \\t]*(?=#)', '$', { - relevance: 0, - excludeBegin: true - }), - hljs.COMMENT('[;@]', '$', { relevance: 0 }), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] }; - - return { - name: 'ARM Assembly', - case_insensitive: true, - aliases: [ 'arm' ], - keywords: { - $pattern: '\\.?' + hljs.IDENT_RE, - meta: - // GNU preprocs - '.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ' - // ARM directives - + 'ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ', - built_in: - 'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 ' // standard registers - + 'w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 ' // 32 bit ARMv8 registers - + 'w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 ' - + 'x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 ' // 64 bit ARMv8 registers - + 'x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 ' - + 'pc lr sp ip sl sb fp ' // typical regs plus backward compatibility - + 'a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 ' // more regs and fp - + 'p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 ' // coprocessor regs - + 'c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 ' // more coproc - + 'q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 ' // advanced SIMD NEON regs - - // program status registers - + 'cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf ' - + 'spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf ' - - // NEON and VFP registers - + 's0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 ' - + 's16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 ' - + 'd0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 ' - + 'd16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 ' - - + '{PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @' - }, - contains: [ - { - className: 'keyword', - begin: '\\b(' // mnemonics - + 'adc|' - + '(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|' - + 'and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|' - + 'bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|' - + 'setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|' - + 'ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|' - + 'mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|' - + 'mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|' - + 'mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|' - + 'rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|' - + 'stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|' - + '[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|' - + 'wfe|wfi|yield' - + ')' - + '(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?' // condition codes - + '[sptrx]?' // legal postfixes - + '(?=\\s)' // followed by space - }, - COMMENT, - hljs.QUOTE_STRING_MODE, - { - className: 'string', - begin: '\'', - end: '[^\\\\]\'', - relevance: 0 - }, - { - className: 'title', - begin: '\\|', - end: '\\|', - illegal: '\\n', - relevance: 0 - }, - { - className: 'number', - variants: [ - { // hex - begin: '[#$=]?0x[0-9a-f]+' }, - { // bin - begin: '[#$=]?0b[01]+' }, - { // literal - begin: '[#$=]\\d+' }, - { // bare number - begin: '\\b\\d+' } - ], - relevance: 0 - }, - { - className: 'symbol', - variants: [ - { // GNU ARM syntax - begin: '^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:' }, - { // ARM syntax - begin: '^[a-z_\\.\\$][a-z0-9_\\.\\$]+' }, - { // label reference - begin: '[=#]\\w+' } - ], - relevance: 0 - } - ] - }; -} - -export { armasm as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/armasm.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/armasm.js.js deleted file mode 100644 index b40c9f3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/armasm.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/armasm" instead of "highlight.js/lib/languages/armasm.js"' - ); - } - } - emitWarning(); - import lang from './armasm.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/asciidoc.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/asciidoc.js deleted file mode 100644 index feb7953..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/asciidoc.js +++ /dev/null @@ -1,261 +0,0 @@ -/* -Language: AsciiDoc -Requires: xml.js -Author: Dan Allen -Website: http://asciidoc.org -Description: A semantic, text-based document format that can be exported to HTML, DocBook and other backends. -Category: markup -*/ - -/** @type LanguageFn */ -function asciidoc(hljs) { - const regex = hljs.regex; - const HORIZONTAL_RULE = { - begin: '^\'{3,}[ \\t]*$', - relevance: 10 - }; - const ESCAPED_FORMATTING = [ - // escaped constrained formatting marks (i.e., \* \_ or \`) - { begin: /\\[*_`]/ }, - // escaped unconstrained formatting marks (i.e., \\** \\__ or \\``) - // must ignore until the next formatting marks - // this rule might not be 100% compliant with Asciidoctor 2.0 but we are entering undefined behavior territory... - { begin: /\\\\\*{2}[^\n]*?\*{2}/ }, - { begin: /\\\\_{2}[^\n]*_{2}/ }, - { begin: /\\\\`{2}[^\n]*`{2}/ }, - // guard: constrained formatting mark may not be preceded by ":", ";" or - // "}". match these so the constrained rule doesn't see them - { begin: /[:;}][*_`](?![*_`])/ } - ]; - const STRONG = [ - // inline unconstrained strong (single line) - { - className: 'strong', - begin: /\*{2}([^\n]+?)\*{2}/ - }, - // inline unconstrained strong (multi-line) - { - className: 'strong', - begin: regex.concat( - /\*\*/, - /((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/, - /(\*(?!\*)|\\[^\n]|[^*\n\\])*/, - /\*\*/ - ), - relevance: 0 - }, - // inline constrained strong (single line) - { - className: 'strong', - // must not precede or follow a word character - begin: /\B\*(\S|\S[^\n]*?\S)\*(?!\w)/ - }, - // inline constrained strong (multi-line) - { - className: 'strong', - // must not precede or follow a word character - begin: /\*[^\s]([^\n]+\n)+([^\n]+)\*/ - } - ]; - const EMPHASIS = [ - // inline unconstrained emphasis (single line) - { - className: 'emphasis', - begin: /_{2}([^\n]+?)_{2}/ - }, - // inline unconstrained emphasis (multi-line) - { - className: 'emphasis', - begin: regex.concat( - /__/, - /((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/, - /(_(?!_)|\\[^\n]|[^_\n\\])*/, - /__/ - ), - relevance: 0 - }, - // inline constrained emphasis (single line) - { - className: 'emphasis', - // must not precede or follow a word character - begin: /\b_(\S|\S[^\n]*?\S)_(?!\w)/ - }, - // inline constrained emphasis (multi-line) - { - className: 'emphasis', - // must not precede or follow a word character - begin: /_[^\s]([^\n]+\n)+([^\n]+)_/ - }, - // inline constrained emphasis using single quote (legacy) - { - className: 'emphasis', - // must not follow a word character or be followed by a single quote or space - begin: '\\B\'(?![\'\\s])', - end: '(\\n{2}|\')', - // allow escaped single quote followed by word char - contains: [ - { - begin: '\\\\\'\\w', - relevance: 0 - } - ], - relevance: 0 - } - ]; - const ADMONITION = { - className: 'symbol', - begin: '^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+', - relevance: 10 - }; - const BULLET_LIST = { - className: 'bullet', - begin: '^(\\*+|-+|\\.+|[^\\n]+?::)\\s+' - }; - - return { - name: 'AsciiDoc', - aliases: [ 'adoc' ], - contains: [ - // block comment - hljs.COMMENT( - '^/{4,}\\n', - '\\n/{4,}$', - // can also be done as... - // '^/{4,}$', - // '^/{4,}$', - { relevance: 10 } - ), - // line comment - hljs.COMMENT( - '^//', - '$', - { relevance: 0 } - ), - // title - { - className: 'title', - begin: '^\\.\\w.*$' - }, - // example, admonition & sidebar blocks - { - begin: '^[=\\*]{4,}\\n', - end: '\\n^[=\\*]{4,}$', - relevance: 10 - }, - // headings - { - className: 'section', - relevance: 10, - variants: [ - { begin: '^(={1,6})[ \t].+?([ \t]\\1)?$' }, - { begin: '^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$' } - ] - }, - // document attributes - { - className: 'meta', - begin: '^:.+?:', - end: '\\s', - excludeEnd: true, - relevance: 10 - }, - // block attributes - { - className: 'meta', - begin: '^\\[.+?\\]$', - relevance: 0 - }, - // quoteblocks - { - className: 'quote', - begin: '^_{4,}\\n', - end: '\\n_{4,}$', - relevance: 10 - }, - // listing and literal blocks - { - className: 'code', - begin: '^[\\-\\.]{4,}\\n', - end: '\\n[\\-\\.]{4,}$', - relevance: 10 - }, - // passthrough blocks - { - begin: '^\\+{4,}\\n', - end: '\\n\\+{4,}$', - contains: [ - { - begin: '<', - end: '>', - subLanguage: 'xml', - relevance: 0 - } - ], - relevance: 10 - }, - - BULLET_LIST, - ADMONITION, - ...ESCAPED_FORMATTING, - ...STRONG, - ...EMPHASIS, - - // inline smart quotes - { - className: 'string', - variants: [ - { begin: "``.+?''" }, - { begin: "`.+?'" } - ] - }, - // inline unconstrained emphasis - { - className: 'code', - begin: /`{2}/, - end: /(\n{2}|`{2})/ - }, - // inline code snippets (TODO should get same treatment as strong and emphasis) - { - className: 'code', - begin: '(`.+?`|\\+.+?\\+)', - relevance: 0 - }, - // indented literal block - { - className: 'code', - begin: '^[ \\t]', - end: '$', - relevance: 0 - }, - HORIZONTAL_RULE, - // images and links - { - begin: '(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]', - returnBegin: true, - contains: [ - { - begin: '(link|image:?):', - relevance: 0 - }, - { - className: 'link', - begin: '\\w', - end: '[^\\[]+', - relevance: 0 - }, - { - className: 'string', - begin: '\\[', - end: '\\]', - excludeBegin: true, - excludeEnd: true, - relevance: 0 - } - ], - relevance: 10 - } - ] - }; -} - -export { asciidoc as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/asciidoc.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/asciidoc.js.js deleted file mode 100644 index 31079b0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/asciidoc.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/asciidoc" instead of "highlight.js/lib/languages/asciidoc.js"' - ); - } - } - emitWarning(); - import lang from './asciidoc.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/aspectj.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/aspectj.js deleted file mode 100644 index 24c946e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/aspectj.js +++ /dev/null @@ -1,231 +0,0 @@ -/* -Language: AspectJ -Author: Hakan Ozler -Website: https://www.eclipse.org/aspectj/ -Description: Syntax Highlighting for the AspectJ Language which is a general-purpose aspect-oriented extension to the Java programming language. -Category: system -Audit: 2020 -*/ - -/** @type LanguageFn */ -function aspectj(hljs) { - const regex = hljs.regex; - const KEYWORDS = [ - "false", - "synchronized", - "int", - "abstract", - "float", - "private", - "char", - "boolean", - "static", - "null", - "if", - "const", - "for", - "true", - "while", - "long", - "throw", - "strictfp", - "finally", - "protected", - "import", - "native", - "final", - "return", - "void", - "enum", - "else", - "extends", - "implements", - "break", - "transient", - "new", - "catch", - "instanceof", - "byte", - "super", - "volatile", - "case", - "assert", - "short", - "package", - "default", - "double", - "public", - "try", - "this", - "switch", - "continue", - "throws", - "privileged", - "aspectOf", - "adviceexecution", - "proceed", - "cflowbelow", - "cflow", - "initialization", - "preinitialization", - "staticinitialization", - "withincode", - "target", - "within", - "execution", - "getWithinTypeName", - "handler", - "thisJoinPoint", - "thisJoinPointStaticPart", - "thisEnclosingJoinPointStaticPart", - "declare", - "parents", - "warning", - "error", - "soft", - "precedence", - "thisAspectInstance" - ]; - const SHORTKEYS = [ - "get", - "set", - "args", - "call" - ]; - - return { - name: 'AspectJ', - keywords: KEYWORDS, - illegal: /<\/|#/, - contains: [ - hljs.COMMENT( - /\/\*\*/, - /\*\//, - { - relevance: 0, - contains: [ - { - // eat up @'s in emails to prevent them to be recognized as doctags - begin: /\w+@/, - relevance: 0 - }, - { - className: 'doctag', - begin: /@[A-Za-z]+/ - } - ] - } - ), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - className: 'class', - beginKeywords: 'aspect', - end: /[{;=]/, - excludeEnd: true, - illegal: /[:;"\[\]]/, - contains: [ - { beginKeywords: 'extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton' }, - hljs.UNDERSCORE_TITLE_MODE, - { - begin: /\([^\)]*/, - end: /[)]+/, - keywords: KEYWORDS.concat(SHORTKEYS), - excludeEnd: false - } - ] - }, - { - className: 'class', - beginKeywords: 'class interface', - end: /[{;=]/, - excludeEnd: true, - relevance: 0, - keywords: 'class interface', - illegal: /[:"\[\]]/, - contains: [ - { beginKeywords: 'extends implements' }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - { - // AspectJ Constructs - beginKeywords: 'pointcut after before around throwing returning', - end: /[)]/, - excludeEnd: false, - illegal: /["\[\]]/, - contains: [ - { - begin: regex.concat(hljs.UNDERSCORE_IDENT_RE, /\s*\(/), - returnBegin: true, - contains: [ hljs.UNDERSCORE_TITLE_MODE ] - } - ] - }, - { - begin: /[:]/, - returnBegin: true, - end: /[{;]/, - relevance: 0, - excludeEnd: false, - keywords: KEYWORDS, - illegal: /["\[\]]/, - contains: [ - { - begin: regex.concat(hljs.UNDERSCORE_IDENT_RE, /\s*\(/), - keywords: KEYWORDS.concat(SHORTKEYS), - relevance: 0 - }, - hljs.QUOTE_STRING_MODE - ] - }, - { - // this prevents 'new Name(...), or throw ...' from being recognized as a function definition - beginKeywords: 'new throw', - relevance: 0 - }, - { - // the function class is a bit different for AspectJ compared to the Java language - className: 'function', - begin: /\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/, - returnBegin: true, - end: /[{;=]/, - keywords: KEYWORDS, - excludeEnd: true, - contains: [ - { - begin: regex.concat(hljs.UNDERSCORE_IDENT_RE, /\s*\(/), - returnBegin: true, - relevance: 0, - contains: [ hljs.UNDERSCORE_TITLE_MODE ] - }, - { - className: 'params', - begin: /\(/, - end: /\)/, - relevance: 0, - keywords: KEYWORDS, - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_NUMBER_MODE, - { - // annotation is also used in this language - className: 'meta', - begin: /@[A-Za-z]+/ - } - ] - }; -} - -export { aspectj as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/aspectj.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/aspectj.js.js deleted file mode 100644 index 9a0ab9a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/aspectj.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/aspectj" instead of "highlight.js/lib/languages/aspectj.js"' - ); - } - } - emitWarning(); - import lang from './aspectj.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autohotkey.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autohotkey.js deleted file mode 100644 index 24fbce4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autohotkey.js +++ /dev/null @@ -1,75 +0,0 @@ -/* -Language: AutoHotkey -Author: Seongwon Lee -Description: AutoHotkey language definition -Category: scripting -*/ - -/** @type LanguageFn */ -function autohotkey(hljs) { - const BACKTICK_ESCAPE = { begin: '`[\\s\\S]' }; - - return { - name: 'AutoHotkey', - case_insensitive: true, - aliases: [ 'ahk' ], - keywords: { - keyword: 'Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group', - literal: 'true false NOT AND OR', - built_in: 'ComSpec Clipboard ClipboardAll ErrorLevel' - }, - contains: [ - BACKTICK_ESCAPE, - hljs.inherit(hljs.QUOTE_STRING_MODE, { contains: [ BACKTICK_ESCAPE ] }), - hljs.COMMENT(';', '$', { relevance: 0 }), - hljs.C_BLOCK_COMMENT_MODE, - { - className: 'number', - begin: hljs.NUMBER_RE, - relevance: 0 - }, - { - // subst would be the most accurate however fails the point of - // highlighting. variable is comparably the most accurate that actually - // has some effect - className: 'variable', - begin: '%[a-zA-Z0-9#_$@]+%' - }, - { - className: 'built_in', - begin: '^\\s*\\w+\\s*(,|%)' - // I don't really know if this is totally relevant - }, - { - // symbol would be most accurate however is highlighted just like - // built_in and that makes up a lot of AutoHotkey code meaning that it - // would fail to highlight anything - className: 'title', - variants: [ - { begin: '^[^\\n";]+::(?!=)' }, - { - begin: '^[^\\n";]+:(?!=)', - // zero relevance as it catches a lot of things - // followed by a single ':' in many languages - relevance: 0 - } - ] - }, - { - className: 'meta', - begin: '^\\s*#\\w+', - end: '$', - relevance: 0 - }, - { - className: 'built_in', - begin: 'A_[a-zA-Z0-9]+' - }, - { - // consecutive commas, not for highlighting but just for relevance - begin: ',\\s*,' } - ] - }; -} - -export { autohotkey as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autohotkey.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autohotkey.js.js deleted file mode 100644 index 7068b26..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autohotkey.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/autohotkey" instead of "highlight.js/lib/languages/autohotkey.js"' - ); - } - } - emitWarning(); - import lang from './autohotkey.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autoit.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autoit.js deleted file mode 100644 index b13e686..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autoit.js +++ /dev/null @@ -1,178 +0,0 @@ -/* -Language: AutoIt -Author: Manh Tuan -Description: AutoIt language definition -Category: scripting -*/ - -/** @type LanguageFn */ -function autoit(hljs) { - const KEYWORDS = 'ByRef Case Const ContinueCase ContinueLoop ' - + 'Dim Do Else ElseIf EndFunc EndIf EndSelect ' - + 'EndSwitch EndWith Enum Exit ExitLoop For Func ' - + 'Global If In Local Next ReDim Return Select Static ' - + 'Step Switch Then To Until Volatile WEnd While With'; - - const DIRECTIVES = [ - "EndRegion", - "forcedef", - "forceref", - "ignorefunc", - "include", - "include-once", - "NoTrayIcon", - "OnAutoItStartRegister", - "pragma", - "Region", - "RequireAdmin", - "Tidy_Off", - "Tidy_On", - "Tidy_Parameters" - ]; - - const LITERAL = 'True False And Null Not Or Default'; - - const BUILT_IN = - 'Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive'; - - const COMMENT = { variants: [ - hljs.COMMENT(';', '$', { relevance: 0 }), - hljs.COMMENT('#cs', '#ce'), - hljs.COMMENT('#comments-start', '#comments-end') - ] }; - - const VARIABLE = { begin: '\\$[A-z0-9_]+' }; - - const STRING = { - className: 'string', - variants: [ - { - begin: /"/, - end: /"/, - contains: [ - { - begin: /""/, - relevance: 0 - } - ] - }, - { - begin: /'/, - end: /'/, - contains: [ - { - begin: /''/, - relevance: 0 - } - ] - } - ] - }; - - const NUMBER = { variants: [ - hljs.BINARY_NUMBER_MODE, - hljs.C_NUMBER_MODE - ] }; - - const PREPROCESSOR = { - className: 'meta', - begin: '#', - end: '$', - keywords: { keyword: DIRECTIVES }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - { - beginKeywords: 'include', - keywords: { keyword: 'include' }, - end: '$', - contains: [ - STRING, - { - className: 'string', - variants: [ - { - begin: '<', - end: '>' - }, - { - begin: /"/, - end: /"/, - contains: [ - { - begin: /""/, - relevance: 0 - } - ] - }, - { - begin: /'/, - end: /'/, - contains: [ - { - begin: /''/, - relevance: 0 - } - ] - } - ] - } - ] - }, - STRING, - COMMENT - ] - }; - - const CONSTANT = { - className: 'symbol', - // begin: '@', - // end: '$', - // keywords: 'AppDataCommonDir AppDataDir AutoItExe AutoItPID AutoItVersion AutoItX64 COM_EventObj CommonFilesDir Compiled ComputerName ComSpec CPUArch CR CRLF DesktopCommonDir DesktopDepth DesktopDir DesktopHeight DesktopRefresh DesktopWidth DocumentsCommonDir error exitCode exitMethod extended FavoritesCommonDir FavoritesDir GUI_CtrlHandle GUI_CtrlId GUI_DragFile GUI_DragId GUI_DropId GUI_WinHandle HomeDrive HomePath HomeShare HotKeyPressed HOUR IPAddress1 IPAddress2 IPAddress3 IPAddress4 KBLayout LF LocalAppDataDir LogonDNSDomain LogonDomain LogonServer MDAY MIN MON MSEC MUILang MyDocumentsDir NumParams OSArch OSBuild OSLang OSServicePack OSType OSVersion ProgramFilesDir ProgramsCommonDir ProgramsDir ScriptDir ScriptFullPath ScriptLineNumber ScriptName SEC StartMenuCommonDir StartMenuDir StartupCommonDir StartupDir SW_DISABLE SW_ENABLE SW_HIDE SW_LOCK SW_MAXIMIZE SW_MINIMIZE SW_RESTORE SW_SHOW SW_SHOWDEFAULT SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_SHOWMINNOACTIVE SW_SHOWNA SW_SHOWNOACTIVATE SW_SHOWNORMAL SW_UNLOCK SystemDir TAB TempDir TRAY_ID TrayIconFlashing TrayIconVisible UserName UserProfileDir WDAY WindowsDir WorkingDir YDAY YEAR', - // relevance: 5 - begin: '@[A-z0-9_]+' - }; - - const FUNCTION = { - beginKeywords: 'Func', - end: '$', - illegal: '\\$|\\[|%', - contains: [ - hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, { className: "title.function" }), - { - className: 'params', - begin: '\\(', - end: '\\)', - contains: [ - VARIABLE, - STRING, - NUMBER - ] - } - ] - }; - - return { - name: 'AutoIt', - case_insensitive: true, - illegal: /\/\*/, - keywords: { - keyword: KEYWORDS, - built_in: BUILT_IN, - literal: LITERAL - }, - contains: [ - COMMENT, - VARIABLE, - STRING, - NUMBER, - PREPROCESSOR, - CONSTANT, - FUNCTION - ] - }; -} - -export { autoit as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autoit.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autoit.js.js deleted file mode 100644 index 0218f2c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/autoit.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/autoit" instead of "highlight.js/lib/languages/autoit.js"' - ); - } - } - emitWarning(); - import lang from './autoit.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/avrasm.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/avrasm.js deleted file mode 100644 index d3c490d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/avrasm.js +++ /dev/null @@ -1,78 +0,0 @@ -/* -Language: AVR Assembly -Author: Vladimir Ermakov -Category: assembler -Website: https://www.microchip.com/webdoc/avrassembler/avrassembler.wb_instruction_list.html -*/ - -/** @type LanguageFn */ -function avrasm(hljs) { - return { - name: 'AVR Assembly', - case_insensitive: true, - keywords: { - $pattern: '\\.?' + hljs.IDENT_RE, - keyword: - /* mnemonic */ - 'adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs ' - + 'brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr ' - + 'clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor ' - + 'fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul ' - + 'muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs ' - + 'sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub ' - + 'subi swap tst wdr', - built_in: - /* general purpose registers */ - 'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 ' - + 'r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ' - /* IO Registers (ATMega128) */ - + 'ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h ' - + 'tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ' - + 'ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ' - + 'ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk ' - + 'tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ' - + 'ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr ' - + 'porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ' - + 'ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf', - meta: - '.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list ' - + '.listmac .macro .nolist .org .set' - }, - contains: [ - hljs.C_BLOCK_COMMENT_MODE, - hljs.COMMENT( - ';', - '$', - { relevance: 0 } - ), - hljs.C_NUMBER_MODE, // 0x..., decimal, float - hljs.BINARY_NUMBER_MODE, // 0b... - { - className: 'number', - begin: '\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)' // $..., 0o... - }, - hljs.QUOTE_STRING_MODE, - { - className: 'string', - begin: '\'', - end: '[^\\\\]\'', - illegal: '[^\\\\][^\']' - }, - { - className: 'symbol', - begin: '^[A-Za-z0-9_.$]+:' - }, - { - className: 'meta', - begin: '#', - end: '$' - }, - { // substitution within a macro - className: 'subst', - begin: '@[0-9]+' - } - ] - }; -} - -export { avrasm as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/avrasm.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/avrasm.js.js deleted file mode 100644 index 938af11..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/avrasm.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/avrasm" instead of "highlight.js/lib/languages/avrasm.js"' - ); - } - } - emitWarning(); - import lang from './avrasm.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/awk.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/awk.js deleted file mode 100644 index 2b74d39..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/awk.js +++ /dev/null @@ -1,68 +0,0 @@ -/* -Language: Awk -Author: Matthew Daly -Website: https://www.gnu.org/software/gawk/manual/gawk.html -Description: language definition for Awk scripts -Category: scripting -*/ - -/** @type LanguageFn */ -function awk(hljs) { - const VARIABLE = { - className: 'variable', - variants: [ - { begin: /\$[\w\d#@][\w\d_]*/ }, - { begin: /\$\{(.*?)\}/ } - ] - }; - const KEYWORDS = 'BEGIN END if else while do for in break continue delete next nextfile function func exit|10'; - const STRING = { - className: 'string', - contains: [ hljs.BACKSLASH_ESCAPE ], - variants: [ - { - begin: /(u|b)?r?'''/, - end: /'''/, - relevance: 10 - }, - { - begin: /(u|b)?r?"""/, - end: /"""/, - relevance: 10 - }, - { - begin: /(u|r|ur)'/, - end: /'/, - relevance: 10 - }, - { - begin: /(u|r|ur)"/, - end: /"/, - relevance: 10 - }, - { - begin: /(b|br)'/, - end: /'/ - }, - { - begin: /(b|br)"/, - end: /"/ - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }; - return { - name: 'Awk', - keywords: { keyword: KEYWORDS }, - contains: [ - VARIABLE, - STRING, - hljs.REGEXP_MODE, - hljs.HASH_COMMENT_MODE, - hljs.NUMBER_MODE - ] - }; -} - -export { awk as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/awk.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/awk.js.js deleted file mode 100644 index 5ae75bc..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/awk.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/awk" instead of "highlight.js/lib/languages/awk.js"' - ); - } - } - emitWarning(); - import lang from './awk.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/axapta.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/axapta.js deleted file mode 100644 index d840513..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/axapta.js +++ /dev/null @@ -1,188 +0,0 @@ -/* -Language: Microsoft X++ -Description: X++ is a language used in Microsoft Dynamics 365, Dynamics AX, and Axapta. -Author: Dmitri Roudakov -Website: https://dynamics.microsoft.com/en-us/ax-overview/ -Category: enterprise -*/ - -/** @type LanguageFn */ -function axapta(hljs) { - const IDENT_RE = hljs.UNDERSCORE_IDENT_RE; - const BUILT_IN_KEYWORDS = [ - 'anytype', - 'boolean', - 'byte', - 'char', - 'container', - 'date', - 'double', - 'enum', - 'guid', - 'int', - 'int64', - 'long', - 'real', - 'short', - 'str', - 'utcdatetime', - 'var' - ]; - - const LITERAL_KEYWORDS = [ - 'default', - 'false', - 'null', - 'true' - ]; - - const NORMAL_KEYWORDS = [ - 'abstract', - 'as', - 'asc', - 'avg', - 'break', - 'breakpoint', - 'by', - 'byref', - 'case', - 'catch', - 'changecompany', - 'class', - 'client', - 'client', - 'common', - 'const', - 'continue', - 'count', - 'crosscompany', - 'delegate', - 'delete_from', - 'desc', - 'display', - 'div', - 'do', - 'edit', - 'else', - 'eventhandler', - 'exists', - 'extends', - 'final', - 'finally', - 'firstfast', - 'firstonly', - 'firstonly1', - 'firstonly10', - 'firstonly100', - 'firstonly1000', - 'flush', - 'for', - 'forceliterals', - 'forcenestedloop', - 'forceplaceholders', - 'forceselectorder', - 'forupdate', - 'from', - 'generateonly', - 'group', - 'hint', - 'if', - 'implements', - 'in', - 'index', - 'insert_recordset', - 'interface', - 'internal', - 'is', - 'join', - 'like', - 'maxof', - 'minof', - 'mod', - 'namespace', - 'new', - 'next', - 'nofetch', - 'notexists', - 'optimisticlock', - 'order', - 'outer', - 'pessimisticlock', - 'print', - 'private', - 'protected', - 'public', - 'readonly', - 'repeatableread', - 'retry', - 'return', - 'reverse', - 'select', - 'server', - 'setting', - 'static', - 'sum', - 'super', - 'switch', - 'this', - 'throw', - 'try', - 'ttsabort', - 'ttsbegin', - 'ttscommit', - 'unchecked', - 'update_recordset', - 'using', - 'validtimestate', - 'void', - 'where', - 'while' - ]; - - const KEYWORDS = { - keyword: NORMAL_KEYWORDS, - built_in: BUILT_IN_KEYWORDS, - literal: LITERAL_KEYWORDS - }; - - const CLASS_DEFINITION = { - variants: [ - { match: [ - /(class|interface)\s+/, - IDENT_RE, - /\s+(extends|implements)\s+/, - IDENT_RE - ] }, - { match: [ - /class\s+/, - IDENT_RE - ] } - ], - scope: { - 2: "title.class", - 4: "title.class.inherited" - }, - keywords: KEYWORDS - }; - - return { - name: 'X++', - aliases: [ 'x++' ], - keywords: KEYWORDS, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - { - className: 'meta', - begin: '#', - end: '$' - }, - CLASS_DEFINITION - ] - }; -} - -export { axapta as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/axapta.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/axapta.js.js deleted file mode 100644 index 48a2d49..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/axapta.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/axapta" instead of "highlight.js/lib/languages/axapta.js"' - ); - } - } - emitWarning(); - import lang from './axapta.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js deleted file mode 100644 index 1fc226c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +++ /dev/null @@ -1,409 +0,0 @@ -/* -Language: Bash -Author: vah -Contributrors: Benjamin Pannell -Website: https://www.gnu.org/software/bash/ -Category: common, scripting -*/ - -/** @type LanguageFn */ -function bash(hljs) { - const regex = hljs.regex; - const VAR = {}; - const BRACED_VAR = { - begin: /\$\{/, - end: /\}/, - contains: [ - "self", - { - begin: /:-/, - contains: [ VAR ] - } // default values - ] - }; - Object.assign(VAR, { - className: 'variable', - variants: [ - { begin: regex.concat(/\$[\w\d#@][\w\d_]*/, - // negative look-ahead tries to avoid matching patterns that are not - // Perl at all like $ident$, @ident@, etc. - `(?![\\w\\d])(?![$])`) }, - BRACED_VAR - ] - }); - - const SUBST = { - className: 'subst', - begin: /\$\(/, - end: /\)/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }; - const COMMENT = hljs.inherit( - hljs.COMMENT(), - { - match: [ - /(^|\s)/, - /#.*$/ - ], - scope: { - 2: 'comment' - } - } - ); - const HERE_DOC = { - begin: /<<-?\s*(?=\w+)/, - starts: { contains: [ - hljs.END_SAME_AS_BEGIN({ - begin: /(\w+)/, - end: /(\w+)/, - className: 'string' - }) - ] } - }; - const QUOTE_STRING = { - className: 'string', - begin: /"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - VAR, - SUBST - ] - }; - SUBST.contains.push(QUOTE_STRING); - const ESCAPED_QUOTE = { - match: /\\"/ - }; - const APOS_STRING = { - className: 'string', - begin: /'/, - end: /'/ - }; - const ESCAPED_APOS = { - match: /\\'/ - }; - const ARITHMETIC = { - begin: /\$?\(\(/, - end: /\)\)/, - contains: [ - { - begin: /\d+#[0-9a-f]+/, - className: "number" - }, - hljs.NUMBER_MODE, - VAR - ] - }; - const SH_LIKE_SHELLS = [ - "fish", - "bash", - "zsh", - "sh", - "csh", - "ksh", - "tcsh", - "dash", - "scsh", - ]; - const KNOWN_SHEBANG = hljs.SHEBANG({ - binary: `(${SH_LIKE_SHELLS.join("|")})`, - relevance: 10 - }); - const FUNCTION = { - className: 'function', - begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/, - returnBegin: true, - contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: /\w[\w\d_]*/ }) ], - relevance: 0 - }; - - const KEYWORDS = [ - "if", - "then", - "else", - "elif", - "fi", - "time", - "for", - "while", - "until", - "in", - "do", - "done", - "case", - "esac", - "coproc", - "function", - "select" - ]; - - const LITERALS = [ - "true", - "false" - ]; - - // to consume paths to prevent keyword matches inside them - const PATH_MODE = { match: /(\/[a-z._-]+)+/ }; - - // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html - const SHELL_BUILT_INS = [ - "break", - "cd", - "continue", - "eval", - "exec", - "exit", - "export", - "getopts", - "hash", - "pwd", - "readonly", - "return", - "shift", - "test", - "times", - "trap", - "umask", - "unset" - ]; - - const BASH_BUILT_INS = [ - "alias", - "bind", - "builtin", - "caller", - "command", - "declare", - "echo", - "enable", - "help", - "let", - "local", - "logout", - "mapfile", - "printf", - "read", - "readarray", - "source", - "sudo", - "type", - "typeset", - "ulimit", - "unalias" - ]; - - const ZSH_BUILT_INS = [ - "autoload", - "bg", - "bindkey", - "bye", - "cap", - "chdir", - "clone", - "comparguments", - "compcall", - "compctl", - "compdescribe", - "compfiles", - "compgroups", - "compquote", - "comptags", - "comptry", - "compvalues", - "dirs", - "disable", - "disown", - "echotc", - "echoti", - "emulate", - "fc", - "fg", - "float", - "functions", - "getcap", - "getln", - "history", - "integer", - "jobs", - "kill", - "limit", - "log", - "noglob", - "popd", - "print", - "pushd", - "pushln", - "rehash", - "sched", - "setcap", - "setopt", - "stat", - "suspend", - "ttyctl", - "unfunction", - "unhash", - "unlimit", - "unsetopt", - "vared", - "wait", - "whence", - "where", - "which", - "zcompile", - "zformat", - "zftp", - "zle", - "zmodload", - "zparseopts", - "zprof", - "zpty", - "zregexparse", - "zsocket", - "zstyle", - "ztcp" - ]; - - const GNU_CORE_UTILS = [ - "chcon", - "chgrp", - "chown", - "chmod", - "cp", - "dd", - "df", - "dir", - "dircolors", - "ln", - "ls", - "mkdir", - "mkfifo", - "mknod", - "mktemp", - "mv", - "realpath", - "rm", - "rmdir", - "shred", - "sync", - "touch", - "truncate", - "vdir", - "b2sum", - "base32", - "base64", - "cat", - "cksum", - "comm", - "csplit", - "cut", - "expand", - "fmt", - "fold", - "head", - "join", - "md5sum", - "nl", - "numfmt", - "od", - "paste", - "ptx", - "pr", - "sha1sum", - "sha224sum", - "sha256sum", - "sha384sum", - "sha512sum", - "shuf", - "sort", - "split", - "sum", - "tac", - "tail", - "tr", - "tsort", - "unexpand", - "uniq", - "wc", - "arch", - "basename", - "chroot", - "date", - "dirname", - "du", - "echo", - "env", - "expr", - "factor", - // "false", // keyword literal already - "groups", - "hostid", - "id", - "link", - "logname", - "nice", - "nohup", - "nproc", - "pathchk", - "pinky", - "printenv", - "printf", - "pwd", - "readlink", - "runcon", - "seq", - "sleep", - "stat", - "stdbuf", - "stty", - "tee", - "test", - "timeout", - // "true", // keyword literal already - "tty", - "uname", - "unlink", - "uptime", - "users", - "who", - "whoami", - "yes" - ]; - - return { - name: 'Bash', - aliases: [ - 'sh', - 'zsh' - ], - keywords: { - $pattern: /\b[a-z][a-z0-9._-]+\b/, - keyword: KEYWORDS, - literal: LITERALS, - built_in: [ - ...SHELL_BUILT_INS, - ...BASH_BUILT_INS, - // Shell modifiers - "set", - "shopt", - ...ZSH_BUILT_INS, - ...GNU_CORE_UTILS - ] - }, - contains: [ - KNOWN_SHEBANG, // to catch known shells and boost relevancy - hljs.SHEBANG(), // to catch unknown shells but still highlight the shebang - FUNCTION, - ARITHMETIC, - COMMENT, - HERE_DOC, - PATH_MODE, - QUOTE_STRING, - ESCAPED_QUOTE, - APOS_STRING, - ESCAPED_APOS, - VAR - ] - }; -} - -export { bash as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js.js deleted file mode 100644 index 7b90a59..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/bash" instead of "highlight.js/lib/languages/bash.js"' - ); - } - } - emitWarning(); - import lang from './bash.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.js deleted file mode 100644 index 1037071..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.js +++ /dev/null @@ -1,236 +0,0 @@ -/* -Language: BASIC -Author: Raphaël Assénat -Description: Based on the BASIC reference from the Tandy 1000 guide -Website: https://en.wikipedia.org/wiki/Tandy_1000 -Category: system -*/ - -/** @type LanguageFn */ -function basic(hljs) { - const KEYWORDS = [ - "ABS", - "ASC", - "AND", - "ATN", - "AUTO|0", - "BEEP", - "BLOAD|10", - "BSAVE|10", - "CALL", - "CALLS", - "CDBL", - "CHAIN", - "CHDIR", - "CHR$|10", - "CINT", - "CIRCLE", - "CLEAR", - "CLOSE", - "CLS", - "COLOR", - "COM", - "COMMON", - "CONT", - "COS", - "CSNG", - "CSRLIN", - "CVD", - "CVI", - "CVS", - "DATA", - "DATE$", - "DEFDBL", - "DEFINT", - "DEFSNG", - "DEFSTR", - "DEF|0", - "SEG", - "USR", - "DELETE", - "DIM", - "DRAW", - "EDIT", - "END", - "ENVIRON", - "ENVIRON$", - "EOF", - "EQV", - "ERASE", - "ERDEV", - "ERDEV$", - "ERL", - "ERR", - "ERROR", - "EXP", - "FIELD", - "FILES", - "FIX", - "FOR|0", - "FRE", - "GET", - "GOSUB|10", - "GOTO", - "HEX$", - "IF", - "THEN", - "ELSE|0", - "INKEY$", - "INP", - "INPUT", - "INPUT#", - "INPUT$", - "INSTR", - "IMP", - "INT", - "IOCTL", - "IOCTL$", - "KEY", - "ON", - "OFF", - "LIST", - "KILL", - "LEFT$", - "LEN", - "LET", - "LINE", - "LLIST", - "LOAD", - "LOC", - "LOCATE", - "LOF", - "LOG", - "LPRINT", - "USING", - "LSET", - "MERGE", - "MID$", - "MKDIR", - "MKD$", - "MKI$", - "MKS$", - "MOD", - "NAME", - "NEW", - "NEXT", - "NOISE", - "NOT", - "OCT$", - "ON", - "OR", - "PEN", - "PLAY", - "STRIG", - "OPEN", - "OPTION", - "BASE", - "OUT", - "PAINT", - "PALETTE", - "PCOPY", - "PEEK", - "PMAP", - "POINT", - "POKE", - "POS", - "PRINT", - "PRINT]", - "PSET", - "PRESET", - "PUT", - "RANDOMIZE", - "READ", - "REM", - "RENUM", - "RESET|0", - "RESTORE", - "RESUME", - "RETURN|0", - "RIGHT$", - "RMDIR", - "RND", - "RSET", - "RUN", - "SAVE", - "SCREEN", - "SGN", - "SHELL", - "SIN", - "SOUND", - "SPACE$", - "SPC", - "SQR", - "STEP", - "STICK", - "STOP", - "STR$", - "STRING$", - "SWAP", - "SYSTEM", - "TAB", - "TAN", - "TIME$", - "TIMER", - "TROFF", - "TRON", - "TO", - "USR", - "VAL", - "VARPTR", - "VARPTR$", - "VIEW", - "WAIT", - "WHILE", - "WEND", - "WIDTH", - "WINDOW", - "WRITE", - "XOR" - ]; - - return { - name: 'BASIC', - case_insensitive: true, - illegal: '^\.', - // Support explicitly typed variables that end with $%! or #. - keywords: { - $pattern: '[a-zA-Z][a-zA-Z0-9_$%!#]*', - keyword: KEYWORDS - }, - contains: [ - { - // Match strings that start with " and end with " or a line break - scope: 'string', - begin: /"/, - end: /"|$/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - hljs.COMMENT('REM', '$', { relevance: 10 }), - hljs.COMMENT('\'', '$', { relevance: 0 }), - { - // Match line numbers - className: 'symbol', - begin: '^[0-9]+ ', - relevance: 10 - }, - { - // Match typed numeric constants (1000, 12.34!, 1.2e5, 1.5#, 1.2D2) - className: 'number', - begin: '\\b\\d+(\\.\\d+)?([edED]\\d+)?[#\!]?', - relevance: 0 - }, - { - // Match hexadecimal numbers (&Hxxxx) - className: 'number', - begin: '(&[hH][0-9a-fA-F]{1,4})' - }, - { - // Match octal numbers (&Oxxxxxx) - className: 'number', - begin: '(&[oO][0-7]{1,6})' - } - ] - }; -} - -export { basic as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.js.js deleted file mode 100644 index 021da05..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/basic" instead of "highlight.js/lib/languages/basic.js"' - ); - } - } - emitWarning(); - import lang from './basic.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bnf.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bnf.js deleted file mode 100644 index 345d1cb..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bnf.js +++ /dev/null @@ -1,39 +0,0 @@ -/* -Language: Backus–Naur Form -Website: https://en.wikipedia.org/wiki/Backus–Naur_form -Category: syntax -Author: Oleg Efimov -*/ - -/** @type LanguageFn */ -function bnf(hljs) { - return { - name: 'Backus–Naur Form', - contains: [ - // Attribute - { - className: 'attribute', - begin: // - }, - // Specific - { - begin: /::=/, - end: /$/, - contains: [ - { - begin: // - }, - // Common - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - } - ] - }; -} - -export { bnf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bnf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bnf.js.js deleted file mode 100644 index 4ab9a08..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bnf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/bnf" instead of "highlight.js/lib/languages/bnf.js"' - ); - } - } - emitWarning(); - import lang from './bnf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/brainfuck.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/brainfuck.js deleted file mode 100644 index 02c2ae1..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/brainfuck.js +++ /dev/null @@ -1,54 +0,0 @@ -/* -Language: Brainfuck -Author: Evgeny Stepanischev -Website: https://esolangs.org/wiki/Brainfuck -*/ - -/** @type LanguageFn */ -function brainfuck(hljs) { - const LITERAL = { - className: 'literal', - begin: /[+-]+/, - relevance: 0 - }; - return { - name: 'Brainfuck', - aliases: [ 'bf' ], - contains: [ - hljs.COMMENT( - /[^\[\]\.,\+\-<> \r\n]/, - /[\[\]\.,\+\-<> \r\n]/, - { - contains: [ - { - match: /[ ]+[^\[\]\.,\+\-<> \r\n]/, - relevance: 0 - } - ], - returnEnd: true, - relevance: 0 - } - ), - { - className: 'title', - begin: '[\\[\\]]', - relevance: 0 - }, - { - className: 'string', - begin: '[\\.,]', - relevance: 0 - }, - { - // this mode works as the only relevance counter - // it looks ahead to find the start of a run of literals - // so only the runs are counted as relevant - begin: /(?=\+\+|--)/, - contains: [ LITERAL ] - }, - LITERAL - ] - }; -} - -export { brainfuck as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/brainfuck.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/brainfuck.js.js deleted file mode 100644 index 0c3dee4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/brainfuck.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/brainfuck" instead of "highlight.js/lib/languages/brainfuck.js"' - ); - } - } - emitWarning(); - import lang from './brainfuck.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js deleted file mode 100644 index 65bbd43..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js +++ /dev/null @@ -1,333 +0,0 @@ -/* -Language: C -Category: common, system -Website: https://en.wikipedia.org/wiki/C_(programming_language) -*/ - -/** @type LanguageFn */ -function c(hljs) { - const regex = hljs.regex; - // added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does - // not include such support nor can we be sure all the grammars depending - // on it would desire this behavior - const C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$', { contains: [ { begin: /\\\n/ } ] }); - const DECLTYPE_AUTO_RE = 'decltype\\(auto\\)'; - const NAMESPACE_RE = '[a-zA-Z_]\\w*::'; - const TEMPLATE_ARGUMENT_RE = '<[^<>]+>'; - const FUNCTION_TYPE_RE = '(' - + DECLTYPE_AUTO_RE + '|' - + regex.optional(NAMESPACE_RE) - + '[a-zA-Z_]\\w*' + regex.optional(TEMPLATE_ARGUMENT_RE) - + ')'; - - - const TYPES = { - className: 'type', - variants: [ - { begin: '\\b[a-z\\d_]*_t\\b' }, - { match: /\batomic_[a-z]{3,6}\b/ } - ] - - }; - - // https://en.cppreference.com/w/cpp/language/escape - // \\ \x \xFF \u2837 \u00323747 \374 - const CHARACTER_ESCAPES = '\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)'; - const STRINGS = { - className: 'string', - variants: [ - { - begin: '(u8?|U|L)?"', - end: '"', - illegal: '\\n', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: '(u8?|U|L)?\'(' + CHARACTER_ESCAPES + "|.)", - end: '\'', - illegal: '.' - }, - hljs.END_SAME_AS_BEGIN({ - begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/, - end: /\)([^()\\ ]{0,16})"/ - }) - ] - }; - - const NUMBERS = { - className: 'number', - variants: [ - { match: /\b(0b[01']+)/ }, - { match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ }, - { match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ }, - { match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ } - ], - relevance: 0 - }; - - const PREPROCESSOR = { - className: 'meta', - begin: /#\s*[a-z]+\b/, - end: /$/, - keywords: { keyword: - 'if else elif endif define undef warning error line ' - + 'pragma _Pragma ifdef ifndef elifdef elifndef include' }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - hljs.inherit(STRINGS, { className: 'string' }), - { - className: 'string', - begin: /<.*?>/ - }, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; - - const TITLE_MODE = { - className: 'title', - begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE, - relevance: 0 - }; - - const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + '\\s*\\('; - - const C_KEYWORDS = [ - "asm", - "auto", - "break", - "case", - "continue", - "default", - "do", - "else", - "enum", - "extern", - "for", - "fortran", - "goto", - "if", - "inline", - "register", - "restrict", - "return", - "sizeof", - "typeof", - "typeof_unqual", - "struct", - "switch", - "typedef", - "union", - "volatile", - "while", - "_Alignas", - "_Alignof", - "_Atomic", - "_Generic", - "_Noreturn", - "_Static_assert", - "_Thread_local", - // aliases - "alignas", - "alignof", - "noreturn", - "static_assert", - "thread_local", - // not a C keyword but is, for all intents and purposes, treated exactly like one. - "_Pragma" - ]; - - const C_TYPES = [ - "float", - "double", - "signed", - "unsigned", - "int", - "short", - "long", - "char", - "void", - "_Bool", - "_BitInt", - "_Complex", - "_Imaginary", - "_Decimal32", - "_Decimal64", - "_Decimal96", - "_Decimal128", - "_Decimal64x", - "_Decimal128x", - "_Float16", - "_Float32", - "_Float64", - "_Float128", - "_Float32x", - "_Float64x", - "_Float128x", - // modifiers - "const", - "static", - "constexpr", - // aliases - "complex", - "bool", - "imaginary" - ]; - - const KEYWORDS = { - keyword: C_KEYWORDS, - type: C_TYPES, - literal: 'true false NULL', - // TODO: apply hinting work similar to what was done in cpp.js - built_in: 'std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream ' - + 'auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set ' - + 'unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos ' - + 'asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp ' - + 'fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper ' - + 'isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow ' - + 'printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp ' - + 'strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan ' - + 'vfprintf vprintf vsprintf endl initializer_list unique_ptr', - }; - - const EXPRESSION_CONTAINS = [ - PREPROCESSOR, - TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - NUMBERS, - STRINGS - ]; - - const EXPRESSION_CONTEXT = { - // This mode covers expression context where we can't expect a function - // definition and shouldn't highlight anything that looks like one: - // `return some()`, `else if()`, `(x*sum(1, 2))` - variants: [ - { - begin: /=/, - end: /;/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - beginKeywords: 'new throw return else', - end: /;/ - } - ], - keywords: KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ - { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ 'self' ]), - relevance: 0 - } - ]), - relevance: 0 - }; - - const FUNCTION_DECLARATION = { - begin: '(' + FUNCTION_TYPE_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE, - returnBegin: true, - end: /[{;=]/, - excludeEnd: true, - keywords: KEYWORDS, - illegal: /[^\w\s\*&:<>.]/, - contains: [ - { // to prevent it from being confused as the function title - begin: DECLTYPE_AUTO_RE, - keywords: KEYWORDS, - relevance: 0 - }, - { - begin: FUNCTION_TITLE, - returnBegin: true, - contains: [ hljs.inherit(TITLE_MODE, { className: "title.function" }) ], - relevance: 0 - }, - // allow for multiple declarations, e.g.: - // extern void f(int), g(char); - { - relevance: 0, - match: /,/ - }, - { - className: 'params', - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - relevance: 0, - contains: [ - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - TYPES, - // Count matching parentheses. - { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - relevance: 0, - contains: [ - 'self', - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - TYPES - ] - } - ] - }, - TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - PREPROCESSOR - ] - }; - - return { - name: "C", - aliases: [ 'h' ], - keywords: KEYWORDS, - // Until differentiations are added between `c` and `cpp`, `c` will - // not be auto-detected to avoid auto-detect conflicts between C and C++ - disableAutodetect: true, - illegal: '=]/, - contains: [ - { beginKeywords: "final class struct" }, - hljs.TITLE_MODE - ] - } - ]), - exports: { - preprocessor: PREPROCESSOR, - strings: STRINGS, - keywords: KEYWORDS - } - }; -} - -export { c as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js.js deleted file mode 100644 index cd45a8d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/c" instead of "highlight.js/lib/languages/c.js"' - ); - } - } - emitWarning(); - import lang from './c.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cal.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cal.js deleted file mode 100644 index 9ec55e8..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cal.js +++ /dev/null @@ -1,160 +0,0 @@ -/* -Language: C/AL -Author: Kenneth Fuglsang Christensen -Description: Provides highlighting of Microsoft Dynamics NAV C/AL code files -Website: https://docs.microsoft.com/en-us/dynamics-nav/programming-in-c-al -Category: enterprise -*/ - -/** @type LanguageFn */ -function cal(hljs) { - const regex = hljs.regex; - const KEYWORDS = [ - "div", - "mod", - "in", - "and", - "or", - "not", - "xor", - "asserterror", - "begin", - "case", - "do", - "downto", - "else", - "end", - "exit", - "for", - "local", - "if", - "of", - "repeat", - "then", - "to", - "until", - "while", - "with", - "var" - ]; - const LITERALS = 'false true'; - const COMMENT_MODES = [ - hljs.C_LINE_COMMENT_MODE, - hljs.COMMENT( - /\{/, - /\}/, - { relevance: 0 } - ), - hljs.COMMENT( - /\(\*/, - /\*\)/, - { relevance: 10 } - ) - ]; - const STRING = { - className: 'string', - begin: /'/, - end: /'/, - contains: [ { begin: /''/ } ] - }; - const CHAR_STRING = { - className: 'string', - begin: /(#\d+)+/ - }; - const DATE = { - className: 'number', - begin: '\\b\\d+(\\.\\d+)?(DT|D|T)', - relevance: 0 - }; - const DBL_QUOTED_VARIABLE = { - className: 'string', // not a string technically but makes sense to be highlighted in the same style - begin: '"', - end: '"' - }; - - const PROCEDURE = { - match: [ - /procedure/, - /\s+/, - /[a-zA-Z_][\w@]*/, - /\s*/ - ], - scope: { - 1: "keyword", - 3: "title.function" - }, - contains: [ - { - className: 'params', - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - contains: [ - STRING, - CHAR_STRING, - hljs.NUMBER_MODE - ] - }, - ...COMMENT_MODES - ] - }; - - const OBJECT_TYPES = [ - "Table", - "Form", - "Report", - "Dataport", - "Codeunit", - "XMLport", - "MenuSuite", - "Page", - "Query" - ]; - const OBJECT = { - match: [ - /OBJECT/, - /\s+/, - regex.either(...OBJECT_TYPES), - /\s+/, - /\d+/, - /\s+(?=[^\s])/, - /.*/, - /$/ - ], - relevance: 3, - scope: { - 1: "keyword", - 3: "type", - 5: "number", - 7: "title" - } - }; - - const PROPERTY = { - match: /[\w]+(?=\=)/, - scope: "attribute", - relevance: 0 - }; - - return { - name: 'C/AL', - case_insensitive: true, - keywords: { - keyword: KEYWORDS, - literal: LITERALS - }, - illegal: /\/\*/, - contains: [ - PROPERTY, - STRING, - CHAR_STRING, - DATE, - DBL_QUOTED_VARIABLE, - hljs.NUMBER_MODE, - OBJECT, - PROCEDURE - ] - }; -} - -export { cal as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cal.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cal.js.js deleted file mode 100644 index 396450f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cal.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/cal" instead of "highlight.js/lib/languages/cal.js"' - ); - } - } - emitWarning(); - import lang from './cal.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/capnproto.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/capnproto.js deleted file mode 100644 index 5560072..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/capnproto.js +++ /dev/null @@ -1,99 +0,0 @@ -/* -Language: Cap’n Proto -Author: Oleg Efimov -Description: Cap’n Proto message definition format -Website: https://capnproto.org/capnp-tool.html -Category: protocols -*/ - -/** @type LanguageFn */ -function capnproto(hljs) { - const KEYWORDS = [ - "struct", - "enum", - "interface", - "union", - "group", - "import", - "using", - "const", - "annotation", - "extends", - "in", - "of", - "on", - "as", - "with", - "from", - "fixed" - ]; - const TYPES = [ - "Void", - "Bool", - "Int8", - "Int16", - "Int32", - "Int64", - "UInt8", - "UInt16", - "UInt32", - "UInt64", - "Float32", - "Float64", - "Text", - "Data", - "AnyPointer", - "AnyStruct", - "Capability", - "List" - ]; - const LITERALS = [ - "true", - "false" - ]; - const CLASS_DEFINITION = { - variants: [ - { match: [ - /(struct|enum|interface)/, - /\s+/, - hljs.IDENT_RE - ] }, - { match: [ - /extends/, - /\s*\(/, - hljs.IDENT_RE, - /\s*\)/ - ] } - ], - scope: { - 1: "keyword", - 3: "title.class" - } - }; - return { - name: 'Cap’n Proto', - aliases: [ 'capnp' ], - keywords: { - keyword: KEYWORDS, - type: TYPES, - literal: LITERALS - }, - contains: [ - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE, - hljs.HASH_COMMENT_MODE, - { - className: 'meta', - begin: /@0x[\w\d]{16};/, - illegal: /\n/ - }, - { - className: 'symbol', - begin: /@\d+\b/ - }, - CLASS_DEFINITION - ] - }; -} - -export { capnproto as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/capnproto.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/capnproto.js.js deleted file mode 100644 index 23a8a0e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/capnproto.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/capnproto" instead of "highlight.js/lib/languages/capnproto.js"' - ); - } - } - emitWarning(); - import lang from './capnproto.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ceylon.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ceylon.js deleted file mode 100644 index 31cb17e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ceylon.js +++ /dev/null @@ -1,140 +0,0 @@ -/* -Language: Ceylon -Author: Lucas Werkmeister -Website: https://ceylon-lang.org -Category: system -*/ - -/** @type LanguageFn */ -function ceylon(hljs) { - // 2.3. Identifiers and keywords - const KEYWORDS = [ - "assembly", - "module", - "package", - "import", - "alias", - "class", - "interface", - "object", - "given", - "value", - "assign", - "void", - "function", - "new", - "of", - "extends", - "satisfies", - "abstracts", - "in", - "out", - "return", - "break", - "continue", - "throw", - "assert", - "dynamic", - "if", - "else", - "switch", - "case", - "for", - "while", - "try", - "catch", - "finally", - "then", - "let", - "this", - "outer", - "super", - "is", - "exists", - "nonempty" - ]; - // 7.4.1 Declaration Modifiers - const DECLARATION_MODIFIERS = [ - "shared", - "abstract", - "formal", - "default", - "actual", - "variable", - "late", - "native", - "deprecated", - "final", - "sealed", - "annotation", - "suppressWarnings", - "small" - ]; - // 7.4.2 Documentation - const DOCUMENTATION = [ - "doc", - "by", - "license", - "see", - "throws", - "tagged" - ]; - const SUBST = { - className: 'subst', - excludeBegin: true, - excludeEnd: true, - begin: /``/, - end: /``/, - keywords: KEYWORDS, - relevance: 10 - }; - const EXPRESSIONS = [ - { - // verbatim string - className: 'string', - begin: '"""', - end: '"""', - relevance: 10 - }, - { - // string literal or template - className: 'string', - begin: '"', - end: '"', - contains: [ SUBST ] - }, - { - // character literal - className: 'string', - begin: "'", - end: "'" - }, - { - // numeric literal - className: 'number', - begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?', - relevance: 0 - } - ]; - SUBST.contains = EXPRESSIONS; - - return { - name: 'Ceylon', - keywords: { - keyword: KEYWORDS.concat(DECLARATION_MODIFIERS), - meta: DOCUMENTATION - }, - illegal: '\\$[^01]|#[^0-9a-fA-F]', - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.COMMENT('/\\*', '\\*/', { contains: [ 'self' ] }), - { - // compiler annotation - className: 'meta', - begin: '@[a-z]\\w*(?::"[^"]*")?' - } - ].concat(EXPRESSIONS) - }; -} - -export { ceylon as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ceylon.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ceylon.js.js deleted file mode 100644 index 11bf995..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ceylon.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ceylon" instead of "highlight.js/lib/languages/ceylon.js"' - ); - } - } - emitWarning(); - import lang from './ceylon.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clean.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clean.js deleted file mode 100644 index 05a477d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clean.js +++ /dev/null @@ -1,67 +0,0 @@ -/* -Language: Clean -Author: Camil Staps -Category: functional -Website: http://clean.cs.ru.nl -*/ - -/** @type LanguageFn */ -function clean(hljs) { - const KEYWORDS = [ - "if", - "let", - "in", - "with", - "where", - "case", - "of", - "class", - "instance", - "otherwise", - "implementation", - "definition", - "system", - "module", - "from", - "import", - "qualified", - "as", - "special", - "code", - "inline", - "foreign", - "export", - "ccall", - "stdcall", - "generic", - "derive", - "infix", - "infixl", - "infixr" - ]; - return { - name: 'Clean', - aliases: [ - 'icl', - 'dcl' - ], - keywords: { - keyword: KEYWORDS, - built_in: - 'Int Real Char Bool', - literal: - 'True False' - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - { // relevance booster - begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>' } - ] - }; -} - -export { clean as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clean.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clean.js.js deleted file mode 100644 index e399c06..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clean.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/clean" instead of "highlight.js/lib/languages/clean.js"' - ); - } - } - emitWarning(); - import lang from './clean.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure-repl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure-repl.js deleted file mode 100644 index 5c45a17..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure-repl.js +++ /dev/null @@ -1,27 +0,0 @@ -/* -Language: Clojure REPL -Description: Clojure REPL sessions -Author: Ivan Sagalaev -Requires: clojure.js -Website: https://clojure.org -Category: lisp -*/ - -/** @type LanguageFn */ -function clojureRepl(hljs) { - return { - name: 'Clojure REPL', - contains: [ - { - className: 'meta.prompt', - begin: /^([\w.-]+|\s*#_)?=>/, - starts: { - end: /$/, - subLanguage: 'clojure' - } - } - ] - }; -} - -export { clojureRepl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure-repl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure-repl.js.js deleted file mode 100644 index b910a65..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure-repl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/clojure-repl" instead of "highlight.js/lib/languages/clojure-repl.js"' - ); - } - } - emitWarning(); - import lang from './clojure-repl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure.js deleted file mode 100644 index 5068a6b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure.js +++ /dev/null @@ -1,184 +0,0 @@ -/* -Language: Clojure -Description: Clojure syntax (based on lisp.js) -Author: mfornos -Website: https://clojure.org -Category: lisp -*/ - -/** @type LanguageFn */ -function clojure(hljs) { - const SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&\''; - const SYMBOL_RE = '[#]?[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:$#]*'; - const globals = 'def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord'; - const keywords = { - $pattern: SYMBOL_RE, - built_in: - // Clojure keywords - globals + ' ' - + 'cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem ' - + 'quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? ' - + 'set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? ' - + 'class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? ' - + 'string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . ' - + 'inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last ' - + 'drop-while while intern condp case reduced cycle split-at split-with repeat replicate ' - + 'iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext ' - + 'nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends ' - + 'add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler ' - + 'set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter ' - + 'monitor-exit macroexpand macroexpand-1 for dosync and or ' - + 'when when-not when-let comp juxt partial sequence memoize constantly complement identity assert ' - + 'peek pop doto proxy first rest cons cast coll last butlast ' - + 'sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import ' - + 'refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! ' - + 'assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger ' - + 'bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline ' - + 'flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking ' - + 'assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! ' - + 'reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! ' - + 'new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty ' - + 'hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list ' - + 'disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer ' - + 'chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate ' - + 'unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta ' - + 'lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize' - }; - - const SYMBOL = { - begin: SYMBOL_RE, - relevance: 0 - }; - const NUMBER = { - scope: 'number', - relevance: 0, - variants: [ - { match: /[-+]?0[xX][0-9a-fA-F]+N?/ }, // hexadecimal // 0x2a - { match: /[-+]?0[0-7]+N?/ }, // octal // 052 - { match: /[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/ }, // variable radix from 2 to 36 // 2r101010, 8r52, 36r16 - { match: /[-+]?[0-9]+\/[0-9]+N?/ }, // ratio // 1/2 - { match: /[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/ }, // float // 0.42 4.2E-1M 42E1 42M - { match: /[-+]?([1-9][0-9]*|0)N?/ }, // int (don't match leading 0) // 42 42N - ] - }; - const CHARACTER = { - scope: 'character', - variants: [ - { match: /\\o[0-3]?[0-7]{1,2}/ }, // Unicode Octal 0 - 377 - { match: /\\u[0-9a-fA-F]{4}/ }, // Unicode Hex 0000 - FFFF - { match: /\\(newline|space|tab|formfeed|backspace|return)/ }, // special characters - { - match: /\\\S/, - relevance: 0 - } // any non-whitespace char - ] - }; - const REGEX = { - scope: 'regex', - begin: /#"/, - end: /"/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }; - const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }); - const COMMA = { - scope: 'punctuation', - match: /,/, - relevance: 0 - }; - const COMMENT = hljs.COMMENT( - ';', - '$', - { relevance: 0 } - ); - const LITERAL = { - className: 'literal', - begin: /\b(true|false|nil)\b/ - }; - const COLLECTION = { - begin: "\\[|(#::?" + SYMBOL_RE + ")?\\{", - end: '[\\]\\}]', - relevance: 0 - }; - const KEY = { - className: 'symbol', - begin: '[:]{1,2}' + SYMBOL_RE - }; - const LIST = { - begin: '\\(', - end: '\\)' - }; - const BODY = { - endsWithParent: true, - relevance: 0 - }; - const NAME = { - keywords: keywords, - className: 'name', - begin: SYMBOL_RE, - relevance: 0, - starts: BODY - }; - const DEFAULT_CONTAINS = [ - COMMA, - LIST, - CHARACTER, - REGEX, - STRING, - COMMENT, - KEY, - COLLECTION, - NUMBER, - LITERAL, - SYMBOL - ]; - - const GLOBAL = { - beginKeywords: globals, - keywords: { - $pattern: SYMBOL_RE, - keyword: globals - }, - end: '(\\[|#|\\d|"|:|\\{|\\)|\\(|$)', - contains: [ - { - className: 'title', - begin: SYMBOL_RE, - relevance: 0, - excludeEnd: true, - // we can only have a single title - endsParent: true - } - ].concat(DEFAULT_CONTAINS) - }; - - LIST.contains = [ - GLOBAL, - NAME, - BODY - ]; - BODY.contains = DEFAULT_CONTAINS; - COLLECTION.contains = DEFAULT_CONTAINS; - - return { - name: 'Clojure', - aliases: [ - 'clj', - 'edn' - ], - illegal: /\S/, - contains: [ - COMMA, - LIST, - CHARACTER, - REGEX, - STRING, - COMMENT, - KEY, - COLLECTION, - NUMBER, - LITERAL - ] - }; -} - -export { clojure as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure.js.js deleted file mode 100644 index f5230a3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/clojure.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/clojure" instead of "highlight.js/lib/languages/clojure.js"' - ); - } - } - emitWarning(); - import lang from './clojure.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cmake.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cmake.js deleted file mode 100644 index 8efa659..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cmake.js +++ /dev/null @@ -1,64 +0,0 @@ -/* -Language: CMake -Description: CMake is an open-source cross-platform system for build automation. -Author: Igor Kalnitsky -Website: https://cmake.org -Category: build-system -*/ - -/** @type LanguageFn */ -function cmake(hljs) { - return { - name: 'CMake', - aliases: [ 'cmake.in' ], - case_insensitive: true, - keywords: { keyword: - // scripting commands - 'break cmake_host_system_information cmake_minimum_required cmake_parse_arguments ' - + 'cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro ' - + 'endwhile execute_process file find_file find_library find_package find_path ' - + 'find_program foreach function get_cmake_property get_directory_property ' - + 'get_filename_component get_property if include include_guard list macro ' - + 'mark_as_advanced math message option return separate_arguments ' - + 'set_directory_properties set_property set site_name string unset variable_watch while ' - // project commands - + 'add_compile_definitions add_compile_options add_custom_command add_custom_target ' - + 'add_definitions add_dependencies add_executable add_library add_link_options ' - + 'add_subdirectory add_test aux_source_directory build_command create_test_sourcelist ' - + 'define_property enable_language enable_testing export fltk_wrap_ui ' - + 'get_source_file_property get_target_property get_test_property include_directories ' - + 'include_external_msproject include_regular_expression install link_directories ' - + 'link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions ' - + 'set_source_files_properties set_target_properties set_tests_properties source_group ' - + 'target_compile_definitions target_compile_features target_compile_options ' - + 'target_include_directories target_link_directories target_link_libraries ' - + 'target_link_options target_sources try_compile try_run ' - // CTest commands - + 'ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ' - + 'ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ' - + 'ctest_test ctest_update ctest_upload ' - // deprecated commands - + 'build_name exec_program export_library_dependencies install_files install_programs ' - + 'install_targets load_command make_directory output_required_files remove ' - + 'subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file ' - + 'qt5_use_modules qt5_use_package qt5_wrap_cpp ' - // core keywords - + 'on off true false and or not command policy target test exists is_newer_than ' - + 'is_directory is_symlink is_absolute matches less greater equal less_equal ' - + 'greater_equal strless strgreater strequal strless_equal strgreater_equal version_less ' - + 'version_greater version_equal version_less_equal version_greater_equal in_list defined' }, - contains: [ - { - className: 'variable', - begin: /\$\{/, - end: /\}/ - }, - hljs.COMMENT(/#\[\[/, /]]/), - hljs.HASH_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE - ] - }; -} - -export { cmake as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cmake.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cmake.js.js deleted file mode 100644 index 829fced..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cmake.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/cmake" instead of "highlight.js/lib/languages/cmake.js"' - ); - } - } - emitWarning(); - import lang from './cmake.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coffeescript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coffeescript.js deleted file mode 100644 index 35d4f91..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coffeescript.js +++ /dev/null @@ -1,368 +0,0 @@ -const KEYWORDS = [ - "as", // for exports - "in", - "of", - "if", - "for", - "while", - "finally", - "var", - "new", - "function", - "do", - "return", - "void", - "else", - "break", - "catch", - "instanceof", - "with", - "throw", - "case", - "default", - "try", - "switch", - "continue", - "typeof", - "delete", - "let", - "yield", - "const", - "class", - // JS handles these with a special rule - // "get", - // "set", - "debugger", - "async", - "await", - "static", - "import", - "from", - "export", - "extends", - // It's reached stage 3, which is "recommended for implementation": - "using" -]; -const LITERALS = [ - "true", - "false", - "null", - "undefined", - "NaN", - "Infinity" -]; - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects -const TYPES = [ - // Fundamental objects - "Object", - "Function", - "Boolean", - "Symbol", - // numbers and dates - "Math", - "Date", - "Number", - "BigInt", - // text - "String", - "RegExp", - // Indexed collections - "Array", - "Float32Array", - "Float64Array", - "Int8Array", - "Uint8Array", - "Uint8ClampedArray", - "Int16Array", - "Int32Array", - "Uint16Array", - "Uint32Array", - "BigInt64Array", - "BigUint64Array", - // Keyed collections - "Set", - "Map", - "WeakSet", - "WeakMap", - // Structured data - "ArrayBuffer", - "SharedArrayBuffer", - "Atomics", - "DataView", - "JSON", - // Control abstraction objects - "Promise", - "Generator", - "GeneratorFunction", - "AsyncFunction", - // Reflection - "Reflect", - "Proxy", - // Internationalization - "Intl", - // WebAssembly - "WebAssembly" -]; - -const ERROR_TYPES = [ - "Error", - "EvalError", - "InternalError", - "RangeError", - "ReferenceError", - "SyntaxError", - "TypeError", - "URIError" -]; - -const BUILT_IN_GLOBALS = [ - "setInterval", - "setTimeout", - "clearInterval", - "clearTimeout", - - "require", - "exports", - - "eval", - "isFinite", - "isNaN", - "parseFloat", - "parseInt", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "unescape" -]; - -const BUILT_INS = [].concat( - BUILT_IN_GLOBALS, - TYPES, - ERROR_TYPES -); - -/* -Language: CoffeeScript -Author: Dmytrii Nagirniak -Contributors: Oleg Efimov , Cédric Néhémie -Description: CoffeeScript is a programming language that transcompiles to JavaScript. For info about language see http://coffeescript.org/ -Category: scripting -Website: https://coffeescript.org -*/ - - -/** @type LanguageFn */ -function coffeescript(hljs) { - const COFFEE_BUILT_INS = [ - 'npm', - 'print' - ]; - const COFFEE_LITERALS = [ - 'yes', - 'no', - 'on', - 'off' - ]; - const COFFEE_KEYWORDS = [ - 'then', - 'unless', - 'until', - 'loop', - 'by', - 'when', - 'and', - 'or', - 'is', - 'isnt', - 'not' - ]; - const NOT_VALID_KEYWORDS = [ - "var", - "const", - "let", - "function", - "static" - ]; - const excluding = (list) => - (kw) => !list.includes(kw); - const KEYWORDS$1 = { - keyword: KEYWORDS.concat(COFFEE_KEYWORDS).filter(excluding(NOT_VALID_KEYWORDS)), - literal: LITERALS.concat(COFFEE_LITERALS), - built_in: BUILT_INS.concat(COFFEE_BUILT_INS) - }; - const JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; - const SUBST = { - className: 'subst', - begin: /#\{/, - end: /\}/, - keywords: KEYWORDS$1 - }; - const EXPRESSIONS = [ - hljs.BINARY_NUMBER_MODE, - hljs.inherit(hljs.C_NUMBER_MODE, { starts: { - end: '(\\s*/)?', - relevance: 0 - } }), // a number tries to eat the following slash to prevent treating it as a regexp - { - className: 'string', - variants: [ - { - begin: /'''/, - end: /'''/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: /'/, - end: /'/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: /"""/, - end: /"""/, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }, - { - begin: /"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - } - ] - }, - { - className: 'regexp', - variants: [ - { - begin: '///', - end: '///', - contains: [ - SUBST, - hljs.HASH_COMMENT_MODE - ] - }, - { - begin: '//[gim]{0,3}(?=\\W)', - relevance: 0 - }, - { - // regex can't start with space to parse x / 2 / 3 as two divisions - // regex can't start with *, and it supports an "illegal" in the main mode - begin: /\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/ } - ] - }, - { begin: '@' + JS_IDENT_RE // relevance booster - }, - { - subLanguage: 'javascript', - excludeBegin: true, - excludeEnd: true, - variants: [ - { - begin: '```', - end: '```' - }, - { - begin: '`', - end: '`' - } - ] - } - ]; - SUBST.contains = EXPRESSIONS; - - const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE }); - const POSSIBLE_PARAMS_RE = '(\\(.*\\)\\s*)?\\B[-=]>'; - const PARAMS = { - className: 'params', - begin: '\\([^\\(]', - returnBegin: true, - /* We need another contained nameless mode to not have every nested - pair of parens to be called "params" */ - contains: [ - { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS$1, - contains: [ 'self' ].concat(EXPRESSIONS) - } - ] - }; - - const CLASS_DEFINITION = { - variants: [ - { match: [ - /class\s+/, - JS_IDENT_RE, - /\s+extends\s+/, - JS_IDENT_RE - ] }, - { match: [ - /class\s+/, - JS_IDENT_RE - ] } - ], - scope: { - 2: "title.class", - 4: "title.class.inherited" - }, - keywords: KEYWORDS$1 - }; - - return { - name: 'CoffeeScript', - aliases: [ - 'coffee', - 'cson', - 'iced' - ], - keywords: KEYWORDS$1, - illegal: /\/\*/, - contains: [ - ...EXPRESSIONS, - hljs.COMMENT('###', '###'), - hljs.HASH_COMMENT_MODE, - { - className: 'function', - begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + POSSIBLE_PARAMS_RE, - end: '[-=]>', - returnBegin: true, - contains: [ - TITLE, - PARAMS - ] - }, - { - // anonymous function start - begin: /[:\(,=]\s*/, - relevance: 0, - contains: [ - { - className: 'function', - begin: POSSIBLE_PARAMS_RE, - end: '[-=]>', - returnBegin: true, - contains: [ PARAMS ] - } - ] - }, - CLASS_DEFINITION, - { - begin: JS_IDENT_RE + ':', - end: ':', - returnBegin: true, - returnEnd: true, - relevance: 0 - } - ] - }; -} - -export { coffeescript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coffeescript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coffeescript.js.js deleted file mode 100644 index 2611a7f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coffeescript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/coffeescript" instead of "highlight.js/lib/languages/coffeescript.js"' - ); - } - } - emitWarning(); - import lang from './coffeescript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coq.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coq.js deleted file mode 100644 index 0c965d2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coq.js +++ /dev/null @@ -1,445 +0,0 @@ -/* -Language: Coq -Author: Stephan Boyer -Category: functional -Website: https://coq.inria.fr -*/ - -/** @type LanguageFn */ -function coq(hljs) { - const KEYWORDS = [ - "_|0", - "as", - "at", - "cofix", - "else", - "end", - "exists", - "exists2", - "fix", - "for", - "forall", - "fun", - "if", - "IF", - "in", - "let", - "match", - "mod", - "Prop", - "return", - "Set", - "then", - "Type", - "using", - "where", - "with", - "Abort", - "About", - "Add", - "Admit", - "Admitted", - "All", - "Arguments", - "Assumptions", - "Axiom", - "Back", - "BackTo", - "Backtrack", - "Bind", - "Blacklist", - "Canonical", - "Cd", - "Check", - "Class", - "Classes", - "Close", - "Coercion", - "Coercions", - "CoFixpoint", - "CoInductive", - "Collection", - "Combined", - "Compute", - "Conjecture", - "Conjectures", - "Constant", - "constr", - "Constraint", - "Constructors", - "Context", - "Corollary", - "CreateHintDb", - "Cut", - "Declare", - "Defined", - "Definition", - "Delimit", - "Dependencies", - "Dependent", - "Derive", - "Drop", - "eauto", - "End", - "Equality", - "Eval", - "Example", - "Existential", - "Existentials", - "Existing", - "Export", - "exporting", - "Extern", - "Extract", - "Extraction", - "Fact", - "Field", - "Fields", - "File", - "Fixpoint", - "Focus", - "for", - "From", - "Function", - "Functional", - "Generalizable", - "Global", - "Goal", - "Grab", - "Grammar", - "Graph", - "Guarded", - "Heap", - "Hint", - "HintDb", - "Hints", - "Hypotheses", - "Hypothesis", - "ident", - "Identity", - "If", - "Immediate", - "Implicit", - "Import", - "Include", - "Inductive", - "Infix", - "Info", - "Initial", - "Inline", - "Inspect", - "Instance", - "Instances", - "Intro", - "Intros", - "Inversion", - "Inversion_clear", - "Language", - "Left", - "Lemma", - "Let", - "Libraries", - "Library", - "Load", - "LoadPath", - "Local", - "Locate", - "Ltac", - "ML", - "Mode", - "Module", - "Modules", - "Monomorphic", - "Morphism", - "Next", - "NoInline", - "Notation", - "Obligation", - "Obligations", - "Opaque", - "Open", - "Optimize", - "Options", - "Parameter", - "Parameters", - "Parametric", - "Path", - "Paths", - "pattern", - "Polymorphic", - "Preterm", - "Print", - "Printing", - "Program", - "Projections", - "Proof", - "Proposition", - "Pwd", - "Qed", - "Quit", - "Rec", - "Record", - "Recursive", - "Redirect", - "Relation", - "Remark", - "Remove", - "Require", - "Reserved", - "Reset", - "Resolve", - "Restart", - "Rewrite", - "Right", - "Ring", - "Rings", - "Save", - "Scheme", - "Scope", - "Scopes", - "Script", - "Search", - "SearchAbout", - "SearchHead", - "SearchPattern", - "SearchRewrite", - "Section", - "Separate", - "Set", - "Setoid", - "Show", - "Solve", - "Sorted", - "Step", - "Strategies", - "Strategy", - "Structure", - "SubClass", - "Table", - "Tables", - "Tactic", - "Term", - "Test", - "Theorem", - "Time", - "Timeout", - "Transparent", - "Type", - "Typeclasses", - "Types", - "Undelimit", - "Undo", - "Unfocus", - "Unfocused", - "Unfold", - "Universe", - "Universes", - "Unset", - "Unshelve", - "using", - "Variable", - "Variables", - "Variant", - "Verbose", - "Visibility", - "where", - "with" - ]; - const BUILT_INS = [ - "abstract", - "absurd", - "admit", - "after", - "apply", - "as", - "assert", - "assumption", - "at", - "auto", - "autorewrite", - "autounfold", - "before", - "bottom", - "btauto", - "by", - "case", - "case_eq", - "cbn", - "cbv", - "change", - "classical_left", - "classical_right", - "clear", - "clearbody", - "cofix", - "compare", - "compute", - "congruence", - "constr_eq", - "constructor", - "contradict", - "contradiction", - "cut", - "cutrewrite", - "cycle", - "decide", - "decompose", - "dependent", - "destruct", - "destruction", - "dintuition", - "discriminate", - "discrR", - "do", - "double", - "dtauto", - "eapply", - "eassumption", - "eauto", - "ecase", - "econstructor", - "edestruct", - "ediscriminate", - "eelim", - "eexact", - "eexists", - "einduction", - "einjection", - "eleft", - "elim", - "elimtype", - "enough", - "equality", - "erewrite", - "eright", - "esimplify_eq", - "esplit", - "evar", - "exact", - "exactly_once", - "exfalso", - "exists", - "f_equal", - "fail", - "field", - "field_simplify", - "field_simplify_eq", - "first", - "firstorder", - "fix", - "fold", - "fourier", - "functional", - "generalize", - "generalizing", - "gfail", - "give_up", - "has_evar", - "hnf", - "idtac", - "in", - "induction", - "injection", - "instantiate", - "intro", - "intro_pattern", - "intros", - "intuition", - "inversion", - "inversion_clear", - "is_evar", - "is_var", - "lapply", - "lazy", - "left", - "lia", - "lra", - "move", - "native_compute", - "nia", - "nsatz", - "omega", - "once", - "pattern", - "pose", - "progress", - "proof", - "psatz", - "quote", - "record", - "red", - "refine", - "reflexivity", - "remember", - "rename", - "repeat", - "replace", - "revert", - "revgoals", - "rewrite", - "rewrite_strat", - "right", - "ring", - "ring_simplify", - "rtauto", - "set", - "setoid_reflexivity", - "setoid_replace", - "setoid_rewrite", - "setoid_symmetry", - "setoid_transitivity", - "shelve", - "shelve_unifiable", - "simpl", - "simple", - "simplify_eq", - "solve", - "specialize", - "split", - "split_Rabs", - "split_Rmult", - "stepl", - "stepr", - "subst", - "sum", - "swap", - "symmetry", - "tactic", - "tauto", - "time", - "timeout", - "top", - "transitivity", - "trivial", - "try", - "tryif", - "unfold", - "unify", - "until", - "using", - "vm_compute", - "with" - ]; - return { - name: 'Coq', - keywords: { - keyword: KEYWORDS, - built_in: BUILT_INS - }, - contains: [ - hljs.QUOTE_STRING_MODE, - hljs.COMMENT('\\(\\*', '\\*\\)'), - hljs.C_NUMBER_MODE, - { - className: 'type', - excludeBegin: true, - begin: '\\|\\s*', - end: '\\w+' - }, - { // relevance booster - begin: /[-=]>/ } - ] - }; -} - -export { coq as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coq.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coq.js.js deleted file mode 100644 index d235005..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/coq.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/coq" instead of "highlight.js/lib/languages/coq.js"' - ); - } - } - emitWarning(); - import lang from './coq.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cos.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cos.js deleted file mode 100644 index ac17ee2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cos.js +++ /dev/null @@ -1,140 +0,0 @@ -/* -Language: Caché Object Script -Author: Nikita Savchenko -Category: enterprise, scripting -Website: https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls -*/ - -/** @type LanguageFn */ -function cos(hljs) { - const STRINGS = { - className: 'string', - variants: [ - { - begin: '"', - end: '"', - contains: [ - { // escaped - begin: "\"\"", - relevance: 0 - } - ] - } - ] - }; - - const NUMBERS = { - className: "number", - begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)", - relevance: 0 - }; - - const COS_KEYWORDS = - 'property parameter class classmethod clientmethod extends as break ' - + 'catch close continue do d|0 else elseif for goto halt hang h|0 if job ' - + 'j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 ' - + 'tcommit throw trollback try tstart use view while write w|0 xecute x|0 ' - + 'zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert ' - + 'zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit ' - + 'zsync ascii'; - - // registered function - no need in them due to all functions are highlighted, - // but I'll just leave this here. - - // "$bit", "$bitcount", - // "$bitfind", "$bitlogic", "$case", "$char", "$classmethod", "$classname", - // "$compile", "$data", "$decimal", "$double", "$extract", "$factor", - // "$find", "$fnumber", "$get", "$increment", "$inumber", "$isobject", - // "$isvaliddouble", "$isvalidnum", "$justify", "$length", "$list", - // "$listbuild", "$listdata", "$listfind", "$listfromstring", "$listget", - // "$listlength", "$listnext", "$listsame", "$listtostring", "$listvalid", - // "$locate", "$match", "$method", "$name", "$nconvert", "$next", - // "$normalize", "$now", "$number", "$order", "$parameter", "$piece", - // "$prefetchoff", "$prefetchon", "$property", "$qlength", "$qsubscript", - // "$query", "$random", "$replace", "$reverse", "$sconvert", "$select", - // "$sortbegin", "$sortend", "$stack", "$text", "$translate", "$view", - // "$wascii", "$wchar", "$wextract", "$wfind", "$wiswide", "$wlength", - // "$wreverse", "$xecute", "$zabs", "$zarccos", "$zarcsin", "$zarctan", - // "$zcos", "$zcot", "$zcsc", "$zdate", "$zdateh", "$zdatetime", - // "$zdatetimeh", "$zexp", "$zhex", "$zln", "$zlog", "$zpower", "$zsec", - // "$zsin", "$zsqr", "$ztan", "$ztime", "$ztimeh", "$zboolean", - // "$zconvert", "$zcrc", "$zcyc", "$zdascii", "$zdchar", "$zf", - // "$ziswide", "$zlascii", "$zlchar", "$zname", "$zposition", "$zqascii", - // "$zqchar", "$zsearch", "$zseek", "$zstrip", "$zwascii", "$zwchar", - // "$zwidth", "$zwpack", "$zwbpack", "$zwunpack", "$zwbunpack", "$zzenkaku", - // "$change", "$mv", "$mvat", "$mvfmt", "$mvfmts", "$mviconv", - // "$mviconvs", "$mvinmat", "$mvlover", "$mvoconv", "$mvoconvs", "$mvraise", - // "$mvtrans", "$mvv", "$mvname", "$zbitand", "$zbitcount", "$zbitfind", - // "$zbitget", "$zbitlen", "$zbitnot", "$zbitor", "$zbitset", "$zbitstr", - // "$zbitxor", "$zincrement", "$znext", "$zorder", "$zprevious", "$zsort", - // "device", "$ecode", "$estack", "$etrap", "$halt", "$horolog", - // "$io", "$job", "$key", "$namespace", "$principal", "$quit", "$roles", - // "$storage", "$system", "$test", "$this", "$tlevel", "$username", - // "$x", "$y", "$za", "$zb", "$zchild", "$zeof", "$zeos", "$zerror", - // "$zhorolog", "$zio", "$zjob", "$zmode", "$znspace", "$zparent", "$zpi", - // "$zpos", "$zreference", "$zstorage", "$ztimestamp", "$ztimezone", - // "$ztrap", "$zversion" - - return { - name: 'Caché Object Script', - case_insensitive: true, - aliases: [ "cls" ], - keywords: COS_KEYWORDS, - contains: [ - NUMBERS, - STRINGS, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: "comment", - begin: /;/, - end: "$", - relevance: 0 - }, - { // Functions and user-defined functions: write $ztime(60*60*3), $$myFunc(10), $$^Val(1) - className: "built_in", - begin: /(?:\$\$?|\.\.)\^?[a-zA-Z]+/ - }, - { // Macro command: quit $$$OK - className: "built_in", - begin: /\$\$\$[a-zA-Z]+/ - }, - { // Special (global) variables: write %request.Content; Built-in classes: %Library.Integer - className: "built_in", - begin: /%[a-z]+(?:\.[a-z]+)*/ - }, - { // Global variable: set ^globalName = 12 write ^globalName - className: "symbol", - begin: /\^%?[a-zA-Z][\w]*/ - }, - { // Some control constructions: do ##class(Package.ClassName).Method(), ##super() - className: "keyword", - begin: /##class|##super|#define|#dim/ - }, - // sub-languages: are not fully supported by hljs by 11/15/2015 - // left for the future implementation. - { - begin: /&sql\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - subLanguage: "sql" - }, - { - begin: /&(js|jscript|javascript)/, - excludeBegin: true, - excludeEnd: true, - subLanguage: "javascript" - }, - { - // this brakes first and last tag, but this is the only way to embed a valid html - begin: /&html<\s*\s*>/, - subLanguage: "xml" - } - ] - }; -} - -export { cos as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cos.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cos.js.js deleted file mode 100644 index e0e79ed..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cos.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/cos" instead of "highlight.js/lib/languages/cos.js"' - ); - } - } - emitWarning(); - import lang from './cos.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js deleted file mode 100644 index 2899f66..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js +++ /dev/null @@ -1,605 +0,0 @@ -/* -Language: C++ -Category: common, system -Website: https://isocpp.org -*/ - -/** @type LanguageFn */ -function cpp(hljs) { - const regex = hljs.regex; - // added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does - // not include such support nor can we be sure all the grammars depending - // on it would desire this behavior - const C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$', { contains: [ { begin: /\\\n/ } ] }); - const DECLTYPE_AUTO_RE = 'decltype\\(auto\\)'; - const NAMESPACE_RE = '[a-zA-Z_]\\w*::'; - const TEMPLATE_ARGUMENT_RE = '<[^<>]+>'; - const FUNCTION_TYPE_RE = '(?!struct)(' - + DECLTYPE_AUTO_RE + '|' - + regex.optional(NAMESPACE_RE) - + '[a-zA-Z_]\\w*' + regex.optional(TEMPLATE_ARGUMENT_RE) - + ')'; - - const CPP_PRIMITIVE_TYPES = { - className: 'type', - begin: '\\b[a-z\\d_]*_t\\b' - }; - - // https://en.cppreference.com/w/cpp/language/escape - // \\ \x \xFF \u2837 \u00323747 \374 - const CHARACTER_ESCAPES = '\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)'; - const STRINGS = { - className: 'string', - variants: [ - { - begin: '(u8?|U|L)?"', - end: '"', - illegal: '\\n', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: '(u8?|U|L)?\'(' + CHARACTER_ESCAPES + '|.)', - end: '\'', - illegal: '.' - }, - hljs.END_SAME_AS_BEGIN({ - begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/, - end: /\)([^()\\ ]{0,16})"/ - }) - ] - }; - - const NUMBERS = { - className: 'number', - variants: [ - // Floating-point literal. - { begin: - "[+-]?(?:" // Leading sign. - // Decimal. - + "(?:" - +"[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?" - + "|\\.[0-9](?:'?[0-9])*" - + ")(?:[Ee][+-]?[0-9](?:'?[0-9])*)?" - + "|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*" - // Hexadecimal. - + "|0[Xx](?:" - +"[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?" - + "|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*" - + ")[Pp][+-]?[0-9](?:'?[0-9])*" - + ")(?:" // Literal suffixes. - + "[Ff](?:16|32|64|128)?" - + "|(BF|bf)16" - + "|[Ll]" - + "|" // Literal suffix is optional. - + ")" - }, - // Integer literal. - { begin: - "[+-]?\\b(?:" // Leading sign. - + "0[Bb][01](?:'?[01])*" // Binary. - + "|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*" // Hexadecimal. - + "|0(?:'?[0-7])*" // Octal or just a lone zero. - + "|[1-9](?:'?[0-9])*" // Decimal. - + ")(?:" // Literal suffixes. - + "[Uu](?:LL?|ll?)" - + "|[Uu][Zz]?" - + "|(?:LL?|ll?)[Uu]?" - + "|[Zz][Uu]" - + "|" // Literal suffix is optional. - + ")" - // Note: there are user-defined literal suffixes too, but perhaps having the custom suffix not part of the - // literal highlight actually makes it stand out more. - } - ], - relevance: 0 - }; - - const PREPROCESSOR = { - className: 'meta', - begin: /#\s*[a-z]+\b/, - end: /$/, - keywords: { keyword: - 'if else elif endif define undef warning error line ' - + 'pragma _Pragma ifdef ifndef include' }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - hljs.inherit(STRINGS, { className: 'string' }), - { - className: 'string', - begin: /<.*?>/ - }, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; - - const TITLE_MODE = { - className: 'title', - begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE, - relevance: 0 - }; - - const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + '\\s*\\('; - - // https://en.cppreference.com/w/cpp/keyword - const RESERVED_KEYWORDS = [ - 'alignas', - 'alignof', - 'and', - 'and_eq', - 'asm', - 'atomic_cancel', - 'atomic_commit', - 'atomic_noexcept', - 'auto', - 'bitand', - 'bitor', - 'break', - 'case', - 'catch', - 'class', - 'co_await', - 'co_return', - 'co_yield', - 'compl', - 'concept', - 'const_cast|10', - 'consteval', - 'constexpr', - 'constinit', - 'continue', - 'decltype', - 'default', - 'delete', - 'do', - 'dynamic_cast|10', - 'else', - 'enum', - 'explicit', - 'export', - 'extern', - 'false', - 'final', - 'for', - 'friend', - 'goto', - 'if', - 'import', - 'inline', - 'module', - 'mutable', - 'namespace', - 'new', - 'noexcept', - 'not', - 'not_eq', - 'nullptr', - 'operator', - 'or', - 'or_eq', - 'override', - 'private', - 'protected', - 'public', - 'reflexpr', - 'register', - 'reinterpret_cast|10', - 'requires', - 'return', - 'sizeof', - 'static_assert', - 'static_cast|10', - 'struct', - 'switch', - 'synchronized', - 'template', - 'this', - 'thread_local', - 'throw', - 'transaction_safe', - 'transaction_safe_dynamic', - 'true', - 'try', - 'typedef', - 'typeid', - 'typename', - 'union', - 'using', - 'virtual', - 'volatile', - 'while', - 'xor', - 'xor_eq' - ]; - - // https://en.cppreference.com/w/cpp/keyword - const RESERVED_TYPES = [ - 'bool', - 'char', - 'char16_t', - 'char32_t', - 'char8_t', - 'double', - 'float', - 'int', - 'long', - 'short', - 'void', - 'wchar_t', - 'unsigned', - 'signed', - 'const', - 'static' - ]; - - const TYPE_HINTS = [ - 'any', - 'auto_ptr', - 'barrier', - 'binary_semaphore', - 'bitset', - 'complex', - 'condition_variable', - 'condition_variable_any', - 'counting_semaphore', - 'deque', - 'false_type', - 'flat_map', - 'flat_set', - 'future', - 'imaginary', - 'initializer_list', - 'istringstream', - 'jthread', - 'latch', - 'lock_guard', - 'multimap', - 'multiset', - 'mutex', - 'optional', - 'ostringstream', - 'packaged_task', - 'pair', - 'promise', - 'priority_queue', - 'queue', - 'recursive_mutex', - 'recursive_timed_mutex', - 'scoped_lock', - 'set', - 'shared_future', - 'shared_lock', - 'shared_mutex', - 'shared_timed_mutex', - 'shared_ptr', - 'stack', - 'string_view', - 'stringstream', - 'timed_mutex', - 'thread', - 'true_type', - 'tuple', - 'unique_lock', - 'unique_ptr', - 'unordered_map', - 'unordered_multimap', - 'unordered_multiset', - 'unordered_set', - 'variant', - 'vector', - 'weak_ptr', - 'wstring', - 'wstring_view' - ]; - - const FUNCTION_HINTS = [ - 'abort', - 'abs', - 'acos', - 'apply', - 'as_const', - 'asin', - 'atan', - 'atan2', - 'calloc', - 'ceil', - 'cerr', - 'cin', - 'clog', - 'cos', - 'cosh', - 'cout', - 'declval', - 'endl', - 'exchange', - 'exit', - 'exp', - 'fabs', - 'floor', - 'fmod', - 'forward', - 'fprintf', - 'fputs', - 'free', - 'frexp', - 'fscanf', - 'future', - 'invoke', - 'isalnum', - 'isalpha', - 'iscntrl', - 'isdigit', - 'isgraph', - 'islower', - 'isprint', - 'ispunct', - 'isspace', - 'isupper', - 'isxdigit', - 'labs', - 'launder', - 'ldexp', - 'log', - 'log10', - 'make_pair', - 'make_shared', - 'make_shared_for_overwrite', - 'make_tuple', - 'make_unique', - 'malloc', - 'memchr', - 'memcmp', - 'memcpy', - 'memset', - 'modf', - 'move', - 'pow', - 'printf', - 'putchar', - 'puts', - 'realloc', - 'scanf', - 'sin', - 'sinh', - 'snprintf', - 'sprintf', - 'sqrt', - 'sscanf', - 'std', - 'stderr', - 'stdin', - 'stdout', - 'strcat', - 'strchr', - 'strcmp', - 'strcpy', - 'strcspn', - 'strlen', - 'strncat', - 'strncmp', - 'strncpy', - 'strpbrk', - 'strrchr', - 'strspn', - 'strstr', - 'swap', - 'tan', - 'tanh', - 'terminate', - 'to_underlying', - 'tolower', - 'toupper', - 'vfprintf', - 'visit', - 'vprintf', - 'vsprintf' - ]; - - const LITERALS = [ - 'NULL', - 'false', - 'nullopt', - 'nullptr', - 'true' - ]; - - // https://en.cppreference.com/w/cpp/keyword - const BUILT_IN = [ '_Pragma' ]; - - const CPP_KEYWORDS = { - type: RESERVED_TYPES, - keyword: RESERVED_KEYWORDS, - literal: LITERALS, - built_in: BUILT_IN, - _type_hints: TYPE_HINTS - }; - - const FUNCTION_DISPATCH = { - className: 'function.dispatch', - relevance: 0, - keywords: { - // Only for relevance, not highlighting. - _hint: FUNCTION_HINTS }, - begin: regex.concat( - /\b/, - /(?!decltype)/, - /(?!if)/, - /(?!for)/, - /(?!switch)/, - /(?!while)/, - hljs.IDENT_RE, - regex.lookahead(/(<[^<>]+>|)\s*\(/)) - }; - - const EXPRESSION_CONTAINS = [ - FUNCTION_DISPATCH, - PREPROCESSOR, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - NUMBERS, - STRINGS - ]; - - const EXPRESSION_CONTEXT = { - // This mode covers expression context where we can't expect a function - // definition and shouldn't highlight anything that looks like one: - // `return some()`, `else if()`, `(x*sum(1, 2))` - variants: [ - { - begin: /=/, - end: /;/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - beginKeywords: 'new throw return else', - end: /;/ - } - ], - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - contains: EXPRESSION_CONTAINS.concat([ 'self' ]), - relevance: 0 - } - ]), - relevance: 0 - }; - - const FUNCTION_DECLARATION = { - className: 'function', - begin: '(' + FUNCTION_TYPE_RE + '[\\*&\\s]+)+' + FUNCTION_TITLE, - returnBegin: true, - end: /[{;=]/, - excludeEnd: true, - keywords: CPP_KEYWORDS, - illegal: /[^\w\s\*&:<>.]/, - contains: [ - { // to prevent it from being confused as the function title - begin: DECLTYPE_AUTO_RE, - keywords: CPP_KEYWORDS, - relevance: 0 - }, - { - begin: FUNCTION_TITLE, - returnBegin: true, - contains: [ TITLE_MODE ], - relevance: 0 - }, - // needed because we do not have look-behind on the below rule - // to prevent it from grabbing the final : in a :: pair - { - begin: /::/, - relevance: 0 - }, - // initializers - { - begin: /:/, - endsWithParent: true, - contains: [ - STRINGS, - NUMBERS - ] - }, - // allow for multiple declarations, e.g.: - // extern void f(int), g(char); - { - relevance: 0, - match: /,/ - }, - { - className: 'params', - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES, - // Count matching parentheses. - { - begin: /\(/, - end: /\)/, - keywords: CPP_KEYWORDS, - relevance: 0, - contains: [ - 'self', - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRINGS, - NUMBERS, - CPP_PRIMITIVE_TYPES - ] - } - ] - }, - CPP_PRIMITIVE_TYPES, - C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - PREPROCESSOR - ] - }; - - return { - name: 'C++', - aliases: [ - 'cc', - 'c++', - 'h++', - 'hpp', - 'hh', - 'hxx', - 'cxx' - ], - keywords: CPP_KEYWORDS, - illegal: ' rooms (9);` - begin: '\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)', - end: '>', - keywords: CPP_KEYWORDS, - contains: [ - 'self', - CPP_PRIMITIVE_TYPES - ] - }, - { - begin: hljs.IDENT_RE + '::', - keywords: CPP_KEYWORDS - }, - { - match: [ - // extra complexity to deal with `enum class` and `enum struct` - /\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/, - /\s+/, - /\w+/ - ], - className: { - 1: 'keyword', - 3: 'title.class' - } - } - ]) - }; -} - -export { cpp as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js.js deleted file mode 100644 index 32adb95..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/cpp.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/cpp" instead of "highlight.js/lib/languages/cpp.js"' - ); - } - } - emitWarning(); - import lang from './cpp.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crmsh.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crmsh.js deleted file mode 100644 index 1c3c229..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crmsh.js +++ /dev/null @@ -1,100 +0,0 @@ -/* -Language: crmsh -Author: Kristoffer Gronlund -Website: http://crmsh.github.io -Description: Syntax Highlighting for the crmsh DSL -Category: config -*/ - -/** @type LanguageFn */ -function crmsh(hljs) { - const RESOURCES = 'primitive rsc_template'; - const COMMANDS = 'group clone ms master location colocation order fencing_topology ' - + 'rsc_ticket acl_target acl_group user role ' - + 'tag xml'; - const PROPERTY_SETS = 'property rsc_defaults op_defaults'; - const KEYWORDS = 'params meta operations op rule attributes utilization'; - const OPERATORS = 'read write deny defined not_defined in_range date spec in ' - + 'ref reference attribute type xpath version and or lt gt tag ' - + 'lte gte eq ne \\'; - const TYPES = 'number string'; - const LITERALS = 'Master Started Slave Stopped start promote demote stop monitor true false'; - - return { - name: 'crmsh', - aliases: [ - 'crm', - 'pcmk' - ], - case_insensitive: true, - keywords: { - keyword: KEYWORDS + ' ' + OPERATORS + ' ' + TYPES, - literal: LITERALS - }, - contains: [ - hljs.HASH_COMMENT_MODE, - { - beginKeywords: 'node', - starts: { - end: '\\s*([\\w_-]+:)?', - starts: { - className: 'title', - end: '\\s*[\\$\\w_][\\w_-]*' - } - } - }, - { - beginKeywords: RESOURCES, - starts: { - className: 'title', - end: '\\s*[\\$\\w_][\\w_-]*', - starts: { end: '\\s*@?[\\w_][\\w_\\.:-]*' } - } - }, - { - begin: '\\b(' + COMMANDS.split(' ').join('|') + ')\\s+', - keywords: COMMANDS, - starts: { - className: 'title', - end: '[\\$\\w_][\\w_-]*' - } - }, - { - beginKeywords: PROPERTY_SETS, - starts: { - className: 'title', - end: '\\s*([\\w_-]+:)?' - } - }, - hljs.QUOTE_STRING_MODE, - { - className: 'meta', - begin: '(ocf|systemd|service|lsb):[\\w_:-]+', - relevance: 0 - }, - { - className: 'number', - begin: '\\b\\d+(\\.\\d+)?(ms|s|h|m)?', - relevance: 0 - }, - { - className: 'literal', - begin: '[-]?(infinity|inf)', - relevance: 0 - }, - { - className: 'attr', - begin: /([A-Za-z$_#][\w_-]+)=/, - relevance: 0 - }, - { - className: 'tag', - begin: '', - relevance: 0 - } - ] - }; -} - -export { crmsh as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crmsh.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crmsh.js.js deleted file mode 100644 index 8b634c5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crmsh.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/crmsh" instead of "highlight.js/lib/languages/crmsh.js"' - ); - } - } - emitWarning(); - import lang from './crmsh.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crystal.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crystal.js deleted file mode 100644 index 348db32..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crystal.js +++ /dev/null @@ -1,312 +0,0 @@ -/* -Language: Crystal -Author: TSUYUSATO Kitsune -Website: https://crystal-lang.org -Category: system -*/ - -/** @type LanguageFn */ -function crystal(hljs) { - const INT_SUFFIX = '(_?[ui](8|16|32|64|128))?'; - const FLOAT_SUFFIX = '(_?f(32|64))?'; - const CRYSTAL_IDENT_RE = '[a-zA-Z_]\\w*[!?=]?'; - const CRYSTAL_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?'; - const CRYSTAL_PATH_RE = '[A-Za-z_]\\w*(::\\w+)*(\\?|!)?'; - const CRYSTAL_KEYWORDS = { - $pattern: CRYSTAL_IDENT_RE, - keyword: - 'abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if ' - + 'include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? ' - + 'return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield ' - + '__DIR__ __END_LINE__ __FILE__ __LINE__', - literal: 'false nil true' - }; - const SUBST = { - className: 'subst', - begin: /#\{/, - end: /\}/, - keywords: CRYSTAL_KEYWORDS - }; - // borrowed from Ruby - const VARIABLE = { - // negative-look forward attemps to prevent false matches like: - // @ident@ or $ident$ that might indicate this is not ruby at all - className: "variable", - begin: '(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])' + `(?![A-Za-z])(?![@$?'])` - }; - const EXPANSION = { - className: 'template-variable', - variants: [ - { - begin: '\\{\\{', - end: '\\}\\}' - }, - { - begin: '\\{%', - end: '%\\}' - } - ], - keywords: CRYSTAL_KEYWORDS - }; - - function recursiveParen(begin, end) { - const - contains = [ - { - begin: begin, - end: end - } - ]; - contains[0].contains = contains; - return contains; - } - const STRING = { - className: 'string', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: /'/, - end: /'/ - }, - { - begin: /"/, - end: /"/ - }, - { - begin: /`/, - end: /`/ - }, - { - begin: '%[Qwi]?\\(', - end: '\\)', - contains: recursiveParen('\\(', '\\)') - }, - { - begin: '%[Qwi]?\\[', - end: '\\]', - contains: recursiveParen('\\[', '\\]') - }, - { - begin: '%[Qwi]?\\{', - end: /\}/, - contains: recursiveParen(/\{/, /\}/) - }, - { - begin: '%[Qwi]?<', - end: '>', - contains: recursiveParen('<', '>') - }, - { - begin: '%[Qwi]?\\|', - end: '\\|' - }, - { - begin: /<<-\w+$/, - end: /^\s*\w+$/ - } - ], - relevance: 0 - }; - const Q_STRING = { - className: 'string', - variants: [ - { - begin: '%q\\(', - end: '\\)', - contains: recursiveParen('\\(', '\\)') - }, - { - begin: '%q\\[', - end: '\\]', - contains: recursiveParen('\\[', '\\]') - }, - { - begin: '%q\\{', - end: /\}/, - contains: recursiveParen(/\{/, /\}/) - }, - { - begin: '%q<', - end: '>', - contains: recursiveParen('<', '>') - }, - { - begin: '%q\\|', - end: '\\|' - }, - { - begin: /<<-'\w+'$/, - end: /^\s*\w+$/ - } - ], - relevance: 0 - }; - const REGEXP = { - begin: '(?!%\\})(' + hljs.RE_STARTERS_RE + '|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*', - keywords: 'case if select unless until when while', - contains: [ - { - className: 'regexp', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: '//[a-z]*', - relevance: 0 - }, - { - begin: '/(?!\\/)', - end: '/[a-z]*' - } - ] - } - ], - relevance: 0 - }; - const REGEXP2 = { - className: 'regexp', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: '%r\\(', - end: '\\)', - contains: recursiveParen('\\(', '\\)') - }, - { - begin: '%r\\[', - end: '\\]', - contains: recursiveParen('\\[', '\\]') - }, - { - begin: '%r\\{', - end: /\}/, - contains: recursiveParen(/\{/, /\}/) - }, - { - begin: '%r<', - end: '>', - contains: recursiveParen('<', '>') - }, - { - begin: '%r\\|', - end: '\\|' - } - ], - relevance: 0 - }; - const ATTRIBUTE = { - className: 'meta', - begin: '@\\[', - end: '\\]', - contains: [ hljs.inherit(hljs.QUOTE_STRING_MODE, { className: 'string' }) ] - }; - const CRYSTAL_DEFAULT_CONTAINS = [ - EXPANSION, - STRING, - Q_STRING, - REGEXP2, - REGEXP, - ATTRIBUTE, - VARIABLE, - hljs.HASH_COMMENT_MODE, - { - className: 'class', - beginKeywords: 'class module struct', - end: '$|;', - illegal: /=/, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.inherit(hljs.TITLE_MODE, { begin: CRYSTAL_PATH_RE }), - { // relevance booster for inheritance - begin: '<' } - ] - }, - { - className: 'class', - beginKeywords: 'lib enum union', - end: '$|;', - illegal: /=/, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.inherit(hljs.TITLE_MODE, { begin: CRYSTAL_PATH_RE }) - ] - }, - { - beginKeywords: 'annotation', - end: '$|;', - illegal: /=/, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.inherit(hljs.TITLE_MODE, { begin: CRYSTAL_PATH_RE }) - ], - relevance: 2 - }, - { - className: 'function', - beginKeywords: 'def', - end: /\B\b/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: CRYSTAL_METHOD_RE, - endsParent: true - }) - ] - }, - { - className: 'function', - beginKeywords: 'fun macro', - end: /\B\b/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: CRYSTAL_METHOD_RE, - endsParent: true - }) - ], - relevance: 2 - }, - { - className: 'symbol', - begin: hljs.UNDERSCORE_IDENT_RE + '(!|\\?)?:', - relevance: 0 - }, - { - className: 'symbol', - begin: ':', - contains: [ - STRING, - { begin: CRYSTAL_METHOD_RE } - ], - relevance: 0 - }, - { - className: 'number', - variants: [ - { begin: '\\b0b([01_]+)' + INT_SUFFIX }, - { begin: '\\b0o([0-7_]+)' + INT_SUFFIX }, - { begin: '\\b0x([A-Fa-f0-9_]+)' + INT_SUFFIX }, - { begin: '\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?' + FLOAT_SUFFIX + '(?!_)' }, - { begin: '\\b([1-9][0-9_]*|0)' + INT_SUFFIX } - ], - relevance: 0 - } - ]; - SUBST.contains = CRYSTAL_DEFAULT_CONTAINS; - EXPANSION.contains = CRYSTAL_DEFAULT_CONTAINS.slice(1); // without EXPANSION - - return { - name: 'Crystal', - aliases: [ 'cr' ], - keywords: CRYSTAL_KEYWORDS, - contains: CRYSTAL_DEFAULT_CONTAINS - }; -} - -export { crystal as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crystal.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crystal.js.js deleted file mode 100644 index 0cef9c9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/crystal.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/crystal" instead of "highlight.js/lib/languages/crystal.js"' - ); - } - } - emitWarning(); - import lang from './crystal.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js deleted file mode 100644 index 0f73aff..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js +++ /dev/null @@ -1,412 +0,0 @@ -/* -Language: C# -Author: Jason Diamond -Contributor: Nicolas LLOBERA , Pieter Vantorre , David Pine -Website: https://docs.microsoft.com/dotnet/csharp/ -Category: common -*/ - -/** @type LanguageFn */ -function csharp(hljs) { - const BUILT_IN_KEYWORDS = [ - 'bool', - 'byte', - 'char', - 'decimal', - 'delegate', - 'double', - 'dynamic', - 'enum', - 'float', - 'int', - 'long', - 'nint', - 'nuint', - 'object', - 'sbyte', - 'short', - 'string', - 'ulong', - 'uint', - 'ushort' - ]; - const FUNCTION_MODIFIERS = [ - 'public', - 'private', - 'protected', - 'static', - 'internal', - 'protected', - 'abstract', - 'async', - 'extern', - 'override', - 'unsafe', - 'virtual', - 'new', - 'sealed', - 'partial' - ]; - const LITERAL_KEYWORDS = [ - 'default', - 'false', - 'null', - 'true' - ]; - const NORMAL_KEYWORDS = [ - 'abstract', - 'as', - 'base', - 'break', - 'case', - 'catch', - 'class', - 'const', - 'continue', - 'do', - 'else', - 'event', - 'explicit', - 'extern', - 'finally', - 'fixed', - 'for', - 'foreach', - 'goto', - 'if', - 'implicit', - 'in', - 'interface', - 'internal', - 'is', - 'lock', - 'namespace', - 'new', - 'operator', - 'out', - 'override', - 'params', - 'private', - 'protected', - 'public', - 'readonly', - 'record', - 'ref', - 'return', - 'scoped', - 'sealed', - 'sizeof', - 'stackalloc', - 'static', - 'struct', - 'switch', - 'this', - 'throw', - 'try', - 'typeof', - 'unchecked', - 'unsafe', - 'using', - 'virtual', - 'void', - 'volatile', - 'while' - ]; - const CONTEXTUAL_KEYWORDS = [ - 'add', - 'alias', - 'and', - 'ascending', - 'args', - 'async', - 'await', - 'by', - 'descending', - 'dynamic', - 'equals', - 'file', - 'from', - 'get', - 'global', - 'group', - 'init', - 'into', - 'join', - 'let', - 'nameof', - 'not', - 'notnull', - 'on', - 'or', - 'orderby', - 'partial', - 'record', - 'remove', - 'required', - 'scoped', - 'select', - 'set', - 'unmanaged', - 'value|0', - 'var', - 'when', - 'where', - 'with', - 'yield' - ]; - - const KEYWORDS = { - keyword: NORMAL_KEYWORDS.concat(CONTEXTUAL_KEYWORDS), - built_in: BUILT_IN_KEYWORDS, - literal: LITERAL_KEYWORDS - }; - const TITLE_MODE = hljs.inherit(hljs.TITLE_MODE, { begin: '[a-zA-Z](\\.?\\w)*' }); - const NUMBERS = { - className: 'number', - variants: [ - { begin: '\\b(0b[01\']+)' }, - { begin: '(-?)\\b([\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)(u|U|l|L|ul|UL|f|F|b|B)' }, - { begin: '(-?)(\\b0[xX][a-fA-F0-9\']+|(\\b[\\d\']+(\\.[\\d\']*)?|\\.[\\d\']+)([eE][-+]?[\\d\']+)?)' } - ], - relevance: 0 - }; - const RAW_STRING = { - className: 'string', - begin: /"""("*)(?!")(.|\n)*?"""\1/, - relevance: 1 - }; - const VERBATIM_STRING = { - className: 'string', - begin: '@"', - end: '"', - contains: [ { begin: '""' } ] - }; - const VERBATIM_STRING_NO_LF = hljs.inherit(VERBATIM_STRING, { illegal: /\n/ }); - const SUBST = { - className: 'subst', - begin: /\{/, - end: /\}/, - keywords: KEYWORDS - }; - const SUBST_NO_LF = hljs.inherit(SUBST, { illegal: /\n/ }); - const INTERPOLATED_STRING = { - className: 'string', - begin: /\$"/, - end: '"', - illegal: /\n/, - contains: [ - { begin: /\{\{/ }, - { begin: /\}\}/ }, - hljs.BACKSLASH_ESCAPE, - SUBST_NO_LF - ] - }; - const INTERPOLATED_VERBATIM_STRING = { - className: 'string', - begin: /\$@"/, - end: '"', - contains: [ - { begin: /\{\{/ }, - { begin: /\}\}/ }, - { begin: '""' }, - SUBST - ] - }; - const INTERPOLATED_VERBATIM_STRING_NO_LF = hljs.inherit(INTERPOLATED_VERBATIM_STRING, { - illegal: /\n/, - contains: [ - { begin: /\{\{/ }, - { begin: /\}\}/ }, - { begin: '""' }, - SUBST_NO_LF - ] - }); - SUBST.contains = [ - INTERPOLATED_VERBATIM_STRING, - INTERPOLATED_STRING, - VERBATIM_STRING, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - NUMBERS, - hljs.C_BLOCK_COMMENT_MODE - ]; - SUBST_NO_LF.contains = [ - INTERPOLATED_VERBATIM_STRING_NO_LF, - INTERPOLATED_STRING, - VERBATIM_STRING_NO_LF, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - NUMBERS, - hljs.inherit(hljs.C_BLOCK_COMMENT_MODE, { illegal: /\n/ }) - ]; - const STRING = { variants: [ - RAW_STRING, - INTERPOLATED_VERBATIM_STRING, - INTERPOLATED_STRING, - VERBATIM_STRING, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] }; - - const GENERIC_MODIFIER = { - begin: "<", - end: ">", - contains: [ - { beginKeywords: "in out" }, - TITLE_MODE - ] - }; - const TYPE_IDENT_RE = hljs.IDENT_RE + '(<' + hljs.IDENT_RE + '(\\s*,\\s*' + hljs.IDENT_RE + ')*>)?(\\[\\])?'; - const AT_IDENTIFIER = { - // prevents expressions like `@class` from incorrect flagging - // `class` as a keyword - begin: "@" + hljs.IDENT_RE, - relevance: 0 - }; - - return { - name: 'C#', - aliases: [ - 'cs', - 'c#' - ], - keywords: KEYWORDS, - illegal: /::/, - contains: [ - hljs.COMMENT( - '///', - '$', - { - returnBegin: true, - contains: [ - { - className: 'doctag', - variants: [ - { - begin: '///', - relevance: 0 - }, - { begin: '' }, - { - begin: '' - } - ] - } - ] - } - ), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: 'meta', - begin: '#', - end: '$', - keywords: { keyword: 'if else elif endif define undef warning error line region endregion pragma checksum' } - }, - STRING, - NUMBERS, - { - beginKeywords: 'class interface', - relevance: 0, - end: /[{;=]/, - illegal: /[^\s:,]/, - contains: [ - { beginKeywords: "where class" }, - TITLE_MODE, - GENERIC_MODIFIER, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - beginKeywords: 'namespace', - relevance: 0, - end: /[{;=]/, - illegal: /[^\s:]/, - contains: [ - TITLE_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - beginKeywords: 'record', - relevance: 0, - end: /[{;=]/, - illegal: /[^\s:]/, - contains: [ - TITLE_MODE, - GENERIC_MODIFIER, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - // [Attributes("")] - className: 'meta', - begin: '^\\s*\\[(?=[\\w])', - excludeBegin: true, - end: '\\]', - excludeEnd: true, - contains: [ - { - className: 'string', - begin: /"/, - end: /"/ - } - ] - }, - { - // Expression keywords prevent 'keyword Name(...)' from being - // recognized as a function definition - beginKeywords: 'new return throw await else', - relevance: 0 - }, - { - className: 'function', - begin: '(' + TYPE_IDENT_RE + '\\s+)+' + hljs.IDENT_RE + '\\s*(<[^=]+>\\s*)?\\(', - returnBegin: true, - end: /\s*[{;=]/, - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - // prevents these from being highlighted `title` - { - beginKeywords: FUNCTION_MODIFIERS.join(" "), - relevance: 0 - }, - { - begin: hljs.IDENT_RE + '\\s*(<[^=]+>\\s*)?\\(', - returnBegin: true, - contains: [ - hljs.TITLE_MODE, - GENERIC_MODIFIER - ], - relevance: 0 - }, - { match: /\(\)/ }, - { - className: 'params', - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - relevance: 0, - contains: [ - STRING, - NUMBERS, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - AT_IDENTIFIER - ] - }; -} - -export { csharp as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js.js deleted file mode 100644 index b586ab5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csharp.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/csharp" instead of "highlight.js/lib/languages/csharp.js"' - ); - } - } - emitWarning(); - import lang from './csharp.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csp.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csp.js deleted file mode 100644 index 3d9565a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csp.js +++ /dev/null @@ -1,58 +0,0 @@ -/* -Language: CSP -Description: Content Security Policy definition highlighting -Author: Taras -Website: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -Category: web - -vim: ts=2 sw=2 st=2 -*/ - -/** @type LanguageFn */ -function csp(hljs) { - const KEYWORDS = [ - "base-uri", - "child-src", - "connect-src", - "default-src", - "font-src", - "form-action", - "frame-ancestors", - "frame-src", - "img-src", - "manifest-src", - "media-src", - "object-src", - "plugin-types", - "report-uri", - "sandbox", - "script-src", - "style-src", - "trusted-types", - "unsafe-hashes", - "worker-src" - ]; - return { - name: 'CSP', - case_insensitive: false, - keywords: { - $pattern: '[a-zA-Z][a-zA-Z0-9_-]*', - keyword: KEYWORDS - }, - contains: [ - { - className: 'string', - begin: "'", - end: "'" - }, - { - className: 'attribute', - begin: '^Content', - end: ':', - excludeEnd: true - } - ] - }; -} - -export { csp as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csp.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csp.js.js deleted file mode 100644 index 2cda27b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/csp.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/csp" instead of "highlight.js/lib/languages/csp.js"' - ); - } - } - emitWarning(); - import lang from './csp.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js deleted file mode 100644 index 955e6fa..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +++ /dev/null @@ -1,949 +0,0 @@ -const MODES = (hljs) => { - return { - IMPORTANT: { - scope: 'meta', - begin: '!important' - }, - BLOCK_COMMENT: hljs.C_BLOCK_COMMENT_MODE, - HEXCOLOR: { - scope: 'number', - begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ - }, - FUNCTION_DISPATCH: { - className: "built_in", - begin: /[\w-]+(?=\()/ - }, - ATTRIBUTE_SELECTOR_MODE: { - scope: 'selector-attr', - begin: /\[/, - end: /\]/, - illegal: '$', - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }, - CSS_NUMBER_MODE: { - scope: 'number', - begin: hljs.NUMBER_RE + '(' + - '%|em|ex|ch|rem' + - '|vw|vh|vmin|vmax' + - '|cm|mm|in|pt|pc|px' + - '|deg|grad|rad|turn' + - '|s|ms' + - '|Hz|kHz' + - '|dpi|dpcm|dppx' + - ')?', - relevance: 0 - }, - CSS_VARIABLE: { - className: "attr", - begin: /--[A-Za-z_][A-Za-z0-9_-]*/ - } - }; -}; - -const HTML_TAGS = [ - 'a', - 'abbr', - 'address', - 'article', - 'aside', - 'audio', - 'b', - 'blockquote', - 'body', - 'button', - 'canvas', - 'caption', - 'cite', - 'code', - 'dd', - 'del', - 'details', - 'dfn', - 'div', - 'dl', - 'dt', - 'em', - 'fieldset', - 'figcaption', - 'figure', - 'footer', - 'form', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'header', - 'hgroup', - 'html', - 'i', - 'iframe', - 'img', - 'input', - 'ins', - 'kbd', - 'label', - 'legend', - 'li', - 'main', - 'mark', - 'menu', - 'nav', - 'object', - 'ol', - 'optgroup', - 'option', - 'p', - 'picture', - 'q', - 'quote', - 'samp', - 'section', - 'select', - 'source', - 'span', - 'strong', - 'summary', - 'sup', - 'table', - 'tbody', - 'td', - 'textarea', - 'tfoot', - 'th', - 'thead', - 'time', - 'tr', - 'ul', - 'var', - 'video' -]; - -const SVG_TAGS = [ - 'defs', - 'g', - 'marker', - 'mask', - 'pattern', - 'svg', - 'switch', - 'symbol', - 'feBlend', - 'feColorMatrix', - 'feComponentTransfer', - 'feComposite', - 'feConvolveMatrix', - 'feDiffuseLighting', - 'feDisplacementMap', - 'feFlood', - 'feGaussianBlur', - 'feImage', - 'feMerge', - 'feMorphology', - 'feOffset', - 'feSpecularLighting', - 'feTile', - 'feTurbulence', - 'linearGradient', - 'radialGradient', - 'stop', - 'circle', - 'ellipse', - 'image', - 'line', - 'path', - 'polygon', - 'polyline', - 'rect', - 'text', - 'use', - 'textPath', - 'tspan', - 'foreignObject', - 'clipPath' -]; - -const TAGS = [ - ...HTML_TAGS, - ...SVG_TAGS, -]; - -// Sorting, then reversing makes sure longer attributes/elements like -// `font-weight` are matched fully instead of getting false positives on say `font` - -const MEDIA_FEATURES = [ - 'any-hover', - 'any-pointer', - 'aspect-ratio', - 'color', - 'color-gamut', - 'color-index', - 'device-aspect-ratio', - 'device-height', - 'device-width', - 'display-mode', - 'forced-colors', - 'grid', - 'height', - 'hover', - 'inverted-colors', - 'monochrome', - 'orientation', - 'overflow-block', - 'overflow-inline', - 'pointer', - 'prefers-color-scheme', - 'prefers-contrast', - 'prefers-reduced-motion', - 'prefers-reduced-transparency', - 'resolution', - 'scan', - 'scripting', - 'update', - 'width', - // TODO: find a better solution? - 'min-width', - 'max-width', - 'min-height', - 'max-height' -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes -const PSEUDO_CLASSES = [ - 'active', - 'any-link', - 'blank', - 'checked', - 'current', - 'default', - 'defined', - 'dir', // dir() - 'disabled', - 'drop', - 'empty', - 'enabled', - 'first', - 'first-child', - 'first-of-type', - 'fullscreen', - 'future', - 'focus', - 'focus-visible', - 'focus-within', - 'has', // has() - 'host', // host or host() - 'host-context', // host-context() - 'hover', - 'indeterminate', - 'in-range', - 'invalid', - 'is', // is() - 'lang', // lang() - 'last-child', - 'last-of-type', - 'left', - 'link', - 'local-link', - 'not', // not() - 'nth-child', // nth-child() - 'nth-col', // nth-col() - 'nth-last-child', // nth-last-child() - 'nth-last-col', // nth-last-col() - 'nth-last-of-type', //nth-last-of-type() - 'nth-of-type', //nth-of-type() - 'only-child', - 'only-of-type', - 'optional', - 'out-of-range', - 'past', - 'placeholder-shown', - 'read-only', - 'read-write', - 'required', - 'right', - 'root', - 'scope', - 'target', - 'target-within', - 'user-invalid', - 'valid', - 'visited', - 'where' // where() -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements -const PSEUDO_ELEMENTS = [ - 'after', - 'backdrop', - 'before', - 'cue', - 'cue-region', - 'first-letter', - 'first-line', - 'grammar-error', - 'marker', - 'part', - 'placeholder', - 'selection', - 'slotted', - 'spelling-error' -].sort().reverse(); - -const ATTRIBUTES = [ - 'accent-color', - 'align-content', - 'align-items', - 'align-self', - 'alignment-baseline', - 'all', - 'anchor-name', - 'animation', - 'animation-composition', - 'animation-delay', - 'animation-direction', - 'animation-duration', - 'animation-fill-mode', - 'animation-iteration-count', - 'animation-name', - 'animation-play-state', - 'animation-range', - 'animation-range-end', - 'animation-range-start', - 'animation-timeline', - 'animation-timing-function', - 'appearance', - 'aspect-ratio', - 'backdrop-filter', - 'backface-visibility', - 'background', - 'background-attachment', - 'background-blend-mode', - 'background-clip', - 'background-color', - 'background-image', - 'background-origin', - 'background-position', - 'background-position-x', - 'background-position-y', - 'background-repeat', - 'background-size', - 'baseline-shift', - 'block-size', - 'border', - 'border-block', - 'border-block-color', - 'border-block-end', - 'border-block-end-color', - 'border-block-end-style', - 'border-block-end-width', - 'border-block-start', - 'border-block-start-color', - 'border-block-start-style', - 'border-block-start-width', - 'border-block-style', - 'border-block-width', - 'border-bottom', - 'border-bottom-color', - 'border-bottom-left-radius', - 'border-bottom-right-radius', - 'border-bottom-style', - 'border-bottom-width', - 'border-collapse', - 'border-color', - 'border-end-end-radius', - 'border-end-start-radius', - 'border-image', - 'border-image-outset', - 'border-image-repeat', - 'border-image-slice', - 'border-image-source', - 'border-image-width', - 'border-inline', - 'border-inline-color', - 'border-inline-end', - 'border-inline-end-color', - 'border-inline-end-style', - 'border-inline-end-width', - 'border-inline-start', - 'border-inline-start-color', - 'border-inline-start-style', - 'border-inline-start-width', - 'border-inline-style', - 'border-inline-width', - 'border-left', - 'border-left-color', - 'border-left-style', - 'border-left-width', - 'border-radius', - 'border-right', - 'border-right-color', - 'border-right-style', - 'border-right-width', - 'border-spacing', - 'border-start-end-radius', - 'border-start-start-radius', - 'border-style', - 'border-top', - 'border-top-color', - 'border-top-left-radius', - 'border-top-right-radius', - 'border-top-style', - 'border-top-width', - 'border-width', - 'bottom', - 'box-align', - 'box-decoration-break', - 'box-direction', - 'box-flex', - 'box-flex-group', - 'box-lines', - 'box-ordinal-group', - 'box-orient', - 'box-pack', - 'box-shadow', - 'box-sizing', - 'break-after', - 'break-before', - 'break-inside', - 'caption-side', - 'caret-color', - 'clear', - 'clip', - 'clip-path', - 'clip-rule', - 'color', - 'color-interpolation', - 'color-interpolation-filters', - 'color-profile', - 'color-rendering', - 'color-scheme', - 'column-count', - 'column-fill', - 'column-gap', - 'column-rule', - 'column-rule-color', - 'column-rule-style', - 'column-rule-width', - 'column-span', - 'column-width', - 'columns', - 'contain', - 'contain-intrinsic-block-size', - 'contain-intrinsic-height', - 'contain-intrinsic-inline-size', - 'contain-intrinsic-size', - 'contain-intrinsic-width', - 'container', - 'container-name', - 'container-type', - 'content', - 'content-visibility', - 'counter-increment', - 'counter-reset', - 'counter-set', - 'cue', - 'cue-after', - 'cue-before', - 'cursor', - 'cx', - 'cy', - 'direction', - 'display', - 'dominant-baseline', - 'empty-cells', - 'enable-background', - 'field-sizing', - 'fill', - 'fill-opacity', - 'fill-rule', - 'filter', - 'flex', - 'flex-basis', - 'flex-direction', - 'flex-flow', - 'flex-grow', - 'flex-shrink', - 'flex-wrap', - 'float', - 'flood-color', - 'flood-opacity', - 'flow', - 'font', - 'font-display', - 'font-family', - 'font-feature-settings', - 'font-kerning', - 'font-language-override', - 'font-optical-sizing', - 'font-palette', - 'font-size', - 'font-size-adjust', - 'font-smooth', - 'font-smoothing', - 'font-stretch', - 'font-style', - 'font-synthesis', - 'font-synthesis-position', - 'font-synthesis-small-caps', - 'font-synthesis-style', - 'font-synthesis-weight', - 'font-variant', - 'font-variant-alternates', - 'font-variant-caps', - 'font-variant-east-asian', - 'font-variant-emoji', - 'font-variant-ligatures', - 'font-variant-numeric', - 'font-variant-position', - 'font-variation-settings', - 'font-weight', - 'forced-color-adjust', - 'gap', - 'glyph-orientation-horizontal', - 'glyph-orientation-vertical', - 'grid', - 'grid-area', - 'grid-auto-columns', - 'grid-auto-flow', - 'grid-auto-rows', - 'grid-column', - 'grid-column-end', - 'grid-column-start', - 'grid-gap', - 'grid-row', - 'grid-row-end', - 'grid-row-start', - 'grid-template', - 'grid-template-areas', - 'grid-template-columns', - 'grid-template-rows', - 'hanging-punctuation', - 'height', - 'hyphenate-character', - 'hyphenate-limit-chars', - 'hyphens', - 'icon', - 'image-orientation', - 'image-rendering', - 'image-resolution', - 'ime-mode', - 'initial-letter', - 'initial-letter-align', - 'inline-size', - 'inset', - 'inset-area', - 'inset-block', - 'inset-block-end', - 'inset-block-start', - 'inset-inline', - 'inset-inline-end', - 'inset-inline-start', - 'isolation', - 'justify-content', - 'justify-items', - 'justify-self', - 'kerning', - 'left', - 'letter-spacing', - 'lighting-color', - 'line-break', - 'line-height', - 'line-height-step', - 'list-style', - 'list-style-image', - 'list-style-position', - 'list-style-type', - 'margin', - 'margin-block', - 'margin-block-end', - 'margin-block-start', - 'margin-bottom', - 'margin-inline', - 'margin-inline-end', - 'margin-inline-start', - 'margin-left', - 'margin-right', - 'margin-top', - 'margin-trim', - 'marker', - 'marker-end', - 'marker-mid', - 'marker-start', - 'marks', - 'mask', - 'mask-border', - 'mask-border-mode', - 'mask-border-outset', - 'mask-border-repeat', - 'mask-border-slice', - 'mask-border-source', - 'mask-border-width', - 'mask-clip', - 'mask-composite', - 'mask-image', - 'mask-mode', - 'mask-origin', - 'mask-position', - 'mask-repeat', - 'mask-size', - 'mask-type', - 'masonry-auto-flow', - 'math-depth', - 'math-shift', - 'math-style', - 'max-block-size', - 'max-height', - 'max-inline-size', - 'max-width', - 'min-block-size', - 'min-height', - 'min-inline-size', - 'min-width', - 'mix-blend-mode', - 'nav-down', - 'nav-index', - 'nav-left', - 'nav-right', - 'nav-up', - 'none', - 'normal', - 'object-fit', - 'object-position', - 'offset', - 'offset-anchor', - 'offset-distance', - 'offset-path', - 'offset-position', - 'offset-rotate', - 'opacity', - 'order', - 'orphans', - 'outline', - 'outline-color', - 'outline-offset', - 'outline-style', - 'outline-width', - 'overflow', - 'overflow-anchor', - 'overflow-block', - 'overflow-clip-margin', - 'overflow-inline', - 'overflow-wrap', - 'overflow-x', - 'overflow-y', - 'overlay', - 'overscroll-behavior', - 'overscroll-behavior-block', - 'overscroll-behavior-inline', - 'overscroll-behavior-x', - 'overscroll-behavior-y', - 'padding', - 'padding-block', - 'padding-block-end', - 'padding-block-start', - 'padding-bottom', - 'padding-inline', - 'padding-inline-end', - 'padding-inline-start', - 'padding-left', - 'padding-right', - 'padding-top', - 'page', - 'page-break-after', - 'page-break-before', - 'page-break-inside', - 'paint-order', - 'pause', - 'pause-after', - 'pause-before', - 'perspective', - 'perspective-origin', - 'place-content', - 'place-items', - 'place-self', - 'pointer-events', - 'position', - 'position-anchor', - 'position-visibility', - 'print-color-adjust', - 'quotes', - 'r', - 'resize', - 'rest', - 'rest-after', - 'rest-before', - 'right', - 'rotate', - 'row-gap', - 'ruby-align', - 'ruby-position', - 'scale', - 'scroll-behavior', - 'scroll-margin', - 'scroll-margin-block', - 'scroll-margin-block-end', - 'scroll-margin-block-start', - 'scroll-margin-bottom', - 'scroll-margin-inline', - 'scroll-margin-inline-end', - 'scroll-margin-inline-start', - 'scroll-margin-left', - 'scroll-margin-right', - 'scroll-margin-top', - 'scroll-padding', - 'scroll-padding-block', - 'scroll-padding-block-end', - 'scroll-padding-block-start', - 'scroll-padding-bottom', - 'scroll-padding-inline', - 'scroll-padding-inline-end', - 'scroll-padding-inline-start', - 'scroll-padding-left', - 'scroll-padding-right', - 'scroll-padding-top', - 'scroll-snap-align', - 'scroll-snap-stop', - 'scroll-snap-type', - 'scroll-timeline', - 'scroll-timeline-axis', - 'scroll-timeline-name', - 'scrollbar-color', - 'scrollbar-gutter', - 'scrollbar-width', - 'shape-image-threshold', - 'shape-margin', - 'shape-outside', - 'shape-rendering', - 'speak', - 'speak-as', - 'src', // @font-face - 'stop-color', - 'stop-opacity', - 'stroke', - 'stroke-dasharray', - 'stroke-dashoffset', - 'stroke-linecap', - 'stroke-linejoin', - 'stroke-miterlimit', - 'stroke-opacity', - 'stroke-width', - 'tab-size', - 'table-layout', - 'text-align', - 'text-align-all', - 'text-align-last', - 'text-anchor', - 'text-combine-upright', - 'text-decoration', - 'text-decoration-color', - 'text-decoration-line', - 'text-decoration-skip', - 'text-decoration-skip-ink', - 'text-decoration-style', - 'text-decoration-thickness', - 'text-emphasis', - 'text-emphasis-color', - 'text-emphasis-position', - 'text-emphasis-style', - 'text-indent', - 'text-justify', - 'text-orientation', - 'text-overflow', - 'text-rendering', - 'text-shadow', - 'text-size-adjust', - 'text-transform', - 'text-underline-offset', - 'text-underline-position', - 'text-wrap', - 'text-wrap-mode', - 'text-wrap-style', - 'timeline-scope', - 'top', - 'touch-action', - 'transform', - 'transform-box', - 'transform-origin', - 'transform-style', - 'transition', - 'transition-behavior', - 'transition-delay', - 'transition-duration', - 'transition-property', - 'transition-timing-function', - 'translate', - 'unicode-bidi', - 'user-modify', - 'user-select', - 'vector-effect', - 'vertical-align', - 'view-timeline', - 'view-timeline-axis', - 'view-timeline-inset', - 'view-timeline-name', - 'view-transition-name', - 'visibility', - 'voice-balance', - 'voice-duration', - 'voice-family', - 'voice-pitch', - 'voice-range', - 'voice-rate', - 'voice-stress', - 'voice-volume', - 'white-space', - 'white-space-collapse', - 'widows', - 'width', - 'will-change', - 'word-break', - 'word-spacing', - 'word-wrap', - 'writing-mode', - 'x', - 'y', - 'z-index', - 'zoom' -].sort().reverse(); - -/* -Language: CSS -Category: common, css, web -Website: https://developer.mozilla.org/en-US/docs/Web/CSS -*/ - - -/** @type LanguageFn */ -function css(hljs) { - const regex = hljs.regex; - const modes = MODES(hljs); - const VENDOR_PREFIX = { begin: /-(webkit|moz|ms|o)-(?=[a-z])/ }; - const AT_MODIFIERS = "and or not only"; - const AT_PROPERTY_RE = /@-?\w[\w]*(-\w+)*/; // @-webkit-keyframes - const IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*'; - const STRINGS = [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ]; - - return { - name: 'CSS', - case_insensitive: true, - illegal: /[=|'\$]/, - keywords: { keyframePosition: "from to" }, - classNameAliases: { - // for visual continuity with `tag {}` and because we - // don't have a great class for this? - keyframePosition: "selector-tag" }, - contains: [ - modes.BLOCK_COMMENT, - VENDOR_PREFIX, - // to recognize keyframe 40% etc which are outside the scope of our - // attribute value mode - modes.CSS_NUMBER_MODE, - { - className: 'selector-id', - begin: /#[A-Za-z0-9_-]+/, - relevance: 0 - }, - { - className: 'selector-class', - begin: '\\.' + IDENT_RE, - relevance: 0 - }, - modes.ATTRIBUTE_SELECTOR_MODE, - { - className: 'selector-pseudo', - variants: [ - { begin: ':(' + PSEUDO_CLASSES.join('|') + ')' }, - { begin: ':(:)?(' + PSEUDO_ELEMENTS.join('|') + ')' } - ] - }, - // we may actually need this (12/2020) - // { // pseudo-selector params - // begin: /\(/, - // end: /\)/, - // contains: [ hljs.CSS_NUMBER_MODE ] - // }, - modes.CSS_VARIABLE, - { - className: 'attribute', - begin: '\\b(' + ATTRIBUTES.join('|') + ')\\b' - }, - // attribute values - { - begin: /:/, - end: /[;}{]/, - contains: [ - modes.BLOCK_COMMENT, - modes.HEXCOLOR, - modes.IMPORTANT, - modes.CSS_NUMBER_MODE, - ...STRINGS, - // needed to highlight these as strings and to avoid issues with - // illegal characters that might be inside urls that would tigger the - // languages illegal stack - { - begin: /(url|data-uri)\(/, - end: /\)/, - relevance: 0, // from keywords - keywords: { built_in: "url data-uri" }, - contains: [ - ...STRINGS, - { - className: "string", - // any character other than `)` as in `url()` will be the start - // of a string, which ends with `)` (from the parent mode) - begin: /[^)]/, - endsWithParent: true, - excludeEnd: true - } - ] - }, - modes.FUNCTION_DISPATCH - ] - }, - { - begin: regex.lookahead(/@/), - end: '[{;]', - relevance: 0, - illegal: /:/, // break on Less variables @var: ... - contains: [ - { - className: 'keyword', - begin: AT_PROPERTY_RE - }, - { - begin: /\s/, - endsWithParent: true, - excludeEnd: true, - relevance: 0, - keywords: { - $pattern: /[a-z-]+/, - keyword: AT_MODIFIERS, - attribute: MEDIA_FEATURES.join(" ") - }, - contains: [ - { - begin: /[a-z-]+(?=:)/, - className: "attribute" - }, - ...STRINGS, - modes.CSS_NUMBER_MODE - ] - } - ] - }, - { - className: 'selector-tag', - begin: '\\b(' + TAGS.join('|') + ')\\b' - } - ] - }; -} - -export { css as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js.js deleted file mode 100644 index 5315f64..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/css" instead of "highlight.js/lib/languages/css.js"' - ); - } - } - emitWarning(); - import lang from './css.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/d.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/d.js deleted file mode 100644 index f164df5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/d.js +++ /dev/null @@ -1,272 +0,0 @@ -/* -Language: D -Author: Aleksandar Ruzicic -Description: D is a language with C-like syntax and static typing. It pragmatically combines efficiency, control, and modeling power, with safety and programmer productivity. -Version: 1.0a -Website: https://dlang.org -Category: system -Date: 2012-04-08 -*/ - -/** - * Known issues: - * - * - invalid hex string literals will be recognized as a double quoted strings - * but 'x' at the beginning of string will not be matched - * - * - delimited string literals are not checked for matching end delimiter - * (not possible to do with js regexp) - * - * - content of token string is colored as a string (i.e. no keyword coloring inside a token string) - * also, content of token string is not validated to contain only valid D tokens - * - * - special token sequence rule is not strictly following D grammar (anything following #line - * up to the end of line is matched as special token sequence) - */ - -/** @type LanguageFn */ -function d(hljs) { - /** - * Language keywords - * - * @type {Object} - */ - const D_KEYWORDS = { - $pattern: hljs.UNDERSCORE_IDENT_RE, - keyword: - 'abstract alias align asm assert auto body break byte case cast catch class ' - + 'const continue debug default delete deprecated do else enum export extern final ' - + 'finally for foreach foreach_reverse|10 goto if immutable import in inout int ' - + 'interface invariant is lazy macro mixin module new nothrow out override package ' - + 'pragma private protected public pure ref return scope shared static struct ' - + 'super switch synchronized template this throw try typedef typeid typeof union ' - + 'unittest version void volatile while with __FILE__ __LINE__ __gshared|10 ' - + '__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__', - built_in: - 'bool cdouble cent cfloat char creal dchar delegate double dstring float function ' - + 'idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar ' - + 'wstring', - literal: - 'false null true' - }; - - /** - * Number literal regexps - * - * @type {String} - */ - const decimal_integer_re = '(0|[1-9][\\d_]*)'; - const decimal_integer_nosus_re = '(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)'; - const binary_integer_re = '0[bB][01_]+'; - const hexadecimal_digits_re = '([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)'; - const hexadecimal_integer_re = '0[xX]' + hexadecimal_digits_re; - - const decimal_exponent_re = '([eE][+-]?' + decimal_integer_nosus_re + ')'; - const decimal_float_re = '(' + decimal_integer_nosus_re + '(\\.\\d*|' + decimal_exponent_re + ')|' - + '\\d+\\.' + decimal_integer_nosus_re + '|' - + '\\.' + decimal_integer_re + decimal_exponent_re + '?' - + ')'; - const hexadecimal_float_re = '(0[xX](' - + hexadecimal_digits_re + '\\.' + hexadecimal_digits_re + '|' - + '\\.?' + hexadecimal_digits_re - + ')[pP][+-]?' + decimal_integer_nosus_re + ')'; - - const integer_re = '(' - + decimal_integer_re + '|' - + binary_integer_re + '|' - + hexadecimal_integer_re - + ')'; - - const float_re = '(' - + hexadecimal_float_re + '|' - + decimal_float_re - + ')'; - - /** - * Escape sequence supported in D string and character literals - * - * @type {String} - */ - const escape_sequence_re = '\\\\(' - + '[\'"\\?\\\\abfnrtv]|' // common escapes - + 'u[\\dA-Fa-f]{4}|' // four hex digit unicode codepoint - + '[0-7]{1,3}|' // one to three octal digit ascii char code - + 'x[\\dA-Fa-f]{2}|' // two hex digit ascii char code - + 'U[\\dA-Fa-f]{8}' // eight hex digit unicode codepoint - + ')|' - + '&[a-zA-Z\\d]{2,};'; // named character entity - - /** - * D integer number literals - * - * @type {Object} - */ - const D_INTEGER_MODE = { - className: 'number', - begin: '\\b' + integer_re + '(L|u|U|Lu|LU|uL|UL)?', - relevance: 0 - }; - - /** - * [D_FLOAT_MODE description] - * @type {Object} - */ - const D_FLOAT_MODE = { - className: 'number', - begin: '\\b(' - + float_re + '([fF]|L|i|[fF]i|Li)?|' - + integer_re + '(i|[fF]i|Li)' - + ')', - relevance: 0 - }; - - /** - * D character literal - * - * @type {Object} - */ - const D_CHARACTER_MODE = { - className: 'string', - begin: '\'(' + escape_sequence_re + '|.)', - end: '\'', - illegal: '.' - }; - - /** - * D string escape sequence - * - * @type {Object} - */ - const D_ESCAPE_SEQUENCE = { - begin: escape_sequence_re, - relevance: 0 - }; - - /** - * D double quoted string literal - * - * @type {Object} - */ - const D_STRING_MODE = { - className: 'string', - begin: '"', - contains: [ D_ESCAPE_SEQUENCE ], - end: '"[cwd]?' - }; - - /** - * D wysiwyg and delimited string literals - * - * @type {Object} - */ - const D_WYSIWYG_DELIMITED_STRING_MODE = { - className: 'string', - begin: '[rq]"', - end: '"[cwd]?', - relevance: 5 - }; - - /** - * D alternate wysiwyg string literal - * - * @type {Object} - */ - const D_ALTERNATE_WYSIWYG_STRING_MODE = { - className: 'string', - begin: '`', - end: '`[cwd]?' - }; - - /** - * D hexadecimal string literal - * - * @type {Object} - */ - const D_HEX_STRING_MODE = { - className: 'string', - begin: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?', - relevance: 10 - }; - - /** - * D delimited string literal - * - * @type {Object} - */ - const D_TOKEN_STRING_MODE = { - className: 'string', - begin: 'q"\\{', - end: '\\}"' - }; - - /** - * Hashbang support - * - * @type {Object} - */ - const D_HASHBANG_MODE = { - className: 'meta', - begin: '^#!', - end: '$', - relevance: 5 - }; - - /** - * D special token sequence - * - * @type {Object} - */ - const D_SPECIAL_TOKEN_SEQUENCE_MODE = { - className: 'meta', - begin: '#(line)', - end: '$', - relevance: 5 - }; - - /** - * D attributes - * - * @type {Object} - */ - const D_ATTRIBUTE_MODE = { - className: 'keyword', - begin: '@[a-zA-Z_][a-zA-Z_\\d]*' - }; - - /** - * D nesting comment - * - * @type {Object} - */ - const D_NESTING_COMMENT_MODE = hljs.COMMENT( - '\\/\\+', - '\\+\\/', - { - contains: [ 'self' ], - relevance: 10 - } - ); - - return { - name: 'D', - keywords: D_KEYWORDS, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - D_NESTING_COMMENT_MODE, - D_HEX_STRING_MODE, - D_STRING_MODE, - D_WYSIWYG_DELIMITED_STRING_MODE, - D_ALTERNATE_WYSIWYG_STRING_MODE, - D_TOKEN_STRING_MODE, - D_FLOAT_MODE, - D_INTEGER_MODE, - D_CHARACTER_MODE, - D_HASHBANG_MODE, - D_SPECIAL_TOKEN_SEQUENCE_MODE, - D_ATTRIBUTE_MODE - ] - }; -} - -export { d as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/d.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/d.js.js deleted file mode 100644 index 671b524..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/d.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/d" instead of "highlight.js/lib/languages/d.js"' - ); - } - } - emitWarning(); - import lang from './d.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.js deleted file mode 100644 index 90c11a3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.js +++ /dev/null @@ -1,271 +0,0 @@ -/* -Language: Dart -Requires: markdown.js -Author: Maxim Dikun -Description: Dart a modern, object-oriented language developed by Google. For more information see https://www.dartlang.org/ -Website: https://dart.dev -Category: scripting -*/ - -/** @type LanguageFn */ -function dart(hljs) { - const SUBST = { - className: 'subst', - variants: [ { begin: '\\$[A-Za-z0-9_]+' } ] - }; - - const BRACED_SUBST = { - className: 'subst', - variants: [ - { - begin: /\$\{/, - end: /\}/ - } - ], - keywords: 'true false null this is new super' - }; - - const NUMBER = { - className: 'number', - relevance: 0, - variants: [ - { match: /\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/ }, - { match: /\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/ } - ] - }; - - const STRING = { - className: 'string', - variants: [ - { - begin: 'r\'\'\'', - end: '\'\'\'' - }, - { - begin: 'r"""', - end: '"""' - }, - { - begin: 'r\'', - end: '\'', - illegal: '\\n' - }, - { - begin: 'r"', - end: '"', - illegal: '\\n' - }, - { - begin: '\'\'\'', - end: '\'\'\'', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - }, - { - begin: '"""', - end: '"""', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - }, - { - begin: '\'', - end: '\'', - illegal: '\\n', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - }, - { - begin: '"', - end: '"', - illegal: '\\n', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - BRACED_SUBST - ] - } - ] - }; - BRACED_SUBST.contains = [ - NUMBER, - STRING - ]; - - const BUILT_IN_TYPES = [ - // dart:core - 'Comparable', - 'DateTime', - 'Duration', - 'Function', - 'Iterable', - 'Iterator', - 'List', - 'Map', - 'Match', - 'Object', - 'Pattern', - 'RegExp', - 'Set', - 'Stopwatch', - 'String', - 'StringBuffer', - 'StringSink', - 'Symbol', - 'Type', - 'Uri', - 'bool', - 'double', - 'int', - 'num', - // dart:html - 'Element', - 'ElementList' - ]; - const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e) => `${e}?`); - - const BASIC_KEYWORDS = [ - "abstract", - "as", - "assert", - "async", - "await", - "base", - "break", - "case", - "catch", - "class", - "const", - "continue", - "covariant", - "default", - "deferred", - "do", - "dynamic", - "else", - "enum", - "export", - "extends", - "extension", - "external", - "factory", - "false", - "final", - "finally", - "for", - "Function", - "get", - "hide", - "if", - "implements", - "import", - "in", - "interface", - "is", - "late", - "library", - "mixin", - "new", - "null", - "on", - "operator", - "part", - "required", - "rethrow", - "return", - "sealed", - "set", - "show", - "static", - "super", - "switch", - "sync", - "this", - "throw", - "true", - "try", - "typedef", - "var", - "void", - "when", - "while", - "with", - "yield" - ]; - - const KEYWORDS = { - keyword: BASIC_KEYWORDS, - built_in: - BUILT_IN_TYPES - .concat(NULLABLE_BUILT_IN_TYPES) - .concat([ - // dart:core - 'Never', - 'Null', - 'dynamic', - 'print', - // dart:html - 'document', - 'querySelector', - 'querySelectorAll', - 'window' - ]), - $pattern: /[A-Za-z][A-Za-z0-9_]*\??/ - }; - - return { - name: 'Dart', - keywords: KEYWORDS, - contains: [ - STRING, - hljs.COMMENT( - /\/\*\*(?!\/)/, - /\*\//, - { - subLanguage: 'markdown', - relevance: 0 - } - ), - hljs.COMMENT( - /\/{3,} ?/, - /$/, { contains: [ - { - subLanguage: 'markdown', - begin: '.', - end: '$', - relevance: 0 - } - ] } - ), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: 'class', - beginKeywords: 'class interface', - end: /\{/, - excludeEnd: true, - contains: [ - { beginKeywords: 'extends implements' }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - NUMBER, - { - className: 'meta', - begin: '@[A-Za-z]+' - }, - { begin: '=>' // No markup, just a relevance booster - } - ] - }; -} - -export { dart as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.js.js deleted file mode 100644 index 37cb15e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/dart" instead of "highlight.js/lib/languages/dart.js"' - ); - } - } - emitWarning(); - import lang from './dart.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/delphi.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/delphi.js deleted file mode 100644 index 1a41cbd..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/delphi.js +++ /dev/null @@ -1,246 +0,0 @@ -/* -Language: Delphi -Website: https://www.embarcadero.com/products/delphi -Category: system -*/ - -/** @type LanguageFn */ -function delphi(hljs) { - const KEYWORDS = [ - "exports", - "register", - "file", - "shl", - "array", - "record", - "property", - "for", - "mod", - "while", - "set", - "ally", - "label", - "uses", - "raise", - "not", - "stored", - "class", - "safecall", - "var", - "interface", - "or", - "private", - "static", - "exit", - "index", - "inherited", - "to", - "else", - "stdcall", - "override", - "shr", - "asm", - "far", - "resourcestring", - "finalization", - "packed", - "virtual", - "out", - "and", - "protected", - "library", - "do", - "xorwrite", - "goto", - "near", - "function", - "end", - "div", - "overload", - "object", - "unit", - "begin", - "string", - "on", - "inline", - "repeat", - "until", - "destructor", - "write", - "message", - "program", - "with", - "read", - "initialization", - "except", - "default", - "nil", - "if", - "case", - "cdecl", - "in", - "downto", - "threadvar", - "of", - "try", - "pascal", - "const", - "external", - "constructor", - "type", - "public", - "then", - "implementation", - "finally", - "published", - "procedure", - "absolute", - "reintroduce", - "operator", - "as", - "is", - "abstract", - "alias", - "assembler", - "bitpacked", - "break", - "continue", - "cppdecl", - "cvar", - "enumerator", - "experimental", - "platform", - "deprecated", - "unimplemented", - "dynamic", - "export", - "far16", - "forward", - "generic", - "helper", - "implements", - "interrupt", - "iochecks", - "local", - "name", - "nodefault", - "noreturn", - "nostackframe", - "oldfpccall", - "otherwise", - "saveregisters", - "softfloat", - "specialize", - "strict", - "unaligned", - "varargs" - ]; - const COMMENT_MODES = [ - hljs.C_LINE_COMMENT_MODE, - hljs.COMMENT(/\{/, /\}/, { relevance: 0 }), - hljs.COMMENT(/\(\*/, /\*\)/, { relevance: 10 }) - ]; - const DIRECTIVE = { - className: 'meta', - variants: [ - { - begin: /\{\$/, - end: /\}/ - }, - { - begin: /\(\*\$/, - end: /\*\)/ - } - ] - }; - const STRING = { - className: 'string', - begin: /'/, - end: /'/, - contains: [ { begin: /''/ } ] - }; - const NUMBER = { - className: 'number', - relevance: 0, - // Source: https://www.freepascal.org/docs-html/ref/refse6.html - variants: [ - { - // Regular numbers, e.g., 123, 123.456. - match: /\b\d[\d_]*(\.\d[\d_]*)?/ }, - { - // Hexadecimal notation, e.g., $7F. - match: /\$[\dA-Fa-f_]+/ }, - { - // Hexadecimal literal with no digits - match: /\$/, - relevance: 0 }, - { - // Octal notation, e.g., &42. - match: /&[0-7][0-7_]*/ }, - { - // Binary notation, e.g., %1010. - match: /%[01_]+/ }, - { - // Binary literal with no digits - match: /%/, - relevance: 0 } - ] - }; - const CHAR_STRING = { - className: 'string', - variants: [ - { match: /#\d[\d_]*/ }, - { match: /#\$[\dA-Fa-f][\dA-Fa-f_]*/ }, - { match: /#&[0-7][0-7_]*/ }, - { match: /#%[01][01_]*/ } - ] - }; - const CLASS = { - begin: hljs.IDENT_RE + '\\s*=\\s*class\\s*\\(', - returnBegin: true, - contains: [ hljs.TITLE_MODE ] - }; - const FUNCTION = { - className: 'function', - beginKeywords: 'function constructor destructor procedure', - end: /[:;]/, - keywords: 'function constructor|10 destructor|10 procedure|10', - contains: [ - hljs.TITLE_MODE, - { - className: 'params', - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - contains: [ - STRING, - CHAR_STRING, - DIRECTIVE - ].concat(COMMENT_MODES) - }, - DIRECTIVE - ].concat(COMMENT_MODES) - }; - return { - name: 'Delphi', - aliases: [ - 'dpr', - 'dfm', - 'pas', - 'pascal' - ], - case_insensitive: true, - keywords: KEYWORDS, - illegal: /"|\$[G-Zg-z]|\/\*|<\/|\|/, - contains: [ - STRING, - CHAR_STRING, - NUMBER, - CLASS, - FUNCTION, - DIRECTIVE - ].concat(COMMENT_MODES) - }; -} - -export { delphi as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/delphi.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/delphi.js.js deleted file mode 100644 index a18e4ee..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/delphi.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/delphi" instead of "highlight.js/lib/languages/delphi.js"' - ); - } - } - emitWarning(); - import lang from './delphi.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js deleted file mode 100644 index 878dffa..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js +++ /dev/null @@ -1,62 +0,0 @@ -/* -Language: Diff -Description: Unified and context diff -Author: Vasily Polovnyov -Website: https://www.gnu.org/software/diffutils/ -Category: common -*/ - -/** @type LanguageFn */ -function diff(hljs) { - const regex = hljs.regex; - return { - name: 'Diff', - aliases: [ 'patch' ], - contains: [ - { - className: 'meta', - relevance: 10, - match: regex.either( - /^@@ +-\d+,\d+ +\+\d+,\d+ +@@/, - /^\*\*\* +\d+,\d+ +\*\*\*\*$/, - /^--- +\d+,\d+ +----$/ - ) - }, - { - className: 'comment', - variants: [ - { - begin: regex.either( - /Index: /, - /^index/, - /={3,}/, - /^-{3}/, - /^\*{3} /, - /^\+{3}/, - /^diff --git/ - ), - end: /$/ - }, - { match: /^\*{15}$/ } - ] - }, - { - className: 'addition', - begin: /^\+/, - end: /$/ - }, - { - className: 'deletion', - begin: /^-/, - end: /$/ - }, - { - className: 'addition', - begin: /^!/, - end: /$/ - } - ] - }; -} - -export { diff as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js.js deleted file mode 100644 index dcb2fc0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/diff.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/diff" instead of "highlight.js/lib/languages/diff.js"' - ); - } - } - emitWarning(); - import lang from './diff.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.js deleted file mode 100644 index a4385ec..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.js +++ /dev/null @@ -1,75 +0,0 @@ -/* -Language: Django -Description: Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. -Requires: xml.js -Author: Ivan Sagalaev -Contributors: Ilya Baryshev -Website: https://www.djangoproject.com -Category: template -*/ - -/** @type LanguageFn */ -function django(hljs) { - const FILTER = { - begin: /\|[A-Za-z]+:?/, - keywords: { name: - 'truncatewords removetags linebreaksbr yesno get_digit timesince random striptags ' - + 'filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands ' - + 'title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode ' - + 'timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort ' - + 'dictsortreversed default_if_none pluralize lower join center default ' - + 'truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first ' - + 'escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize ' - + 'localtime utc timezone' }, - contains: [ - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE - ] - }; - - return { - name: 'Django', - aliases: [ 'jinja' ], - case_insensitive: true, - subLanguage: 'xml', - contains: [ - hljs.COMMENT(/\{%\s*comment\s*%\}/, /\{%\s*endcomment\s*%\}/), - hljs.COMMENT(/\{#/, /#\}/), - { - className: 'template-tag', - begin: /\{%/, - end: /%\}/, - contains: [ - { - className: 'name', - begin: /\w+/, - keywords: { name: - 'comment endcomment load templatetag ifchanged endifchanged if endif firstof for ' - + 'endfor ifnotequal endifnotequal widthratio extends include spaceless ' - + 'endspaceless regroup ifequal endifequal ssi now with cycle url filter ' - + 'endfilter debug block endblock else autoescape endautoescape csrf_token empty elif ' - + 'endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix ' - + 'plural get_current_language language get_available_languages ' - + 'get_current_language_bidi get_language_info get_language_info_list localize ' - + 'endlocalize localtime endlocaltime timezone endtimezone get_current_timezone ' - + 'verbatim' }, - starts: { - endsWithParent: true, - keywords: 'in by as', - contains: [ FILTER ], - relevance: 0 - } - } - ] - }, - { - className: 'template-variable', - begin: /\{\{/, - end: /\}\}/, - contains: [ FILTER ] - } - ] - }; -} - -export { django as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.js.js deleted file mode 100644 index 21e96c6..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/django" instead of "highlight.js/lib/languages/django.js"' - ); - } - } - emitWarning(); - import lang from './django.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.js deleted file mode 100644 index dbdb38d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.js +++ /dev/null @@ -1,78 +0,0 @@ -/* -Language: DNS Zone -Author: Tim Schumacher -Category: config -Website: https://en.wikipedia.org/wiki/Zone_file -*/ - -/** @type LanguageFn */ -function dns(hljs) { - const KEYWORDS = [ - "IN", - "A", - "AAAA", - "AFSDB", - "APL", - "CAA", - "CDNSKEY", - "CDS", - "CERT", - "CNAME", - "DHCID", - "DLV", - "DNAME", - "DNSKEY", - "DS", - "HIP", - "IPSECKEY", - "KEY", - "KX", - "LOC", - "MX", - "NAPTR", - "NS", - "NSEC", - "NSEC3", - "NSEC3PARAM", - "PTR", - "RRSIG", - "RP", - "SIG", - "SOA", - "SRV", - "SSHFP", - "TA", - "TKEY", - "TLSA", - "TSIG", - "TXT" - ]; - return { - name: 'DNS Zone', - aliases: [ - 'bind', - 'zone' - ], - keywords: KEYWORDS, - contains: [ - hljs.COMMENT(';', '$', { relevance: 0 }), - { - className: 'meta', - begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/ - }, - // IPv6 - { - className: 'number', - begin: '((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b' - }, - // IPv4 - { - className: 'number', - begin: '((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b' - }, - hljs.inherit(hljs.NUMBER_MODE, { begin: /\b\d+[dhwm]?/ }) - ] - }; -} - -export { dns as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.js.js deleted file mode 100644 index e904d28..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/dns" instead of "highlight.js/lib/languages/dns.js"' - ); - } - } - emitWarning(); - import lang from './dns.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dockerfile.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dockerfile.js deleted file mode 100644 index 7d52b86..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dockerfile.js +++ /dev/null @@ -1,44 +0,0 @@ -/* -Language: Dockerfile -Requires: bash.js -Author: Alexis Hénaut -Description: language definition for Dockerfile files -Website: https://docs.docker.com/engine/reference/builder/ -Category: config -*/ - -/** @type LanguageFn */ -function dockerfile(hljs) { - const KEYWORDS = [ - "from", - "maintainer", - "expose", - "env", - "arg", - "user", - "onbuild", - "stopsignal" - ]; - return { - name: 'Dockerfile', - aliases: [ 'docker' ], - case_insensitive: true, - keywords: KEYWORDS, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE, - { - beginKeywords: 'run cmd entrypoint volume add copy workdir label healthcheck shell', - starts: { - end: /[^\\]$/, - subLanguage: 'bash' - } - } - ], - illegal: ' -Contributors: Anton Kochkov -Website: https://en.wikipedia.org/wiki/Batch_file -Category: scripting -*/ - -/** @type LanguageFn */ -function dos(hljs) { - const COMMENT = hljs.COMMENT( - /^\s*@?rem\b/, /$/, - { relevance: 10 } - ); - const LABEL = { - className: 'symbol', - begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)', - relevance: 0 - }; - const KEYWORDS = [ - "if", - "else", - "goto", - "for", - "in", - "do", - "call", - "exit", - "not", - "exist", - "errorlevel", - "defined", - "equ", - "neq", - "lss", - "leq", - "gtr", - "geq" - ]; - const BUILT_INS = [ - "prn", - "nul", - "lpt3", - "lpt2", - "lpt1", - "con", - "com4", - "com3", - "com2", - "com1", - "aux", - "shift", - "cd", - "dir", - "echo", - "setlocal", - "endlocal", - "set", - "pause", - "copy", - "append", - "assoc", - "at", - "attrib", - "break", - "cacls", - "cd", - "chcp", - "chdir", - "chkdsk", - "chkntfs", - "cls", - "cmd", - "color", - "comp", - "compact", - "convert", - "date", - "dir", - "diskcomp", - "diskcopy", - "doskey", - "erase", - "fs", - "find", - "findstr", - "format", - "ftype", - "graftabl", - "help", - "keyb", - "label", - "md", - "mkdir", - "mode", - "more", - "move", - "path", - "pause", - "print", - "popd", - "pushd", - "promt", - "rd", - "recover", - "rem", - "rename", - "replace", - "restore", - "rmdir", - "shift", - "sort", - "start", - "subst", - "time", - "title", - "tree", - "type", - "ver", - "verify", - "vol", - // winutils - "ping", - "net", - "ipconfig", - "taskkill", - "xcopy", - "ren", - "del" - ]; - return { - name: 'Batch file (DOS)', - aliases: [ - 'bat', - 'cmd' - ], - case_insensitive: true, - illegal: /\/\*/, - keywords: { - keyword: KEYWORDS, - built_in: BUILT_INS - }, - contains: [ - { - className: 'variable', - begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/ - }, - { - className: 'function', - begin: LABEL.begin, - end: 'goto:eof', - contains: [ - hljs.inherit(hljs.TITLE_MODE, { begin: '([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*' }), - COMMENT - ] - }, - { - className: 'number', - begin: '\\b\\d+', - relevance: 0 - }, - COMMENT - ] - }; -} - -export { dos as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dos.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dos.js.js deleted file mode 100644 index c8e0927..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dos.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/dos" instead of "highlight.js/lib/languages/dos.js"' - ); - } - } - emitWarning(); - import lang from './dos.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dsconfig.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dsconfig.js deleted file mode 100644 index 163975b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dsconfig.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - Language: dsconfig - Description: dsconfig batch configuration language for LDAP directory servers - Contributors: Jacob Childress - Category: enterprise, config - */ - -/** @type LanguageFn */ -function dsconfig(hljs) { - const QUOTED_PROPERTY = { - className: 'string', - begin: /"/, - end: /"/ - }; - const APOS_PROPERTY = { - className: 'string', - begin: /'/, - end: /'/ - }; - const UNQUOTED_PROPERTY = { - className: 'string', - begin: /[\w\-?]+:\w+/, - end: /\W/, - relevance: 0 - }; - const VALUELESS_PROPERTY = { - className: 'string', - begin: /\w+(\-\w+)*/, - end: /(?=\W)/, - relevance: 0 - }; - - return { - keywords: 'dsconfig', - contains: [ - { - className: 'keyword', - begin: '^dsconfig', - end: /\s/, - excludeEnd: true, - relevance: 10 - }, - { - className: 'built_in', - begin: /(list|create|get|set|delete)-(\w+)/, - end: /\s/, - excludeEnd: true, - illegal: '!@#$%^&*()', - relevance: 10 - }, - { - className: 'built_in', - begin: /--(\w+)/, - end: /\s/, - excludeEnd: true - }, - QUOTED_PROPERTY, - APOS_PROPERTY, - UNQUOTED_PROPERTY, - VALUELESS_PROPERTY, - hljs.HASH_COMMENT_MODE - ] - }; -} - -export { dsconfig as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dsconfig.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dsconfig.js.js deleted file mode 100644 index 7f3b38d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dsconfig.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/dsconfig" instead of "highlight.js/lib/languages/dsconfig.js"' - ); - } - } - emitWarning(); - import lang from './dsconfig.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dts.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dts.js deleted file mode 100644 index 8e8356a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dts.js +++ /dev/null @@ -1,157 +0,0 @@ -/* -Language: Device Tree -Description: *.dts files used in the Linux kernel -Author: Martin Braun , Moritz Fischer -Website: https://elinux.org/Device_Tree_Reference -Category: config -*/ - -/** @type LanguageFn */ -function dts(hljs) { - const STRINGS = { - className: 'string', - variants: [ - hljs.inherit(hljs.QUOTE_STRING_MODE, { begin: '((u8?|U)|L)?"' }), - { - begin: '(u8?|U)?R"', - end: '"', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: '\'\\\\?.', - end: '\'', - illegal: '.' - } - ] - }; - - const NUMBERS = { - className: 'number', - variants: [ - { begin: '\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)' }, - { begin: hljs.C_NUMBER_RE } - ], - relevance: 0 - }; - - const PREPROCESSOR = { - className: 'meta', - begin: '#', - end: '$', - keywords: { keyword: 'if else elif endif define undef ifdef ifndef' }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - { - beginKeywords: 'include', - end: '$', - keywords: { keyword: 'include' }, - contains: [ - hljs.inherit(STRINGS, { className: 'string' }), - { - className: 'string', - begin: '<', - end: '>', - illegal: '\\n' - } - ] - }, - STRINGS, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; - - const REFERENCE = { - className: 'variable', - begin: /&[a-z\d_]*\b/ - }; - - const KEYWORD = { - className: 'keyword', - begin: '/[a-z][a-z\\d-]*/' - }; - - const LABEL = { - className: 'symbol', - begin: '^\\s*[a-zA-Z_][a-zA-Z\\d_]*:' - }; - - const CELL_PROPERTY = { - className: 'params', - relevance: 0, - begin: '<', - end: '>', - contains: [ - NUMBERS, - REFERENCE - ] - }; - - const NODE = { - className: 'title.class', - begin: /[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/, - relevance: 0.2 - }; - - const ROOT_NODE = { - className: 'title.class', - begin: /^\/(?=\s*\{)/, - relevance: 10 - }; - - // TODO: `attribute` might be the right scope here, unsure - // I'm not sure if all these key names have semantic meaning or not - const ATTR_NO_VALUE = { - match: /[a-z][a-z-,]+(?=;)/, - relevance: 0, - scope: "attr" - }; - const ATTR = { - relevance: 0, - match: [ - /[a-z][a-z-,]+/, - /\s*/, - /=/ - ], - scope: { - 1: "attr", - 3: "operator" - } - }; - - const PUNC = { - scope: "punctuation", - relevance: 0, - // `};` combined is just to avoid tons of useless punctuation nodes - match: /\};|[;{}]/ - }; - - return { - name: 'Device Tree', - contains: [ - ROOT_NODE, - REFERENCE, - KEYWORD, - LABEL, - NODE, - ATTR, - ATTR_NO_VALUE, - CELL_PROPERTY, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - NUMBERS, - STRINGS, - PREPROCESSOR, - PUNC, - { - begin: hljs.IDENT_RE + '::', - keywords: "" - } - ] - }; -} - -export { dts as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dts.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dts.js.js deleted file mode 100644 index 26019f6..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dts.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/dts" instead of "highlight.js/lib/languages/dts.js"' - ); - } - } - emitWarning(); - import lang from './dts.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.js deleted file mode 100644 index 3e02c49..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.js +++ /dev/null @@ -1,47 +0,0 @@ -/* -Language: Dust -Requires: xml.js -Author: Michael Allen -Description: Matcher for dust.js templates. -Website: https://www.dustjs.com -Category: template -*/ - -/** @type LanguageFn */ -function dust(hljs) { - const EXPRESSION_KEYWORDS = 'if eq ne lt lte gt gte select default math sep'; - return { - name: 'Dust', - aliases: [ 'dst' ], - case_insensitive: true, - subLanguage: 'xml', - contains: [ - { - className: 'template-tag', - begin: /\{[#\/]/, - end: /\}/, - illegal: /;/, - contains: [ - { - className: 'name', - begin: /[a-zA-Z\.-]+/, - starts: { - endsWithParent: true, - relevance: 0, - contains: [ hljs.QUOTE_STRING_MODE ] - } - } - ] - }, - { - className: 'template-variable', - begin: /\{/, - end: /\}/, - illegal: /;/, - keywords: EXPRESSION_KEYWORDS - } - ] - }; -} - -export { dust as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.js.js deleted file mode 100644 index 87b8c38..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/dust" instead of "highlight.js/lib/languages/dust.js"' - ); - } - } - emitWarning(); - import lang from './dust.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ebnf.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ebnf.js deleted file mode 100644 index e512caf..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ebnf.js +++ /dev/null @@ -1,54 +0,0 @@ -/* -Language: Extended Backus-Naur Form -Author: Alex McKibben -Website: https://en.wikipedia.org/wiki/Extended_Backus–Naur_form -Category: syntax -*/ - -/** @type LanguageFn */ -function ebnf(hljs) { - const commentMode = hljs.COMMENT(/\(\*/, /\*\)/); - - const nonTerminalMode = { - className: "attribute", - begin: /^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/ - }; - - const specialSequenceMode = { - className: "meta", - begin: /\?.*\?/ - }; - - const ruleBodyMode = { - begin: /=/, - end: /[.;]/, - contains: [ - commentMode, - specialSequenceMode, - { - // terminals - className: 'string', - variants: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - begin: '`', - end: '`' - } - ] - } - ] - }; - - return { - name: 'Extended Backus-Naur Form', - illegal: /\S/, - contains: [ - commentMode, - nonTerminalMode, - ruleBodyMode - ] - }; -} - -export { ebnf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ebnf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ebnf.js.js deleted file mode 100644 index 187a47f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ebnf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ebnf" instead of "highlight.js/lib/languages/ebnf.js"' - ); - } - } - emitWarning(); - import lang from './ebnf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elixir.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elixir.js deleted file mode 100644 index ff2c179..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elixir.js +++ /dev/null @@ -1,279 +0,0 @@ -/* -Language: Elixir -Author: Josh Adams -Description: language definition for Elixir source code files (.ex and .exs). Based on ruby language support. -Category: functional -Website: https://elixir-lang.org -*/ - -/** @type LanguageFn */ -function elixir(hljs) { - const regex = hljs.regex; - const ELIXIR_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?'; - const ELIXIR_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; - const KEYWORDS = [ - "after", - "alias", - "and", - "case", - "catch", - "cond", - "defstruct", - "defguard", - "do", - "else", - "end", - "fn", - "for", - "if", - "import", - "in", - "not", - "or", - "quote", - "raise", - "receive", - "require", - "reraise", - "rescue", - "try", - "unless", - "unquote", - "unquote_splicing", - "use", - "when", - "with|0" - ]; - const LITERALS = [ - "false", - "nil", - "true" - ]; - const KWS = { - $pattern: ELIXIR_IDENT_RE, - keyword: KEYWORDS, - literal: LITERALS - }; - const SUBST = { - className: 'subst', - begin: /#\{/, - end: /\}/, - keywords: KWS - }; - const NUMBER = { - className: 'number', - begin: '(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)', - relevance: 0 - }; - // TODO: could be tightened - // https://elixir-lang.readthedocs.io/en/latest/intro/18.html - // but you also need to include closing delemeters in the escape list per - // individual sigil mode from what I can tell, - // ie: \} might or might not be an escape depending on the sigil used - const ESCAPES_RE = /\\[\s\S]/; - // const ESCAPES_RE = /\\["'\\abdefnrstv0]/; - const BACKSLASH_ESCAPE = { - match: ESCAPES_RE, - scope: "char.escape", - relevance: 0 - }; - const SIGIL_DELIMITERS = '[/|([{<"\']'; - const SIGIL_DELIMITER_MODES = [ - { - begin: /"/, - end: /"/ - }, - { - begin: /'/, - end: /'/ - }, - { - begin: /\//, - end: /\// - }, - { - begin: /\|/, - end: /\|/ - }, - { - begin: /\(/, - end: /\)/ - }, - { - begin: /\[/, - end: /\]/ - }, - { - begin: /\{/, - end: /\}/ - }, - { - begin: // - } - ]; - const escapeSigilEnd = (end) => { - return { - scope: "char.escape", - begin: regex.concat(/\\/, end), - relevance: 0 - }; - }; - const LOWERCASE_SIGIL = { - className: 'string', - begin: '~[a-z]' + '(?=' + SIGIL_DELIMITERS + ')', - contains: SIGIL_DELIMITER_MODES.map(x => hljs.inherit(x, - { contains: [ - escapeSigilEnd(x.end), - BACKSLASH_ESCAPE, - SUBST - ] } - )) - }; - - const UPCASE_SIGIL = { - className: 'string', - begin: '~[A-Z]' + '(?=' + SIGIL_DELIMITERS + ')', - contains: SIGIL_DELIMITER_MODES.map(x => hljs.inherit(x, - { contains: [ escapeSigilEnd(x.end) ] } - )) - }; - - const REGEX_SIGIL = { - className: 'regex', - variants: [ - { - begin: '~r' + '(?=' + SIGIL_DELIMITERS + ')', - contains: SIGIL_DELIMITER_MODES.map(x => hljs.inherit(x, - { - end: regex.concat(x.end, /[uismxfU]{0,7}/), - contains: [ - escapeSigilEnd(x.end), - BACKSLASH_ESCAPE, - SUBST - ] - } - )) - }, - { - begin: '~R' + '(?=' + SIGIL_DELIMITERS + ')', - contains: SIGIL_DELIMITER_MODES.map(x => hljs.inherit(x, - { - end: regex.concat(x.end, /[uismxfU]{0,7}/), - contains: [ escapeSigilEnd(x.end) ] - }) - ) - } - ] - }; - - const STRING = { - className: 'string', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: /"""/, - end: /"""/ - }, - { - begin: /'''/, - end: /'''/ - }, - { - begin: /~S"""/, - end: /"""/, - contains: [] // override default - }, - { - begin: /~S"/, - end: /"/, - contains: [] // override default - }, - { - begin: /~S'''/, - end: /'''/, - contains: [] // override default - }, - { - begin: /~S'/, - end: /'/, - contains: [] // override default - }, - { - begin: /'/, - end: /'/ - }, - { - begin: /"/, - end: /"/ - } - ] - }; - const FUNCTION = { - className: 'function', - beginKeywords: 'def defp defmacro defmacrop', - end: /\B\b/, // the mode is ended by the title - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - begin: ELIXIR_IDENT_RE, - endsParent: true - }) - ] - }; - const CLASS = hljs.inherit(FUNCTION, { - className: 'class', - beginKeywords: 'defimpl defmodule defprotocol defrecord', - end: /\bdo\b|$|;/ - }); - const ELIXIR_DEFAULT_CONTAINS = [ - STRING, - REGEX_SIGIL, - UPCASE_SIGIL, - LOWERCASE_SIGIL, - hljs.HASH_COMMENT_MODE, - CLASS, - FUNCTION, - { begin: '::' }, - { - className: 'symbol', - begin: ':(?![\\s:])', - contains: [ - STRING, - { begin: ELIXIR_METHOD_RE } - ], - relevance: 0 - }, - { - className: 'symbol', - begin: ELIXIR_IDENT_RE + ':(?!:)', - relevance: 0 - }, - { // Usage of a module, struct, etc. - className: 'title.class', - begin: /(\b[A-Z][a-zA-Z0-9_]+)/, - relevance: 0 - }, - NUMBER, - { - className: 'variable', - begin: '(\\$\\W)|((\\$|@@?)(\\w+))' - } - // -> has been removed, capnproto always uses this grammar construct - ]; - SUBST.contains = ELIXIR_DEFAULT_CONTAINS; - - return { - name: 'Elixir', - aliases: [ - 'ex', - 'exs' - ], - keywords: KWS, - contains: ELIXIR_DEFAULT_CONTAINS - }; -} - -export { elixir as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elixir.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elixir.js.js deleted file mode 100644 index cedb747..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elixir.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/elixir" instead of "highlight.js/lib/languages/elixir.js"' - ); - } - } - emitWarning(); - import lang from './elixir.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elm.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elm.js deleted file mode 100644 index 30eed5f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elm.js +++ /dev/null @@ -1,143 +0,0 @@ -/* -Language: Elm -Author: Janis Voigtlaender -Website: https://elm-lang.org -Category: functional -*/ - -/** @type LanguageFn */ -function elm(hljs) { - const COMMENT = { variants: [ - hljs.COMMENT('--', '$'), - hljs.COMMENT( - /\{-/, - /-\}/, - { contains: [ 'self' ] } - ) - ] }; - - const CONSTRUCTOR = { - className: 'type', - begin: '\\b[A-Z][\\w\']*', // TODO: other constructors (built-in, infix). - relevance: 0 - }; - - const LIST = { - begin: '\\(', - end: '\\)', - illegal: '"', - contains: [ - { - className: 'type', - begin: '\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?' - }, - COMMENT - ] - }; - - const RECORD = { - begin: /\{/, - end: /\}/, - contains: LIST.contains - }; - - const CHARACTER = { - className: 'string', - begin: '\'\\\\?.', - end: '\'', - illegal: '.' - }; - - const KEYWORDS = [ - "let", - "in", - "if", - "then", - "else", - "case", - "of", - "where", - "module", - "import", - "exposing", - "type", - "alias", - "as", - "infix", - "infixl", - "infixr", - "port", - "effect", - "command", - "subscription" - ]; - - return { - name: 'Elm', - keywords: KEYWORDS, - contains: [ - - // Top-level constructions. - - { - beginKeywords: 'port effect module', - end: 'exposing', - keywords: 'port effect module where command subscription exposing', - contains: [ - LIST, - COMMENT - ], - illegal: '\\W\\.|;' - }, - { - begin: 'import', - end: '$', - keywords: 'import as exposing', - contains: [ - LIST, - COMMENT - ], - illegal: '\\W\\.|;' - }, - { - begin: 'type', - end: '$', - keywords: 'type alias', - contains: [ - CONSTRUCTOR, - LIST, - RECORD, - COMMENT - ] - }, - { - beginKeywords: 'infix infixl infixr', - end: '$', - contains: [ - hljs.C_NUMBER_MODE, - COMMENT - ] - }, - { - begin: 'port', - end: '$', - keywords: 'port', - contains: [ COMMENT ] - }, - - // Literals and names. - CHARACTER, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - CONSTRUCTOR, - hljs.inherit(hljs.TITLE_MODE, { begin: '^[_a-z][\\w\']*' }), - COMMENT, - - { // No markup, relevance booster - begin: '->|<-' } - ], - illegal: /;/ - }; -} - -export { elm as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elm.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elm.js.js deleted file mode 100644 index 8d84af0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/elm.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/elm" instead of "highlight.js/lib/languages/elm.js"' - ); - } - } - emitWarning(); - import lang from './elm.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erb.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erb.js deleted file mode 100644 index 7ea3e4b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erb.js +++ /dev/null @@ -1,29 +0,0 @@ -/* -Language: ERB (Embedded Ruby) -Requires: xml.js, ruby.js -Author: Lucas Mazza -Contributors: Kassio Borges -Description: "Bridge" language defining fragments of Ruby in HTML within <% .. %> -Website: https://ruby-doc.org/stdlib-2.6.5/libdoc/erb/rdoc/ERB.html -Category: template -*/ - -/** @type LanguageFn */ -function erb(hljs) { - return { - name: 'ERB', - subLanguage: 'xml', - contains: [ - hljs.COMMENT('<%#', '%>'), - { - begin: '<%[%=-]?', - end: '[%-]?%>', - subLanguage: 'ruby', - excludeBegin: true, - excludeEnd: true - } - ] - }; -} - -export { erb as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erb.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erb.js.js deleted file mode 100644 index 8223529..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erb.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/erb" instead of "highlight.js/lib/languages/erb.js"' - ); - } - } - emitWarning(); - import lang from './erb.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang-repl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang-repl.js deleted file mode 100644 index 9e90533..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang-repl.js +++ /dev/null @@ -1,54 +0,0 @@ -/* -Language: Erlang REPL -Author: Sergey Ignatov -Website: https://www.erlang.org -Category: functional -*/ - -/** @type LanguageFn */ -function erlangRepl(hljs) { - const regex = hljs.regex; - return { - name: 'Erlang REPL', - keywords: { - built_in: - 'spawn spawn_link self', - keyword: - 'after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if ' - + 'let not of or orelse|10 query receive rem try when xor' - }, - contains: [ - { - className: 'meta.prompt', - begin: '^[0-9]+> ', - relevance: 10 - }, - hljs.COMMENT('%', '$'), - { - className: 'number', - begin: '\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)', - relevance: 0 - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { begin: regex.concat( - /\?(::)?/, - /([A-Z]\w*)/, // at least one identifier - /((::)[A-Z]\w*)*/ // perhaps more - ) }, - { begin: '->' }, - { begin: 'ok' }, - { begin: '!' }, - { - begin: '(\\b[a-z\'][a-zA-Z0-9_\']*:[a-z\'][a-zA-Z0-9_\']*)|(\\b[a-z\'][a-zA-Z0-9_\']*)', - relevance: 0 - }, - { - begin: '[A-Z][a-zA-Z0-9_\']*', - relevance: 0 - } - ] - }; -} - -export { erlangRepl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang-repl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang-repl.js.js deleted file mode 100644 index 52db750..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang-repl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/erlang-repl" instead of "highlight.js/lib/languages/erlang-repl.js"' - ); - } - } - emitWarning(); - import lang from './erlang-repl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.js deleted file mode 100644 index 7243da2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.js +++ /dev/null @@ -1,235 +0,0 @@ -/* -Language: Erlang -Description: Erlang is a general-purpose functional language, with strict evaluation, single assignment, and dynamic typing. -Author: Nikolay Zakharov , Dmitry Kovega -Website: https://www.erlang.org -Category: functional -*/ - -/** @type LanguageFn */ -function erlang(hljs) { - const BASIC_ATOM_RE = '[a-z\'][a-zA-Z0-9_\']*'; - const FUNCTION_NAME_RE = '(' + BASIC_ATOM_RE + ':' + BASIC_ATOM_RE + '|' + BASIC_ATOM_RE + ')'; - const ERLANG_RESERVED = { - keyword: - 'after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if ' - + 'let not of orelse|10 query receive rem try when xor maybe else', - literal: - 'false true' - }; - - const COMMENT = hljs.COMMENT('%', '$'); - const NUMBER = { - className: 'number', - begin: '\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)', - relevance: 0 - }; - const NAMED_FUN = { begin: 'fun\\s+' + BASIC_ATOM_RE + '/\\d+' }; - const FUNCTION_CALL = { - begin: FUNCTION_NAME_RE + '\\(', - end: '\\)', - returnBegin: true, - relevance: 0, - contains: [ - { - begin: FUNCTION_NAME_RE, - relevance: 0 - }, - { - begin: '\\(', - end: '\\)', - endsWithParent: true, - returnEnd: true, - relevance: 0 - // "contains" defined later - } - ] - }; - const TUPLE = { - begin: /\{/, - end: /\}/, - relevance: 0 - // "contains" defined later - }; - const VAR1 = { - begin: '\\b_([A-Z][A-Za-z0-9_]*)?', - relevance: 0 - }; - const VAR2 = { - begin: '[A-Z][a-zA-Z0-9_]*', - relevance: 0 - }; - const RECORD_ACCESS = { - begin: '#' + hljs.UNDERSCORE_IDENT_RE, - relevance: 0, - returnBegin: true, - contains: [ - { - begin: '#' + hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - }, - { - begin: /\{/, - end: /\}/, - relevance: 0 - // "contains" defined later - } - ] - }; - const CHAR_LITERAL = { - scope: 'string', - match: /\$(\\([^0-9]|[0-9]{1,3}|)|.)/, - }; - const TRIPLE_QUOTE = { - scope: 'string', - match: /"""("*)(?!")[\s\S]*?"""\1/, - }; - - const SIGIL = { - scope: 'string', - contains: [ hljs.BACKSLASH_ESCAPE ], - variants: [ - {match: /~\w?"""("*)(?!")[\s\S]*?"""\1/}, - {begin: /~\w?\(/, end: /\)/}, - {begin: /~\w?\[/, end: /\]/}, - {begin: /~\w?{/, end: /}/}, - {begin: /~\w?/}, - {begin: /~\w?\//, end: /\//}, - {begin: /~\w?\|/, end: /\|/}, - {begin: /~\w?'/, end: /'/}, - {begin: /~\w?"/, end: /"/}, - {begin: /~\w?`/, end: /`/}, - {begin: /~\w?#/, end: /#/}, - ], - }; - - const BLOCK_STATEMENTS = { - beginKeywords: 'fun receive if try case maybe', - end: 'end', - keywords: ERLANG_RESERVED - }; - BLOCK_STATEMENTS.contains = [ - COMMENT, - NAMED_FUN, - hljs.inherit(hljs.APOS_STRING_MODE, { className: '' }), - BLOCK_STATEMENTS, - FUNCTION_CALL, - SIGIL, - TRIPLE_QUOTE, - hljs.QUOTE_STRING_MODE, - NUMBER, - TUPLE, - VAR1, - VAR2, - RECORD_ACCESS, - CHAR_LITERAL - ]; - - const BASIC_MODES = [ - COMMENT, - NAMED_FUN, - BLOCK_STATEMENTS, - FUNCTION_CALL, - SIGIL, - TRIPLE_QUOTE, - hljs.QUOTE_STRING_MODE, - NUMBER, - TUPLE, - VAR1, - VAR2, - RECORD_ACCESS, - CHAR_LITERAL - ]; - FUNCTION_CALL.contains[1].contains = BASIC_MODES; - TUPLE.contains = BASIC_MODES; - RECORD_ACCESS.contains[1].contains = BASIC_MODES; - - const DIRECTIVES = [ - "-module", - "-record", - "-undef", - "-export", - "-ifdef", - "-ifndef", - "-author", - "-copyright", - "-doc", - "-moduledoc", - "-vsn", - "-import", - "-include", - "-include_lib", - "-compile", - "-define", - "-else", - "-endif", - "-file", - "-behaviour", - "-behavior", - "-spec", - "-on_load", - "-nifs", - ]; - - const PARAMS = { - className: 'params', - begin: '\\(', - end: '\\)', - contains: BASIC_MODES - }; - - return { - name: 'Erlang', - aliases: [ 'erl' ], - keywords: ERLANG_RESERVED, - illegal: '(', - returnBegin: true, - illegal: '\\(|#|//|/\\*|\\\\|:|;', - contains: [ - PARAMS, - hljs.inherit(hljs.TITLE_MODE, { begin: BASIC_ATOM_RE }) - ], - starts: { - end: ';|\\.', - keywords: ERLANG_RESERVED, - contains: BASIC_MODES - } - }, - COMMENT, - { - begin: '^-', - end: '\\.', - relevance: 0, - excludeEnd: true, - returnBegin: true, - keywords: { - $pattern: '-' + hljs.IDENT_RE, - keyword: DIRECTIVES.map(x => `${x}|1.5`).join(" ") - }, - contains: [ - PARAMS, - SIGIL, - TRIPLE_QUOTE, - hljs.QUOTE_STRING_MODE - ] - }, - NUMBER, - SIGIL, - TRIPLE_QUOTE, - hljs.QUOTE_STRING_MODE, - RECORD_ACCESS, - VAR1, - VAR2, - TUPLE, - CHAR_LITERAL, - { begin: /\.$/ } // relevance booster - ] - }; -} - -export { erlang as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.js.js deleted file mode 100644 index dcdbf50..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/erlang" instead of "highlight.js/lib/languages/erlang.js"' - ); - } - } - emitWarning(); - import lang from './erlang.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/excel.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/excel.js deleted file mode 100644 index 68b73c5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/excel.js +++ /dev/null @@ -1,580 +0,0 @@ -/* -Language: Excel formulae -Author: Victor Zhou -Description: Excel formulae -Website: https://products.office.com/en-us/excel/ -Category: enterprise -*/ - -/** @type LanguageFn */ -function excel(hljs) { - // built-in functions imported from https://web.archive.org/web/20241205190205/https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188 - const BUILT_INS = [ - "ABS", - "ACCRINT", - "ACCRINTM", - "ACOS", - "ACOSH", - "ACOT", - "ACOTH", - "AGGREGATE", - "ADDRESS", - "AMORDEGRC", - "AMORLINC", - "AND", - "ARABIC", - "AREAS", - "ARRAYTOTEXT", - "ASC", - "ASIN", - "ASINH", - "ATAN", - "ATAN2", - "ATANH", - "AVEDEV", - "AVERAGE", - "AVERAGEA", - "AVERAGEIF", - "AVERAGEIFS", - "BAHTTEXT", - "BASE", - "BESSELI", - "BESSELJ", - "BESSELK", - "BESSELY", - "BETADIST", - "BETA.DIST", - "BETAINV", - "BETA.INV", - "BIN2DEC", - "BIN2HEX", - "BIN2OCT", - "BINOMDIST", - "BINOM.DIST", - "BINOM.DIST.RANGE", - "BINOM.INV", - "BITAND", - "BITLSHIFT", - "BITOR", - "BITRSHIFT", - "BITXOR", - "BYCOL", - "BYROW", - "CALL", - "CEILING", - "CEILING.MATH", - "CEILING.PRECISE", - "CELL", - "CHAR", - "CHIDIST", - "CHIINV", - "CHITEST", - "CHISQ.DIST", - "CHISQ.DIST.RT", - "CHISQ.INV", - "CHISQ.INV.RT", - "CHISQ.TEST", - "CHOOSE", - "CHOOSECOLS", - "CHOOSEROWS", - "CLEAN", - "CODE", - "COLUMN", - "COLUMNS", - "COMBIN", - "COMBINA", - "COMPLEX", - "CONCAT", - "CONCATENATE", - "CONFIDENCE", - "CONFIDENCE.NORM", - "CONFIDENCE.T", - "CONVERT", - "CORREL", - "COS", - "COSH", - "COT", - "COTH", - "COUNT", - "COUNTA", - "COUNTBLANK", - "COUNTIF", - "COUNTIFS", - "COUPDAYBS", - "COUPDAYS", - "COUPDAYSNC", - "COUPNCD", - "COUPNUM", - "COUPPCD", - "COVAR", - "COVARIANCE.P", - "COVARIANCE.S", - "CRITBINOM", - "CSC", - "CSCH", - "CUBEKPIMEMBER", - "CUBEMEMBER", - "CUBEMEMBERPROPERTY", - "CUBERANKEDMEMBER", - "CUBESET", - "CUBESETCOUNT", - "CUBEVALUE", - "CUMIPMT", - "CUMPRINC", - "DATE", - "DATEDIF", - "DATEVALUE", - "DAVERAGE", - "DAY", - "DAYS", - "DAYS360", - "DB", - "DBCS", - "DCOUNT", - "DCOUNTA", - "DDB", - "DEC2BIN", - "DEC2HEX", - "DEC2OCT", - "DECIMAL", - "DEGREES", - "DELTA", - "DEVSQ", - "DGET", - "DISC", - "DMAX", - "DMIN", - "DOLLAR", - "DOLLARDE", - "DOLLARFR", - "DPRODUCT", - "DROP", - "DSTDEV", - "DSTDEVP", - "DSUM", - "DURATION", - "DVAR", - "DVARP", - "EDATE", - "EFFECT", - "ENCODEURL", - "EOMONTH", - "ERF", - "ERF.PRECISE", - "ERFC", - "ERFC.PRECISE", - "ERROR.TYPE", - "EUROCONVERT", - "EVEN", - "EXACT", - "EXP", - "EXPAND", - "EXPON.DIST", - "EXPONDIST", - "FACT", - "FACTDOUBLE", - "FALSE", - "F.DIST", - "FDIST", - "F.DIST.RT", - "FILTER", - "FILTERXML", - "FIND", - "FINDB", - "F.INV", - "F.INV.RT", - "FINV", - "FISHER", - "FISHERINV", - "FIXED", - "FLOOR", - "FLOOR.MATH", - "FLOOR.PRECISE", - "FORECAST", - "FORECAST.ETS", - "FORECAST.ETS.CONFINT", - "FORECAST.ETS.SEASONALITY", - "FORECAST.ETS.STAT", - "FORECAST.LINEAR", - "FORMULATEXT", - "FREQUENCY", - "F.TEST", - "FTEST", - "FV", - "FVSCHEDULE", - "GAMMA", - "GAMMA.DIST", - "GAMMADIST", - "GAMMA.INV", - "GAMMAINV", - "GAMMALN", - "GAMMALN.PRECISE", - "GAUSS", - "GCD", - "GEOMEAN", - "GESTEP", - "GETPIVOTDATA", - "GROWTH", - "HARMEAN", - "HEX2BIN", - "HEX2DEC", - "HEX2OCT", - "HLOOKUP", - "HOUR", - "HSTACK", - "HYPERLINK", - "HYPGEOM.DIST", - "HYPGEOMDIST", - "IF", - "IFERROR", - "IFNA", - "IFS", - "IMABS", - "IMAGE", - "IMAGINARY", - "IMARGUMENT", - "IMCONJUGATE", - "IMCOS", - "IMCOSH", - "IMCOT", - "IMCSC", - "IMCSCH", - "IMDIV", - "IMEXP", - "IMLN", - "IMLOG10", - "IMLOG2", - "IMPOWER", - "IMPRODUCT", - "IMREAL", - "IMSEC", - "IMSECH", - "IMSIN", - "IMSINH", - "IMSQRT", - "IMSUB", - "IMSUM", - "IMTAN", - "INDEX", - "INDIRECT", - "INFO", - "INT", - "INTERCEPT", - "INTRATE", - "IPMT", - "IRR", - "ISBLANK", - "ISERR", - "ISERROR", - "ISEVEN", - "ISFORMULA", - "ISLOGICAL", - "ISNA", - "ISNONTEXT", - "ISNUMBER", - "ISODD", - "ISOMITTED", - "ISREF", - "ISTEXT", - "ISO.CEILING", - "ISOWEEKNUM", - "ISPMT", - "JIS", - "KURT", - "LAMBDA", - "LARGE", - "LCM", - "LEFT", - "LEFTB", - "LEN", - "LENB", - "LET", - "LINEST", - "LN", - "LOG", - "LOG10", - "LOGEST", - "LOGINV", - "LOGNORM.DIST", - "LOGNORMDIST", - "LOGNORM.INV", - "LOOKUP", - "LOWER", - "MAKEARRAY", - "MAP", - "MATCH", - "MAX", - "MAXA", - "MAXIFS", - "MDETERM", - "MDURATION", - "MEDIAN", - "MID", - "MIDB", - "MIN", - "MINIFS", - "MINA", - "MINUTE", - "MINVERSE", - "MIRR", - "MMULT", - "MOD", - "MODE", - "MODE.MULT", - "MODE.SNGL", - "MONTH", - "MROUND", - "MULTINOMIAL", - "MUNIT", - "N", - "NA", - "NEGBINOM.DIST", - "NEGBINOMDIST", - "NETWORKDAYS", - "NETWORKDAYS.INTL", - "NOMINAL", - "NORM.DIST", - "NORMDIST", - "NORMINV", - "NORM.INV", - "NORM.S.DIST", - "NORMSDIST", - "NORM.S.INV", - "NORMSINV", - "NOT", - "NOW", - "NPER", - "NPV", - "NUMBERVALUE", - "OCT2BIN", - "OCT2DEC", - "OCT2HEX", - "ODD", - "ODDFPRICE", - "ODDFYIELD", - "ODDLPRICE", - "ODDLYIELD", - "OFFSET", - "OR", - "PDURATION", - "PEARSON", - "PERCENTILE.EXC", - "PERCENTILE.INC", - "PERCENTILE", - "PERCENTRANK.EXC", - "PERCENTRANK.INC", - "PERCENTRANK", - "PERMUT", - "PERMUTATIONA", - "PHI", - "PHONETIC", - "PI", - "PMT", - "POISSON.DIST", - "POISSON", - "POWER", - "PPMT", - "PRICE", - "PRICEDISC", - "PRICEMAT", - "PROB", - "PRODUCT", - "PROPER", - "PV", - "QUARTILE", - "QUARTILE.EXC", - "QUARTILE.INC", - "QUOTIENT", - "RADIANS", - "RAND", - "RANDARRAY", - "RANDBETWEEN", - "RANK.AVG", - "RANK.EQ", - "RANK", - "RATE", - "RECEIVED", - "REDUCE", - "REGISTER.ID", - "REPLACE", - "REPLACEB", - "REPT", - "RIGHT", - "RIGHTB", - "ROMAN", - "ROUND", - "ROUNDDOWN", - "ROUNDUP", - "ROW", - "ROWS", - "RRI", - "RSQ", - "RTD", - "SCAN", - "SEARCH", - "SEARCHB", - "SEC", - "SECH", - "SECOND", - "SEQUENCE", - "SERIESSUM", - "SHEET", - "SHEETS", - "SIGN", - "SIN", - "SINH", - "SKEW", - "SKEW.P", - "SLN", - "SLOPE", - "SMALL", - "SORT", - "SORTBY", - "SQRT", - "SQRTPI", - "SQL.REQUEST", - "STANDARDIZE", - "STOCKHISTORY", - "STDEV", - "STDEV.P", - "STDEV.S", - "STDEVA", - "STDEVP", - "STDEVPA", - "STEYX", - "SUBSTITUTE", - "SUBTOTAL", - "SUM", - "SUMIF", - "SUMIFS", - "SUMPRODUCT", - "SUMSQ", - "SUMX2MY2", - "SUMX2PY2", - "SUMXMY2", - "SWITCH", - "SYD", - "T", - "TAN", - "TANH", - "TAKE", - "TBILLEQ", - "TBILLPRICE", - "TBILLYIELD", - "T.DIST", - "T.DIST.2T", - "T.DIST.RT", - "TDIST", - "TEXT", - "TEXTAFTER", - "TEXTBEFORE", - "TEXTJOIN", - "TEXTSPLIT", - "TIME", - "TIMEVALUE", - "T.INV", - "T.INV.2T", - "TINV", - "TOCOL", - "TOROW", - "TODAY", - "TRANSPOSE", - "TREND", - "TRIM", - "TRIMMEAN", - "TRUE", - "TRUNC", - "T.TEST", - "TTEST", - "TYPE", - "UNICHAR", - "UNICODE", - "UNIQUE", - "UPPER", - "VALUE", - "VALUETOTEXT", - "VAR", - "VAR.P", - "VAR.S", - "VARA", - "VARP", - "VARPA", - "VDB", - "VLOOKUP", - "VSTACK", - "WEBSERVICE", - "WEEKDAY", - "WEEKNUM", - "WEIBULL", - "WEIBULL.DIST", - "WORKDAY", - "WORKDAY.INTL", - "WRAPCOLS", - "WRAPROWS", - "XIRR", - "XLOOKUP", - "XMATCH", - "XNPV", - "XOR", - "YEAR", - "YEARFRAC", - "YIELD", - "YIELDDISC", - "YIELDMAT", - "Z.TEST", - "ZTEST" - ]; - return { - name: 'Excel formulae', - aliases: [ - 'xlsx', - 'xls' - ], - case_insensitive: true, - keywords: { - $pattern: /[a-zA-Z][\w\.]*/, - built_in: BUILT_INS - }, - contains: [ - { - /* matches a beginning equal sign found in Excel formula examples */ - begin: /^=/, - end: /[^=]/, - returnEnd: true, - illegal: /=/, /* only allow single equal sign at front of line */ - relevance: 10 - }, - /* technically, there can be more than 2 letters in column names, but this prevents conflict with some keywords */ - { - /* matches a reference to a single cell */ - className: 'symbol', - begin: /\b[A-Z]{1,2}\d+\b/, - end: /[^\d]/, - excludeEnd: true, - relevance: 0 - }, - { - /* matches a reference to a range of cells */ - className: 'symbol', - begin: /[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/, - relevance: 0 - }, - hljs.BACKSLASH_ESCAPE, - hljs.QUOTE_STRING_MODE, - { - className: 'number', - begin: hljs.NUMBER_RE + '(%)?', - relevance: 0 - }, - /* Excel formula comments are done by putting the comment in a function call to N() */ - hljs.COMMENT(/\bN\(/, /\)/, - { - excludeBegin: true, - excludeEnd: true, - illegal: /\n/ - }) - ] - }; -} - -export { excel as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/excel.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/excel.js.js deleted file mode 100644 index 4f33136..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/excel.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/excel" instead of "highlight.js/lib/languages/excel.js"' - ); - } - } - emitWarning(); - import lang from './excel.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fix.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fix.js deleted file mode 100644 index 0ab3520..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fix.js +++ /dev/null @@ -1,39 +0,0 @@ -/* -Language: FIX -Author: Brent Bradbury -*/ - -/** @type LanguageFn */ -function fix(hljs) { - return { - name: 'FIX', - contains: [ - { - begin: /[^\u2401\u0001]+/, - end: /[\u2401\u0001]/, - excludeEnd: true, - returnBegin: true, - returnEnd: false, - contains: [ - { - begin: /([^\u2401\u0001=]+)/, - end: /=([^\u2401\u0001=]+)/, - returnEnd: true, - returnBegin: false, - className: 'attr' - }, - { - begin: /=/, - end: /([\u2401\u0001])/, - excludeEnd: true, - excludeBegin: true, - className: 'string' - } - ] - } - ], - case_insensitive: true - }; -} - -export { fix as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fix.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fix.js.js deleted file mode 100644 index d7505b8..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fix.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/fix" instead of "highlight.js/lib/languages/fix.js"' - ); - } - } - emitWarning(); - import lang from './fix.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/flix.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/flix.js deleted file mode 100644 index fb6c0a4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/flix.js +++ /dev/null @@ -1,79 +0,0 @@ -/* - Language: Flix - Category: functional - Author: Magnus Madsen - Website: https://flix.dev/ - */ - -/** @type LanguageFn */ -function flix(hljs) { - const CHAR = { - className: 'string', - begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/ - }; - - const STRING = { - className: 'string', - variants: [ - { - begin: '"', - end: '"' - } - ] - }; - - const NAME = { - className: 'title', - relevance: 0, - begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/ - }; - - const METHOD = { - className: 'function', - beginKeywords: 'def', - end: /[:={\[(\n;]/, - excludeEnd: true, - contains: [ NAME ] - }; - - return { - name: 'Flix', - keywords: { - keyword: [ - "case", - "class", - "def", - "else", - "enum", - "if", - "impl", - "import", - "in", - "lat", - "rel", - "index", - "let", - "match", - "namespace", - "switch", - "type", - "yield", - "with" - ], - literal: [ - "true", - "false" - ] - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - CHAR, - STRING, - METHOD, - hljs.C_NUMBER_MODE - ] - }; -} - -export { flix as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/flix.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/flix.js.js deleted file mode 100644 index 5047ab7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/flix.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/flix" instead of "highlight.js/lib/languages/flix.js"' - ); - } - } - emitWarning(); - import lang from './flix.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fortran.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fortran.js deleted file mode 100644 index 62f2223..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fortran.js +++ /dev/null @@ -1,574 +0,0 @@ -/* -Language: Fortran -Author: Anthony Scemama -Website: https://en.wikipedia.org/wiki/Fortran -Category: scientific -*/ - -/** @type LanguageFn */ -function fortran(hljs) { - const regex = hljs.regex; - const PARAMS = { - className: 'params', - begin: '\\(', - end: '\\)' - }; - - const COMMENT = { variants: [ - hljs.COMMENT('!', '$', { relevance: 0 }), - // allow FORTRAN 77 style comments - hljs.COMMENT('^C[ ]', '$', { relevance: 0 }), - hljs.COMMENT('^C$', '$', { relevance: 0 }) - ] }; - - // regex in both fortran and irpf90 should match - const OPTIONAL_NUMBER_SUFFIX = /(_[a-z_\d]+)?/; - const OPTIONAL_NUMBER_EXP = /([de][+-]?\d+)?/; - const NUMBER = { - className: 'number', - variants: [ - { begin: regex.concat(/\b\d+/, /\.(\d*)/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX) }, - { begin: regex.concat(/\b\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX) }, - { begin: regex.concat(/\.\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX) } - ], - relevance: 0 - }; - - const FUNCTION_DEF = { - className: 'function', - beginKeywords: 'subroutine function program', - illegal: '[${=\\n]', - contains: [ - hljs.UNDERSCORE_TITLE_MODE, - PARAMS - ] - }; - - const STRING = { - className: 'string', - relevance: 0, - variants: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }; - - const KEYWORDS = [ - "kind", - "do", - "concurrent", - "local", - "shared", - "while", - "private", - "call", - "intrinsic", - "where", - "elsewhere", - "type", - "endtype", - "endmodule", - "endselect", - "endinterface", - "end", - "enddo", - "endif", - "if", - "forall", - "endforall", - "only", - "contains", - "default", - "return", - "stop", - "then", - "block", - "endblock", - "endassociate", - "public", - "subroutine|10", - "function", - "program", - ".and.", - ".or.", - ".not.", - ".le.", - ".eq.", - ".ge.", - ".gt.", - ".lt.", - "goto", - "save", - "else", - "use", - "module", - "select", - "case", - "access", - "blank", - "direct", - "exist", - "file", - "fmt", - "form", - "formatted", - "iostat", - "name", - "named", - "nextrec", - "number", - "opened", - "rec", - "recl", - "sequential", - "status", - "unformatted", - "unit", - "continue", - "format", - "pause", - "cycle", - "exit", - "c_null_char", - "c_alert", - "c_backspace", - "c_form_feed", - "flush", - "wait", - "decimal", - "round", - "iomsg", - "synchronous", - "nopass", - "non_overridable", - "pass", - "protected", - "volatile", - "abstract", - "extends", - "import", - "non_intrinsic", - "value", - "deferred", - "generic", - "final", - "enumerator", - "class", - "associate", - "bind", - "enum", - "c_int", - "c_short", - "c_long", - "c_long_long", - "c_signed_char", - "c_size_t", - "c_int8_t", - "c_int16_t", - "c_int32_t", - "c_int64_t", - "c_int_least8_t", - "c_int_least16_t", - "c_int_least32_t", - "c_int_least64_t", - "c_int_fast8_t", - "c_int_fast16_t", - "c_int_fast32_t", - "c_int_fast64_t", - "c_intmax_t", - "C_intptr_t", - "c_float", - "c_double", - "c_long_double", - "c_float_complex", - "c_double_complex", - "c_long_double_complex", - "c_bool", - "c_char", - "c_null_ptr", - "c_null_funptr", - "c_new_line", - "c_carriage_return", - "c_horizontal_tab", - "c_vertical_tab", - "iso_c_binding", - "c_loc", - "c_funloc", - "c_associated", - "c_f_pointer", - "c_ptr", - "c_funptr", - "iso_fortran_env", - "character_storage_size", - "error_unit", - "file_storage_size", - "input_unit", - "iostat_end", - "iostat_eor", - "numeric_storage_size", - "output_unit", - "c_f_procpointer", - "ieee_arithmetic", - "ieee_support_underflow_control", - "ieee_get_underflow_mode", - "ieee_set_underflow_mode", - "newunit", - "contiguous", - "recursive", - "pad", - "position", - "action", - "delim", - "readwrite", - "eor", - "advance", - "nml", - "interface", - "procedure", - "namelist", - "include", - "sequence", - "elemental", - "pure", - "impure", - "integer", - "real", - "character", - "complex", - "logical", - "codimension", - "dimension", - "allocatable|10", - "parameter", - "external", - "implicit|10", - "none", - "double", - "precision", - "assign", - "intent", - "optional", - "pointer", - "target", - "in", - "out", - "common", - "equivalence", - "data" - ]; - const LITERALS = [ - ".False.", - ".True." - ]; - const BUILT_INS = [ - "alog", - "alog10", - "amax0", - "amax1", - "amin0", - "amin1", - "amod", - "cabs", - "ccos", - "cexp", - "clog", - "csin", - "csqrt", - "dabs", - "dacos", - "dasin", - "datan", - "datan2", - "dcos", - "dcosh", - "ddim", - "dexp", - "dint", - "dlog", - "dlog10", - "dmax1", - "dmin1", - "dmod", - "dnint", - "dsign", - "dsin", - "dsinh", - "dsqrt", - "dtan", - "dtanh", - "float", - "iabs", - "idim", - "idint", - "idnint", - "ifix", - "isign", - "max0", - "max1", - "min0", - "min1", - "sngl", - "algama", - "cdabs", - "cdcos", - "cdexp", - "cdlog", - "cdsin", - "cdsqrt", - "cqabs", - "cqcos", - "cqexp", - "cqlog", - "cqsin", - "cqsqrt", - "dcmplx", - "dconjg", - "derf", - "derfc", - "dfloat", - "dgamma", - "dimag", - "dlgama", - "iqint", - "qabs", - "qacos", - "qasin", - "qatan", - "qatan2", - "qcmplx", - "qconjg", - "qcos", - "qcosh", - "qdim", - "qerf", - "qerfc", - "qexp", - "qgamma", - "qimag", - "qlgama", - "qlog", - "qlog10", - "qmax1", - "qmin1", - "qmod", - "qnint", - "qsign", - "qsin", - "qsinh", - "qsqrt", - "qtan", - "qtanh", - "abs", - "acos", - "aimag", - "aint", - "anint", - "asin", - "atan", - "atan2", - "char", - "cmplx", - "conjg", - "cos", - "cosh", - "exp", - "ichar", - "index", - "int", - "log", - "log10", - "max", - "min", - "nint", - "sign", - "sin", - "sinh", - "sqrt", - "tan", - "tanh", - "print", - "write", - "dim", - "lge", - "lgt", - "lle", - "llt", - "mod", - "nullify", - "allocate", - "deallocate", - "adjustl", - "adjustr", - "all", - "allocated", - "any", - "associated", - "bit_size", - "btest", - "ceiling", - "count", - "cshift", - "date_and_time", - "digits", - "dot_product", - "eoshift", - "epsilon", - "exponent", - "floor", - "fraction", - "huge", - "iand", - "ibclr", - "ibits", - "ibset", - "ieor", - "ior", - "ishft", - "ishftc", - "lbound", - "len_trim", - "matmul", - "maxexponent", - "maxloc", - "maxval", - "merge", - "minexponent", - "minloc", - "minval", - "modulo", - "mvbits", - "nearest", - "pack", - "present", - "product", - "radix", - "random_number", - "random_seed", - "range", - "repeat", - "reshape", - "rrspacing", - "scale", - "scan", - "selected_int_kind", - "selected_real_kind", - "set_exponent", - "shape", - "size", - "spacing", - "spread", - "sum", - "system_clock", - "tiny", - "transpose", - "trim", - "ubound", - "unpack", - "verify", - "achar", - "iachar", - "transfer", - "dble", - "entry", - "dprod", - "cpu_time", - "command_argument_count", - "get_command", - "get_command_argument", - "get_environment_variable", - "is_iostat_end", - "ieee_arithmetic", - "ieee_support_underflow_control", - "ieee_get_underflow_mode", - "ieee_set_underflow_mode", - "is_iostat_eor", - "move_alloc", - "new_line", - "selected_char_kind", - "same_type_as", - "extends_type_of", - "acosh", - "asinh", - "atanh", - "bessel_j0", - "bessel_j1", - "bessel_jn", - "bessel_y0", - "bessel_y1", - "bessel_yn", - "erf", - "erfc", - "erfc_scaled", - "gamma", - "log_gamma", - "hypot", - "norm2", - "atomic_define", - "atomic_ref", - "execute_command_line", - "leadz", - "trailz", - "storage_size", - "merge_bits", - "bge", - "bgt", - "ble", - "blt", - "dshiftl", - "dshiftr", - "findloc", - "iall", - "iany", - "iparity", - "image_index", - "lcobound", - "ucobound", - "maskl", - "maskr", - "num_images", - "parity", - "popcnt", - "poppar", - "shifta", - "shiftl", - "shiftr", - "this_image", - "sync", - "change", - "team", - "co_broadcast", - "co_max", - "co_min", - "co_sum", - "co_reduce" - ]; - return { - name: 'Fortran', - case_insensitive: true, - aliases: [ - 'f90', - 'f95' - ], - keywords: { - $pattern: /\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./, - keyword: KEYWORDS, - literal: LITERALS, - built_in: BUILT_INS - }, - illegal: /\/\*/, - contains: [ - STRING, - FUNCTION_DEF, - // allow `C = value` for assignments so they aren't misdetected - // as Fortran 77 style comments - { - begin: /^C\s*=(?!=)/, - relevance: 0 - }, - COMMENT, - NUMBER - ] - }; -} - -export { fortran as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fortran.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fortran.js.js deleted file mode 100644 index 3638f06..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fortran.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/fortran" instead of "highlight.js/lib/languages/fortran.js"' - ); - } - } - emitWarning(); - import lang from './fortran.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fsharp.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fsharp.js deleted file mode 100644 index 252bf68..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fsharp.js +++ /dev/null @@ -1,627 +0,0 @@ -/** - * @param {string} value - * @returns {RegExp} - * */ -function escape(value) { - return new RegExp(value.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm'); -} - -/** - * @param {RegExp | string } re - * @returns {string} - */ -function source(re) { - if (!re) return null; - if (typeof re === "string") return re; - - return re.source; -} - -/** - * @param {RegExp | string } re - * @returns {string} - */ -function lookahead(re) { - return concat('(?=', re, ')'); -} - -/** - * @param {...(RegExp | string) } args - * @returns {string} - */ -function concat(...args) { - const joined = args.map((x) => source(x)).join(""); - return joined; -} - -/** - * @param { Array } args - * @returns {object} - */ -function stripOptionsFromArgs(args) { - const opts = args[args.length - 1]; - - if (typeof opts === 'object' && opts.constructor === Object) { - args.splice(args.length - 1, 1); - return opts; - } else { - return {}; - } -} - -/** @typedef { {capture?: boolean} } RegexEitherOptions */ - -/** - * Any of the passed expresssions may match - * - * Creates a huge this | this | that | that match - * @param {(RegExp | string)[] | [...(RegExp | string)[], RegexEitherOptions]} args - * @returns {string} - */ -function either(...args) { - /** @type { object & {capture?: boolean} } */ - const opts = stripOptionsFromArgs(args); - const joined = '(' - + (opts.capture ? "" : "?:") - + args.map((x) => source(x)).join("|") + ")"; - return joined; -} - -/* -Language: F# -Author: Jonas Follesø -Contributors: Troy Kershaw , Henrik Feldt , Melvyn Laïly -Website: https://docs.microsoft.com/en-us/dotnet/fsharp/ -Category: functional -*/ - - -/** @type LanguageFn */ -function fsharp(hljs) { - const KEYWORDS = [ - "abstract", - "and", - "as", - "assert", - "base", - "begin", - "class", - "default", - "delegate", - "do", - "done", - "downcast", - "downto", - "elif", - "else", - "end", - "exception", - "extern", - // "false", // literal - "finally", - "fixed", - "for", - "fun", - "function", - "global", - "if", - "in", - "inherit", - "inline", - "interface", - "internal", - "lazy", - "let", - "match", - "member", - "module", - "mutable", - "namespace", - "new", - // "not", // built_in - // "null", // literal - "of", - "open", - "or", - "override", - "private", - "public", - "rec", - "return", - "static", - "struct", - "then", - "to", - // "true", // literal - "try", - "type", - "upcast", - "use", - "val", - "void", - "when", - "while", - "with", - "yield" - ]; - - const BANG_KEYWORD_MODE = { - // monad builder keywords (matches before non-bang keywords) - scope: 'keyword', - match: /\b(yield|return|let|do|match|use)!/ - }; - - const PREPROCESSOR_KEYWORDS = [ - "if", - "else", - "endif", - "line", - "nowarn", - "light", - "r", - "i", - "I", - "load", - "time", - "help", - "quit" - ]; - - const LITERALS = [ - "true", - "false", - "null", - "Some", - "None", - "Ok", - "Error", - "infinity", - "infinityf", - "nan", - "nanf" - ]; - - const SPECIAL_IDENTIFIERS = [ - "__LINE__", - "__SOURCE_DIRECTORY__", - "__SOURCE_FILE__" - ]; - - // Since it's possible to re-bind/shadow names (e.g. let char = 'c'), - // these builtin types should only be matched when a type name is expected. - const KNOWN_TYPES = [ - // basic types - "bool", - "byte", - "sbyte", - "int8", - "int16", - "int32", - "uint8", - "uint16", - "uint32", - "int", - "uint", - "int64", - "uint64", - "nativeint", - "unativeint", - "decimal", - "float", - "double", - "float32", - "single", - "char", - "string", - "unit", - "bigint", - // other native types or lowercase aliases - "option", - "voption", - "list", - "array", - "seq", - "byref", - "exn", - "inref", - "nativeptr", - "obj", - "outref", - "voidptr", - // other important FSharp types - "Result" - ]; - - const BUILTINS = [ - // Somewhat arbitrary list of builtin functions and values. - // Most of them are declared in Microsoft.FSharp.Core - // I tried to stay relevant by adding only the most idiomatic - // and most used symbols that are not already declared as types. - "not", - "ref", - "raise", - "reraise", - "dict", - "readOnlyDict", - "set", - "get", - "enum", - "sizeof", - "typeof", - "typedefof", - "nameof", - "nullArg", - "invalidArg", - "invalidOp", - "id", - "fst", - "snd", - "ignore", - "lock", - "using", - "box", - "unbox", - "tryUnbox", - "printf", - "printfn", - "sprintf", - "eprintf", - "eprintfn", - "fprintf", - "fprintfn", - "failwith", - "failwithf" - ]; - - const ALL_KEYWORDS = { - keyword: KEYWORDS, - literal: LITERALS, - built_in: BUILTINS, - 'variable.constant': SPECIAL_IDENTIFIERS - }; - - // (* potentially multi-line Meta Language style comment *) - const ML_COMMENT = - hljs.COMMENT(/\(\*(?!\))/, /\*\)/, { - contains: ["self"] - }); - // Either a multi-line (* Meta Language style comment *) or a single line // C style comment. - const COMMENT = { - variants: [ - ML_COMMENT, - hljs.C_LINE_COMMENT_MODE, - ] - }; - - // Most identifiers can contain apostrophes - const IDENTIFIER_RE = /[a-zA-Z_](\w|')*/; - - const QUOTED_IDENTIFIER = { - scope: 'variable', - begin: /``/, - end: /``/ - }; - - // 'a or ^a where a can be a ``quoted identifier`` - const BEGIN_GENERIC_TYPE_SYMBOL_RE = /\B('|\^)/; - const GENERIC_TYPE_SYMBOL = { - scope: 'symbol', - variants: [ - // the type name is a quoted identifier: - { match: concat(BEGIN_GENERIC_TYPE_SYMBOL_RE, /``.*?``/) }, - // the type name is a normal identifier (we don't use IDENTIFIER_RE because there cannot be another apostrophe here): - { match: concat(BEGIN_GENERIC_TYPE_SYMBOL_RE, hljs.UNDERSCORE_IDENT_RE) } - ], - relevance: 0 - }; - - const makeOperatorMode = function({ includeEqual }) { - // List or symbolic operator characters from the FSharp Spec 4.1, minus the dot, and with `?` added, used for nullable operators. - let allOperatorChars; - if (includeEqual) - allOperatorChars = "!%&*+-/<=>@^|~?"; - else - allOperatorChars = "!%&*+-/<>@^|~?"; - const OPERATOR_CHARS = Array.from(allOperatorChars); - const OPERATOR_CHAR_RE = concat('[', ...OPERATOR_CHARS.map(escape), ']'); - // The lone dot operator is special. It cannot be redefined, and we don't want to highlight it. It can be used as part of a multi-chars operator though. - const OPERATOR_CHAR_OR_DOT_RE = either(OPERATOR_CHAR_RE, /\./); - // When a dot is present, it must be followed by another operator char: - const OPERATOR_FIRST_CHAR_OF_MULTIPLE_RE = concat(OPERATOR_CHAR_OR_DOT_RE, lookahead(OPERATOR_CHAR_OR_DOT_RE)); - const SYMBOLIC_OPERATOR_RE = either( - concat(OPERATOR_FIRST_CHAR_OF_MULTIPLE_RE, OPERATOR_CHAR_OR_DOT_RE, '*'), // Matches at least 2 chars operators - concat(OPERATOR_CHAR_RE, '+'), // Matches at least one char operators - ); - return { - scope: 'operator', - match: either( - // symbolic operators: - SYMBOLIC_OPERATOR_RE, - // other symbolic keywords: - // Type casting and conversion operators: - /:\?>/, - /:\?/, - /:>/, - /:=/, // Reference cell assignment - /::?/, // : or :: - /\$/), // A single $ can be used as an operator - relevance: 0 - }; - }; - - const OPERATOR = makeOperatorMode({ includeEqual: true }); - // This variant is used when matching '=' should end a parent mode: - const OPERATOR_WITHOUT_EQUAL = makeOperatorMode({ includeEqual: false }); - - const makeTypeAnnotationMode = function(prefix, prefixScope) { - return { - begin: concat( // a type annotation is a - prefix, // should be a colon or the 'of' keyword - lookahead( // that has to be followed by - concat( - /\s*/, // optional space - either( // then either of: - /\w/, // word - /'/, // generic type name - /\^/, // generic type name - /#/, // flexible type name - /``/, // quoted type name - /\(/, // parens type expression - /{\|/, // anonymous type annotation - )))), - beginScope: prefixScope, - // BUG: because ending with \n is necessary for some cases, multi-line type annotations are not properly supported. - // Examples where \n is required at the end: - // - abstract member definitions in classes: abstract Property : int * string - // - return type annotations: let f f' = f' () : returnTypeAnnotation - // - record fields definitions: { A : int \n B : string } - end: lookahead( - either( - /\n/, - /=/)), - relevance: 0, - // we need the known types, and we need the type constraint keywords and literals. e.g.: when 'a : null - keywords: hljs.inherit(ALL_KEYWORDS, { type: KNOWN_TYPES }), - contains: [ - COMMENT, - GENERIC_TYPE_SYMBOL, - hljs.inherit(QUOTED_IDENTIFIER, { scope: null }), // match to avoid strange patterns inside that may break the parsing - OPERATOR_WITHOUT_EQUAL - ] - }; - }; - - const TYPE_ANNOTATION = makeTypeAnnotationMode(/:/, 'operator'); - const DISCRIMINATED_UNION_TYPE_ANNOTATION = makeTypeAnnotationMode(/\bof\b/, 'keyword'); - - // type MyType<'a> = ... - const TYPE_DECLARATION = { - begin: [ - /(^|\s+)/, // prevents matching the following: `match s.stype with` - /type/, - /\s+/, - IDENTIFIER_RE - ], - beginScope: { - 2: 'keyword', - 4: 'title.class' - }, - end: lookahead(/\(|=|$/), - keywords: ALL_KEYWORDS, // match keywords in type constraints. e.g.: when 'a : null - contains: [ - COMMENT, - hljs.inherit(QUOTED_IDENTIFIER, { scope: null }), // match to avoid strange patterns inside that may break the parsing - GENERIC_TYPE_SYMBOL, - { - // For visual consistency, highlight type brackets as operators. - scope: 'operator', - match: /<|>/ - }, - TYPE_ANNOTATION // generic types can have constraints, which are type annotations. e.g. type MyType<'T when 'T : delegate> = - ] - }; - - const COMPUTATION_EXPRESSION = { - // computation expressions: - scope: 'computation-expression', - // BUG: might conflict with record deconstruction. e.g. let f { Name = name } = name // will highlight f - match: /\b[_a-z]\w*(?=\s*\{)/ - }; - - const PREPROCESSOR = { - // preprocessor directives and fsi commands: - begin: [ - /^\s*/, - concat(/#/, either(...PREPROCESSOR_KEYWORDS)), - /\b/ - ], - beginScope: { 2: 'meta' }, - end: lookahead(/\s|$/) - }; - - // TODO: this definition is missing support for type suffixes and octal notation. - // BUG: range operator without any space is wrongly interpreted as a single number (e.g. 1..10 ) - const NUMBER = { - variants: [ - hljs.BINARY_NUMBER_MODE, - hljs.C_NUMBER_MODE - ] - }; - - // All the following string definitions are potentially multi-line. - // BUG: these definitions are missing support for byte strings (suffixed with B) - - // "..." - const QUOTED_STRING = { - scope: 'string', - begin: /"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE - ] - }; - // @"..." - const VERBATIM_STRING = { - scope: 'string', - begin: /@"/, - end: /"/, - contains: [ - { - match: /""/ // escaped " - }, - hljs.BACKSLASH_ESCAPE - ] - }; - // """...""" - const TRIPLE_QUOTED_STRING = { - scope: 'string', - begin: /"""/, - end: /"""/, - relevance: 2 - }; - const SUBST = { - scope: 'subst', - begin: /\{/, - end: /\}/, - keywords: ALL_KEYWORDS - }; - // $"...{1+1}..." - const INTERPOLATED_STRING = { - scope: 'string', - begin: /\$"/, - end: /"/, - contains: [ - { - match: /\{\{/ // escaped { - }, - { - match: /\}\}/ // escaped } - }, - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }; - // $@"...{1+1}..." - const INTERPOLATED_VERBATIM_STRING = { - scope: 'string', - begin: /(\$@|@\$)"/, - end: /"/, - contains: [ - { - match: /\{\{/ // escaped { - }, - { - match: /\}\}/ // escaped } - }, - { - match: /""/ - }, - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }; - // $"""...{1+1}...""" - const INTERPOLATED_TRIPLE_QUOTED_STRING = { - scope: 'string', - begin: /\$"""/, - end: /"""/, - contains: [ - { - match: /\{\{/ // escaped { - }, - { - match: /\}\}/ // escaped } - }, - SUBST - ], - relevance: 2 - }; - // '.' - const CHAR_LITERAL = { - scope: 'string', - match: concat( - /'/, - either( - /[^\\']/, // either a single non escaped char... - /\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/ // ...or an escape sequence - ), - /'/ - ) - }; - // F# allows a lot of things inside string placeholders. - // Things that don't currently seem allowed by the compiler: types definition, attributes usage. - // (Strictly speaking, some of the followings are only allowed inside triple quoted interpolated strings...) - SUBST.contains = [ - INTERPOLATED_VERBATIM_STRING, - INTERPOLATED_STRING, - VERBATIM_STRING, - QUOTED_STRING, - CHAR_LITERAL, - BANG_KEYWORD_MODE, - COMMENT, - QUOTED_IDENTIFIER, - TYPE_ANNOTATION, - COMPUTATION_EXPRESSION, - PREPROCESSOR, - NUMBER, - GENERIC_TYPE_SYMBOL, - OPERATOR - ]; - const STRING = { - variants: [ - INTERPOLATED_TRIPLE_QUOTED_STRING, - INTERPOLATED_VERBATIM_STRING, - INTERPOLATED_STRING, - TRIPLE_QUOTED_STRING, - VERBATIM_STRING, - QUOTED_STRING, - CHAR_LITERAL - ] - }; - - return { - name: 'F#', - aliases: [ - 'fs', - 'f#' - ], - keywords: ALL_KEYWORDS, - illegal: /\/\*/, - classNameAliases: { - 'computation-expression': 'keyword' - }, - contains: [ - BANG_KEYWORD_MODE, - STRING, - COMMENT, - QUOTED_IDENTIFIER, - TYPE_DECLARATION, - { - // e.g. [] or [<``module``: MyCustomAttributeThatWorksOnModules>] - // or [] - scope: 'meta', - begin: /\[\]/, - relevance: 2, - contains: [ - QUOTED_IDENTIFIER, - // can contain any constant value - TRIPLE_QUOTED_STRING, - VERBATIM_STRING, - QUOTED_STRING, - CHAR_LITERAL, - NUMBER - ] - }, - DISCRIMINATED_UNION_TYPE_ANNOTATION, - TYPE_ANNOTATION, - COMPUTATION_EXPRESSION, - PREPROCESSOR, - NUMBER, - GENERIC_TYPE_SYMBOL, - OPERATOR - ] - }; -} - -export { fsharp as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fsharp.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fsharp.js.js deleted file mode 100644 index 77ebf95..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/fsharp.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/fsharp" instead of "highlight.js/lib/languages/fsharp.js"' - ); - } - } - emitWarning(); - import lang from './fsharp.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gams.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gams.js deleted file mode 100644 index 63a3595..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gams.js +++ /dev/null @@ -1,181 +0,0 @@ -/* - Language: GAMS - Author: Stefan Bechert - Contributors: Oleg Efimov , Mikko Kouhia - Description: The General Algebraic Modeling System language - Website: https://www.gams.com - Category: scientific - */ - -/** @type LanguageFn */ -function gams(hljs) { - const regex = hljs.regex; - const KEYWORDS = { - keyword: - 'abort acronym acronyms alias all and assign binary card diag display ' - + 'else eq file files for free ge gt if integer le loop lt maximizing ' - + 'minimizing model models ne negative no not option options or ord ' - + 'positive prod put putpage puttl repeat sameas semicont semiint smax ' - + 'smin solve sos1 sos2 sum system table then until using while xor yes', - literal: - 'eps inf na', - built_in: - 'abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy ' - + 'cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact ' - + 'floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max ' - + 'min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power ' - + 'randBinomial randLinear randTriangle round rPower sigmoid sign ' - + 'signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt ' - + 'tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp ' - + 'bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt ' - + 'rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear ' - + 'jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion ' - + 'handleCollect handleDelete handleStatus handleSubmit heapFree ' - + 'heapLimit heapSize jobHandle jobKill jobStatus jobTerminate ' - + 'licenseLevel licenseStatus maxExecError sleep timeClose timeComp ' - + 'timeElapsed timeExec timeStart' - }; - const PARAMS = { - className: 'params', - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true - }; - const SYMBOLS = { - className: 'symbol', - variants: [ - { begin: /=[lgenxc]=/ }, - { begin: /\$/ } - ] - }; - const QSTR = { // One-line quoted comment string - className: 'comment', - variants: [ - { - begin: '\'', - end: '\'' - }, - { - begin: '"', - end: '"' - } - ], - illegal: '\\n', - contains: [ hljs.BACKSLASH_ESCAPE ] - }; - const ASSIGNMENT = { - begin: '/', - end: '/', - keywords: KEYWORDS, - contains: [ - QSTR, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - hljs.C_NUMBER_MODE - ] - }; - const COMMENT_WORD = /[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/; - const DESCTEXT = { // Parameter/set/variable description text - begin: /[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/, - excludeBegin: true, - end: '$', - endsWithParent: true, - contains: [ - QSTR, - ASSIGNMENT, - { - className: 'comment', - // one comment word, then possibly more - begin: regex.concat( - COMMENT_WORD, - // [ ] because \s would be too broad (matching newlines) - regex.anyNumberOfTimes(regex.concat(/[ ]+/, COMMENT_WORD)) - ), - relevance: 0 - } - ] - }; - - return { - name: 'GAMS', - aliases: [ 'gms' ], - case_insensitive: true, - keywords: KEYWORDS, - contains: [ - hljs.COMMENT(/^\$ontext/, /^\$offtext/), - { - className: 'meta', - begin: '^\\$[a-z0-9]+', - end: '$', - returnBegin: true, - contains: [ - { - className: 'keyword', - begin: '^\\$[a-z0-9]+' - } - ] - }, - hljs.COMMENT('^\\*', '$'), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - // Declarations - { - beginKeywords: - 'set sets parameter parameters variable variables ' - + 'scalar scalars equation equations', - end: ';', - contains: [ - hljs.COMMENT('^\\*', '$'), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - ASSIGNMENT, - DESCTEXT - ] - }, - { // table environment - beginKeywords: 'table', - end: ';', - returnBegin: true, - contains: [ - { // table header row - beginKeywords: 'table', - end: '$', - contains: [ DESCTEXT ] - }, - hljs.COMMENT('^\\*', '$'), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - hljs.C_NUMBER_MODE - // Table does not contain DESCTEXT or ASSIGNMENT - ] - }, - // Function definitions - { - className: 'function', - begin: /^[a-z][a-z0-9_,\-+' ()$]+\.{2}/, - returnBegin: true, - contains: [ - { // Function title - className: 'title', - begin: /^[a-z0-9_]+/ - }, - PARAMS, - SYMBOLS - ] - }, - hljs.C_NUMBER_MODE, - SYMBOLS - ] - }; -} - -export { gams as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gams.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gams.js.js deleted file mode 100644 index a85d8a2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gams.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/gams" instead of "highlight.js/lib/languages/gams.js"' - ); - } - } - emitWarning(); - import lang from './gams.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gauss.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gauss.js deleted file mode 100644 index 2dda1c1..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gauss.js +++ /dev/null @@ -1,306 +0,0 @@ -/* -Language: GAUSS -Author: Matt Evans -Description: GAUSS Mathematical and Statistical language -Website: https://www.aptech.com -Category: scientific -*/ -function gauss(hljs) { - const KEYWORDS = { - keyword: 'bool break call callexe checkinterrupt clear clearg closeall cls comlog compile ' - + 'continue create debug declare delete disable dlibrary dllcall do dos ed edit else ' - + 'elseif enable end endfor endif endp endo errorlog errorlogat expr external fn ' - + 'for format goto gosub graph if keyword let lib library line load loadarray loadexe ' - + 'loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow ' - + 'matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print ' - + 'printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen ' - + 'scroll setarray show sparse stop string struct system trace trap threadfor ' - + 'threadendfor threadbegin threadjoin threadstat threadend until use while winprint ' - + 'ne ge le gt lt and xor or not eq eqv', - built_in: 'abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol ' - + 'AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks ' - + 'AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults ' - + 'annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness ' - + 'annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd ' - + 'astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar ' - + 'base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 ' - + 'cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv ' - + 'cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn ' - + 'cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi ' - + 'cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ' - + 'ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated ' - + 'complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs ' - + 'cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos ' - + 'datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd ' - + 'dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName ' - + 'dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy ' - + 'dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen ' - + 'dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA ' - + 'dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField ' - + 'dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition ' - + 'dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows ' - + 'dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly ' - + 'dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy ' - + 'dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl ' - + 'dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt ' - + 'dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday ' - + 'dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays ' - + 'endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error ' - + 'etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut ' - + 'EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol ' - + 'EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq ' - + 'feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt ' - + 'floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC ' - + 'gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders ' - + 'gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse ' - + 'gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray ' - + 'getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders ' - + 'getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT ' - + 'gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm ' - + 'hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 ' - + 'indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 ' - + 'inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf ' - + 'isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv ' - + 'lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn ' - + 'lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind ' - + 'loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars ' - + 'makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli ' - + 'mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave ' - + 'movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate ' - + 'olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto ' - + 'pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox ' - + 'plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea ' - + 'plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout ' - + 'plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill ' - + 'plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol ' - + 'plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange ' - + 'plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel ' - + 'plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot ' - + 'pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames ' - + 'pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector ' - + 'pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate ' - + 'qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr ' - + 'real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn ' - + 'rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel ' - + 'rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn ' - + 'rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh ' - + 'rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind ' - + 'scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa ' - + 'setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind ' - + 'sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL ' - + 'spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense ' - + 'spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet ' - + 'sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt ' - + 'strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr ' - + 'surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname ' - + 'time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk ' - + 'trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt ' - + 'utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs ' - + 'vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window ' - + 'writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM ' - + 'xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute ' - + 'h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels ' - + 'plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester ' - + 'strtrim', - literal: 'DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS ' - + 'DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 ' - + 'DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS ' - + 'DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES ' - + 'DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR' - }; - - const AT_COMMENT_MODE = hljs.COMMENT('@', '@'); - - const PREPROCESSOR = - { - className: 'meta', - begin: '#', - end: '$', - keywords: { keyword: 'define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline' }, - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - { - beginKeywords: 'include', - end: '$', - keywords: { keyword: 'include' }, - contains: [ - { - className: 'string', - begin: '"', - end: '"', - illegal: '\\n' - } - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - AT_COMMENT_MODE - ] - }; - - const STRUCT_TYPE = - { - begin: /\bstruct\s+/, - end: /\s/, - keywords: "struct", - contains: [ - { - className: "type", - begin: hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - } - ] - }; - - // only for definitions - const PARSE_PARAMS = [ - { - className: 'params', - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - endsWithParent: true, - relevance: 0, - contains: [ - { // dots - className: 'literal', - begin: /\.\.\./ - }, - hljs.C_NUMBER_MODE, - hljs.C_BLOCK_COMMENT_MODE, - AT_COMMENT_MODE, - STRUCT_TYPE - ] - } - ]; - - const FUNCTION_DEF = - { - className: "title", - begin: hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - }; - - const DEFINITION = function(beginKeywords, end, inherits) { - const mode = hljs.inherit( - { - className: "function", - beginKeywords: beginKeywords, - end: end, - excludeEnd: true, - contains: [].concat(PARSE_PARAMS) - }, - {} - ); - mode.contains.push(FUNCTION_DEF); - mode.contains.push(hljs.C_NUMBER_MODE); - mode.contains.push(hljs.C_BLOCK_COMMENT_MODE); - mode.contains.push(AT_COMMENT_MODE); - return mode; - }; - - const BUILT_IN_REF = - { // these are explicitly named internal function calls - className: 'built_in', - begin: '\\b(' + KEYWORDS.built_in.split(' ').join('|') + ')\\b' - }; - - const STRING_REF = - { - className: 'string', - begin: '"', - end: '"', - contains: [ hljs.BACKSLASH_ESCAPE ], - relevance: 0 - }; - - const FUNCTION_REF = - { - // className: "fn_ref", - begin: hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', - returnBegin: true, - keywords: KEYWORDS, - relevance: 0, - contains: [ - { beginKeywords: KEYWORDS.keyword }, - BUILT_IN_REF, - { // ambiguously named function calls get a relevance of 0 - className: 'built_in', - begin: hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - } - ] - }; - - const FUNCTION_REF_PARAMS = - { - // className: "fn_ref_params", - begin: /\(/, - end: /\)/, - relevance: 0, - keywords: { - built_in: KEYWORDS.built_in, - literal: KEYWORDS.literal - }, - contains: [ - hljs.C_NUMBER_MODE, - hljs.C_BLOCK_COMMENT_MODE, - AT_COMMENT_MODE, - BUILT_IN_REF, - FUNCTION_REF, - STRING_REF, - 'self' - ] - }; - - FUNCTION_REF.contains.push(FUNCTION_REF_PARAMS); - - return { - name: 'GAUSS', - aliases: [ 'gss' ], - case_insensitive: true, // language is case-insensitive - keywords: KEYWORDS, - illegal: /(\{[%#]|[%#]\}| <- )/, - contains: [ - hljs.C_NUMBER_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - AT_COMMENT_MODE, - STRING_REF, - PREPROCESSOR, - { - className: 'keyword', - begin: /\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/ - }, - DEFINITION('proc keyword', ';'), - DEFINITION('fn', '='), - { - beginKeywords: 'for threadfor', - end: /;/, - // end: /\(/, - relevance: 0, - contains: [ - hljs.C_BLOCK_COMMENT_MODE, - AT_COMMENT_MODE, - FUNCTION_REF_PARAMS - ] - }, - { // custom method guard - // excludes method names from keyword processing - variants: [ - { begin: hljs.UNDERSCORE_IDENT_RE + '\\.' + hljs.UNDERSCORE_IDENT_RE }, - { begin: hljs.UNDERSCORE_IDENT_RE + '\\s*=' } - ], - relevance: 0 - }, - FUNCTION_REF, - STRUCT_TYPE - ] - }; -} - -export { gauss as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gauss.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gauss.js.js deleted file mode 100644 index afb1be9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gauss.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/gauss" instead of "highlight.js/lib/languages/gauss.js"' - ); - } - } - emitWarning(); - import lang from './gauss.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gcode.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gcode.js deleted file mode 100644 index c52cbf1..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gcode.js +++ /dev/null @@ -1,189 +0,0 @@ -/* - Language: G-code (ISO 6983) - Contributors: Adam Joseph Cook - Description: G-code syntax highlighter for Fanuc and other common CNC machine tool controls. - Website: https://www.sis.se/api/document/preview/911952/ - Category: hardware - */ - -function gcode(hljs) { - const regex = hljs.regex; - const GCODE_KEYWORDS = { - $pattern: /[A-Z]+|%/, - keyword: [ - // conditions - 'THEN', - 'ELSE', - 'ENDIF', - 'IF', - - // controls - 'GOTO', - 'DO', - 'WHILE', - 'WH', - 'END', - 'CALL', - - // scoping - 'SUB', - 'ENDSUB', - - // comparisons - 'EQ', - 'NE', - 'LT', - 'GT', - 'LE', - 'GE', - 'AND', - 'OR', - 'XOR', - - // start/end of program - '%' - ], - built_in: [ - 'ATAN', - 'ABS', - 'ACOS', - 'ASIN', - 'COS', - 'EXP', - 'FIX', - 'FUP', - 'ROUND', - 'LN', - 'SIN', - 'SQRT', - 'TAN', - 'EXISTS' - ] - }; - - - // TODO: post v12 lets use look-behind, until then \b and a callback filter will be used - // const LETTER_BOUNDARY_RE = /(?= '0' && charBeforeMatch <= '9') { - return; - } - - if (charBeforeMatch === '_') { - return; - } - - response.ignoreMatch(); - } - - const NUMBER_RE = /[+-]?((\.\d+)|(\d+)(\.\d*)?)/; - - const GENERAL_MISC_FUNCTION_RE = /[GM]\s*\d+(\.\d+)?/; - const TOOLS_RE = /T\s*\d+/; - const SUBROUTINE_RE = /O\s*\d+/; - const SUBROUTINE_NAMED_RE = /O<.+>/; - const AXES_RE = /[ABCUVWXYZ]\s*/; - const PARAMETERS_RE = /[FHIJKPQRS]\s*/; - - const GCODE_CODE = [ - // comments - hljs.COMMENT(/\(/, /\)/), - hljs.COMMENT(/;/, /$/), - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - - // gcodes - { - scope: 'title.function', - variants: [ - // G General functions: G0, G5.1, G5.2, … - // M Misc functions: M0, M55.6, M199, … - { match: regex.concat(LETTER_BOUNDARY_RE, GENERAL_MISC_FUNCTION_RE) }, - { - begin: GENERAL_MISC_FUNCTION_RE, - 'on:begin': LETTER_BOUNDARY_CALLBACK - }, - // T Tools - { match: regex.concat(LETTER_BOUNDARY_RE, TOOLS_RE), }, - { - begin: TOOLS_RE, - 'on:begin': LETTER_BOUNDARY_CALLBACK - } - ] - }, - - { - scope: 'symbol', - variants: [ - // O Subroutine ID: O100, O110, … - { match: regex.concat(LETTER_BOUNDARY_RE, SUBROUTINE_RE) }, - { - begin: SUBROUTINE_RE, - 'on:begin': LETTER_BOUNDARY_CALLBACK - }, - // O Subroutine name: O, … - { match: regex.concat(LETTER_BOUNDARY_RE, SUBROUTINE_NAMED_RE) }, - { - begin: SUBROUTINE_NAMED_RE, - 'on:begin': LETTER_BOUNDARY_CALLBACK - }, - // Checksum at end of line: *71, *199, … - { match: /\*\s*\d+\s*$/ } - ] - }, - - { - scope: 'operator', // N Line number: N1, N2, N1020, … - match: /^N\s*\d+/ - }, - - { - scope: 'variable', - match: /-?#\s*\d+/ - }, - - { - scope: 'property', // Physical axes, - variants: [ - { match: regex.concat(LETTER_BOUNDARY_RE, AXES_RE, NUMBER_RE) }, - { - begin: regex.concat(AXES_RE, NUMBER_RE), - 'on:begin': LETTER_BOUNDARY_CALLBACK - }, - ] - }, - - { - scope: 'params', // Different types of parameters - variants: [ - { match: regex.concat(LETTER_BOUNDARY_RE, PARAMETERS_RE, NUMBER_RE) }, - { - begin: regex.concat(PARAMETERS_RE, NUMBER_RE), - 'on:begin': LETTER_BOUNDARY_CALLBACK - }, - ] - }, - ]; - - return { - name: 'G-code (ISO 6983)', - aliases: [ 'nc' ], - // Some implementations (CNC controls) of G-code are interoperable with uppercase and lowercase letters seamlessly. - // However, most prefer all uppercase and uppercase is customary. - case_insensitive: true, - // TODO: post v12 with the use of look-behind this can be enabled - disableAutodetect: true, - keywords: GCODE_KEYWORDS, - contains: GCODE_CODE - }; -} - -export { gcode as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gcode.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gcode.js.js deleted file mode 100644 index bd79f60..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gcode.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/gcode" instead of "highlight.js/lib/languages/gcode.js"' - ); - } - } - emitWarning(); - import lang from './gcode.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gherkin.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gherkin.js deleted file mode 100644 index a708078..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gherkin.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - Language: Gherkin - Author: Sam Pikesley (@pikesley) - Description: Gherkin is the format for cucumber specifications. It is a domain specific language which helps you to describe business behavior without the need to go into detail of implementation. - Website: https://cucumber.io/docs/gherkin/ - */ - -function gherkin(hljs) { - return { - name: 'Gherkin', - aliases: [ 'feature' ], - keywords: 'Feature Background Ability Business\ Need Scenario Scenarios Scenario\ Outline Scenario\ Template Examples Given And Then But When', - contains: [ - { - className: 'symbol', - begin: '\\*', - relevance: 0 - }, - { - className: 'meta', - begin: '@[^@\\s]+' - }, - { - begin: '\\|', - end: '\\|\\w*$', - contains: [ - { - className: 'string', - begin: '[^|]+' - } - ] - }, - { - className: 'variable', - begin: '<', - end: '>' - }, - hljs.HASH_COMMENT_MODE, - { - className: 'string', - begin: '"""', - end: '"""' - }, - hljs.QUOTE_STRING_MODE - ] - }; -} - -export { gherkin as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gherkin.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gherkin.js.js deleted file mode 100644 index d06f6c2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gherkin.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/gherkin" instead of "highlight.js/lib/languages/gherkin.js"' - ); - } - } - emitWarning(); - import lang from './gherkin.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/glsl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/glsl.js deleted file mode 100644 index 53eb182..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/glsl.js +++ /dev/null @@ -1,128 +0,0 @@ -/* -Language: GLSL -Description: OpenGL Shading Language -Author: Sergey Tikhomirov -Website: https://en.wikipedia.org/wiki/OpenGL_Shading_Language -Category: graphics -*/ - -function glsl(hljs) { - return { - name: 'GLSL', - keywords: { - keyword: - // Statements - 'break continue discard do else for if return while switch case default ' - // Qualifiers - + 'attribute binding buffer ccw centroid centroid varying coherent column_major const cw ' - + 'depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing ' - + 'flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant ' - + 'invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y ' - + 'local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left ' - + 'out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f ' - + 'r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict ' - + 'rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 ' - + 'rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 ' - + 'rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip ' - + 'triangles triangles_adjacency uniform varying vertices volatile writeonly', - type: - 'atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 ' - + 'dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray ' - + 'iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer ' - + 'iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray ' - + 'image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray ' - + 'isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D ' - + 'isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 ' - + 'mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray ' - + 'sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow ' - + 'sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D ' - + 'samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow ' - + 'image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect ' - + 'uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray ' - + 'usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D ' - + 'samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void', - built_in: - // Constants - 'gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes ' - + 'gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms ' - + 'gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers ' - + 'gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits ' - + 'gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize ' - + 'gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters ' - + 'gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors ' - + 'gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers ' - + 'gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents ' - + 'gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits ' - + 'gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents ' - + 'gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset ' - + 'gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms ' - + 'gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits ' - + 'gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents ' - + 'gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters ' - + 'gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents ' - + 'gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents ' - + 'gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits ' - + 'gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors ' - + 'gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms ' - + 'gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits ' - + 'gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset ' - // Variables - + 'gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial ' - + 'gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color ' - + 'gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord ' - + 'gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor ' - + 'gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial ' - + 'gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel ' - + 'gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix ' - + 'gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose ' - + 'gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose ' - + 'gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 ' - + 'gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 ' - + 'gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ ' - + 'gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord ' - + 'gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse ' - + 'gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask ' - + 'gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter ' - + 'gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose ' - + 'gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out ' - // Functions - + 'EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin ' - + 'asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement ' - + 'atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier ' - + 'bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross ' - + 'dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB ' - + 'floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan ' - + 'greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap ' - + 'imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad ' - + 'imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset ' - + 'interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log ' - + 'log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer ' - + 'memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 ' - + 'normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 ' - + 'packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod ' - + 'shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh ' - + 'smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod ' - + 'texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod ' - + 'texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod ' - + 'textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset ' - + 'textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset ' - + 'textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod ' - + 'textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 ' - + 'unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow', - literal: 'true false' - }, - illegal: '"', - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_NUMBER_MODE, - { - className: 'meta', - begin: '#', - end: '$' - } - ] - }; -} - -export { glsl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/glsl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/glsl.js.js deleted file mode 100644 index 38eb353..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/glsl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/glsl" instead of "highlight.js/lib/languages/glsl.js"' - ); - } - } - emitWarning(); - import lang from './glsl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gml.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gml.js deleted file mode 100644 index 4f1bc0f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gml.js +++ /dev/null @@ -1,3130 +0,0 @@ -/* -Language: GML -Description: Game Maker Language for GameMaker (rev. 2023.1) -Website: https://manual.yoyogames.com/ -Category: scripting -*/ - -function gml(hljs) { - const KEYWORDS = [ - "#endregion", - "#macro", - "#region", - "and", - "begin", - "break", - "case", - "constructor", - "continue", - "default", - "delete", - "div", - "do", - "else", - "end", - "enum", - "exit", - "for", - "function", - "globalvar", - "if", - "mod", - "new", - "not", - "or", - "repeat", - "return", - "static", - "switch", - "then", - "until", - "var", - "while", - "with", - "xor" - ]; - - const BUILT_INS = [ - "abs", - "alarm_get", - "alarm_set", - "angle_difference", - "animcurve_channel_evaluate", - "animcurve_channel_new", - "animcurve_create", - "animcurve_destroy", - "animcurve_exists", - "animcurve_get", - "animcurve_get_channel", - "animcurve_get_channel_index", - "animcurve_point_new", - "ansi_char", - "application_get_position", - "application_surface_draw_enable", - "application_surface_enable", - "application_surface_is_enabled", - "arccos", - "arcsin", - "arctan", - "arctan2", - "array_all", - "array_any", - "array_concat", - "array_contains", - "array_contains_ext", - "array_copy", - "array_copy_while", - "array_create", - "array_create_ext", - "array_delete", - "array_equals", - "array_filter", - "array_filter_ext", - "array_find_index", - "array_first", - "array_foreach", - "array_get", - "array_get_index", - "array_insert", - "array_intersection", - "array_last", - "array_length", - "array_map", - "array_map_ext", - "array_pop", - "array_push", - "array_reduce", - "array_resize", - "array_reverse", - "array_reverse_ext", - "array_set", - "array_shuffle", - "array_shuffle_ext", - "array_sort", - "array_union", - "array_unique", - "array_unique_ext", - "asset_add_tags", - "asset_clear_tags", - "asset_get_ids", - "asset_get_index", - "asset_get_tags", - "asset_get_type", - "asset_has_any_tag", - "asset_has_tags", - "asset_remove_tags", - "audio_bus_clear_emitters", - "audio_bus_create", - "audio_bus_get_emitters", - "audio_channel_num", - "audio_create_buffer_sound", - "audio_create_play_queue", - "audio_create_stream", - "audio_create_sync_group", - "audio_debug", - "audio_destroy_stream", - "audio_destroy_sync_group", - "audio_effect_create", - "audio_emitter_bus", - "audio_emitter_create", - "audio_emitter_exists", - "audio_emitter_falloff", - "audio_emitter_free", - "audio_emitter_gain", - "audio_emitter_get_bus", - "audio_emitter_get_gain", - "audio_emitter_get_listener_mask", - "audio_emitter_get_pitch", - "audio_emitter_get_vx", - "audio_emitter_get_vy", - "audio_emitter_get_vz", - "audio_emitter_get_x", - "audio_emitter_get_y", - "audio_emitter_get_z", - "audio_emitter_pitch", - "audio_emitter_position", - "audio_emitter_set_listener_mask", - "audio_emitter_velocity", - "audio_exists", - "audio_falloff_set_model", - "audio_free_buffer_sound", - "audio_free_play_queue", - "audio_get_listener_count", - "audio_get_listener_info", - "audio_get_listener_mask", - "audio_get_master_gain", - "audio_get_name", - "audio_get_recorder_count", - "audio_get_recorder_info", - "audio_get_type", - "audio_group_get_assets", - "audio_group_get_gain", - "audio_group_is_loaded", - "audio_group_load", - "audio_group_load_progress", - "audio_group_name", - "audio_group_set_gain", - "audio_group_stop_all", - "audio_group_unload", - "audio_is_paused", - "audio_is_playing", - "audio_listener_get_data", - "audio_listener_orientation", - "audio_listener_position", - "audio_listener_set_orientation", - "audio_listener_set_position", - "audio_listener_set_velocity", - "audio_listener_velocity", - "audio_master_gain", - "audio_pause_all", - "audio_pause_sound", - "audio_pause_sync_group", - "audio_play_in_sync_group", - "audio_play_sound", - "audio_play_sound_at", - "audio_play_sound_ext", - "audio_play_sound_on", - "audio_queue_sound", - "audio_resume_all", - "audio_resume_sound", - "audio_resume_sync_group", - "audio_set_listener_mask", - "audio_set_master_gain", - "audio_sound_gain", - "audio_sound_get_audio_group", - "audio_sound_get_gain", - "audio_sound_get_listener_mask", - "audio_sound_get_loop", - "audio_sound_get_loop_end", - "audio_sound_get_loop_start", - "audio_sound_get_pitch", - "audio_sound_get_track_position", - "audio_sound_is_playable", - "audio_sound_length", - "audio_sound_loop", - "audio_sound_loop_end", - "audio_sound_loop_start", - "audio_sound_pitch", - "audio_sound_set_listener_mask", - "audio_sound_set_track_position", - "audio_start_recording", - "audio_start_sync_group", - "audio_stop_all", - "audio_stop_recording", - "audio_stop_sound", - "audio_stop_sync_group", - "audio_sync_group_debug", - "audio_sync_group_get_track_pos", - "audio_sync_group_is_paused", - "audio_sync_group_is_playing", - "audio_system_is_available", - "audio_system_is_initialised", - "base64_decode", - "base64_encode", - "bool", - "browser_input_capture", - "buffer_async_group_begin", - "buffer_async_group_end", - "buffer_async_group_option", - "buffer_base64_decode", - "buffer_base64_decode_ext", - "buffer_base64_encode", - "buffer_compress", - "buffer_copy", - "buffer_copy_from_vertex_buffer", - "buffer_copy_stride", - "buffer_crc32", - "buffer_create", - "buffer_create_from_vertex_buffer", - "buffer_create_from_vertex_buffer_ext", - "buffer_decompress", - "buffer_delete", - "buffer_exists", - "buffer_fill", - "buffer_get_address", - "buffer_get_alignment", - "buffer_get_size", - "buffer_get_surface", - "buffer_get_type", - "buffer_load", - "buffer_load_async", - "buffer_load_ext", - "buffer_load_partial", - "buffer_md5", - "buffer_peek", - "buffer_poke", - "buffer_read", - "buffer_resize", - "buffer_save", - "buffer_save_async", - "buffer_save_ext", - "buffer_seek", - "buffer_set_surface", - "buffer_set_used_size", - "buffer_sha1", - "buffer_sizeof", - "buffer_tell", - "buffer_write", - "call_cancel", - "call_later", - "camera_apply", - "camera_copy_transforms", - "camera_create", - "camera_create_view", - "camera_destroy", - "camera_get_active", - "camera_get_begin_script", - "camera_get_default", - "camera_get_end_script", - "camera_get_proj_mat", - "camera_get_update_script", - "camera_get_view_angle", - "camera_get_view_border_x", - "camera_get_view_border_y", - "camera_get_view_height", - "camera_get_view_mat", - "camera_get_view_speed_x", - "camera_get_view_speed_y", - "camera_get_view_target", - "camera_get_view_width", - "camera_get_view_x", - "camera_get_view_y", - "camera_set_begin_script", - "camera_set_default", - "camera_set_end_script", - "camera_set_proj_mat", - "camera_set_update_script", - "camera_set_view_angle", - "camera_set_view_border", - "camera_set_view_mat", - "camera_set_view_pos", - "camera_set_view_size", - "camera_set_view_speed", - "camera_set_view_target", - "ceil", - "choose", - "chr", - "clamp", - "clickable_add", - "clickable_add_ext", - "clickable_change", - "clickable_change_ext", - "clickable_delete", - "clickable_exists", - "clickable_set_style", - "clipboard_get_text", - "clipboard_has_text", - "clipboard_set_text", - "cloud_file_save", - "cloud_string_save", - "cloud_synchronise", - "code_is_compiled", - "collision_circle", - "collision_circle_list", - "collision_ellipse", - "collision_ellipse_list", - "collision_line", - "collision_line_list", - "collision_point", - "collision_point_list", - "collision_rectangle", - "collision_rectangle_list", - "color_get_blue", - "color_get_green", - "color_get_hue", - "color_get_red", - "color_get_saturation", - "color_get_value", - "colour_get_blue", - "colour_get_green", - "colour_get_hue", - "colour_get_red", - "colour_get_saturation", - "colour_get_value", - "cos", - "darccos", - "darcsin", - "darctan", - "darctan2", - "date_compare_date", - "date_compare_datetime", - "date_compare_time", - "date_create_datetime", - "date_current_datetime", - "date_date_of", - "date_date_string", - "date_datetime_string", - "date_day_span", - "date_days_in_month", - "date_days_in_year", - "date_get_day", - "date_get_day_of_year", - "date_get_hour", - "date_get_hour_of_year", - "date_get_minute", - "date_get_minute_of_year", - "date_get_month", - "date_get_second", - "date_get_second_of_year", - "date_get_timezone", - "date_get_week", - "date_get_weekday", - "date_get_year", - "date_hour_span", - "date_inc_day", - "date_inc_hour", - "date_inc_minute", - "date_inc_month", - "date_inc_second", - "date_inc_week", - "date_inc_year", - "date_is_today", - "date_leap_year", - "date_minute_span", - "date_month_span", - "date_second_span", - "date_set_timezone", - "date_time_of", - "date_time_string", - "date_valid_datetime", - "date_week_span", - "date_year_span", - "db_to_lin", - "dbg_add_font_glyphs", - "dbg_button", - "dbg_checkbox", - "dbg_color", - "dbg_colour", - "dbg_drop_down", - "dbg_same_line", - "dbg_section", - "dbg_section_delete", - "dbg_section_exists", - "dbg_slider", - "dbg_slider_int", - "dbg_sprite", - "dbg_text", - "dbg_text_input", - "dbg_view", - "dbg_view_delete", - "dbg_view_exists", - "dbg_watch", - "dcos", - "debug_event", - "debug_get_callstack", - "degtorad", - "device_get_tilt_x", - "device_get_tilt_y", - "device_get_tilt_z", - "device_is_keypad_open", - "device_mouse_check_button", - "device_mouse_check_button_pressed", - "device_mouse_check_button_released", - "device_mouse_dbclick_enable", - "device_mouse_raw_x", - "device_mouse_raw_y", - "device_mouse_x", - "device_mouse_x_to_gui", - "device_mouse_y", - "device_mouse_y_to_gui", - "directory_create", - "directory_destroy", - "directory_exists", - "display_get_dpi_x", - "display_get_dpi_y", - "display_get_frequency", - "display_get_gui_height", - "display_get_gui_width", - "display_get_height", - "display_get_orientation", - "display_get_sleep_margin", - "display_get_timing_method", - "display_get_width", - "display_mouse_get_x", - "display_mouse_get_y", - "display_mouse_set", - "display_reset", - "display_set_gui_maximise", - "display_set_gui_maximize", - "display_set_gui_size", - "display_set_sleep_margin", - "display_set_timing_method", - "display_set_ui_visibility", - "distance_to_object", - "distance_to_point", - "dot_product", - "dot_product_3d", - "dot_product_3d_normalised", - "dot_product_3d_normalized", - "dot_product_normalised", - "dot_product_normalized", - "draw_arrow", - "draw_button", - "draw_circle", - "draw_circle_color", - "draw_circle_colour", - "draw_clear", - "draw_clear_alpha", - "draw_ellipse", - "draw_ellipse_color", - "draw_ellipse_colour", - "draw_enable_drawevent", - "draw_enable_skeleton_blendmodes", - "draw_enable_swf_aa", - "draw_flush", - "draw_get_alpha", - "draw_get_color", - "draw_get_colour", - "draw_get_enable_skeleton_blendmodes", - "draw_get_font", - "draw_get_halign", - "draw_get_lighting", - "draw_get_swf_aa_level", - "draw_get_valign", - "draw_getpixel", - "draw_getpixel_ext", - "draw_healthbar", - "draw_highscore", - "draw_light_define_ambient", - "draw_light_define_direction", - "draw_light_define_point", - "draw_light_enable", - "draw_light_get", - "draw_light_get_ambient", - "draw_line", - "draw_line_color", - "draw_line_colour", - "draw_line_width", - "draw_line_width_color", - "draw_line_width_colour", - "draw_path", - "draw_point", - "draw_point_color", - "draw_point_colour", - "draw_primitive_begin", - "draw_primitive_begin_texture", - "draw_primitive_end", - "draw_rectangle", - "draw_rectangle_color", - "draw_rectangle_colour", - "draw_roundrect", - "draw_roundrect_color", - "draw_roundrect_color_ext", - "draw_roundrect_colour", - "draw_roundrect_colour_ext", - "draw_roundrect_ext", - "draw_self", - "draw_set_alpha", - "draw_set_circle_precision", - "draw_set_color", - "draw_set_colour", - "draw_set_font", - "draw_set_halign", - "draw_set_lighting", - "draw_set_swf_aa_level", - "draw_set_valign", - "draw_skeleton", - "draw_skeleton_collision", - "draw_skeleton_instance", - "draw_skeleton_time", - "draw_sprite", - "draw_sprite_ext", - "draw_sprite_general", - "draw_sprite_part", - "draw_sprite_part_ext", - "draw_sprite_pos", - "draw_sprite_stretched", - "draw_sprite_stretched_ext", - "draw_sprite_tiled", - "draw_sprite_tiled_ext", - "draw_surface", - "draw_surface_ext", - "draw_surface_general", - "draw_surface_part", - "draw_surface_part_ext", - "draw_surface_stretched", - "draw_surface_stretched_ext", - "draw_surface_tiled", - "draw_surface_tiled_ext", - "draw_text", - "draw_text_color", - "draw_text_colour", - "draw_text_ext", - "draw_text_ext_color", - "draw_text_ext_colour", - "draw_text_ext_transformed", - "draw_text_ext_transformed_color", - "draw_text_ext_transformed_colour", - "draw_text_transformed", - "draw_text_transformed_color", - "draw_text_transformed_colour", - "draw_texture_flush", - "draw_tile", - "draw_tilemap", - "draw_triangle", - "draw_triangle_color", - "draw_triangle_colour", - "draw_vertex", - "draw_vertex_color", - "draw_vertex_colour", - "draw_vertex_texture", - "draw_vertex_texture_color", - "draw_vertex_texture_colour", - "ds_exists", - "ds_grid_add", - "ds_grid_add_disk", - "ds_grid_add_grid_region", - "ds_grid_add_region", - "ds_grid_clear", - "ds_grid_copy", - "ds_grid_create", - "ds_grid_destroy", - "ds_grid_get", - "ds_grid_get_disk_max", - "ds_grid_get_disk_mean", - "ds_grid_get_disk_min", - "ds_grid_get_disk_sum", - "ds_grid_get_max", - "ds_grid_get_mean", - "ds_grid_get_min", - "ds_grid_get_sum", - "ds_grid_height", - "ds_grid_multiply", - "ds_grid_multiply_disk", - "ds_grid_multiply_grid_region", - "ds_grid_multiply_region", - "ds_grid_read", - "ds_grid_resize", - "ds_grid_set", - "ds_grid_set_disk", - "ds_grid_set_grid_region", - "ds_grid_set_region", - "ds_grid_shuffle", - "ds_grid_sort", - "ds_grid_to_mp_grid", - "ds_grid_value_disk_exists", - "ds_grid_value_disk_x", - "ds_grid_value_disk_y", - "ds_grid_value_exists", - "ds_grid_value_x", - "ds_grid_value_y", - "ds_grid_width", - "ds_grid_write", - "ds_list_add", - "ds_list_clear", - "ds_list_copy", - "ds_list_create", - "ds_list_delete", - "ds_list_destroy", - "ds_list_empty", - "ds_list_find_index", - "ds_list_find_value", - "ds_list_insert", - "ds_list_is_list", - "ds_list_is_map", - "ds_list_mark_as_list", - "ds_list_mark_as_map", - "ds_list_read", - "ds_list_replace", - "ds_list_set", - "ds_list_shuffle", - "ds_list_size", - "ds_list_sort", - "ds_list_write", - "ds_map_add", - "ds_map_add_list", - "ds_map_add_map", - "ds_map_clear", - "ds_map_copy", - "ds_map_create", - "ds_map_delete", - "ds_map_destroy", - "ds_map_empty", - "ds_map_exists", - "ds_map_find_first", - "ds_map_find_last", - "ds_map_find_next", - "ds_map_find_previous", - "ds_map_find_value", - "ds_map_is_list", - "ds_map_is_map", - "ds_map_keys_to_array", - "ds_map_read", - "ds_map_replace", - "ds_map_replace_list", - "ds_map_replace_map", - "ds_map_secure_load", - "ds_map_secure_load_buffer", - "ds_map_secure_save", - "ds_map_secure_save_buffer", - "ds_map_set", - "ds_map_size", - "ds_map_values_to_array", - "ds_map_write", - "ds_priority_add", - "ds_priority_change_priority", - "ds_priority_clear", - "ds_priority_copy", - "ds_priority_create", - "ds_priority_delete_max", - "ds_priority_delete_min", - "ds_priority_delete_value", - "ds_priority_destroy", - "ds_priority_empty", - "ds_priority_find_max", - "ds_priority_find_min", - "ds_priority_find_priority", - "ds_priority_read", - "ds_priority_size", - "ds_priority_write", - "ds_queue_clear", - "ds_queue_copy", - "ds_queue_create", - "ds_queue_dequeue", - "ds_queue_destroy", - "ds_queue_empty", - "ds_queue_enqueue", - "ds_queue_head", - "ds_queue_read", - "ds_queue_size", - "ds_queue_tail", - "ds_queue_write", - "ds_set_precision", - "ds_stack_clear", - "ds_stack_copy", - "ds_stack_create", - "ds_stack_destroy", - "ds_stack_empty", - "ds_stack_pop", - "ds_stack_push", - "ds_stack_read", - "ds_stack_size", - "ds_stack_top", - "ds_stack_write", - "dsin", - "dtan", - "effect_clear", - "effect_create_above", - "effect_create_below", - "effect_create_depth", - "effect_create_layer", - "environment_get_variable", - "event_inherited", - "event_perform", - "event_perform_async", - "event_perform_object", - "event_user", - "exception_unhandled_handler", - "exp", - "extension_exists", - "extension_get_option_count", - "extension_get_option_names", - "extension_get_option_value", - "extension_get_options", - "extension_get_version", - "external_call", - "external_define", - "external_free", - "file_attributes", - "file_bin_close", - "file_bin_open", - "file_bin_position", - "file_bin_read_byte", - "file_bin_rewrite", - "file_bin_seek", - "file_bin_size", - "file_bin_write_byte", - "file_copy", - "file_delete", - "file_exists", - "file_find_close", - "file_find_first", - "file_find_next", - "file_rename", - "file_text_close", - "file_text_eof", - "file_text_eoln", - "file_text_open_append", - "file_text_open_from_string", - "file_text_open_read", - "file_text_open_write", - "file_text_read_real", - "file_text_read_string", - "file_text_readln", - "file_text_write_real", - "file_text_write_string", - "file_text_writeln", - "filename_change_ext", - "filename_dir", - "filename_drive", - "filename_ext", - "filename_name", - "filename_path", - "floor", - "font_add", - "font_add_enable_aa", - "font_add_get_enable_aa", - "font_add_sprite", - "font_add_sprite_ext", - "font_cache_glyph", - "font_delete", - "font_enable_effects", - "font_enable_sdf", - "font_exists", - "font_get_bold", - "font_get_first", - "font_get_fontname", - "font_get_info", - "font_get_italic", - "font_get_last", - "font_get_name", - "font_get_sdf_enabled", - "font_get_sdf_spread", - "font_get_size", - "font_get_texture", - "font_get_uvs", - "font_replace_sprite", - "font_replace_sprite_ext", - "font_sdf_spread", - "font_set_cache_size", - "frac", - "fx_create", - "fx_get_name", - "fx_get_parameter", - "fx_get_parameter_names", - "fx_get_parameters", - "fx_get_single_layer", - "fx_set_parameter", - "fx_set_parameters", - "fx_set_single_layer", - "game_change", - "game_end", - "game_get_speed", - "game_load", - "game_load_buffer", - "game_restart", - "game_save", - "game_save_buffer", - "game_set_speed", - "gamepad_axis_count", - "gamepad_axis_value", - "gamepad_button_check", - "gamepad_button_check_pressed", - "gamepad_button_check_released", - "gamepad_button_count", - "gamepad_button_value", - "gamepad_get_axis_deadzone", - "gamepad_get_button_threshold", - "gamepad_get_description", - "gamepad_get_device_count", - "gamepad_get_guid", - "gamepad_get_mapping", - "gamepad_get_option", - "gamepad_hat_count", - "gamepad_hat_value", - "gamepad_is_connected", - "gamepad_is_supported", - "gamepad_remove_mapping", - "gamepad_set_axis_deadzone", - "gamepad_set_button_threshold", - "gamepad_set_color", - "gamepad_set_colour", - "gamepad_set_option", - "gamepad_set_vibration", - "gamepad_test_mapping", - "gc_collect", - "gc_enable", - "gc_get_stats", - "gc_get_target_frame_time", - "gc_is_enabled", - "gc_target_frame_time", - "gesture_double_tap_distance", - "gesture_double_tap_time", - "gesture_drag_distance", - "gesture_drag_time", - "gesture_flick_speed", - "gesture_get_double_tap_distance", - "gesture_get_double_tap_time", - "gesture_get_drag_distance", - "gesture_get_drag_time", - "gesture_get_flick_speed", - "gesture_get_pinch_angle_away", - "gesture_get_pinch_angle_towards", - "gesture_get_pinch_distance", - "gesture_get_rotate_angle", - "gesture_get_rotate_time", - "gesture_get_tap_count", - "gesture_pinch_angle_away", - "gesture_pinch_angle_towards", - "gesture_pinch_distance", - "gesture_rotate_angle", - "gesture_rotate_time", - "gesture_tap_count", - "get_integer", - "get_integer_async", - "get_login_async", - "get_open_filename", - "get_open_filename_ext", - "get_save_filename", - "get_save_filename_ext", - "get_string", - "get_string_async", - "get_timer", - "gif_add_surface", - "gif_open", - "gif_save", - "gif_save_buffer", - "gml_pragma", - "gml_release_mode", - "gpu_get_alphatestenable", - "gpu_get_alphatestref", - "gpu_get_blendenable", - "gpu_get_blendmode", - "gpu_get_blendmode_dest", - "gpu_get_blendmode_destalpha", - "gpu_get_blendmode_ext", - "gpu_get_blendmode_ext_sepalpha", - "gpu_get_blendmode_src", - "gpu_get_blendmode_srcalpha", - "gpu_get_colorwriteenable", - "gpu_get_colourwriteenable", - "gpu_get_cullmode", - "gpu_get_depth", - "gpu_get_fog", - "gpu_get_state", - "gpu_get_tex_filter", - "gpu_get_tex_filter_ext", - "gpu_get_tex_max_aniso", - "gpu_get_tex_max_aniso_ext", - "gpu_get_tex_max_mip", - "gpu_get_tex_max_mip_ext", - "gpu_get_tex_min_mip", - "gpu_get_tex_min_mip_ext", - "gpu_get_tex_mip_bias", - "gpu_get_tex_mip_bias_ext", - "gpu_get_tex_mip_enable", - "gpu_get_tex_mip_enable_ext", - "gpu_get_tex_mip_filter", - "gpu_get_tex_mip_filter_ext", - "gpu_get_tex_repeat", - "gpu_get_tex_repeat_ext", - "gpu_get_texfilter", - "gpu_get_texfilter_ext", - "gpu_get_texrepeat", - "gpu_get_texrepeat_ext", - "gpu_get_zfunc", - "gpu_get_ztestenable", - "gpu_get_zwriteenable", - "gpu_pop_state", - "gpu_push_state", - "gpu_set_alphatestenable", - "gpu_set_alphatestref", - "gpu_set_blendenable", - "gpu_set_blendmode", - "gpu_set_blendmode_ext", - "gpu_set_blendmode_ext_sepalpha", - "gpu_set_colorwriteenable", - "gpu_set_colourwriteenable", - "gpu_set_cullmode", - "gpu_set_depth", - "gpu_set_fog", - "gpu_set_state", - "gpu_set_tex_filter", - "gpu_set_tex_filter_ext", - "gpu_set_tex_max_aniso", - "gpu_set_tex_max_aniso_ext", - "gpu_set_tex_max_mip", - "gpu_set_tex_max_mip_ext", - "gpu_set_tex_min_mip", - "gpu_set_tex_min_mip_ext", - "gpu_set_tex_mip_bias", - "gpu_set_tex_mip_bias_ext", - "gpu_set_tex_mip_enable", - "gpu_set_tex_mip_enable_ext", - "gpu_set_tex_mip_filter", - "gpu_set_tex_mip_filter_ext", - "gpu_set_tex_repeat", - "gpu_set_tex_repeat_ext", - "gpu_set_texfilter", - "gpu_set_texfilter_ext", - "gpu_set_texrepeat", - "gpu_set_texrepeat_ext", - "gpu_set_zfunc", - "gpu_set_ztestenable", - "gpu_set_zwriteenable", - "handle_parse", - "highscore_add", - "highscore_clear", - "highscore_name", - "highscore_value", - "http_get", - "http_get_file", - "http_get_request_crossorigin", - "http_post_string", - "http_request", - "http_set_request_crossorigin", - "iap_acquire", - "iap_activate", - "iap_consume", - "iap_enumerate_products", - "iap_product_details", - "iap_purchase_details", - "iap_restore_all", - "iap_status", - "ini_close", - "ini_key_delete", - "ini_key_exists", - "ini_open", - "ini_open_from_string", - "ini_read_real", - "ini_read_string", - "ini_section_delete", - "ini_section_exists", - "ini_write_real", - "ini_write_string", - "instance_activate_all", - "instance_activate_layer", - "instance_activate_object", - "instance_activate_region", - "instance_change", - "instance_copy", - "instance_create_depth", - "instance_create_layer", - "instance_deactivate_all", - "instance_deactivate_layer", - "instance_deactivate_object", - "instance_deactivate_region", - "instance_destroy", - "instance_exists", - "instance_find", - "instance_furthest", - "instance_id_get", - "instance_nearest", - "instance_number", - "instance_place", - "instance_place_list", - "instance_position", - "instance_position_list", - "instanceof", - "int64", - "io_clear", - "irandom", - "irandom_range", - "is_array", - "is_bool", - "is_callable", - "is_debug_overlay_open", - "is_handle", - "is_infinity", - "is_instanceof", - "is_int32", - "is_int64", - "is_keyboard_used_debug_overlay", - "is_method", - "is_mouse_over_debug_overlay", - "is_nan", - "is_numeric", - "is_ptr", - "is_real", - "is_string", - "is_struct", - "is_undefined", - "json_decode", - "json_encode", - "json_parse", - "json_stringify", - "keyboard_check", - "keyboard_check_direct", - "keyboard_check_pressed", - "keyboard_check_released", - "keyboard_clear", - "keyboard_get_map", - "keyboard_get_numlock", - "keyboard_key_press", - "keyboard_key_release", - "keyboard_set_map", - "keyboard_set_numlock", - "keyboard_unset_map", - "keyboard_virtual_height", - "keyboard_virtual_hide", - "keyboard_virtual_show", - "keyboard_virtual_status", - "layer_add_instance", - "layer_background_alpha", - "layer_background_blend", - "layer_background_change", - "layer_background_create", - "layer_background_destroy", - "layer_background_exists", - "layer_background_get_alpha", - "layer_background_get_blend", - "layer_background_get_htiled", - "layer_background_get_id", - "layer_background_get_index", - "layer_background_get_speed", - "layer_background_get_sprite", - "layer_background_get_stretch", - "layer_background_get_visible", - "layer_background_get_vtiled", - "layer_background_get_xscale", - "layer_background_get_yscale", - "layer_background_htiled", - "layer_background_index", - "layer_background_speed", - "layer_background_sprite", - "layer_background_stretch", - "layer_background_visible", - "layer_background_vtiled", - "layer_background_xscale", - "layer_background_yscale", - "layer_clear_fx", - "layer_create", - "layer_depth", - "layer_destroy", - "layer_destroy_instances", - "layer_element_move", - "layer_enable_fx", - "layer_exists", - "layer_force_draw_depth", - "layer_fx_is_enabled", - "layer_get_all", - "layer_get_all_elements", - "layer_get_depth", - "layer_get_element_layer", - "layer_get_element_type", - "layer_get_forced_depth", - "layer_get_fx", - "layer_get_hspeed", - "layer_get_id", - "layer_get_id_at_depth", - "layer_get_name", - "layer_get_script_begin", - "layer_get_script_end", - "layer_get_shader", - "layer_get_target_room", - "layer_get_visible", - "layer_get_vspeed", - "layer_get_x", - "layer_get_y", - "layer_has_instance", - "layer_hspeed", - "layer_instance_get_instance", - "layer_is_draw_depth_forced", - "layer_reset_target_room", - "layer_script_begin", - "layer_script_end", - "layer_sequence_angle", - "layer_sequence_create", - "layer_sequence_destroy", - "layer_sequence_exists", - "layer_sequence_get_angle", - "layer_sequence_get_headdir", - "layer_sequence_get_headpos", - "layer_sequence_get_instance", - "layer_sequence_get_length", - "layer_sequence_get_sequence", - "layer_sequence_get_speedscale", - "layer_sequence_get_x", - "layer_sequence_get_xscale", - "layer_sequence_get_y", - "layer_sequence_get_yscale", - "layer_sequence_headdir", - "layer_sequence_headpos", - "layer_sequence_is_finished", - "layer_sequence_is_paused", - "layer_sequence_pause", - "layer_sequence_play", - "layer_sequence_speedscale", - "layer_sequence_x", - "layer_sequence_xscale", - "layer_sequence_y", - "layer_sequence_yscale", - "layer_set_fx", - "layer_set_target_room", - "layer_set_visible", - "layer_shader", - "layer_sprite_alpha", - "layer_sprite_angle", - "layer_sprite_blend", - "layer_sprite_change", - "layer_sprite_create", - "layer_sprite_destroy", - "layer_sprite_exists", - "layer_sprite_get_alpha", - "layer_sprite_get_angle", - "layer_sprite_get_blend", - "layer_sprite_get_id", - "layer_sprite_get_index", - "layer_sprite_get_speed", - "layer_sprite_get_sprite", - "layer_sprite_get_x", - "layer_sprite_get_xscale", - "layer_sprite_get_y", - "layer_sprite_get_yscale", - "layer_sprite_index", - "layer_sprite_speed", - "layer_sprite_x", - "layer_sprite_xscale", - "layer_sprite_y", - "layer_sprite_yscale", - "layer_tile_alpha", - "layer_tile_blend", - "layer_tile_change", - "layer_tile_create", - "layer_tile_destroy", - "layer_tile_exists", - "layer_tile_get_alpha", - "layer_tile_get_blend", - "layer_tile_get_region", - "layer_tile_get_sprite", - "layer_tile_get_visible", - "layer_tile_get_x", - "layer_tile_get_xscale", - "layer_tile_get_y", - "layer_tile_get_yscale", - "layer_tile_region", - "layer_tile_visible", - "layer_tile_x", - "layer_tile_xscale", - "layer_tile_y", - "layer_tile_yscale", - "layer_tilemap_create", - "layer_tilemap_destroy", - "layer_tilemap_exists", - "layer_tilemap_get_id", - "layer_vspeed", - "layer_x", - "layer_y", - "lengthdir_x", - "lengthdir_y", - "lerp", - "lin_to_db", - "ln", - "load_csv", - "log10", - "log2", - "logn", - "make_color_hsv", - "make_color_rgb", - "make_colour_hsv", - "make_colour_rgb", - "math_get_epsilon", - "math_set_epsilon", - "matrix_build", - "matrix_build_identity", - "matrix_build_lookat", - "matrix_build_projection_ortho", - "matrix_build_projection_perspective", - "matrix_build_projection_perspective_fov", - "matrix_get", - "matrix_multiply", - "matrix_set", - "matrix_stack_clear", - "matrix_stack_is_empty", - "matrix_stack_pop", - "matrix_stack_push", - "matrix_stack_set", - "matrix_stack_top", - "matrix_transform_vertex", - "max", - "md5_file", - "md5_string_unicode", - "md5_string_utf8", - "mean", - "median", - "merge_color", - "merge_colour", - "method", - "method_call", - "method_get_index", - "method_get_self", - "min", - "motion_add", - "motion_set", - "mouse_check_button", - "mouse_check_button_pressed", - "mouse_check_button_released", - "mouse_clear", - "mouse_wheel_down", - "mouse_wheel_up", - "move_and_collide", - "move_bounce_all", - "move_bounce_solid", - "move_contact_all", - "move_contact_solid", - "move_outside_all", - "move_outside_solid", - "move_random", - "move_snap", - "move_towards_point", - "move_wrap", - "mp_grid_add_cell", - "mp_grid_add_instances", - "mp_grid_add_rectangle", - "mp_grid_clear_all", - "mp_grid_clear_cell", - "mp_grid_clear_rectangle", - "mp_grid_create", - "mp_grid_destroy", - "mp_grid_draw", - "mp_grid_get_cell", - "mp_grid_path", - "mp_grid_to_ds_grid", - "mp_linear_path", - "mp_linear_path_object", - "mp_linear_step", - "mp_linear_step_object", - "mp_potential_path", - "mp_potential_path_object", - "mp_potential_settings", - "mp_potential_step", - "mp_potential_step_object", - "nameof", - "network_connect", - "network_connect_async", - "network_connect_raw", - "network_connect_raw_async", - "network_create_server", - "network_create_server_raw", - "network_create_socket", - "network_create_socket_ext", - "network_destroy", - "network_resolve", - "network_send_broadcast", - "network_send_packet", - "network_send_raw", - "network_send_udp", - "network_send_udp_raw", - "network_set_config", - "network_set_timeout", - "object_exists", - "object_get_mask", - "object_get_name", - "object_get_parent", - "object_get_persistent", - "object_get_physics", - "object_get_solid", - "object_get_sprite", - "object_get_visible", - "object_is_ancestor", - "object_set_mask", - "object_set_persistent", - "object_set_solid", - "object_set_sprite", - "object_set_visible", - "ord", - "os_check_permission", - "os_get_config", - "os_get_info", - "os_get_language", - "os_get_region", - "os_is_network_connected", - "os_is_paused", - "os_lock_orientation", - "os_powersave_enable", - "os_request_permission", - "os_set_orientation_lock", - "parameter_count", - "parameter_string", - "part_emitter_burst", - "part_emitter_clear", - "part_emitter_create", - "part_emitter_delay", - "part_emitter_destroy", - "part_emitter_destroy_all", - "part_emitter_enable", - "part_emitter_exists", - "part_emitter_interval", - "part_emitter_region", - "part_emitter_relative", - "part_emitter_stream", - "part_particles_burst", - "part_particles_clear", - "part_particles_count", - "part_particles_create", - "part_particles_create_color", - "part_particles_create_colour", - "part_system_angle", - "part_system_automatic_draw", - "part_system_automatic_update", - "part_system_clear", - "part_system_color", - "part_system_colour", - "part_system_create", - "part_system_create_layer", - "part_system_depth", - "part_system_destroy", - "part_system_draw_order", - "part_system_drawit", - "part_system_exists", - "part_system_get_info", - "part_system_get_layer", - "part_system_global_space", - "part_system_layer", - "part_system_position", - "part_system_update", - "part_type_alpha1", - "part_type_alpha2", - "part_type_alpha3", - "part_type_blend", - "part_type_clear", - "part_type_color1", - "part_type_color2", - "part_type_color3", - "part_type_color_hsv", - "part_type_color_mix", - "part_type_color_rgb", - "part_type_colour1", - "part_type_colour2", - "part_type_colour3", - "part_type_colour_hsv", - "part_type_colour_mix", - "part_type_colour_rgb", - "part_type_create", - "part_type_death", - "part_type_destroy", - "part_type_direction", - "part_type_exists", - "part_type_gravity", - "part_type_life", - "part_type_orientation", - "part_type_scale", - "part_type_shape", - "part_type_size", - "part_type_size_x", - "part_type_size_y", - "part_type_speed", - "part_type_sprite", - "part_type_step", - "part_type_subimage", - "particle_exists", - "particle_get_info", - "path_add", - "path_add_point", - "path_append", - "path_assign", - "path_change_point", - "path_clear_points", - "path_delete", - "path_delete_point", - "path_duplicate", - "path_end", - "path_exists", - "path_flip", - "path_get_closed", - "path_get_kind", - "path_get_length", - "path_get_name", - "path_get_number", - "path_get_point_speed", - "path_get_point_x", - "path_get_point_y", - "path_get_precision", - "path_get_speed", - "path_get_x", - "path_get_y", - "path_insert_point", - "path_mirror", - "path_rescale", - "path_reverse", - "path_rotate", - "path_set_closed", - "path_set_kind", - "path_set_precision", - "path_shift", - "path_start", - "physics_apply_angular_impulse", - "physics_apply_force", - "physics_apply_impulse", - "physics_apply_local_force", - "physics_apply_local_impulse", - "physics_apply_torque", - "physics_draw_debug", - "physics_fixture_add_point", - "physics_fixture_bind", - "physics_fixture_bind_ext", - "physics_fixture_create", - "physics_fixture_delete", - "physics_fixture_set_angular_damping", - "physics_fixture_set_awake", - "physics_fixture_set_box_shape", - "physics_fixture_set_chain_shape", - "physics_fixture_set_circle_shape", - "physics_fixture_set_collision_group", - "physics_fixture_set_density", - "physics_fixture_set_edge_shape", - "physics_fixture_set_friction", - "physics_fixture_set_kinematic", - "physics_fixture_set_linear_damping", - "physics_fixture_set_polygon_shape", - "physics_fixture_set_restitution", - "physics_fixture_set_sensor", - "physics_get_density", - "physics_get_friction", - "physics_get_restitution", - "physics_joint_delete", - "physics_joint_distance_create", - "physics_joint_enable_motor", - "physics_joint_friction_create", - "physics_joint_gear_create", - "physics_joint_get_value", - "physics_joint_prismatic_create", - "physics_joint_pulley_create", - "physics_joint_revolute_create", - "physics_joint_rope_create", - "physics_joint_set_value", - "physics_joint_weld_create", - "physics_joint_wheel_create", - "physics_mass_properties", - "physics_particle_count", - "physics_particle_create", - "physics_particle_delete", - "physics_particle_delete_region_box", - "physics_particle_delete_region_circle", - "physics_particle_delete_region_poly", - "physics_particle_draw", - "physics_particle_draw_ext", - "physics_particle_get_damping", - "physics_particle_get_data", - "physics_particle_get_data_particle", - "physics_particle_get_density", - "physics_particle_get_gravity_scale", - "physics_particle_get_group_flags", - "physics_particle_get_max_count", - "physics_particle_get_radius", - "physics_particle_group_add_point", - "physics_particle_group_begin", - "physics_particle_group_box", - "physics_particle_group_circle", - "physics_particle_group_count", - "physics_particle_group_delete", - "physics_particle_group_end", - "physics_particle_group_get_ang_vel", - "physics_particle_group_get_angle", - "physics_particle_group_get_centre_x", - "physics_particle_group_get_centre_y", - "physics_particle_group_get_data", - "physics_particle_group_get_inertia", - "physics_particle_group_get_mass", - "physics_particle_group_get_vel_x", - "physics_particle_group_get_vel_y", - "physics_particle_group_get_x", - "physics_particle_group_get_y", - "physics_particle_group_join", - "physics_particle_group_polygon", - "physics_particle_set_category_flags", - "physics_particle_set_damping", - "physics_particle_set_density", - "physics_particle_set_flags", - "physics_particle_set_gravity_scale", - "physics_particle_set_group_flags", - "physics_particle_set_max_count", - "physics_particle_set_radius", - "physics_pause_enable", - "physics_remove_fixture", - "physics_set_density", - "physics_set_friction", - "physics_set_restitution", - "physics_test_overlap", - "physics_world_create", - "physics_world_draw_debug", - "physics_world_gravity", - "physics_world_update_iterations", - "physics_world_update_speed", - "place_empty", - "place_free", - "place_meeting", - "place_snapped", - "point_direction", - "point_distance", - "point_distance_3d", - "point_in_circle", - "point_in_rectangle", - "point_in_triangle", - "position_change", - "position_destroy", - "position_empty", - "position_meeting", - "power", - "ptr", - "radtodeg", - "random", - "random_get_seed", - "random_range", - "random_set_seed", - "randomise", - "randomize", - "real", - "rectangle_in_circle", - "rectangle_in_rectangle", - "rectangle_in_triangle", - "ref_create", - "rollback_chat", - "rollback_create_game", - "rollback_define_extra_network_latency", - "rollback_define_input", - "rollback_define_input_frame_delay", - "rollback_define_mock_input", - "rollback_define_player", - "rollback_display_events", - "rollback_get_info", - "rollback_get_input", - "rollback_get_player_prefs", - "rollback_join_game", - "rollback_leave_game", - "rollback_set_player_prefs", - "rollback_start_game", - "rollback_sync_on_frame", - "rollback_use_late_join", - "rollback_use_manual_start", - "rollback_use_player_prefs", - "rollback_use_random_input", - "room_add", - "room_assign", - "room_duplicate", - "room_exists", - "room_get_camera", - "room_get_info", - "room_get_name", - "room_get_viewport", - "room_goto", - "room_goto_next", - "room_goto_previous", - "room_instance_add", - "room_instance_clear", - "room_next", - "room_previous", - "room_restart", - "room_set_camera", - "room_set_height", - "room_set_persistent", - "room_set_view_enabled", - "room_set_viewport", - "room_set_width", - "round", - "scheduler_resolution_get", - "scheduler_resolution_set", - "screen_save", - "screen_save_part", - "script_execute", - "script_execute_ext", - "script_exists", - "script_get_name", - "sequence_create", - "sequence_destroy", - "sequence_exists", - "sequence_get", - "sequence_get_objects", - "sequence_instance_override_object", - "sequence_keyframe_new", - "sequence_keyframedata_new", - "sequence_track_new", - "sha1_file", - "sha1_string_unicode", - "sha1_string_utf8", - "shader_current", - "shader_enable_corner_id", - "shader_get_name", - "shader_get_sampler_index", - "shader_get_uniform", - "shader_is_compiled", - "shader_reset", - "shader_set", - "shader_set_uniform_f", - "shader_set_uniform_f_array", - "shader_set_uniform_f_buffer", - "shader_set_uniform_i", - "shader_set_uniform_i_array", - "shader_set_uniform_matrix", - "shader_set_uniform_matrix_array", - "shaders_are_supported", - "shop_leave_rating", - "show_debug_message", - "show_debug_message_ext", - "show_debug_overlay", - "show_error", - "show_message", - "show_message_async", - "show_question", - "show_question_async", - "sign", - "sin", - "skeleton_animation_clear", - "skeleton_animation_get", - "skeleton_animation_get_duration", - "skeleton_animation_get_event_frames", - "skeleton_animation_get_ext", - "skeleton_animation_get_frame", - "skeleton_animation_get_frames", - "skeleton_animation_get_position", - "skeleton_animation_is_finished", - "skeleton_animation_is_looping", - "skeleton_animation_list", - "skeleton_animation_mix", - "skeleton_animation_set", - "skeleton_animation_set_ext", - "skeleton_animation_set_frame", - "skeleton_animation_set_position", - "skeleton_attachment_create", - "skeleton_attachment_create_color", - "skeleton_attachment_create_colour", - "skeleton_attachment_destroy", - "skeleton_attachment_exists", - "skeleton_attachment_get", - "skeleton_attachment_replace", - "skeleton_attachment_replace_color", - "skeleton_attachment_replace_colour", - "skeleton_attachment_set", - "skeleton_bone_data_get", - "skeleton_bone_data_set", - "skeleton_bone_list", - "skeleton_bone_state_get", - "skeleton_bone_state_set", - "skeleton_collision_draw_set", - "skeleton_find_slot", - "skeleton_get_bounds", - "skeleton_get_minmax", - "skeleton_get_num_bounds", - "skeleton_skin_create", - "skeleton_skin_get", - "skeleton_skin_list", - "skeleton_skin_set", - "skeleton_slot_alpha_get", - "skeleton_slot_color_get", - "skeleton_slot_color_set", - "skeleton_slot_colour_get", - "skeleton_slot_colour_set", - "skeleton_slot_data", - "skeleton_slot_data_instance", - "skeleton_slot_list", - "sprite_add", - "sprite_add_ext", - "sprite_add_from_surface", - "sprite_assign", - "sprite_collision_mask", - "sprite_create_from_surface", - "sprite_delete", - "sprite_duplicate", - "sprite_exists", - "sprite_flush", - "sprite_flush_multi", - "sprite_get_bbox_bottom", - "sprite_get_bbox_left", - "sprite_get_bbox_mode", - "sprite_get_bbox_right", - "sprite_get_bbox_top", - "sprite_get_height", - "sprite_get_info", - "sprite_get_name", - "sprite_get_nineslice", - "sprite_get_number", - "sprite_get_speed", - "sprite_get_speed_type", - "sprite_get_texture", - "sprite_get_tpe", - "sprite_get_uvs", - "sprite_get_width", - "sprite_get_xoffset", - "sprite_get_yoffset", - "sprite_merge", - "sprite_nineslice_create", - "sprite_prefetch", - "sprite_prefetch_multi", - "sprite_replace", - "sprite_save", - "sprite_save_strip", - "sprite_set_alpha_from_sprite", - "sprite_set_bbox", - "sprite_set_bbox_mode", - "sprite_set_cache_size", - "sprite_set_cache_size_ext", - "sprite_set_nineslice", - "sprite_set_offset", - "sprite_set_speed", - "sqr", - "sqrt", - "static_get", - "static_set", - "string", - "string_byte_at", - "string_byte_length", - "string_char_at", - "string_concat", - "string_concat_ext", - "string_copy", - "string_count", - "string_delete", - "string_digits", - "string_ends_with", - "string_ext", - "string_foreach", - "string_format", - "string_hash_to_newline", - "string_height", - "string_height_ext", - "string_insert", - "string_join", - "string_join_ext", - "string_last_pos", - "string_last_pos_ext", - "string_length", - "string_letters", - "string_lettersdigits", - "string_lower", - "string_ord_at", - "string_pos", - "string_pos_ext", - "string_repeat", - "string_replace", - "string_replace_all", - "string_set_byte_at", - "string_split", - "string_split_ext", - "string_starts_with", - "string_trim", - "string_trim_end", - "string_trim_start", - "string_upper", - "string_width", - "string_width_ext", - "struct_exists", - "struct_foreach", - "struct_get", - "struct_get_from_hash", - "struct_get_names", - "struct_names_count", - "struct_remove", - "struct_set", - "struct_set_from_hash", - "surface_copy", - "surface_copy_part", - "surface_create", - "surface_create_ext", - "surface_depth_disable", - "surface_exists", - "surface_format_is_supported", - "surface_free", - "surface_get_depth_disable", - "surface_get_format", - "surface_get_height", - "surface_get_target", - "surface_get_target_ext", - "surface_get_texture", - "surface_get_width", - "surface_getpixel", - "surface_getpixel_ext", - "surface_reset_target", - "surface_resize", - "surface_save", - "surface_save_part", - "surface_set_target", - "surface_set_target_ext", - "tag_get_asset_ids", - "tag_get_assets", - "tan", - "texture_debug_messages", - "texture_flush", - "texture_get_height", - "texture_get_texel_height", - "texture_get_texel_width", - "texture_get_uvs", - "texture_get_width", - "texture_global_scale", - "texture_is_ready", - "texture_prefetch", - "texture_set_stage", - "texturegroup_get_fonts", - "texturegroup_get_names", - "texturegroup_get_sprites", - "texturegroup_get_status", - "texturegroup_get_textures", - "texturegroup_get_tilesets", - "texturegroup_load", - "texturegroup_set_mode", - "texturegroup_unload", - "tile_get_empty", - "tile_get_flip", - "tile_get_index", - "tile_get_mirror", - "tile_get_rotate", - "tile_set_empty", - "tile_set_flip", - "tile_set_index", - "tile_set_mirror", - "tile_set_rotate", - "tilemap_clear", - "tilemap_get", - "tilemap_get_at_pixel", - "tilemap_get_cell_x_at_pixel", - "tilemap_get_cell_y_at_pixel", - "tilemap_get_frame", - "tilemap_get_global_mask", - "tilemap_get_height", - "tilemap_get_mask", - "tilemap_get_tile_height", - "tilemap_get_tile_width", - "tilemap_get_tileset", - "tilemap_get_width", - "tilemap_get_x", - "tilemap_get_y", - "tilemap_set", - "tilemap_set_at_pixel", - "tilemap_set_global_mask", - "tilemap_set_height", - "tilemap_set_mask", - "tilemap_set_width", - "tilemap_tileset", - "tilemap_x", - "tilemap_y", - "tileset_get_info", - "tileset_get_name", - "tileset_get_texture", - "tileset_get_uvs", - "time_bpm_to_seconds", - "time_seconds_to_bpm", - "time_source_create", - "time_source_destroy", - "time_source_exists", - "time_source_get_children", - "time_source_get_parent", - "time_source_get_period", - "time_source_get_reps_completed", - "time_source_get_reps_remaining", - "time_source_get_state", - "time_source_get_time_remaining", - "time_source_get_units", - "time_source_pause", - "time_source_reconfigure", - "time_source_reset", - "time_source_resume", - "time_source_start", - "time_source_stop", - "timeline_add", - "timeline_clear", - "timeline_delete", - "timeline_exists", - "timeline_get_name", - "timeline_max_moment", - "timeline_moment_add_script", - "timeline_moment_clear", - "timeline_size", - "typeof", - "url_get_domain", - "url_open", - "url_open_ext", - "url_open_full", - "uwp_device_touchscreen_available", - "uwp_livetile_badge_clear", - "uwp_livetile_badge_notification", - "uwp_livetile_notification_begin", - "uwp_livetile_notification_end", - "uwp_livetile_notification_expiry", - "uwp_livetile_notification_image_add", - "uwp_livetile_notification_secondary_begin", - "uwp_livetile_notification_tag", - "uwp_livetile_notification_template_add", - "uwp_livetile_notification_text_add", - "uwp_livetile_queue_enable", - "uwp_livetile_tile_clear", - "uwp_secondarytile_badge_clear", - "uwp_secondarytile_badge_notification", - "uwp_secondarytile_delete", - "uwp_secondarytile_pin", - "uwp_secondarytile_tile_clear", - "variable_clone", - "variable_get_hash", - "variable_global_exists", - "variable_global_get", - "variable_global_set", - "variable_instance_exists", - "variable_instance_get", - "variable_instance_get_names", - "variable_instance_names_count", - "variable_instance_set", - "variable_struct_exists", - "variable_struct_get", - "variable_struct_get_names", - "variable_struct_names_count", - "variable_struct_remove", - "variable_struct_set", - "vertex_argb", - "vertex_begin", - "vertex_color", - "vertex_colour", - "vertex_create_buffer", - "vertex_create_buffer_ext", - "vertex_create_buffer_from_buffer", - "vertex_create_buffer_from_buffer_ext", - "vertex_delete_buffer", - "vertex_end", - "vertex_float1", - "vertex_float2", - "vertex_float3", - "vertex_float4", - "vertex_format_add_color", - "vertex_format_add_colour", - "vertex_format_add_custom", - "vertex_format_add_normal", - "vertex_format_add_position", - "vertex_format_add_position_3d", - "vertex_format_add_texcoord", - "vertex_format_begin", - "vertex_format_delete", - "vertex_format_end", - "vertex_format_get_info", - "vertex_freeze", - "vertex_get_buffer_size", - "vertex_get_number", - "vertex_normal", - "vertex_position", - "vertex_position_3d", - "vertex_submit", - "vertex_submit_ext", - "vertex_texcoord", - "vertex_ubyte4", - "vertex_update_buffer_from_buffer", - "vertex_update_buffer_from_vertex", - "video_close", - "video_draw", - "video_enable_loop", - "video_get_duration", - "video_get_format", - "video_get_position", - "video_get_status", - "video_get_volume", - "video_is_looping", - "video_open", - "video_pause", - "video_resume", - "video_seek_to", - "video_set_volume", - "view_get_camera", - "view_get_hport", - "view_get_surface_id", - "view_get_visible", - "view_get_wport", - "view_get_xport", - "view_get_yport", - "view_set_camera", - "view_set_hport", - "view_set_surface_id", - "view_set_visible", - "view_set_wport", - "view_set_xport", - "view_set_yport", - "virtual_key_add", - "virtual_key_delete", - "virtual_key_hide", - "virtual_key_show", - "wallpaper_set_config", - "wallpaper_set_subscriptions", - "weak_ref_alive", - "weak_ref_any_alive", - "weak_ref_create", - "window_center", - "window_device", - "window_enable_borderless_fullscreen", - "window_get_borderless_fullscreen", - "window_get_caption", - "window_get_color", - "window_get_colour", - "window_get_cursor", - "window_get_fullscreen", - "window_get_height", - "window_get_showborder", - "window_get_visible_rects", - "window_get_width", - "window_get_x", - "window_get_y", - "window_handle", - "window_has_focus", - "window_mouse_get_delta_x", - "window_mouse_get_delta_y", - "window_mouse_get_locked", - "window_mouse_get_x", - "window_mouse_get_y", - "window_mouse_set", - "window_mouse_set_locked", - "window_set_caption", - "window_set_color", - "window_set_colour", - "window_set_cursor", - "window_set_fullscreen", - "window_set_max_height", - "window_set_max_width", - "window_set_min_height", - "window_set_min_width", - "window_set_position", - "window_set_rectangle", - "window_set_showborder", - "window_set_size", - "window_view_mouse_get_x", - "window_view_mouse_get_y", - "window_views_mouse_get_x", - "window_views_mouse_get_y", - "winphone_tile_background_color", - "winphone_tile_background_colour", - "zip_add_file", - "zip_create", - "zip_save", - "zip_unzip", - "zip_unzip_async" - ]; - const SYMBOLS = [ - "AudioEffect", - "AudioEffectType", - "AudioLFOType", - "GM_build_date", - "GM_build_type", - "GM_is_sandboxed", - "GM_project_filename", - "GM_runtime_version", - "GM_version", - "NaN", - "_GMFILE_", - "_GMFUNCTION_", - "_GMLINE_", - "alignmentH", - "alignmentV", - "all", - "animcurvetype_bezier", - "animcurvetype_catmullrom", - "animcurvetype_linear", - "asset_animationcurve", - "asset_font", - "asset_object", - "asset_path", - "asset_room", - "asset_script", - "asset_sequence", - "asset_shader", - "asset_sound", - "asset_sprite", - "asset_tiles", - "asset_timeline", - "asset_unknown", - "audio_3D", - "audio_bus_main", - "audio_falloff_exponent_distance", - "audio_falloff_exponent_distance_clamped", - "audio_falloff_exponent_distance_scaled", - "audio_falloff_inverse_distance", - "audio_falloff_inverse_distance_clamped", - "audio_falloff_inverse_distance_scaled", - "audio_falloff_linear_distance", - "audio_falloff_linear_distance_clamped", - "audio_falloff_none", - "audio_mono", - "audio_stereo", - "bboxkind_diamond", - "bboxkind_ellipse", - "bboxkind_precise", - "bboxkind_rectangular", - "bboxmode_automatic", - "bboxmode_fullimage", - "bboxmode_manual", - "bm_add", - "bm_dest_alpha", - "bm_dest_color", - "bm_dest_colour", - "bm_inv_dest_alpha", - "bm_inv_dest_color", - "bm_inv_dest_colour", - "bm_inv_src_alpha", - "bm_inv_src_color", - "bm_inv_src_colour", - "bm_max", - "bm_normal", - "bm_one", - "bm_src_alpha", - "bm_src_alpha_sat", - "bm_src_color", - "bm_src_colour", - "bm_subtract", - "bm_zero", - "browser_chrome", - "browser_edge", - "browser_firefox", - "browser_ie", - "browser_ie_mobile", - "browser_not_a_browser", - "browser_opera", - "browser_safari", - "browser_safari_mobile", - "browser_tizen", - "browser_unknown", - "browser_windows_store", - "buffer_bool", - "buffer_f16", - "buffer_f32", - "buffer_f64", - "buffer_fast", - "buffer_fixed", - "buffer_grow", - "buffer_s16", - "buffer_s32", - "buffer_s8", - "buffer_seek_end", - "buffer_seek_relative", - "buffer_seek_start", - "buffer_string", - "buffer_text", - "buffer_u16", - "buffer_u32", - "buffer_u64", - "buffer_u8", - "buffer_vbuffer", - "buffer_wrap", - "c_aqua", - "c_black", - "c_blue", - "c_dkgray", - "c_dkgrey", - "c_fuchsia", - "c_gray", - "c_green", - "c_grey", - "c_lime", - "c_ltgray", - "c_ltgrey", - "c_maroon", - "c_navy", - "c_olive", - "c_orange", - "c_purple", - "c_red", - "c_silver", - "c_teal", - "c_white", - "c_yellow", - "cache_directory", - "characterSpacing", - "cmpfunc_always", - "cmpfunc_equal", - "cmpfunc_greater", - "cmpfunc_greaterequal", - "cmpfunc_less", - "cmpfunc_lessequal", - "cmpfunc_never", - "cmpfunc_notequal", - "coreColor", - "coreColour", - "cr_appstart", - "cr_arrow", - "cr_beam", - "cr_cross", - "cr_default", - "cr_drag", - "cr_handpoint", - "cr_hourglass", - "cr_none", - "cr_size_all", - "cr_size_nesw", - "cr_size_ns", - "cr_size_nwse", - "cr_size_we", - "cr_uparrow", - "cull_clockwise", - "cull_counterclockwise", - "cull_noculling", - "device_emulator", - "device_ios_ipad", - "device_ios_ipad_retina", - "device_ios_iphone", - "device_ios_iphone5", - "device_ios_iphone6", - "device_ios_iphone6plus", - "device_ios_iphone_retina", - "device_ios_unknown", - "device_tablet", - "display_landscape", - "display_landscape_flipped", - "display_portrait", - "display_portrait_flipped", - "dll_cdecl", - "dll_stdcall", - "dropShadowEnabled", - "dropShadowEnabled", - "ds_type_grid", - "ds_type_list", - "ds_type_map", - "ds_type_priority", - "ds_type_queue", - "ds_type_stack", - "ef_cloud", - "ef_ellipse", - "ef_explosion", - "ef_firework", - "ef_flare", - "ef_rain", - "ef_ring", - "ef_smoke", - "ef_smokeup", - "ef_snow", - "ef_spark", - "ef_star", - "effectsEnabled", - "effectsEnabled", - "ev_alarm", - "ev_animation_end", - "ev_animation_event", - "ev_animation_update", - "ev_async_audio_playback", - "ev_async_audio_playback_ended", - "ev_async_audio_recording", - "ev_async_dialog", - "ev_async_push_notification", - "ev_async_save_load", - "ev_async_save_load", - "ev_async_social", - "ev_async_system_event", - "ev_async_web", - "ev_async_web_cloud", - "ev_async_web_iap", - "ev_async_web_image_load", - "ev_async_web_networking", - "ev_async_web_steam", - "ev_audio_playback", - "ev_audio_playback_ended", - "ev_audio_recording", - "ev_boundary", - "ev_boundary_view0", - "ev_boundary_view1", - "ev_boundary_view2", - "ev_boundary_view3", - "ev_boundary_view4", - "ev_boundary_view5", - "ev_boundary_view6", - "ev_boundary_view7", - "ev_broadcast_message", - "ev_cleanup", - "ev_collision", - "ev_create", - "ev_destroy", - "ev_dialog_async", - "ev_draw", - "ev_draw_begin", - "ev_draw_end", - "ev_draw_normal", - "ev_draw_post", - "ev_draw_pre", - "ev_end_of_path", - "ev_game_end", - "ev_game_start", - "ev_gesture", - "ev_gesture_double_tap", - "ev_gesture_drag_end", - "ev_gesture_drag_start", - "ev_gesture_dragging", - "ev_gesture_flick", - "ev_gesture_pinch_end", - "ev_gesture_pinch_in", - "ev_gesture_pinch_out", - "ev_gesture_pinch_start", - "ev_gesture_rotate_end", - "ev_gesture_rotate_start", - "ev_gesture_rotating", - "ev_gesture_tap", - "ev_global_gesture_double_tap", - "ev_global_gesture_drag_end", - "ev_global_gesture_drag_start", - "ev_global_gesture_dragging", - "ev_global_gesture_flick", - "ev_global_gesture_pinch_end", - "ev_global_gesture_pinch_in", - "ev_global_gesture_pinch_out", - "ev_global_gesture_pinch_start", - "ev_global_gesture_rotate_end", - "ev_global_gesture_rotate_start", - "ev_global_gesture_rotating", - "ev_global_gesture_tap", - "ev_global_left_button", - "ev_global_left_press", - "ev_global_left_release", - "ev_global_middle_button", - "ev_global_middle_press", - "ev_global_middle_release", - "ev_global_right_button", - "ev_global_right_press", - "ev_global_right_release", - "ev_gui", - "ev_gui_begin", - "ev_gui_end", - "ev_joystick1_button1", - "ev_joystick1_button2", - "ev_joystick1_button3", - "ev_joystick1_button4", - "ev_joystick1_button5", - "ev_joystick1_button6", - "ev_joystick1_button7", - "ev_joystick1_button8", - "ev_joystick1_down", - "ev_joystick1_left", - "ev_joystick1_right", - "ev_joystick1_up", - "ev_joystick2_button1", - "ev_joystick2_button2", - "ev_joystick2_button3", - "ev_joystick2_button4", - "ev_joystick2_button5", - "ev_joystick2_button6", - "ev_joystick2_button7", - "ev_joystick2_button8", - "ev_joystick2_down", - "ev_joystick2_left", - "ev_joystick2_right", - "ev_joystick2_up", - "ev_keyboard", - "ev_keypress", - "ev_keyrelease", - "ev_left_button", - "ev_left_press", - "ev_left_release", - "ev_middle_button", - "ev_middle_press", - "ev_middle_release", - "ev_mouse", - "ev_mouse_enter", - "ev_mouse_leave", - "ev_mouse_wheel_down", - "ev_mouse_wheel_up", - "ev_no_button", - "ev_no_more_health", - "ev_no_more_lives", - "ev_other", - "ev_outside", - "ev_outside_view0", - "ev_outside_view1", - "ev_outside_view2", - "ev_outside_view3", - "ev_outside_view4", - "ev_outside_view5", - "ev_outside_view6", - "ev_outside_view7", - "ev_pre_create", - "ev_push_notification", - "ev_right_button", - "ev_right_press", - "ev_right_release", - "ev_room_end", - "ev_room_start", - "ev_social", - "ev_step", - "ev_step_begin", - "ev_step_end", - "ev_step_normal", - "ev_system_event", - "ev_trigger", - "ev_user0", - "ev_user1", - "ev_user10", - "ev_user11", - "ev_user12", - "ev_user13", - "ev_user14", - "ev_user15", - "ev_user2", - "ev_user3", - "ev_user4", - "ev_user5", - "ev_user6", - "ev_user7", - "ev_user8", - "ev_user9", - "ev_web_async", - "ev_web_cloud", - "ev_web_iap", - "ev_web_image_load", - "ev_web_networking", - "ev_web_sound_load", - "ev_web_steam", - "fa_archive", - "fa_bottom", - "fa_center", - "fa_directory", - "fa_hidden", - "fa_left", - "fa_middle", - "fa_none", - "fa_readonly", - "fa_right", - "fa_sysfile", - "fa_top", - "fa_volumeid", - "false", - "frameSizeX", - "frameSizeY", - "gamespeed_fps", - "gamespeed_microseconds", - "global", - "glowColor", - "glowColour", - "glowEnabled", - "glowEnabled", - "glowEnd", - "glowStart", - "gp_axis_acceleration_x", - "gp_axis_acceleration_y", - "gp_axis_acceleration_z", - "gp_axis_angular_velocity_x", - "gp_axis_angular_velocity_y", - "gp_axis_angular_velocity_z", - "gp_axis_orientation_w", - "gp_axis_orientation_x", - "gp_axis_orientation_y", - "gp_axis_orientation_z", - "gp_axislh", - "gp_axislv", - "gp_axisrh", - "gp_axisrv", - "gp_face1", - "gp_face2", - "gp_face3", - "gp_face4", - "gp_padd", - "gp_padl", - "gp_padr", - "gp_padu", - "gp_select", - "gp_shoulderl", - "gp_shoulderlb", - "gp_shoulderr", - "gp_shoulderrb", - "gp_start", - "gp_stickl", - "gp_stickr", - "iap_available", - "iap_canceled", - "iap_ev_consume", - "iap_ev_product", - "iap_ev_purchase", - "iap_ev_restore", - "iap_ev_storeload", - "iap_failed", - "iap_purchased", - "iap_refunded", - "iap_status_available", - "iap_status_loading", - "iap_status_processing", - "iap_status_restoring", - "iap_status_unavailable", - "iap_status_uninitialised", - "iap_storeload_failed", - "iap_storeload_ok", - "iap_unavailable", - "infinity", - "kbv_autocapitalize_characters", - "kbv_autocapitalize_none", - "kbv_autocapitalize_sentences", - "kbv_autocapitalize_words", - "kbv_returnkey_continue", - "kbv_returnkey_default", - "kbv_returnkey_done", - "kbv_returnkey_emergency", - "kbv_returnkey_go", - "kbv_returnkey_google", - "kbv_returnkey_join", - "kbv_returnkey_next", - "kbv_returnkey_route", - "kbv_returnkey_search", - "kbv_returnkey_send", - "kbv_returnkey_yahoo", - "kbv_type_ascii", - "kbv_type_default", - "kbv_type_email", - "kbv_type_numbers", - "kbv_type_phone", - "kbv_type_phone_name", - "kbv_type_url", - "layerelementtype_background", - "layerelementtype_instance", - "layerelementtype_oldtilemap", - "layerelementtype_particlesystem", - "layerelementtype_sequence", - "layerelementtype_sprite", - "layerelementtype_tile", - "layerelementtype_tilemap", - "layerelementtype_undefined", - "leaderboard_type_number", - "leaderboard_type_time_mins_secs", - "lighttype_dir", - "lighttype_point", - "lineSpacing", - "m_axisx", - "m_axisx_gui", - "m_axisy", - "m_axisy_gui", - "m_scroll_down", - "m_scroll_up", - "matrix_projection", - "matrix_view", - "matrix_world", - "mb_any", - "mb_left", - "mb_middle", - "mb_none", - "mb_right", - "mb_side1", - "mb_side2", - "mip_markedonly", - "mip_off", - "mip_on", - "network_config_avoid_time_wait", - "network_config_connect_timeout", - "network_config_disable_multicast", - "network_config_disable_reliable_udp", - "network_config_enable_multicast", - "network_config_enable_reliable_udp", - "network_config_use_non_blocking_socket", - "network_config_websocket_protocol", - "network_connect_active", - "network_connect_blocking", - "network_connect_nonblocking", - "network_connect_none", - "network_connect_passive", - "network_send_binary", - "network_send_text", - "network_socket_bluetooth", - "network_socket_tcp", - "network_socket_udp", - "network_socket_ws", - "network_socket_wss", - "network_type_connect", - "network_type_data", - "network_type_disconnect", - "network_type_down", - "network_type_non_blocking_connect", - "network_type_up", - "network_type_up_failed", - "nineslice_blank", - "nineslice_bottom", - "nineslice_center", - "nineslice_centre", - "nineslice_hide", - "nineslice_left", - "nineslice_mirror", - "nineslice_repeat", - "nineslice_right", - "nineslice_stretch", - "nineslice_top", - "noone", - "of_challenge_lose", - "of_challenge_tie", - "of_challenge_win", - "os_android", - "os_gdk", - "os_gxgames", - "os_ios", - "os_linux", - "os_macosx", - "os_operagx", - "os_permission_denied", - "os_permission_denied_dont_request", - "os_permission_granted", - "os_ps3", - "os_ps4", - "os_ps5", - "os_psvita", - "os_switch", - "os_tvos", - "os_unknown", - "os_uwp", - "os_win8native", - "os_windows", - "os_winphone", - "os_xboxone", - "os_xboxseriesxs", - "other", - "outlineColor", - "outlineColour", - "outlineDist", - "outlineEnabled", - "outlineEnabled", - "paragraphSpacing", - "path_action_continue", - "path_action_restart", - "path_action_reverse", - "path_action_stop", - "phy_debug_render_aabb", - "phy_debug_render_collision_pairs", - "phy_debug_render_coms", - "phy_debug_render_core_shapes", - "phy_debug_render_joints", - "phy_debug_render_obb", - "phy_debug_render_shapes", - "phy_joint_anchor_1_x", - "phy_joint_anchor_1_y", - "phy_joint_anchor_2_x", - "phy_joint_anchor_2_y", - "phy_joint_angle", - "phy_joint_angle_limits", - "phy_joint_damping_ratio", - "phy_joint_frequency", - "phy_joint_length_1", - "phy_joint_length_2", - "phy_joint_lower_angle_limit", - "phy_joint_max_force", - "phy_joint_max_length", - "phy_joint_max_motor_force", - "phy_joint_max_motor_torque", - "phy_joint_max_torque", - "phy_joint_motor_force", - "phy_joint_motor_speed", - "phy_joint_motor_torque", - "phy_joint_reaction_force_x", - "phy_joint_reaction_force_y", - "phy_joint_reaction_torque", - "phy_joint_speed", - "phy_joint_translation", - "phy_joint_upper_angle_limit", - "phy_particle_data_flag_category", - "phy_particle_data_flag_color", - "phy_particle_data_flag_colour", - "phy_particle_data_flag_position", - "phy_particle_data_flag_typeflags", - "phy_particle_data_flag_velocity", - "phy_particle_flag_colormixing", - "phy_particle_flag_colourmixing", - "phy_particle_flag_elastic", - "phy_particle_flag_powder", - "phy_particle_flag_spring", - "phy_particle_flag_tensile", - "phy_particle_flag_viscous", - "phy_particle_flag_wall", - "phy_particle_flag_water", - "phy_particle_flag_zombie", - "phy_particle_group_flag_rigid", - "phy_particle_group_flag_solid", - "pi", - "pointer_invalid", - "pointer_null", - "pr_linelist", - "pr_linestrip", - "pr_pointlist", - "pr_trianglefan", - "pr_trianglelist", - "pr_trianglestrip", - "ps_distr_gaussian", - "ps_distr_invgaussian", - "ps_distr_linear", - "ps_mode_burst", - "ps_mode_stream", - "ps_shape_diamond", - "ps_shape_ellipse", - "ps_shape_line", - "ps_shape_rectangle", - "pt_shape_circle", - "pt_shape_cloud", - "pt_shape_disk", - "pt_shape_explosion", - "pt_shape_flare", - "pt_shape_line", - "pt_shape_pixel", - "pt_shape_ring", - "pt_shape_smoke", - "pt_shape_snow", - "pt_shape_spark", - "pt_shape_sphere", - "pt_shape_square", - "pt_shape_star", - "rollback_chat_message", - "rollback_connect_error", - "rollback_connect_info", - "rollback_connected_to_peer", - "rollback_connection_rejected", - "rollback_disconnected_from_peer", - "rollback_end_game", - "rollback_game_full", - "rollback_game_info", - "rollback_game_interrupted", - "rollback_game_resumed", - "rollback_high_latency", - "rollback_player_prefs", - "rollback_protocol_rejected", - "rollback_synchronized_with_peer", - "rollback_synchronizing_with_peer", - "self", - "seqaudiokey_loop", - "seqaudiokey_oneshot", - "seqdir_left", - "seqdir_right", - "seqinterpolation_assign", - "seqinterpolation_lerp", - "seqplay_loop", - "seqplay_oneshot", - "seqplay_pingpong", - "seqtextkey_bottom", - "seqtextkey_center", - "seqtextkey_justify", - "seqtextkey_left", - "seqtextkey_middle", - "seqtextkey_right", - "seqtextkey_top", - "seqtracktype_audio", - "seqtracktype_bool", - "seqtracktype_clipmask", - "seqtracktype_clipmask_mask", - "seqtracktype_clipmask_subject", - "seqtracktype_color", - "seqtracktype_colour", - "seqtracktype_empty", - "seqtracktype_graphic", - "seqtracktype_group", - "seqtracktype_instance", - "seqtracktype_message", - "seqtracktype_moment", - "seqtracktype_particlesystem", - "seqtracktype_real", - "seqtracktype_sequence", - "seqtracktype_spriteframes", - "seqtracktype_string", - "seqtracktype_text", - "shadowColor", - "shadowColour", - "shadowOffsetX", - "shadowOffsetY", - "shadowSoftness", - "sprite_add_ext_error_cancelled", - "sprite_add_ext_error_decompressfailed", - "sprite_add_ext_error_loadfailed", - "sprite_add_ext_error_setupfailed", - "sprite_add_ext_error_spritenotfound", - "sprite_add_ext_error_unknown", - "spritespeed_framespergameframe", - "spritespeed_framespersecond", - "surface_r16float", - "surface_r32float", - "surface_r8unorm", - "surface_rg8unorm", - "surface_rgba16float", - "surface_rgba32float", - "surface_rgba4unorm", - "surface_rgba8unorm", - "texturegroup_status_fetched", - "texturegroup_status_loaded", - "texturegroup_status_loading", - "texturegroup_status_unloaded", - "tf_anisotropic", - "tf_linear", - "tf_point", - "thickness", - "tile_flip", - "tile_index_mask", - "tile_mirror", - "tile_rotate", - "time_source_expire_after", - "time_source_expire_nearest", - "time_source_game", - "time_source_global", - "time_source_state_active", - "time_source_state_initial", - "time_source_state_paused", - "time_source_state_stopped", - "time_source_units_frames", - "time_source_units_seconds", - "timezone_local", - "timezone_utc", - "tm_countvsyncs", - "tm_sleep", - "tm_systemtiming", - "true", - "ty_real", - "ty_string", - "undefined", - "vertex_type_color", - "vertex_type_colour", - "vertex_type_float1", - "vertex_type_float2", - "vertex_type_float3", - "vertex_type_float4", - "vertex_type_ubyte4", - "vertex_usage_binormal", - "vertex_usage_blendindices", - "vertex_usage_blendweight", - "vertex_usage_color", - "vertex_usage_colour", - "vertex_usage_depth", - "vertex_usage_fog", - "vertex_usage_normal", - "vertex_usage_position", - "vertex_usage_psize", - "vertex_usage_sample", - "vertex_usage_tangent", - "vertex_usage_texcoord", - "video_format_rgba", - "video_format_yuv", - "video_status_closed", - "video_status_paused", - "video_status_playing", - "video_status_preparing", - "vk_add", - "vk_alt", - "vk_anykey", - "vk_backspace", - "vk_control", - "vk_decimal", - "vk_delete", - "vk_divide", - "vk_down", - "vk_end", - "vk_enter", - "vk_escape", - "vk_f1", - "vk_f10", - "vk_f11", - "vk_f12", - "vk_f2", - "vk_f3", - "vk_f4", - "vk_f5", - "vk_f6", - "vk_f7", - "vk_f8", - "vk_f9", - "vk_home", - "vk_insert", - "vk_lalt", - "vk_lcontrol", - "vk_left", - "vk_lshift", - "vk_multiply", - "vk_nokey", - "vk_numpad0", - "vk_numpad1", - "vk_numpad2", - "vk_numpad3", - "vk_numpad4", - "vk_numpad5", - "vk_numpad6", - "vk_numpad7", - "vk_numpad8", - "vk_numpad9", - "vk_pagedown", - "vk_pageup", - "vk_pause", - "vk_printscreen", - "vk_ralt", - "vk_rcontrol", - "vk_return", - "vk_right", - "vk_rshift", - "vk_shift", - "vk_space", - "vk_subtract", - "vk_tab", - "vk_up", - "wallpaper_config", - "wallpaper_subscription_data", - "wrap" - ]; - const LANGUAGE_VARIABLES = [ - "alarm", - "application_surface", - "argument", - "argument0", - "argument1", - "argument2", - "argument3", - "argument4", - "argument5", - "argument6", - "argument7", - "argument8", - "argument9", - "argument10", - "argument11", - "argument12", - "argument13", - "argument14", - "argument15", - "argument_count", - "async_load", - "background_color", - "background_colour", - "background_showcolor", - "background_showcolour", - "bbox_bottom", - "bbox_left", - "bbox_right", - "bbox_top", - "browser_height", - "browser_width", - "colour?ColourTrack", - "current_day", - "current_hour", - "current_minute", - "current_month", - "current_second", - "current_time", - "current_weekday", - "current_year", - "cursor_sprite", - "debug_mode", - "delta_time", - "depth", - "direction", - "display_aa", - "drawn_by_sequence", - "event_action", - "event_data", - "event_number", - "event_object", - "event_type", - "font_texture_page_size", - "fps", - "fps_real", - "friction", - "game_display_name", - "game_id", - "game_project_name", - "game_save_id", - "gravity", - "gravity_direction", - "health", - "hspeed", - "iap_data", - "id", - "image_alpha", - "image_angle", - "image_blend", - "image_index", - "image_number", - "image_speed", - "image_xscale", - "image_yscale", - "in_collision_tree", - "in_sequence", - "instance_count", - "instance_id", - "keyboard_key", - "keyboard_lastchar", - "keyboard_lastkey", - "keyboard_string", - "layer", - "lives", - "longMessage", - "managed", - "mask_index", - "message", - "mouse_button", - "mouse_lastbutton", - "mouse_x", - "mouse_y", - "object_index", - "os_browser", - "os_device", - "os_type", - "os_version", - "path_endaction", - "path_index", - "path_orientation", - "path_position", - "path_positionprevious", - "path_scale", - "path_speed", - "persistent", - "phy_active", - "phy_angular_damping", - "phy_angular_velocity", - "phy_bullet", - "phy_col_normal_x", - "phy_col_normal_y", - "phy_collision_points", - "phy_collision_x", - "phy_collision_y", - "phy_com_x", - "phy_com_y", - "phy_dynamic", - "phy_fixed_rotation", - "phy_inertia", - "phy_kinematic", - "phy_linear_damping", - "phy_linear_velocity_x", - "phy_linear_velocity_y", - "phy_mass", - "phy_position_x", - "phy_position_xprevious", - "phy_position_y", - "phy_position_yprevious", - "phy_rotation", - "phy_sleeping", - "phy_speed", - "phy_speed_x", - "phy_speed_y", - "player_avatar_sprite", - "player_avatar_url", - "player_id", - "player_local", - "player_type", - "player_user_id", - "program_directory", - "rollback_api_server", - "rollback_confirmed_frame", - "rollback_current_frame", - "rollback_event_id", - "rollback_event_param", - "rollback_game_running", - "room", - "room_first", - "room_height", - "room_last", - "room_persistent", - "room_speed", - "room_width", - "score", - "script", - "sequence_instance", - "solid", - "speed", - "sprite_height", - "sprite_index", - "sprite_width", - "sprite_xoffset", - "sprite_yoffset", - "stacktrace", - "temp_directory", - "timeline_index", - "timeline_loop", - "timeline_position", - "timeline_running", - "timeline_speed", - "view_camera", - "view_current", - "view_enabled", - "view_hport", - "view_surface_id", - "view_visible", - "view_wport", - "view_xport", - "view_yport", - "visible", - "vspeed", - "webgl_enabled", - "working_directory", - "x", - "xprevious", - "xstart", - "y", - "yprevious", - "ystart" - ]; - return { - name: 'GML', - case_insensitive: false, // language is case-insensitive - keywords: { - keyword: KEYWORDS, - built_in: BUILT_INS, - symbol: SYMBOLS, - "variable.language": LANGUAGE_VARIABLES - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE - ] - }; -} - -export { gml as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gml.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gml.js.js deleted file mode 100644 index f5e94cf..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gml.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/gml" instead of "highlight.js/lib/languages/gml.js"' - ); - } - } - emitWarning(); - import lang from './gml.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js deleted file mode 100644 index 9b03bd0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +++ /dev/null @@ -1,156 +0,0 @@ -/* -Language: Go -Author: Stephan Kountso aka StepLg -Contributors: Evgeny Stepanischev -Description: Google go language (golang). For info about language -Website: http://golang.org/ -Category: common, system -*/ - -function go(hljs) { - const LITERALS = [ - "true", - "false", - "iota", - "nil" - ]; - const BUILT_INS = [ - "append", - "cap", - "close", - "complex", - "copy", - "imag", - "len", - "make", - "new", - "panic", - "print", - "println", - "real", - "recover", - "delete" - ]; - const TYPES = [ - "bool", - "byte", - "complex64", - "complex128", - "error", - "float32", - "float64", - "int8", - "int16", - "int32", - "int64", - "string", - "uint8", - "uint16", - "uint32", - "uint64", - "int", - "uint", - "uintptr", - "rune" - ]; - const KWS = [ - "break", - "case", - "chan", - "const", - "continue", - "default", - "defer", - "else", - "fallthrough", - "for", - "func", - "go", - "goto", - "if", - "import", - "interface", - "map", - "package", - "range", - "return", - "select", - "struct", - "switch", - "type", - "var", - ]; - const KEYWORDS = { - keyword: KWS, - type: TYPES, - literal: LITERALS, - built_in: BUILT_INS - }; - return { - name: 'Go', - aliases: [ 'golang' ], - keywords: KEYWORDS, - illegal: ' -Description: a lightweight dynamic language for the JVM -Website: http://golo-lang.org/ -Category: system -*/ - -function golo(hljs) { - const KEYWORDS = [ - "println", - "readln", - "print", - "import", - "module", - "function", - "local", - "return", - "let", - "var", - "while", - "for", - "foreach", - "times", - "in", - "case", - "when", - "match", - "with", - "break", - "continue", - "augment", - "augmentation", - "each", - "find", - "filter", - "reduce", - "if", - "then", - "else", - "otherwise", - "try", - "catch", - "finally", - "raise", - "throw", - "orIfNull", - "DynamicObject|10", - "DynamicVariable", - "struct", - "Observable", - "map", - "set", - "vector", - "list", - "array" - ]; - - return { - name: 'Golo', - keywords: { - keyword: KEYWORDS, - literal: [ - "true", - "false", - "null" - ] - }, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - { - className: 'meta', - begin: '@[A-Za-z]+' - } - ] - }; -} - -export { golo as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/golo.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/golo.js.js deleted file mode 100644 index 4611012..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/golo.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/golo" instead of "highlight.js/lib/languages/golo.js"' - ); - } - } - emitWarning(); - import lang from './golo.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gradle.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gradle.js deleted file mode 100644 index a823974..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gradle.js +++ /dev/null @@ -1,190 +0,0 @@ -/* -Language: Gradle -Description: Gradle is an open-source build automation tool focused on flexibility and performance. -Website: https://gradle.org -Author: Damian Mee -Category: build-system -*/ - -function gradle(hljs) { - const KEYWORDS = [ - "task", - "project", - "allprojects", - "subprojects", - "artifacts", - "buildscript", - "configurations", - "dependencies", - "repositories", - "sourceSets", - "description", - "delete", - "from", - "into", - "include", - "exclude", - "source", - "classpath", - "destinationDir", - "includes", - "options", - "sourceCompatibility", - "targetCompatibility", - "group", - "flatDir", - "doLast", - "doFirst", - "flatten", - "todir", - "fromdir", - "ant", - "def", - "abstract", - "break", - "case", - "catch", - "continue", - "default", - "do", - "else", - "extends", - "final", - "finally", - "for", - "if", - "implements", - "instanceof", - "native", - "new", - "private", - "protected", - "public", - "return", - "static", - "switch", - "synchronized", - "throw", - "throws", - "transient", - "try", - "volatile", - "while", - "strictfp", - "package", - "import", - "false", - "null", - "super", - "this", - "true", - "antlrtask", - "checkstyle", - "codenarc", - "copy", - "boolean", - "byte", - "char", - "class", - "double", - "float", - "int", - "interface", - "long", - "short", - "void", - "compile", - "runTime", - "file", - "fileTree", - "abs", - "any", - "append", - "asList", - "asWritable", - "call", - "collect", - "compareTo", - "count", - "div", - "dump", - "each", - "eachByte", - "eachFile", - "eachLine", - "every", - "find", - "findAll", - "flatten", - "getAt", - "getErr", - "getIn", - "getOut", - "getText", - "grep", - "immutable", - "inject", - "inspect", - "intersect", - "invokeMethods", - "isCase", - "join", - "leftShift", - "minus", - "multiply", - "newInputStream", - "newOutputStream", - "newPrintWriter", - "newReader", - "newWriter", - "next", - "plus", - "pop", - "power", - "previous", - "print", - "println", - "push", - "putAt", - "read", - "readBytes", - "readLines", - "reverse", - "reverseEach", - "round", - "size", - "sort", - "splitEachLine", - "step", - "subMap", - "times", - "toInteger", - "toList", - "tokenize", - "upto", - "waitForOrKill", - "withPrintWriter", - "withReader", - "withStream", - "withWriter", - "withWriterAppend", - "write", - "writeLine" - ]; - return { - name: 'Gradle', - case_insensitive: true, - keywords: KEYWORDS, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE, - hljs.REGEXP_MODE - - ] - }; -} - -export { gradle as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gradle.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gradle.js.js deleted file mode 100644 index 021ceed..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/gradle.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/gradle" instead of "highlight.js/lib/languages/gradle.js"' - ); - } - } - emitWarning(); - import lang from './gradle.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js deleted file mode 100644 index d473495..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js +++ /dev/null @@ -1,78 +0,0 @@ -/* - Language: GraphQL - Author: John Foster (GH jf990), and others - Description: GraphQL is a query language for APIs - Category: web, common -*/ - -/** @type LanguageFn */ -function graphql(hljs) { - const regex = hljs.regex; - const GQL_NAME = /[_A-Za-z][_0-9A-Za-z]*/; - return { - name: "GraphQL", - aliases: [ "gql" ], - case_insensitive: true, - disableAutodetect: false, - keywords: { - keyword: [ - "query", - "mutation", - "subscription", - "type", - "input", - "schema", - "directive", - "interface", - "union", - "scalar", - "fragment", - "enum", - "on" - ], - literal: [ - "true", - "false", - "null" - ] - }, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE, - { - scope: "punctuation", - match: /[.]{3}/, - relevance: 0 - }, - { - scope: "punctuation", - begin: /[\!\(\)\:\=\[\]\{\|\}]{1}/, - relevance: 0 - }, - { - scope: "variable", - begin: /\$/, - end: /\W/, - excludeEnd: true, - relevance: 0 - }, - { - scope: "meta", - match: /@\w+/, - excludeEnd: true - }, - { - scope: "symbol", - begin: regex.concat(GQL_NAME, regex.lookahead(/\s*:/)), - relevance: 0 - } - ], - illegal: [ - /[;<']/, - /BEGIN/ - ] - }; -} - -export { graphql as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js.js deleted file mode 100644 index 2f8c537..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/graphql.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/graphql" instead of "highlight.js/lib/languages/graphql.js"' - ); - } - } - emitWarning(); - import lang from './graphql.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/groovy.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/groovy.js deleted file mode 100644 index df56854..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/groovy.js +++ /dev/null @@ -1,190 +0,0 @@ -/* - Language: Groovy - Author: Guillaume Laforge - Description: Groovy programming language implementation inspired from Vsevolod's Java mode - Website: https://groovy-lang.org - Category: system - */ - -function variants(variants, obj = {}) { - obj.variants = variants; - return obj; -} - -function groovy(hljs) { - const regex = hljs.regex; - const IDENT_RE = '[A-Za-z0-9_$]+'; - const COMMENT = variants([ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.COMMENT( - '/\\*\\*', - '\\*/', - { - relevance: 0, - contains: [ - { - // eat up @'s in emails to prevent them to be recognized as doctags - begin: /\w+@/, - relevance: 0 - }, - { - className: 'doctag', - begin: '@[A-Za-z]+' - } - ] - } - ) - ]); - const REGEXP = { - className: 'regexp', - begin: /~?\/[^\/\n]+\//, - contains: [ hljs.BACKSLASH_ESCAPE ] - }; - const NUMBER = variants([ - hljs.BINARY_NUMBER_MODE, - hljs.C_NUMBER_MODE - ]); - const STRING = variants([ - { - begin: /"""/, - end: /"""/ - }, - { - begin: /'''/, - end: /'''/ - }, - { - begin: "\\$/", - end: "/\\$", - relevance: 10 - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ], - { className: "string" } - ); - - const CLASS_DEFINITION = { - match: [ - /(class|interface|trait|enum|record|extends|implements)/, - /\s+/, - hljs.UNDERSCORE_IDENT_RE - ], - scope: { - 1: "keyword", - 3: "title.class", - } - }; - const TYPES = [ - "byte", - "short", - "char", - "int", - "long", - "boolean", - "float", - "double", - "void" - ]; - const KEYWORDS = [ - // groovy specific keywords - "def", - "as", - "in", - "assert", - "trait", - // common keywords with Java - "abstract", - "static", - "volatile", - "transient", - "public", - "private", - "protected", - "synchronized", - "final", - "class", - "interface", - "enum", - "if", - "else", - "for", - "while", - "switch", - "case", - "break", - "default", - "continue", - "throw", - "throws", - "try", - "catch", - "finally", - "implements", - "extends", - "new", - "import", - "package", - "return", - "instanceof", - "var" - ]; - - return { - name: 'Groovy', - keywords: { - "variable.language": 'this super', - literal: 'true false null', - type: TYPES, - keyword: KEYWORDS - }, - contains: [ - hljs.SHEBANG({ - binary: "groovy", - relevance: 10 - }), - COMMENT, - STRING, - REGEXP, - NUMBER, - CLASS_DEFINITION, - { - className: 'meta', - begin: '@[A-Za-z]+', - relevance: 0 - }, - { - // highlight map keys and named parameters as attrs - className: 'attr', - begin: IDENT_RE + '[ \t]*:', - relevance: 0 - }, - { - // catch middle element of the ternary operator - // to avoid highlight it as a label, named parameter, or map key - begin: /\?/, - end: /:/, - relevance: 0, - contains: [ - COMMENT, - STRING, - REGEXP, - NUMBER, - 'self' - ] - }, - { - // highlight labeled statements - className: 'symbol', - begin: '^[ \t]*' + regex.lookahead(IDENT_RE + ':'), - excludeBegin: true, - end: IDENT_RE + ':', - relevance: 0 - } - ], - illegal: /#|<\// - }; -} - -export { groovy as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/groovy.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/groovy.js.js deleted file mode 100644 index 38508e2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/groovy.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/groovy" instead of "highlight.js/lib/languages/groovy.js"' - ); - } - } - emitWarning(); - import lang from './groovy.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haml.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haml.js deleted file mode 100644 index f692c1c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haml.js +++ /dev/null @@ -1,113 +0,0 @@ -/* -Language: HAML -Requires: ruby.js -Author: Dan Allen -Website: http://haml.info -Category: template -*/ - -// TODO support filter tags like :javascript, support inline HTML -function haml(hljs) { - return { - name: 'HAML', - case_insensitive: true, - contains: [ - { - className: 'meta', - begin: '^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$', - relevance: 10 - }, - // FIXME these comments should be allowed to span indented lines - hljs.COMMENT( - '^\\s*(!=#|=#|-#|/).*$', - null, - { relevance: 0 } - ), - { - begin: '^\\s*(-|=|!=)(?!#)', - end: /$/, - subLanguage: 'ruby', - excludeBegin: true, - excludeEnd: true - }, - { - className: 'tag', - begin: '^\\s*%', - contains: [ - { - className: 'selector-tag', - begin: '\\w+' - }, - { - className: 'selector-id', - begin: '#[\\w-]+' - }, - { - className: 'selector-class', - begin: '\\.[\\w-]+' - }, - { - begin: /\{\s*/, - end: /\s*\}/, - contains: [ - { - begin: ':\\w+\\s*=>', - end: ',\\s+', - returnBegin: true, - endsWithParent: true, - contains: [ - { - className: 'attr', - begin: ':\\w+' - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - begin: '\\w+', - relevance: 0 - } - ] - } - ] - }, - { - begin: '\\(\\s*', - end: '\\s*\\)', - excludeEnd: true, - contains: [ - { - begin: '\\w+\\s*=', - end: '\\s+', - returnBegin: true, - endsWithParent: true, - contains: [ - { - className: 'attr', - begin: '\\w+', - relevance: 0 - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - begin: '\\w+', - relevance: 0 - } - ] - } - ] - } - ] - }, - { begin: '^\\s*[=~]\\s*' }, - { - begin: /#\{/, - end: /\}/, - subLanguage: 'ruby', - excludeBegin: true, - excludeEnd: true - } - ] - }; -} - -export { haml as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haml.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haml.js.js deleted file mode 100644 index 11bc74f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haml.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/haml" instead of "highlight.js/lib/languages/haml.js"' - ); - } - } - emitWarning(); - import lang from './haml.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/handlebars.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/handlebars.js deleted file mode 100644 index 04a31a2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/handlebars.js +++ /dev/null @@ -1,258 +0,0 @@ -/* -Language: Handlebars -Requires: xml.js -Author: Robin Ward -Description: Matcher for Handlebars as well as EmberJS additions. -Website: https://handlebarsjs.com -Category: template -*/ - -function handlebars(hljs) { - const regex = hljs.regex; - const BUILT_INS = { - $pattern: /[\w.\/]+/, - built_in: [ - 'action', - 'bindattr', - 'collection', - 'component', - 'concat', - 'debugger', - 'each', - 'each-in', - 'get', - 'hash', - 'if', - 'in', - 'input', - 'link-to', - 'loc', - 'log', - 'lookup', - 'mut', - 'outlet', - 'partial', - 'query-params', - 'render', - 'template', - 'textarea', - 'unbound', - 'unless', - 'view', - 'with', - 'yield' - ] - }; - - const LITERALS = { - $pattern: /[\w.\/]+/, - literal: [ - 'true', - 'false', - 'undefined', - 'null' - ] - }; - - // as defined in https://handlebarsjs.com/guide/expressions.html#literal-segments - // this regex matches literal segments like ' abc ' or [ abc ] as well as helpers and paths - // like a/b, ./abc/cde, and abc.bcd - - const DOUBLE_QUOTED_ID_REGEX = /""|"[^"]+"/; - const SINGLE_QUOTED_ID_REGEX = /''|'[^']+'/; - const BRACKET_QUOTED_ID_REGEX = /\[\]|\[[^\]]+\]/; - const PLAIN_ID_REGEX = /[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/; - const PATH_DELIMITER_REGEX = /(\.|\/)/; - const ANY_ID = regex.either( - DOUBLE_QUOTED_ID_REGEX, - SINGLE_QUOTED_ID_REGEX, - BRACKET_QUOTED_ID_REGEX, - PLAIN_ID_REGEX - ); - - const IDENTIFIER_REGEX = regex.concat( - regex.optional(/\.|\.\/|\//), // relative or absolute path - ANY_ID, - regex.anyNumberOfTimes(regex.concat( - PATH_DELIMITER_REGEX, - ANY_ID - )) - ); - - // identifier followed by a equal-sign (without the equal sign) - const HASH_PARAM_REGEX = regex.concat( - '(', - BRACKET_QUOTED_ID_REGEX, '|', - PLAIN_ID_REGEX, - ')(?==)' - ); - - const HELPER_NAME_OR_PATH_EXPRESSION = { begin: IDENTIFIER_REGEX }; - - const HELPER_PARAMETER = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, { keywords: LITERALS }); - - const SUB_EXPRESSION = { - begin: /\(/, - end: /\)/ - // the "contains" is added below when all necessary sub-modes are defined - }; - - const HASH = { - // fka "attribute-assignment", parameters of the form 'key=value' - className: 'attr', - begin: HASH_PARAM_REGEX, - relevance: 0, - starts: { - begin: /=/, - end: /=/, - starts: { contains: [ - hljs.NUMBER_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - HELPER_PARAMETER, - SUB_EXPRESSION - ] } - } - }; - - const BLOCK_PARAMS = { - // parameters of the form '{{#with x as | y |}}...{{/with}}' - begin: /as\s+\|/, - keywords: { keyword: 'as' }, - end: /\|/, - contains: [ - { - // define sub-mode in order to prevent highlighting of block-parameter named "as" - begin: /\w+/ } - ] - }; - - const HELPER_PARAMETERS = { - contains: [ - hljs.NUMBER_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - BLOCK_PARAMS, - HASH, - HELPER_PARAMETER, - SUB_EXPRESSION - ], - returnEnd: true - // the property "end" is defined through inheritance when the mode is used. If depends - // on the surrounding mode, but "endsWithParent" does not work here (i.e. it includes the - // end-token of the surrounding mode) - }; - - const SUB_EXPRESSION_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, { - className: 'name', - keywords: BUILT_INS, - starts: hljs.inherit(HELPER_PARAMETERS, { end: /\)/ }) - }); - - SUB_EXPRESSION.contains = [ SUB_EXPRESSION_CONTENTS ]; - - const OPENING_BLOCK_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, { - keywords: BUILT_INS, - className: 'name', - starts: hljs.inherit(HELPER_PARAMETERS, { end: /\}\}/ }) - }); - - const CLOSING_BLOCK_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, { - keywords: BUILT_INS, - className: 'name' - }); - - const BASIC_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, { - className: 'name', - keywords: BUILT_INS, - starts: hljs.inherit(HELPER_PARAMETERS, { end: /\}\}/ }) - }); - - const ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH = { - begin: /\\\{\{/, - skip: true - }; - const PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH = { - begin: /\\\\(?=\{\{)/, - skip: true - }; - - return { - name: 'Handlebars', - aliases: [ - 'hbs', - 'html.hbs', - 'html.handlebars', - 'htmlbars' - ], - case_insensitive: true, - subLanguage: 'xml', - contains: [ - ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH, - PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH, - hljs.COMMENT(/\{\{!--/, /--\}\}/), - hljs.COMMENT(/\{\{!/, /\}\}/), - { - // open raw block "{{{{raw}}}} content not evaluated {{{{/raw}}}}" - className: 'template-tag', - begin: /\{\{\{\{(?!\/)/, - end: /\}\}\}\}/, - contains: [ OPENING_BLOCK_MUSTACHE_CONTENTS ], - starts: { - end: /\{\{\{\{\//, - returnEnd: true, - subLanguage: 'xml' - } - }, - { - // close raw block - className: 'template-tag', - begin: /\{\{\{\{\//, - end: /\}\}\}\}/, - contains: [ CLOSING_BLOCK_MUSTACHE_CONTENTS ] - }, - { - // open block statement - className: 'template-tag', - begin: /\{\{#/, - end: /\}\}/, - contains: [ OPENING_BLOCK_MUSTACHE_CONTENTS ] - }, - { - className: 'template-tag', - begin: /\{\{(?=else\}\})/, - end: /\}\}/, - keywords: 'else' - }, - { - className: 'template-tag', - begin: /\{\{(?=else if)/, - end: /\}\}/, - keywords: 'else if' - }, - { - // closing block statement - className: 'template-tag', - begin: /\{\{\//, - end: /\}\}/, - contains: [ CLOSING_BLOCK_MUSTACHE_CONTENTS ] - }, - { - // template variable or helper-call that is NOT html-escaped - className: 'template-variable', - begin: /\{\{\{/, - end: /\}\}\}/, - contains: [ BASIC_MUSTACHE_CONTENTS ] - }, - { - // template variable or helper-call that is html-escaped - className: 'template-variable', - begin: /\{\{/, - end: /\}\}/, - contains: [ BASIC_MUSTACHE_CONTENTS ] - } - ] - }; -} - -export { handlebars as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/handlebars.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/handlebars.js.js deleted file mode 100644 index bbaeee4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/handlebars.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/handlebars" instead of "highlight.js/lib/languages/handlebars.js"' - ); - } - } - emitWarning(); - import lang from './handlebars.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haskell.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haskell.js deleted file mode 100644 index 490a97a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haskell.js +++ /dev/null @@ -1,217 +0,0 @@ -/* -Language: Haskell -Author: Jeremy Hull -Contributors: Zena Treep -Website: https://www.haskell.org -Category: functional -*/ - -function haskell(hljs) { - - /* See: - - https://www.haskell.org/onlinereport/lexemes.html - - https://downloads.haskell.org/ghc/9.0.1/docs/html/users_guide/exts/binary_literals.html - - https://downloads.haskell.org/ghc/9.0.1/docs/html/users_guide/exts/numeric_underscores.html - - https://downloads.haskell.org/ghc/9.0.1/docs/html/users_guide/exts/hex_float_literals.html - */ - const decimalDigits = '([0-9]_*)+'; - const hexDigits = '([0-9a-fA-F]_*)+'; - const binaryDigits = '([01]_*)+'; - const octalDigits = '([0-7]_*)+'; - const ascSymbol = '[!#$%&*+.\\/<=>?@\\\\^~-]'; - const uniSymbol = '(\\p{S}|\\p{P})'; // Symbol or Punctuation - const special = '[(),;\\[\\]`|{}]'; - const symbol = `(${ascSymbol}|(?!(${special}|[_:"']))${uniSymbol})`; - - const COMMENT = { variants: [ - // Double dash forms a valid comment only if it's not part of legal lexeme. - // See: Haskell 98 report: https://www.haskell.org/onlinereport/lexemes.html - // - // The commented code does the job, but we can't use negative lookbehind, - // due to poor support by Safari browser. - // > hljs.COMMENT(`(?|<-' } - ] - }; -} - -export { haskell as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haskell.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haskell.js.js deleted file mode 100644 index 320c13f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haskell.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/haskell" instead of "highlight.js/lib/languages/haskell.js"' - ); - } - } - emitWarning(); - import lang from './haskell.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haxe.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haxe.js deleted file mode 100644 index 9ad3a8b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haxe.js +++ /dev/null @@ -1,167 +0,0 @@ -/* -Language: Haxe -Description: Haxe is an open source toolkit based on a modern, high level, strictly typed programming language. -Author: Christopher Kaster (Based on the actionscript.js language file by Alexander Myadzel) -Contributors: Kenton Hamaluik -Website: https://haxe.org -Category: system -*/ - -function haxe(hljs) { - const IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*'; - - // C_NUMBER_RE with underscores and literal suffixes - const HAXE_NUMBER_RE = /(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/; - - const HAXE_BASIC_TYPES = 'Int Float String Bool Dynamic Void Array '; - - return { - name: 'Haxe', - aliases: [ 'hx' ], - keywords: { - keyword: 'abstract break case cast catch continue default do dynamic else enum extern ' - + 'final for function here if import in inline is macro never new override package private get set ' - + 'public return static super switch this throw trace try typedef untyped using var while ' - + HAXE_BASIC_TYPES, - built_in: - 'trace this', - literal: - 'true false null _' - }, - contains: [ - { - className: 'string', // interpolate-able strings - begin: '\'', - end: '\'', - contains: [ - hljs.BACKSLASH_ESCAPE, - { - className: 'subst', // interpolation - begin: /\$\{/, - end: /\}/ - }, - { - className: 'subst', // interpolation - begin: /\$/, - end: /\W\}/ - } - ] - }, - hljs.QUOTE_STRING_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: 'number', - begin: HAXE_NUMBER_RE, - relevance: 0 - }, - { - className: 'variable', - begin: "\\$" + IDENT_RE, - }, - { - className: 'meta', // compiler meta - begin: /@:?/, - end: /\(|$/, - excludeEnd: true, - }, - { - className: 'meta', // compiler conditionals - begin: '#', - end: '$', - keywords: { keyword: 'if else elseif end error' } - }, - { - className: 'type', // function types - begin: /:[ \t]*/, - end: /[^A-Za-z0-9_ \t\->]/, - excludeBegin: true, - excludeEnd: true, - relevance: 0 - }, - { - className: 'type', // types - begin: /:[ \t]*/, - end: /\W/, - excludeBegin: true, - excludeEnd: true - }, - { - className: 'type', // instantiation - beginKeywords: 'new', - end: /\W/, - excludeBegin: true, - excludeEnd: true - }, - { - className: 'title.class', // enums - beginKeywords: 'enum', - end: /\{/, - contains: [ hljs.TITLE_MODE ] - }, - { - className: 'title.class', // abstracts - begin: '\\babstract\\b(?=\\s*' + hljs.IDENT_RE + '\\s*\\()', - end: /[\{$]/, - contains: [ - { - className: 'type', - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true - }, - { - className: 'type', - begin: /from +/, - end: /\W/, - excludeBegin: true, - excludeEnd: true - }, - { - className: 'type', - begin: /to +/, - end: /\W/, - excludeBegin: true, - excludeEnd: true - }, - hljs.TITLE_MODE - ], - keywords: { keyword: 'abstract from to' } - }, - { - className: 'title.class', // classes - begin: /\b(class|interface) +/, - end: /[\{$]/, - excludeEnd: true, - keywords: 'class interface', - contains: [ - { - className: 'keyword', - begin: /\b(extends|implements) +/, - keywords: 'extends implements', - contains: [ - { - className: 'type', - begin: hljs.IDENT_RE, - relevance: 0 - } - ] - }, - hljs.TITLE_MODE - ] - }, - { - className: 'title.function', - beginKeywords: 'function', - end: /\(/, - excludeEnd: true, - illegal: /\S/, - contains: [ hljs.TITLE_MODE ] - } - ], - illegal: /<\// - }; -} - -export { haxe as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haxe.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haxe.js.js deleted file mode 100644 index 5310d67..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/haxe.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/haxe" instead of "highlight.js/lib/languages/haxe.js"' - ); - } - } - emitWarning(); - import lang from './haxe.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hsp.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hsp.js deleted file mode 100644 index 6f265bc..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hsp.js +++ /dev/null @@ -1,59 +0,0 @@ -/* -Language: HSP -Author: prince -Website: https://en.wikipedia.org/wiki/Hot_Soup_Processor -Category: scripting -*/ - -function hsp(hljs) { - return { - name: 'HSP', - case_insensitive: true, - keywords: { - $pattern: /[\w._]+/, - keyword: 'goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop' - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - - { - // multi-line string - className: 'string', - begin: /\{"/, - end: /"\}/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - - hljs.COMMENT(';', '$', { relevance: 0 }), - - { - // pre-processor - className: 'meta', - begin: '#', - end: '$', - keywords: { keyword: 'addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib' }, - contains: [ - hljs.inherit(hljs.QUOTE_STRING_MODE, { className: 'string' }), - hljs.NUMBER_MODE, - hljs.C_NUMBER_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - - { - // label - className: 'symbol', - begin: '^\\*(\\w+|@)' - }, - - hljs.NUMBER_MODE, - hljs.C_NUMBER_MODE - ] - }; -} - -export { hsp as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hsp.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hsp.js.js deleted file mode 100644 index bd988c0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hsp.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/hsp" instead of "highlight.js/lib/languages/hsp.js"' - ); - } - } - emitWarning(); - import lang from './hsp.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.js deleted file mode 100644 index 8577d7e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.js +++ /dev/null @@ -1,97 +0,0 @@ -/* -Language: HTTP -Description: HTTP request and response headers with automatic body highlighting -Author: Ivan Sagalaev -Category: protocols, web -Website: https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview -*/ - -function http(hljs) { - const regex = hljs.regex; - const VERSION = 'HTTP/([32]|1\\.[01])'; - const HEADER_NAME = /[A-Za-z][A-Za-z0-9-]*/; - const HEADER = { - className: 'attribute', - begin: regex.concat('^', HEADER_NAME, '(?=\\:\\s)'), - starts: { contains: [ - { - className: "punctuation", - begin: /: /, - relevance: 0, - starts: { - end: '$', - relevance: 0 - } - } - ] } - }; - const HEADERS_AND_BODY = [ - HEADER, - { - begin: '\\n\\n', - starts: { - subLanguage: [], - endsWithParent: true - } - } - ]; - - return { - name: 'HTTP', - aliases: [ 'https' ], - illegal: /\S/, - contains: [ - // response - { - begin: '^(?=' + VERSION + " \\d{3})", - end: /$/, - contains: [ - { - className: "meta", - begin: VERSION - }, - { - className: 'number', - begin: '\\b\\d{3}\\b' - } - ], - starts: { - end: /\b\B/, - illegal: /\S/, - contains: HEADERS_AND_BODY - } - }, - // request - { - begin: '(?=^[A-Z]+ (.*?) ' + VERSION + '$)', - end: /$/, - contains: [ - { - className: 'string', - begin: ' ', - end: ' ', - excludeBegin: true, - excludeEnd: true - }, - { - className: "meta", - begin: VERSION - }, - { - className: 'keyword', - begin: '[A-Z]+' - } - ], - starts: { - end: /\b\B/, - illegal: /\S/, - contains: HEADERS_AND_BODY - } - }, - // to allow headers to work even without a preamble - hljs.inherit(HEADER, { relevance: 0 }) - ] - }; -} - -export { http as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.js.js deleted file mode 100644 index bf0ce63..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/http" instead of "highlight.js/lib/languages/http.js"' - ); - } - } - emitWarning(); - import lang from './http.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hy.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hy.js deleted file mode 100644 index 417be0b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hy.js +++ /dev/null @@ -1,137 +0,0 @@ -/* -Language: Hy -Description: Hy is a wonderful dialect of Lisp that’s embedded in Python. -Author: Sergey Sobko -Website: http://docs.hylang.org/en/stable/ -Category: lisp -*/ - -function hy(hljs) { - const SYMBOLSTART = 'a-zA-Z_\\-!.?+*=<>&#\''; - const SYMBOL_RE = '[' + SYMBOLSTART + '][' + SYMBOLSTART + '0-9/;:]*'; - const keywords = { - $pattern: SYMBOL_RE, - built_in: - // keywords - '!= % %= & &= * ** **= *= *map ' - + '+ += , --build-class-- --import-- -= . / // //= ' - + '/= < << <<= <= = > >= >> >>= ' - + '@ @= ^ ^= abs accumulate all and any ap-compose ' - + 'ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ' - + 'ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast ' - + 'callable calling-module-name car case cdr chain chr coll? combinations compile ' - + 'compress cond cons cons? continue count curry cut cycle dec ' - + 'def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn ' - + 'defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir ' - + 'disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? ' - + 'end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first ' - + 'flatten float? fn fnc fnr for for* format fraction genexpr ' - + 'gensym get getattr global globals group-by hasattr hash hex id ' - + 'identity if if* if-not if-python2 import in inc input instance? ' - + 'integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even ' - + 'is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none ' - + 'is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass ' - + 'iter iterable? iterate iterator? keyword keyword? lambda last len let ' - + 'lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all ' - + 'map max merge-with method-decorator min multi-decorator multicombinations name neg? next ' - + 'none? nonlocal not not-in not? nth numeric? oct odd? open ' - + 'or ord partition permutations pos? post-route postwalk pow prewalk print ' - + 'product profile/calls profile/cpu put-route quasiquote quote raise range read read-str ' - + 'recursive-replace reduce remove repeat repeatedly repr require rest round route ' - + 'route-with-methods rwm second seq set-comp setattr setv some sorted string ' - + 'string? sum switch symbol? take take-nth take-while tee try unless ' - + 'unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms ' - + 'xi xor yield yield-from zero? zip zip-longest | |= ~' - }; - - const SIMPLE_NUMBER_RE = '[-+]?\\d+(\\.\\d+)?'; - - const SYMBOL = { - begin: SYMBOL_RE, - relevance: 0 - }; - const NUMBER = { - className: 'number', - begin: SIMPLE_NUMBER_RE, - relevance: 0 - }; - const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }); - const COMMENT = hljs.COMMENT( - ';', - '$', - { relevance: 0 } - ); - const LITERAL = { - className: 'literal', - begin: /\b([Tt]rue|[Ff]alse|nil|None)\b/ - }; - const COLLECTION = { - begin: '[\\[\\{]', - end: '[\\]\\}]', - relevance: 0 - }; - const HINT = { - className: 'comment', - begin: '\\^' + SYMBOL_RE - }; - const HINT_COL = hljs.COMMENT('\\^\\{', '\\}'); - const KEY = { - className: 'symbol', - begin: '[:]{1,2}' + SYMBOL_RE - }; - const LIST = { - begin: '\\(', - end: '\\)' - }; - const BODY = { - endsWithParent: true, - relevance: 0 - }; - const NAME = { - className: 'name', - relevance: 0, - keywords: keywords, - begin: SYMBOL_RE, - starts: BODY - }; - const DEFAULT_CONTAINS = [ - LIST, - STRING, - HINT, - HINT_COL, - COMMENT, - KEY, - COLLECTION, - NUMBER, - LITERAL, - SYMBOL - ]; - - LIST.contains = [ - hljs.COMMENT('comment', ''), - NAME, - BODY - ]; - BODY.contains = DEFAULT_CONTAINS; - COLLECTION.contains = DEFAULT_CONTAINS; - - return { - name: 'Hy', - aliases: [ 'hylang' ], - illegal: /\S/, - contains: [ - hljs.SHEBANG(), - LIST, - STRING, - HINT, - HINT_COL, - COMMENT, - KEY, - COLLECTION, - NUMBER, - LITERAL - ] - }; -} - -export { hy as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hy.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hy.js.js deleted file mode 100644 index c1d9338..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/hy.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/hy" instead of "highlight.js/lib/languages/hy.js"' - ); - } - } - emitWarning(); - import lang from './hy.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/inform7.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/inform7.js deleted file mode 100644 index fee8fe4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/inform7.js +++ /dev/null @@ -1,70 +0,0 @@ -/* -Language: Inform 7 -Author: Bruno Dias -Description: Language definition for Inform 7, a DSL for writing parser interactive fiction. -Website: http://inform7.com -Category: gaming -*/ - -function inform7(hljs) { - const START_BRACKET = '\\['; - const END_BRACKET = '\\]'; - return { - name: 'Inform 7', - aliases: [ 'i7' ], - case_insensitive: true, - keywords: { - // Some keywords more or less unique to I7, for relevance. - keyword: - // kind: - 'thing room person man woman animal container ' - + 'supporter backdrop door ' - // characteristic: - + 'scenery open closed locked inside gender ' - // verb: - + 'is are say understand ' - // misc keyword: - + 'kind of rule' }, - contains: [ - { - className: 'string', - begin: '"', - end: '"', - relevance: 0, - contains: [ - { - className: 'subst', - begin: START_BRACKET, - end: END_BRACKET - } - ] - }, - { - className: 'section', - begin: /^(Volume|Book|Part|Chapter|Section|Table)\b/, - end: '$' - }, - { - // Rule definition - // This is here for relevance. - begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/, - end: ':', - contains: [ - { - // Rule name - begin: '\\(This', - end: '\\)' - } - ] - }, - { - className: 'comment', - begin: START_BRACKET, - end: END_BRACKET, - contains: [ 'self' ] - } - ] - }; -} - -export { inform7 as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/inform7.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/inform7.js.js deleted file mode 100644 index ae60d23..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/inform7.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/inform7" instead of "highlight.js/lib/languages/inform7.js"' - ); - } - } - emitWarning(); - import lang from './inform7.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js deleted file mode 100644 index a43977f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js +++ /dev/null @@ -1,121 +0,0 @@ -/* -Language: TOML, also INI -Description: TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics. -Contributors: Guillaume Gomez -Category: common, config -Website: https://github.com/toml-lang/toml -*/ - -function ini(hljs) { - const regex = hljs.regex; - const NUMBERS = { - className: 'number', - relevance: 0, - variants: [ - { begin: /([+-]+)?[\d]+_[\d_]+/ }, - { begin: hljs.NUMBER_RE } - ] - }; - const COMMENTS = hljs.COMMENT(); - COMMENTS.variants = [ - { - begin: /;/, - end: /$/ - }, - { - begin: /#/, - end: /$/ - } - ]; - const VARIABLES = { - className: 'variable', - variants: [ - { begin: /\$[\w\d"][\w\d_]*/ }, - { begin: /\$\{(.*?)\}/ } - ] - }; - const LITERALS = { - className: 'literal', - begin: /\bon|off|true|false|yes|no\b/ - }; - const STRINGS = { - className: "string", - contains: [ hljs.BACKSLASH_ESCAPE ], - variants: [ - { - begin: "'''", - end: "'''", - relevance: 10 - }, - { - begin: '"""', - end: '"""', - relevance: 10 - }, - { - begin: '"', - end: '"' - }, - { - begin: "'", - end: "'" - } - ] - }; - const ARRAY = { - begin: /\[/, - end: /\]/, - contains: [ - COMMENTS, - LITERALS, - VARIABLES, - STRINGS, - NUMBERS, - 'self' - ], - relevance: 0 - }; - - const BARE_KEY = /[A-Za-z0-9_-]+/; - const QUOTED_KEY_DOUBLE_QUOTE = /"(\\"|[^"])*"/; - const QUOTED_KEY_SINGLE_QUOTE = /'[^']*'/; - const ANY_KEY = regex.either( - BARE_KEY, QUOTED_KEY_DOUBLE_QUOTE, QUOTED_KEY_SINGLE_QUOTE - ); - const DOTTED_KEY = regex.concat( - ANY_KEY, '(\\s*\\.\\s*', ANY_KEY, ')*', - regex.lookahead(/\s*=\s*[^#\s]/) - ); - - return { - name: 'TOML, also INI', - aliases: [ 'toml' ], - case_insensitive: true, - illegal: /\S/, - contains: [ - COMMENTS, - { - className: 'section', - begin: /\[+/, - end: /\]+/ - }, - { - begin: DOTTED_KEY, - className: 'attr', - starts: { - end: /$/, - contains: [ - COMMENTS, - ARRAY, - LITERALS, - VARIABLES, - STRINGS, - NUMBERS - ] - } - } - ] - }; -} - -export { ini as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js.js deleted file mode 100644 index 05b9994..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ini.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ini" instead of "highlight.js/lib/languages/ini.js"' - ); - } - } - emitWarning(); - import lang from './ini.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/irpf90.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/irpf90.js deleted file mode 100644 index 4fc8950..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/irpf90.js +++ /dev/null @@ -1,107 +0,0 @@ -/* -Language: IRPF90 -Author: Anthony Scemama -Description: IRPF90 is an open-source Fortran code generator -Website: http://irpf90.ups-tlse.fr -Category: scientific -*/ - -/** @type LanguageFn */ -function irpf90(hljs) { - const regex = hljs.regex; - const PARAMS = { - className: 'params', - begin: '\\(', - end: '\\)' - }; - - // regex in both fortran and irpf90 should match - const OPTIONAL_NUMBER_SUFFIX = /(_[a-z_\d]+)?/; - const OPTIONAL_NUMBER_EXP = /([de][+-]?\d+)?/; - const NUMBER = { - className: 'number', - variants: [ - { begin: regex.concat(/\b\d+/, /\.(\d*)/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX) }, - { begin: regex.concat(/\b\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX) }, - { begin: regex.concat(/\.\d+/, OPTIONAL_NUMBER_EXP, OPTIONAL_NUMBER_SUFFIX) } - ], - relevance: 0 - }; - - const F_KEYWORDS = { - literal: '.False. .True.', - keyword: 'kind do while private call intrinsic where elsewhere ' - + 'type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then ' - + 'public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ' - + 'goto save else use module select case ' - + 'access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit ' - + 'continue format pause cycle exit ' - + 'c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg ' - + 'synchronous nopass non_overridable pass protected volatile abstract extends import ' - + 'non_intrinsic value deferred generic final enumerator class associate bind enum ' - + 'c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t ' - + 'c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double ' - + 'c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr ' - + 'c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer ' - + 'c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor ' - + 'numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ' - + 'ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive ' - + 'pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure ' - + 'integer real character complex logical dimension allocatable|10 parameter ' - + 'external implicit|10 none double precision assign intent optional pointer ' - + 'target in out common equivalence data ' - // IRPF90 special keywords - + 'begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch ' - + 'soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read', - built_in: 'alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint ' - + 'dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl ' - + 'algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama ' - + 'iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod ' - + 'qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log ' - + 'log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate ' - + 'adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product ' - + 'eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul ' - + 'maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product ' - + 'radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind ' - + 'set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer ' - + 'dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ' - + 'ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode ' - + 'is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of ' - + 'acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 ' - + 'atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits ' - + 'bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr ' - + 'num_images parity popcnt poppar shifta shiftl shiftr this_image ' - // IRPF90 special built_ins - + 'IRP_ALIGN irp_here' - }; - return { - name: 'IRPF90', - case_insensitive: true, - keywords: F_KEYWORDS, - illegal: /\/\*/, - contains: [ - hljs.inherit(hljs.APOS_STRING_MODE, { - className: 'string', - relevance: 0 - }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { - className: 'string', - relevance: 0 - }), - { - className: 'function', - beginKeywords: 'subroutine function program', - illegal: '[${=\\n]', - contains: [ - hljs.UNDERSCORE_TITLE_MODE, - PARAMS - ] - }, - hljs.COMMENT('!', '$', { relevance: 0 }), - hljs.COMMENT('begin_doc', 'end_doc', { relevance: 10 }), - NUMBER - ] - }; -} - -export { irpf90 as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/irpf90.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/irpf90.js.js deleted file mode 100644 index f2cbec9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/irpf90.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/irpf90" instead of "highlight.js/lib/languages/irpf90.js"' - ); - } - } - emitWarning(); - import lang from './irpf90.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/isbl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/isbl.js deleted file mode 100644 index 6f2049f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/isbl.js +++ /dev/null @@ -1,3205 +0,0 @@ -/* -Language: ISBL -Author: Dmitriy Tarasov -Description: built-in language DIRECTUM -Category: enterprise -*/ - -function isbl(hljs) { - // Определение идентификаторов - const UNDERSCORE_IDENT_RE = "[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*"; - - // Определение имен функций - const FUNCTION_NAME_IDENT_RE = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*"; - - // keyword : ключевые слова - const KEYWORD = - "and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока " - + "except exitfor finally foreach все if если in в not не or или try while пока "; - - // SYSRES Constants - const sysres_constants = - "SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT " - + "SYSRES_CONST_ACCES_RIGHT_TYPE_FULL " - + "SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW " - + "SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_NO_ACCESS_VIEW " - + "SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_VIEW " - + "SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE " - + "SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE " - + "SYSRES_CONST_ACCESS_TYPE_CHANGE " - + "SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE " - + "SYSRES_CONST_ACCESS_TYPE_EXISTS " - + "SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE " - + "SYSRES_CONST_ACCESS_TYPE_FULL " - + "SYSRES_CONST_ACCESS_TYPE_FULL_CODE " - + "SYSRES_CONST_ACCESS_TYPE_VIEW " - + "SYSRES_CONST_ACCESS_TYPE_VIEW_CODE " - + "SYSRES_CONST_ACTION_TYPE_ABORT " - + "SYSRES_CONST_ACTION_TYPE_ACCEPT " - + "SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS " - + "SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT " - + "SYSRES_CONST_ACTION_TYPE_CHANGE_CARD " - + "SYSRES_CONST_ACTION_TYPE_CHANGE_KIND " - + "SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE " - + "SYSRES_CONST_ACTION_TYPE_CONTINUE " - + "SYSRES_CONST_ACTION_TYPE_COPY " - + "SYSRES_CONST_ACTION_TYPE_CREATE " - + "SYSRES_CONST_ACTION_TYPE_CREATE_VERSION " - + "SYSRES_CONST_ACTION_TYPE_DELETE " - + "SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT " - + "SYSRES_CONST_ACTION_TYPE_DELETE_VERSION " - + "SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS " - + "SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS " - + "SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE " - + "SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD " - + "SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD " - + "SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK " - + "SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK " - + "SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK " - + "SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK " - + "SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE " - + "SYSRES_CONST_ACTION_TYPE_LOCK " - + "SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER " - + "SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY " - + "SYSRES_CONST_ACTION_TYPE_MARK_AS_READED " - + "SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED " - + "SYSRES_CONST_ACTION_TYPE_MODIFY " - + "SYSRES_CONST_ACTION_TYPE_MODIFY_CARD " - + "SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE " - + "SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION " - + "SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE " - + "SYSRES_CONST_ACTION_TYPE_PERFORM " - + "SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY " - + "SYSRES_CONST_ACTION_TYPE_RESTART " - + "SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE " - + "SYSRES_CONST_ACTION_TYPE_REVISION " - + "SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL " - + "SYSRES_CONST_ACTION_TYPE_SIGN " - + "SYSRES_CONST_ACTION_TYPE_START " - + "SYSRES_CONST_ACTION_TYPE_UNLOCK " - + "SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER " - + "SYSRES_CONST_ACTION_TYPE_VERSION_STATE " - + "SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY " - + "SYSRES_CONST_ACTION_TYPE_VIEW " - + "SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY " - + "SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY " - + "SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY " - + "SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE " - + "SYSRES_CONST_ADD_REFERENCE_MODE_NAME " - + "SYSRES_CONST_ADDITION_REQUISITE_CODE " - + "SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE " - + "SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME " - + "SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME " - + "SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME " - + "SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE " - + "SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION " - + "SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS " - + "SYSRES_CONST_ALL_USERS_GROUP " - + "SYSRES_CONST_ALL_USERS_GROUP_NAME " - + "SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME " - + "SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE " - + "SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME " - + "SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_APPROVING_SIGNATURE_NAME " - + "SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE " - + "SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE " - + "SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE " - + "SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN " - + "SYSRES_CONST_ATTACH_TYPE_DOC " - + "SYSRES_CONST_ATTACH_TYPE_EDOC " - + "SYSRES_CONST_ATTACH_TYPE_FOLDER " - + "SYSRES_CONST_ATTACH_TYPE_JOB " - + "SYSRES_CONST_ATTACH_TYPE_REFERENCE " - + "SYSRES_CONST_ATTACH_TYPE_TASK " - + "SYSRES_CONST_AUTH_ENCODED_PASSWORD " - + "SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE " - + "SYSRES_CONST_AUTH_NOVELL " - + "SYSRES_CONST_AUTH_PASSWORD " - + "SYSRES_CONST_AUTH_PASSWORD_CODE " - + "SYSRES_CONST_AUTH_WINDOWS " - + "SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME " - + "SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE " - + "SYSRES_CONST_AUTO_ENUM_METHOD_FLAG " - + "SYSRES_CONST_AUTO_NUMERATION_CODE " - + "SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG " - + "SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE " - + "SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE " - + "SYSRES_CONST_AUTOTEXT_USAGE_ALL " - + "SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE " - + "SYSRES_CONST_AUTOTEXT_USAGE_SIGN " - + "SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE " - + "SYSRES_CONST_AUTOTEXT_USAGE_WORK " - + "SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE " - + "SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE " - + "SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE " - + "SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE " - + "SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE " - + "SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR " - + "SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR " - + "SYSRES_CONST_BTN_PART " - + "SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE " - + "SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE " - + "SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE " - + "SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT " - + "SYSRES_CONST_CARD_PART " - + "SYSRES_CONST_CARD_REFERENCE_MODE_NAME " - + "SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE " - + "SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE " - + "SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE " - + "SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE " - + "SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE " - + "SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE " - + "SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE " - + "SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE " - + "SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE " - + "SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT " - + "SYSRES_CONST_CODE_COMPONENT_TYPE_URL " - + "SYSRES_CONST_CODE_REQUISITE_ACCESS " - + "SYSRES_CONST_CODE_REQUISITE_CODE " - + "SYSRES_CONST_CODE_REQUISITE_COMPONENT " - + "SYSRES_CONST_CODE_REQUISITE_DESCRIPTION " - + "SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT " - + "SYSRES_CONST_CODE_REQUISITE_RECORD " - + "SYSRES_CONST_COMMENT_REQ_CODE " - + "SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE " - + "SYSRES_CONST_COMP_CODE_GRD " - + "SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS " - + "SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS " - + "SYSRES_CONST_COMPONENT_TYPE_DOCS " - + "SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS " - + "SYSRES_CONST_COMPONENT_TYPE_EDOCS " - + "SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE " - + "SYSRES_CONST_COMPONENT_TYPE_OTHER " - + "SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES " - + "SYSRES_CONST_COMPONENT_TYPE_REFERENCES " - + "SYSRES_CONST_COMPONENT_TYPE_REPORTS " - + "SYSRES_CONST_COMPONENT_TYPE_SCRIPTS " - + "SYSRES_CONST_COMPONENT_TYPE_URL " - + "SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE " - + "SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION " - + "SYSRES_CONST_CONST_FIRM_STATUS_COMMON " - + "SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL " - + "SYSRES_CONST_CONST_NEGATIVE_VALUE " - + "SYSRES_CONST_CONST_POSITIVE_VALUE " - + "SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE " - + "SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE " - + "SYSRES_CONST_CONTENTS_REQUISITE_CODE " - + "SYSRES_CONST_DATA_TYPE_BOOLEAN " - + "SYSRES_CONST_DATA_TYPE_DATE " - + "SYSRES_CONST_DATA_TYPE_FLOAT " - + "SYSRES_CONST_DATA_TYPE_INTEGER " - + "SYSRES_CONST_DATA_TYPE_PICK " - + "SYSRES_CONST_DATA_TYPE_REFERENCE " - + "SYSRES_CONST_DATA_TYPE_STRING " - + "SYSRES_CONST_DATA_TYPE_TEXT " - + "SYSRES_CONST_DATA_TYPE_VARIANT " - + "SYSRES_CONST_DATE_CLOSE_REQ_CODE " - + "SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR " - + "SYSRES_CONST_DATE_OPEN_REQ_CODE " - + "SYSRES_CONST_DATE_REQUISITE " - + "SYSRES_CONST_DATE_REQUISITE_CODE " - + "SYSRES_CONST_DATE_REQUISITE_NAME " - + "SYSRES_CONST_DATE_REQUISITE_TYPE " - + "SYSRES_CONST_DATE_TYPE_CHAR " - + "SYSRES_CONST_DATETIME_FORMAT_VALUE " - + "SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE " - + "SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE " - + "SYSRES_CONST_DESCRIPTION_REQUISITE_CODE " - + "SYSRES_CONST_DET1_PART " - + "SYSRES_CONST_DET2_PART " - + "SYSRES_CONST_DET3_PART " - + "SYSRES_CONST_DET4_PART " - + "SYSRES_CONST_DET5_PART " - + "SYSRES_CONST_DET6_PART " - + "SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE " - + "SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE " - + "SYSRES_CONST_DETAIL_REQ_CODE " - + "SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE " - + "SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME " - + "SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE " - + "SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME " - + "SYSRES_CONST_DOCUMENT_STORAGES_CODE " - + "SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME " - + "SYSRES_CONST_DOUBLE_REQUISITE_CODE " - + "SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE " - + "SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE " - + "SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE " - + "SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE " - + "SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE " - + "SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE " - + "SYSRES_CONST_EDITORS_REFERENCE_CODE " - + "SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE " - + "SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE " - + "SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE " - + "SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE " - + "SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE " - + "SYSRES_CONST_EDOC_DATE_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_KIND_REFERENCE_CODE " - + "SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE " - + "SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE " - + "SYSRES_CONST_EDOC_NONE_ENCODE_CODE " - + "SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE " - + "SYSRES_CONST_EDOC_READONLY_ACCESS_CODE " - + "SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE " - + "SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE " - + "SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE " - + "SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE " - + "SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE " - + "SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE " - + "SYSRES_CONST_EDOC_WRITE_ACCES_CODE " - + "SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE " - + "SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE " - + "SYSRES_CONST_END_DATE_REQUISITE_CODE " - + "SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE " - + "SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE " - + "SYSRES_CONST_EXIST_CONST " - + "SYSRES_CONST_EXIST_VALUE " - + "SYSRES_CONST_EXPORT_LOCK_TYPE_ASK " - + "SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK " - + "SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK " - + "SYSRES_CONST_EXPORT_VERSION_TYPE_ASK " - + "SYSRES_CONST_EXPORT_VERSION_TYPE_LAST " - + "SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE " - + "SYSRES_CONST_EXTENSION_REQUISITE_CODE " - + "SYSRES_CONST_FILTER_NAME_REQUISITE_CODE " - + "SYSRES_CONST_FILTER_REQUISITE_CODE " - + "SYSRES_CONST_FILTER_TYPE_COMMON_CODE " - + "SYSRES_CONST_FILTER_TYPE_COMMON_NAME " - + "SYSRES_CONST_FILTER_TYPE_USER_CODE " - + "SYSRES_CONST_FILTER_TYPE_USER_NAME " - + "SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME " - + "SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR " - + "SYSRES_CONST_FLOAT_REQUISITE_TYPE " - + "SYSRES_CONST_FOLDER_AUTHOR_VALUE " - + "SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS " - + "SYSRES_CONST_FOLDER_KIND_COMPONENTS " - + "SYSRES_CONST_FOLDER_KIND_EDOCS " - + "SYSRES_CONST_FOLDER_KIND_JOBS " - + "SYSRES_CONST_FOLDER_KIND_TASKS " - + "SYSRES_CONST_FOLDER_TYPE_COMMON " - + "SYSRES_CONST_FOLDER_TYPE_COMPONENT " - + "SYSRES_CONST_FOLDER_TYPE_FAVORITES " - + "SYSRES_CONST_FOLDER_TYPE_INBOX " - + "SYSRES_CONST_FOLDER_TYPE_OUTBOX " - + "SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH " - + "SYSRES_CONST_FOLDER_TYPE_SEARCH " - + "SYSRES_CONST_FOLDER_TYPE_SHORTCUTS " - + "SYSRES_CONST_FOLDER_TYPE_USER " - + "SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG " - + "SYSRES_CONST_FULL_SUBSTITUTE_TYPE " - + "SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE " - + "SYSRES_CONST_FUNCTION_CANCEL_RESULT " - + "SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM " - + "SYSRES_CONST_FUNCTION_CATEGORY_USER " - + "SYSRES_CONST_FUNCTION_FAILURE_RESULT " - + "SYSRES_CONST_FUNCTION_SAVE_RESULT " - + "SYSRES_CONST_GENERATED_REQUISITE " - + "SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR " - + "SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE " - + "SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE " - + "SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME " - + "SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE " - + "SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME " - + "SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE " - + "SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE " - + "SYSRES_CONST_GROUP_NAME_REQUISITE_CODE " - + "SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE " - + "SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE " - + "SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE " - + "SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE " - + "SYSRES_CONST_GROUP_USER_REQUISITE_CODE " - + "SYSRES_CONST_GROUPS_REFERENCE_CODE " - + "SYSRES_CONST_GROUPS_REQUISITE_CODE " - + "SYSRES_CONST_HIDDEN_MODE_NAME " - + "SYSRES_CONST_HIGH_LVL_REQUISITE_CODE " - + "SYSRES_CONST_HISTORY_ACTION_CREATE_CODE " - + "SYSRES_CONST_HISTORY_ACTION_DELETE_CODE " - + "SYSRES_CONST_HISTORY_ACTION_EDIT_CODE " - + "SYSRES_CONST_HOUR_CHAR " - + "SYSRES_CONST_ID_REQUISITE_CODE " - + "SYSRES_CONST_IDSPS_REQUISITE_CODE " - + "SYSRES_CONST_IMAGE_MODE_COLOR " - + "SYSRES_CONST_IMAGE_MODE_GREYSCALE " - + "SYSRES_CONST_IMAGE_MODE_MONOCHROME " - + "SYSRES_CONST_IMPORTANCE_HIGH " - + "SYSRES_CONST_IMPORTANCE_LOW " - + "SYSRES_CONST_IMPORTANCE_NORMAL " - + "SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE " - + "SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE " - + "SYSRES_CONST_INT_REQUISITE " - + "SYSRES_CONST_INT_REQUISITE_TYPE " - + "SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR " - + "SYSRES_CONST_INTEGER_TYPE_CHAR " - + "SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE " - + "SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE " - + "SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE " - + "SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE " - + "SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE " - + "SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE " - + "SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE " - + "SYSRES_CONST_JOB_BLOCK_DESCRIPTION " - + "SYSRES_CONST_JOB_KIND_CONTROL_JOB " - + "SYSRES_CONST_JOB_KIND_JOB " - + "SYSRES_CONST_JOB_KIND_NOTICE " - + "SYSRES_CONST_JOB_STATE_ABORTED " - + "SYSRES_CONST_JOB_STATE_COMPLETE " - + "SYSRES_CONST_JOB_STATE_WORKING " - + "SYSRES_CONST_KIND_REQUISITE_CODE " - + "SYSRES_CONST_KIND_REQUISITE_NAME " - + "SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE " - + "SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE " - + "SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE " - + "SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE " - + "SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE " - + "SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE " - + "SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE " - + "SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE " - + "SYSRES_CONST_KOD_INPUT_TYPE " - + "SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE " - + "SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE " - + "SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR " - + "SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT " - + "SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT " - + "SYSRES_CONST_LINK_OBJECT_KIND_EDOC " - + "SYSRES_CONST_LINK_OBJECT_KIND_FOLDER " - + "SYSRES_CONST_LINK_OBJECT_KIND_JOB " - + "SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE " - + "SYSRES_CONST_LINK_OBJECT_KIND_TASK " - + "SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_LIST_REFERENCE_MODE_NAME " - + "SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE " - + "SYSRES_CONST_MAIN_VIEW_CODE " - + "SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG " - + "SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE " - + "SYSRES_CONST_MAXIMIZED_MODE_NAME " - + "SYSRES_CONST_ME_VALUE " - + "SYSRES_CONST_MESSAGE_ATTENTION_CAPTION " - + "SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION " - + "SYSRES_CONST_MESSAGE_ERROR_CAPTION " - + "SYSRES_CONST_MESSAGE_INFORMATION_CAPTION " - + "SYSRES_CONST_MINIMIZED_MODE_NAME " - + "SYSRES_CONST_MINUTE_CHAR " - + "SYSRES_CONST_MODULE_REQUISITE_CODE " - + "SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION " - + "SYSRES_CONST_MONTH_FORMAT_VALUE " - + "SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE " - + "SYSRES_CONST_NAME_REQUISITE_CODE " - + "SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE " - + "SYSRES_CONST_NAMEAN_INPUT_TYPE " - + "SYSRES_CONST_NEGATIVE_PICK_VALUE " - + "SYSRES_CONST_NEGATIVE_VALUE " - + "SYSRES_CONST_NO " - + "SYSRES_CONST_NO_PICK_VALUE " - + "SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE " - + "SYSRES_CONST_NO_VALUE " - + "SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE " - + "SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE " - + "SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE " - + "SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE " - + "SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE " - + "SYSRES_CONST_NORMAL_MODE_NAME " - + "SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE " - + "SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME " - + "SYSRES_CONST_NOTE_REQUISITE_CODE " - + "SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION " - + "SYSRES_CONST_NUM_REQUISITE " - + "SYSRES_CONST_NUM_STR_REQUISITE_CODE " - + "SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG " - + "SYSRES_CONST_NUMERATION_AUTO_STRONG " - + "SYSRES_CONST_NUMERATION_FROM_DICTONARY " - + "SYSRES_CONST_NUMERATION_MANUAL " - + "SYSRES_CONST_NUMERIC_TYPE_CHAR " - + "SYSRES_CONST_NUMREQ_REQUISITE_CODE " - + "SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE " - + "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE " - + "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE " - + "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE " - + "SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE " - + "SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX " - + "SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR " - + "SYSRES_CONST_ORIGINALREF_REQUISITE_CODE " - + "SYSRES_CONST_OURFIRM_REF_CODE " - + "SYSRES_CONST_OURFIRM_REQUISITE_CODE " - + "SYSRES_CONST_OURFIRM_VAR " - + "SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE " - + "SYSRES_CONST_PICK_NEGATIVE_RESULT " - + "SYSRES_CONST_PICK_POSITIVE_RESULT " - + "SYSRES_CONST_PICK_REQUISITE " - + "SYSRES_CONST_PICK_REQUISITE_TYPE " - + "SYSRES_CONST_PICK_TYPE_CHAR " - + "SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE " - + "SYSRES_CONST_PLATFORM_VERSION_COMMENT " - + "SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE " - + "SYSRES_CONST_POSITIVE_PICK_VALUE " - + "SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE " - + "SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE " - + "SYSRES_CONST_PRIORITY_REQUISITE_CODE " - + "SYSRES_CONST_QUALIFIED_TASK_TYPE " - + "SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE " - + "SYSRES_CONST_RECSTAT_REQUISITE_CODE " - + "SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR " - + "SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_REF_REQUISITE " - + "SYSRES_CONST_REF_REQUISITE_TYPE " - + "SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE " - + "SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE " - + "SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE " - + "SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE " - + "SYSRES_CONST_REFERENCE_TYPE_CHAR " - + "SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME " - + "SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE " - + "SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE " - + "SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING " - + "SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN " - + "SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY " - + "SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE " - + "SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL " - + "SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE " - + "SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE " - + "SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE " - + "SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE " - + "SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE " - + "SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE " - + "SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE " - + "SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE " - + "SYSRES_CONST_REQ_MODE_AVAILABLE_CODE " - + "SYSRES_CONST_REQ_MODE_EDIT_CODE " - + "SYSRES_CONST_REQ_MODE_HIDDEN_CODE " - + "SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE " - + "SYSRES_CONST_REQ_MODE_VIEW_CODE " - + "SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE " - + "SYSRES_CONST_REQ_SECTION_VALUE " - + "SYSRES_CONST_REQ_TYPE_VALUE " - + "SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT " - + "SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL " - + "SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME " - + "SYSRES_CONST_REQUISITE_FORMAT_LEFT " - + "SYSRES_CONST_REQUISITE_FORMAT_RIGHT " - + "SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT " - + "SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE " - + "SYSRES_CONST_REQUISITE_SECTION_ACTIONS " - + "SYSRES_CONST_REQUISITE_SECTION_BUTTON " - + "SYSRES_CONST_REQUISITE_SECTION_BUTTONS " - + "SYSRES_CONST_REQUISITE_SECTION_CARD " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE10 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE11 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE12 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE13 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE14 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE15 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE16 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE17 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE18 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE19 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE2 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE20 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE21 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE22 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE23 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE24 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE3 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE4 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE5 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE6 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE7 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE8 " - + "SYSRES_CONST_REQUISITE_SECTION_TABLE9 " - + "SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE " - + "SYSRES_CONST_RIGHT_ALIGNMENT_CODE " - + "SYSRES_CONST_ROLES_REFERENCE_CODE " - + "SYSRES_CONST_ROUTE_STEP_AFTER_RUS " - + "SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS " - + "SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS " - + "SYSRES_CONST_ROUTE_TYPE_COMPLEX " - + "SYSRES_CONST_ROUTE_TYPE_PARALLEL " - + "SYSRES_CONST_ROUTE_TYPE_SERIAL " - + "SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE " - + "SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE " - + "SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE " - + "SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION " - + "SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE " - + "SYSRES_CONST_SEARCHES_COMPONENT_CONTENT " - + "SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME " - + "SYSRES_CONST_SEARCHES_EDOC_CONTENT " - + "SYSRES_CONST_SEARCHES_FOLDER_CONTENT " - + "SYSRES_CONST_SEARCHES_JOB_CONTENT " - + "SYSRES_CONST_SEARCHES_REFERENCE_CODE " - + "SYSRES_CONST_SEARCHES_TASK_CONTENT " - + "SYSRES_CONST_SECOND_CHAR " - + "SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE " - + "SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE " - + "SYSRES_CONST_SECTION_REQUISITE_CODE " - + "SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE " - + "SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE " - + "SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE " - + "SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE " - + "SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE " - + "SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE " - + "SYSRES_CONST_SELECT_REFERENCE_MODE_NAME " - + "SYSRES_CONST_SELECT_TYPE_SELECTABLE " - + "SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD " - + "SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD " - + "SYSRES_CONST_SELECT_TYPE_UNSLECTABLE " - + "SYSRES_CONST_SERVER_TYPE_MAIN " - + "SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE " - + "SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE " - + "SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE " - + "SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE " - + "SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE " - + "SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE " - + "SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE " - + "SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE " - + "SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE " - + "SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE " - + "SYSRES_CONST_STATE_REQ_NAME " - + "SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE " - + "SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE " - + "SYSRES_CONST_STATE_REQUISITE_CODE " - + "SYSRES_CONST_STATIC_ROLE_TYPE_CODE " - + "SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE " - + "SYSRES_CONST_STATUS_VALUE_AUTOCLEANING " - + "SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE " - + "SYSRES_CONST_STATUS_VALUE_COMPLETE " - + "SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE " - + "SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE " - + "SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE " - + "SYSRES_CONST_STATUS_VALUE_RED_SQUARE " - + "SYSRES_CONST_STATUS_VALUE_SUSPEND " - + "SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE " - + "SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE " - + "SYSRES_CONST_STORAGE_TYPE_FILE " - + "SYSRES_CONST_STORAGE_TYPE_SQL_SERVER " - + "SYSRES_CONST_STR_REQUISITE " - + "SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE " - + "SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR " - + "SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR " - + "SYSRES_CONST_STRING_REQUISITE_CODE " - + "SYSRES_CONST_STRING_REQUISITE_TYPE " - + "SYSRES_CONST_STRING_TYPE_CHAR " - + "SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE " - + "SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION " - + "SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE " - + "SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE " - + "SYSRES_CONST_SYSTEM_VERSION_COMMENT " - + "SYSRES_CONST_TASK_ACCESS_TYPE_ALL " - + "SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS " - + "SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL " - + "SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION " - + "SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD " - + "SYSRES_CONST_TASK_ENCODE_TYPE_NONE " - + "SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD " - + "SYSRES_CONST_TASK_ROUTE_ALL_CONDITION " - + "SYSRES_CONST_TASK_ROUTE_AND_CONDITION " - + "SYSRES_CONST_TASK_ROUTE_OR_CONDITION " - + "SYSRES_CONST_TASK_STATE_ABORTED " - + "SYSRES_CONST_TASK_STATE_COMPLETE " - + "SYSRES_CONST_TASK_STATE_CONTINUED " - + "SYSRES_CONST_TASK_STATE_CONTROL " - + "SYSRES_CONST_TASK_STATE_INIT " - + "SYSRES_CONST_TASK_STATE_WORKING " - + "SYSRES_CONST_TASK_TITLE " - + "SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE " - + "SYSRES_CONST_TASK_TYPES_REFERENCE_CODE " - + "SYSRES_CONST_TEMPLATES_REFERENCE_CODE " - + "SYSRES_CONST_TEST_DATE_REQUISITE_NAME " - + "SYSRES_CONST_TEST_DEV_DATABASE_NAME " - + "SYSRES_CONST_TEST_DEV_SYSTEM_CODE " - + "SYSRES_CONST_TEST_EDMS_DATABASE_NAME " - + "SYSRES_CONST_TEST_EDMS_MAIN_CODE " - + "SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME " - + "SYSRES_CONST_TEST_EDMS_SECOND_CODE " - + "SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME " - + "SYSRES_CONST_TEST_EDMS_SYSTEM_CODE " - + "SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME " - + "SYSRES_CONST_TEXT_REQUISITE " - + "SYSRES_CONST_TEXT_REQUISITE_CODE " - + "SYSRES_CONST_TEXT_REQUISITE_TYPE " - + "SYSRES_CONST_TEXT_TYPE_CHAR " - + "SYSRES_CONST_TYPE_CODE_REQUISITE_CODE " - + "SYSRES_CONST_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR " - + "SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE " - + "SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE " - + "SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE " - + "SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE " - + "SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME " - + "SYSRES_CONST_USE_ACCESS_TYPE_CODE " - + "SYSRES_CONST_USE_ACCESS_TYPE_NAME " - + "SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE " - + "SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE " - + "SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE " - + "SYSRES_CONST_USER_CATEGORY_NORMAL " - + "SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE " - + "SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE " - + "SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE " - + "SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE " - + "SYSRES_CONST_USER_COMMON_CATEGORY " - + "SYSRES_CONST_USER_COMMON_CATEGORY_CODE " - + "SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE " - + "SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_USER_LOGIN_REQUISITE_CODE " - + "SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE " - + "SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE " - + "SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE " - + "SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE " - + "SYSRES_CONST_USER_SERVICE_CATEGORY " - + "SYSRES_CONST_USER_SERVICE_CATEGORY_CODE " - + "SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE " - + "SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME " - + "SYSRES_CONST_USER_STATUS_DEVELOPER_CODE " - + "SYSRES_CONST_USER_STATUS_DEVELOPER_NAME " - + "SYSRES_CONST_USER_STATUS_DISABLED_CODE " - + "SYSRES_CONST_USER_STATUS_DISABLED_NAME " - + "SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE " - + "SYSRES_CONST_USER_STATUS_USER_CODE " - + "SYSRES_CONST_USER_STATUS_USER_NAME " - + "SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED " - + "SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER " - + "SYSRES_CONST_USER_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE " - + "SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE " - + "SYSRES_CONST_USERS_REFERENCE_CODE " - + "SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME " - + "SYSRES_CONST_USERS_REQUISITE_CODE " - + "SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE " - + "SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE " - + "SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE " - + "SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE " - + "SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE " - + "SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME " - + "SYSRES_CONST_VIEW_DEFAULT_CODE " - + "SYSRES_CONST_VIEW_DEFAULT_NAME " - + "SYSRES_CONST_VIEWER_REQUISITE_CODE " - + "SYSRES_CONST_WAITING_BLOCK_DESCRIPTION " - + "SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING " - + "SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING " - + "SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE " - + "SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE " - + "SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE " - + "SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE " - + "SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE " - + "SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS " - + "SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS " - + "SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD " - + "SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT " - + "SYSRES_CONST_XML_ENCODING " - + "SYSRES_CONST_XREC_STAT_REQUISITE_CODE " - + "SYSRES_CONST_XRECID_FIELD_NAME " - + "SYSRES_CONST_YES " - + "SYSRES_CONST_YES_NO_2_REQUISITE_CODE " - + "SYSRES_CONST_YES_NO_REQUISITE_CODE " - + "SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE " - + "SYSRES_CONST_YES_PICK_VALUE " - + "SYSRES_CONST_YES_VALUE "; - - // Base constant - const base_constants = "CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "; - - // Base group name - const base_group_name_constants = - "ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "; - - // Decision block properties - const decision_block_properties_constants = - "DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY " - + "DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "; - - // File extension - const file_extension_constants = - "ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION " - + "SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "; - - // Job block properties - const job_block_properties_constants = - "JOB_BLOCK_ABORT_DEADLINE_PROPERTY " - + "JOB_BLOCK_AFTER_FINISH_EVENT " - + "JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT " - + "JOB_BLOCK_ATTACHMENT_PROPERTY " - + "JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY " - + "JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY " - + "JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT " - + "JOB_BLOCK_BEFORE_START_EVENT " - + "JOB_BLOCK_CREATED_JOBS_PROPERTY " - + "JOB_BLOCK_DEADLINE_PROPERTY " - + "JOB_BLOCK_EXECUTION_RESULTS_PROPERTY " - + "JOB_BLOCK_IS_PARALLEL_PROPERTY " - + "JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY " - + "JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " - + "JOB_BLOCK_JOB_TEXT_PROPERTY " - + "JOB_BLOCK_NAME_PROPERTY " - + "JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY " - + "JOB_BLOCK_PERFORMER_PROPERTY " - + "JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY " - + "JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " - + "JOB_BLOCK_SUBJECT_PROPERTY "; - - // Language code - const language_code_constants = "ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "; - - // Launching external applications - const launching_external_applications_constants = - "smHidden smMaximized smMinimized smNormal wmNo wmYes "; - - // Link kind - const link_kind_constants = - "COMPONENT_TOKEN_LINK_KIND " - + "DOCUMENT_LINK_KIND " - + "EDOCUMENT_LINK_KIND " - + "FOLDER_LINK_KIND " - + "JOB_LINK_KIND " - + "REFERENCE_LINK_KIND " - + "TASK_LINK_KIND "; - - // Lock type - const lock_type_constants = - "COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "; - - // Monitor block properties - const monitor_block_properties_constants = - "MONITOR_BLOCK_AFTER_FINISH_EVENT " - + "MONITOR_BLOCK_BEFORE_START_EVENT " - + "MONITOR_BLOCK_DEADLINE_PROPERTY " - + "MONITOR_BLOCK_INTERVAL_PROPERTY " - + "MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY " - + "MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " - + "MONITOR_BLOCK_NAME_PROPERTY " - + "MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " - + "MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "; - - // Notice block properties - const notice_block_properties_constants = - "NOTICE_BLOCK_AFTER_FINISH_EVENT " - + "NOTICE_BLOCK_ATTACHMENT_PROPERTY " - + "NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY " - + "NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY " - + "NOTICE_BLOCK_BEFORE_START_EVENT " - + "NOTICE_BLOCK_CREATED_NOTICES_PROPERTY " - + "NOTICE_BLOCK_DEADLINE_PROPERTY " - + "NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " - + "NOTICE_BLOCK_NAME_PROPERTY " - + "NOTICE_BLOCK_NOTICE_TEXT_PROPERTY " - + "NOTICE_BLOCK_PERFORMER_PROPERTY " - + "NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " - + "NOTICE_BLOCK_SUBJECT_PROPERTY "; - - // Object events - const object_events_constants = - "dseAfterCancel " - + "dseAfterClose " - + "dseAfterDelete " - + "dseAfterDeleteOutOfTransaction " - + "dseAfterInsert " - + "dseAfterOpen " - + "dseAfterScroll " - + "dseAfterUpdate " - + "dseAfterUpdateOutOfTransaction " - + "dseBeforeCancel " - + "dseBeforeClose " - + "dseBeforeDelete " - + "dseBeforeDetailUpdate " - + "dseBeforeInsert " - + "dseBeforeOpen " - + "dseBeforeUpdate " - + "dseOnAnyRequisiteChange " - + "dseOnCloseRecord " - + "dseOnDeleteError " - + "dseOnOpenRecord " - + "dseOnPrepareUpdate " - + "dseOnUpdateError " - + "dseOnUpdateRatifiedRecord " - + "dseOnValidDelete " - + "dseOnValidUpdate " - + "reOnChange " - + "reOnChangeValues " - + "SELECTION_BEGIN_ROUTE_EVENT " - + "SELECTION_END_ROUTE_EVENT "; - - // Object params - const object_params_constants = - "CURRENT_PERIOD_IS_REQUIRED " - + "PREVIOUS_CARD_TYPE_NAME " - + "SHOW_RECORD_PROPERTIES_FORM "; - - // Other - const other_constants = - "ACCESS_RIGHTS_SETTING_DIALOG_CODE " - + "ADMINISTRATOR_USER_CODE " - + "ANALYTIC_REPORT_TYPE " - + "asrtHideLocal " - + "asrtHideRemote " - + "CALCULATED_ROLE_TYPE_CODE " - + "COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE " - + "DCTS_TEST_PROTOCOLS_FOLDER_PATH " - + "E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED " - + "E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER " - + "E_EDOC_VERSION_ALREDY_SIGNED " - + "E_EDOC_VERSION_ALREDY_SIGNED_BY_USER " - + "EDOC_TYPES_CODE_REQUISITE_FIELD_NAME " - + "EDOCUMENTS_ALIAS_NAME " - + "FILES_FOLDER_PATH " - + "FILTER_OPERANDS_DELIMITER " - + "FILTER_OPERATIONS_DELIMITER " - + "FORMCARD_NAME " - + "FORMLIST_NAME " - + "GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE " - + "GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE " - + "INTEGRATED_REPORT_TYPE " - + "IS_BUILDER_APPLICATION_ROLE " - + "IS_BUILDER_APPLICATION_ROLE2 " - + "IS_BUILDER_USERS " - + "ISBSYSDEV " - + "LOG_FOLDER_PATH " - + "mbCancel " - + "mbNo " - + "mbNoToAll " - + "mbOK " - + "mbYes " - + "mbYesToAll " - + "MEMORY_DATASET_DESRIPTIONS_FILENAME " - + "mrNo " - + "mrNoToAll " - + "mrYes " - + "mrYesToAll " - + "MULTIPLE_SELECT_DIALOG_CODE " - + "NONOPERATING_RECORD_FLAG_FEMININE " - + "NONOPERATING_RECORD_FLAG_MASCULINE " - + "OPERATING_RECORD_FLAG_FEMININE " - + "OPERATING_RECORD_FLAG_MASCULINE " - + "PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE " - + "PROGRAM_INITIATED_LOOKUP_ACTION " - + "ratDelete " - + "ratEdit " - + "ratInsert " - + "REPORT_TYPE " - + "REQUIRED_PICK_VALUES_VARIABLE " - + "rmCard " - + "rmList " - + "SBRTE_PROGID_DEV " - + "SBRTE_PROGID_RELEASE " - + "STATIC_ROLE_TYPE_CODE " - + "SUPPRESS_EMPTY_TEMPLATE_CREATION " - + "SYSTEM_USER_CODE " - + "UPDATE_DIALOG_DATASET " - + "USED_IN_OBJECT_HINT_PARAM " - + "USER_INITIATED_LOOKUP_ACTION " - + "USER_NAME_FORMAT " - + "USER_SELECTION_RESTRICTIONS " - + "WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH " - + "ELS_SUBTYPE_CONTROL_NAME " - + "ELS_FOLDER_KIND_CONTROL_NAME " - + "REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "; - - // Privileges - const privileges_constants = - "PRIVILEGE_COMPONENT_FULL_ACCESS " - + "PRIVILEGE_DEVELOPMENT_EXPORT " - + "PRIVILEGE_DEVELOPMENT_IMPORT " - + "PRIVILEGE_DOCUMENT_DELETE " - + "PRIVILEGE_ESD " - + "PRIVILEGE_FOLDER_DELETE " - + "PRIVILEGE_MANAGE_ACCESS_RIGHTS " - + "PRIVILEGE_MANAGE_REPLICATION " - + "PRIVILEGE_MANAGE_SESSION_SERVER " - + "PRIVILEGE_OBJECT_FULL_ACCESS " - + "PRIVILEGE_OBJECT_VIEW " - + "PRIVILEGE_RESERVE_LICENSE " - + "PRIVILEGE_SYSTEM_CUSTOMIZE " - + "PRIVILEGE_SYSTEM_DEVELOP " - + "PRIVILEGE_SYSTEM_INSTALL " - + "PRIVILEGE_TASK_DELETE " - + "PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE " - + "PRIVILEGES_PSEUDOREFERENCE_CODE "; - - // Pseudoreference code - const pseudoreference_code_constants = - "ACCESS_TYPES_PSEUDOREFERENCE_CODE " - + "ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE " - + "ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE " - + "ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE " - + "AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE " - + "COMPONENTS_PSEUDOREFERENCE_CODE " - + "FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE " - + "GROUPS_PSEUDOREFERENCE_CODE " - + "RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE " - + "REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE " - + "REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE " - + "REFTYPES_PSEUDOREFERENCE_CODE " - + "REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE " - + "SEND_PROTOCOL_PSEUDOREFERENCE_CODE " - + "SUBSTITUTES_PSEUDOREFERENCE_CODE " - + "SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE " - + "UNITS_PSEUDOREFERENCE_CODE " - + "USERS_PSEUDOREFERENCE_CODE " - + "VIEWERS_PSEUDOREFERENCE_CODE "; - - // Requisite ISBCertificateType values - const requisite_ISBCertificateType_values_constants = - "CERTIFICATE_TYPE_ENCRYPT " - + "CERTIFICATE_TYPE_SIGN " - + "CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "; - - // Requisite ISBEDocStorageType values - const requisite_ISBEDocStorageType_values_constants = - "STORAGE_TYPE_FILE " - + "STORAGE_TYPE_NAS_CIFS " - + "STORAGE_TYPE_SAPERION " - + "STORAGE_TYPE_SQL_SERVER "; - - // Requisite CompType2 values - const requisite_compType2_values_constants = - "COMPTYPE2_REQUISITE_DOCUMENTS_VALUE " - + "COMPTYPE2_REQUISITE_TASKS_VALUE " - + "COMPTYPE2_REQUISITE_FOLDERS_VALUE " - + "COMPTYPE2_REQUISITE_REFERENCES_VALUE "; - - // Requisite name - const requisite_name_constants = - "SYSREQ_CODE " - + "SYSREQ_COMPTYPE2 " - + "SYSREQ_CONST_AVAILABLE_FOR_WEB " - + "SYSREQ_CONST_COMMON_CODE " - + "SYSREQ_CONST_COMMON_VALUE " - + "SYSREQ_CONST_FIRM_CODE " - + "SYSREQ_CONST_FIRM_STATUS " - + "SYSREQ_CONST_FIRM_VALUE " - + "SYSREQ_CONST_SERVER_STATUS " - + "SYSREQ_CONTENTS " - + "SYSREQ_DATE_OPEN " - + "SYSREQ_DATE_CLOSE " - + "SYSREQ_DESCRIPTION " - + "SYSREQ_DESCRIPTION_LOCALIZE_ID " - + "SYSREQ_DOUBLE " - + "SYSREQ_EDOC_ACCESS_TYPE " - + "SYSREQ_EDOC_AUTHOR " - + "SYSREQ_EDOC_CREATED " - + "SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE " - + "SYSREQ_EDOC_EDITOR " - + "SYSREQ_EDOC_ENCODE_TYPE " - + "SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME " - + "SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION " - + "SYSREQ_EDOC_EXPORT_DATE " - + "SYSREQ_EDOC_EXPORTER " - + "SYSREQ_EDOC_KIND " - + "SYSREQ_EDOC_LIFE_STAGE_NAME " - + "SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE " - + "SYSREQ_EDOC_MODIFIED " - + "SYSREQ_EDOC_NAME " - + "SYSREQ_EDOC_NOTE " - + "SYSREQ_EDOC_QUALIFIED_ID " - + "SYSREQ_EDOC_SESSION_KEY " - + "SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME " - + "SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION " - + "SYSREQ_EDOC_SIGNATURE_TYPE " - + "SYSREQ_EDOC_SIGNED " - + "SYSREQ_EDOC_STORAGE " - + "SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE " - + "SYSREQ_EDOC_STORAGES_CHECK_RIGHTS " - + "SYSREQ_EDOC_STORAGES_COMPUTER_NAME " - + "SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE " - + "SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE " - + "SYSREQ_EDOC_STORAGES_FUNCTION " - + "SYSREQ_EDOC_STORAGES_INITIALIZED " - + "SYSREQ_EDOC_STORAGES_LOCAL_PATH " - + "SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME " - + "SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT " - + "SYSREQ_EDOC_STORAGES_SERVER_NAME " - + "SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME " - + "SYSREQ_EDOC_STORAGES_TYPE " - + "SYSREQ_EDOC_TEXT_MODIFIED " - + "SYSREQ_EDOC_TYPE_ACT_CODE " - + "SYSREQ_EDOC_TYPE_ACT_DESCRIPTION " - + "SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID " - + "SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE " - + "SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS " - + "SYSREQ_EDOC_TYPE_ACT_SECTION " - + "SYSREQ_EDOC_TYPE_ADD_PARAMS " - + "SYSREQ_EDOC_TYPE_COMMENT " - + "SYSREQ_EDOC_TYPE_EVENT_TEXT " - + "SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR " - + "SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID " - + "SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID " - + "SYSREQ_EDOC_TYPE_NUMERATION_METHOD " - + "SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE " - + "SYSREQ_EDOC_TYPE_REQ_CODE " - + "SYSREQ_EDOC_TYPE_REQ_DESCRIPTION " - + "SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID " - + "SYSREQ_EDOC_TYPE_REQ_IS_LEADING " - + "SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED " - + "SYSREQ_EDOC_TYPE_REQ_NUMBER " - + "SYSREQ_EDOC_TYPE_REQ_ON_CHANGE " - + "SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS " - + "SYSREQ_EDOC_TYPE_REQ_ON_SELECT " - + "SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND " - + "SYSREQ_EDOC_TYPE_REQ_SECTION " - + "SYSREQ_EDOC_TYPE_VIEW_CARD " - + "SYSREQ_EDOC_TYPE_VIEW_CODE " - + "SYSREQ_EDOC_TYPE_VIEW_COMMENT " - + "SYSREQ_EDOC_TYPE_VIEW_IS_MAIN " - + "SYSREQ_EDOC_TYPE_VIEW_NAME " - + "SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID " - + "SYSREQ_EDOC_VERSION_AUTHOR " - + "SYSREQ_EDOC_VERSION_CRC " - + "SYSREQ_EDOC_VERSION_DATA " - + "SYSREQ_EDOC_VERSION_EDITOR " - + "SYSREQ_EDOC_VERSION_EXPORT_DATE " - + "SYSREQ_EDOC_VERSION_EXPORTER " - + "SYSREQ_EDOC_VERSION_HIDDEN " - + "SYSREQ_EDOC_VERSION_LIFE_STAGE " - + "SYSREQ_EDOC_VERSION_MODIFIED " - + "SYSREQ_EDOC_VERSION_NOTE " - + "SYSREQ_EDOC_VERSION_SIGNATURE_TYPE " - + "SYSREQ_EDOC_VERSION_SIGNED " - + "SYSREQ_EDOC_VERSION_SIZE " - + "SYSREQ_EDOC_VERSION_SOURCE " - + "SYSREQ_EDOC_VERSION_TEXT_MODIFIED " - + "SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE " - + "SYSREQ_FOLDER_KIND " - + "SYSREQ_FUNC_CATEGORY " - + "SYSREQ_FUNC_COMMENT " - + "SYSREQ_FUNC_GROUP " - + "SYSREQ_FUNC_GROUP_COMMENT " - + "SYSREQ_FUNC_GROUP_NUMBER " - + "SYSREQ_FUNC_HELP " - + "SYSREQ_FUNC_PARAM_DEF_VALUE " - + "SYSREQ_FUNC_PARAM_IDENT " - + "SYSREQ_FUNC_PARAM_NUMBER " - + "SYSREQ_FUNC_PARAM_TYPE " - + "SYSREQ_FUNC_TEXT " - + "SYSREQ_GROUP_CATEGORY " - + "SYSREQ_ID " - + "SYSREQ_LAST_UPDATE " - + "SYSREQ_LEADER_REFERENCE " - + "SYSREQ_LINE_NUMBER " - + "SYSREQ_MAIN_RECORD_ID " - + "SYSREQ_NAME " - + "SYSREQ_NAME_LOCALIZE_ID " - + "SYSREQ_NOTE " - + "SYSREQ_ORIGINAL_RECORD " - + "SYSREQ_OUR_FIRM " - + "SYSREQ_PROFILING_SETTINGS_BATCH_LOGING " - + "SYSREQ_PROFILING_SETTINGS_BATCH_SIZE " - + "SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED " - + "SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED " - + "SYSREQ_PROFILING_SETTINGS_START_LOGGED " - + "SYSREQ_RECORD_STATUS " - + "SYSREQ_REF_REQ_FIELD_NAME " - + "SYSREQ_REF_REQ_FORMAT " - + "SYSREQ_REF_REQ_GENERATED " - + "SYSREQ_REF_REQ_LENGTH " - + "SYSREQ_REF_REQ_PRECISION " - + "SYSREQ_REF_REQ_REFERENCE " - + "SYSREQ_REF_REQ_SECTION " - + "SYSREQ_REF_REQ_STORED " - + "SYSREQ_REF_REQ_TOKENS " - + "SYSREQ_REF_REQ_TYPE " - + "SYSREQ_REF_REQ_VIEW " - + "SYSREQ_REF_TYPE_ACT_CODE " - + "SYSREQ_REF_TYPE_ACT_DESCRIPTION " - + "SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID " - + "SYSREQ_REF_TYPE_ACT_ON_EXECUTE " - + "SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS " - + "SYSREQ_REF_TYPE_ACT_SECTION " - + "SYSREQ_REF_TYPE_ADD_PARAMS " - + "SYSREQ_REF_TYPE_COMMENT " - + "SYSREQ_REF_TYPE_COMMON_SETTINGS " - + "SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME " - + "SYSREQ_REF_TYPE_EVENT_TEXT " - + "SYSREQ_REF_TYPE_MAIN_LEADING_REF " - + "SYSREQ_REF_TYPE_NAME_IN_SINGULAR " - + "SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID " - + "SYSREQ_REF_TYPE_NAME_LOCALIZE_ID " - + "SYSREQ_REF_TYPE_NUMERATION_METHOD " - + "SYSREQ_REF_TYPE_REQ_CODE " - + "SYSREQ_REF_TYPE_REQ_DESCRIPTION " - + "SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID " - + "SYSREQ_REF_TYPE_REQ_IS_CONTROL " - + "SYSREQ_REF_TYPE_REQ_IS_FILTER " - + "SYSREQ_REF_TYPE_REQ_IS_LEADING " - + "SYSREQ_REF_TYPE_REQ_IS_REQUIRED " - + "SYSREQ_REF_TYPE_REQ_NUMBER " - + "SYSREQ_REF_TYPE_REQ_ON_CHANGE " - + "SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS " - + "SYSREQ_REF_TYPE_REQ_ON_SELECT " - + "SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND " - + "SYSREQ_REF_TYPE_REQ_SECTION " - + "SYSREQ_REF_TYPE_VIEW_CARD " - + "SYSREQ_REF_TYPE_VIEW_CODE " - + "SYSREQ_REF_TYPE_VIEW_COMMENT " - + "SYSREQ_REF_TYPE_VIEW_IS_MAIN " - + "SYSREQ_REF_TYPE_VIEW_NAME " - + "SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID " - + "SYSREQ_REFERENCE_TYPE_ID " - + "SYSREQ_STATE " - + "SYSREQ_STATЕ " - + "SYSREQ_SYSTEM_SETTINGS_VALUE " - + "SYSREQ_TYPE " - + "SYSREQ_UNIT " - + "SYSREQ_UNIT_ID " - + "SYSREQ_USER_GROUPS_GROUP_FULL_NAME " - + "SYSREQ_USER_GROUPS_GROUP_NAME " - + "SYSREQ_USER_GROUPS_GROUP_SERVER_NAME " - + "SYSREQ_USERS_ACCESS_RIGHTS " - + "SYSREQ_USERS_AUTHENTICATION " - + "SYSREQ_USERS_CATEGORY " - + "SYSREQ_USERS_COMPONENT " - + "SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC " - + "SYSREQ_USERS_DOMAIN " - + "SYSREQ_USERS_FULL_USER_NAME " - + "SYSREQ_USERS_GROUP " - + "SYSREQ_USERS_IS_MAIN_SERVER " - + "SYSREQ_USERS_LOGIN " - + "SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC " - + "SYSREQ_USERS_STATUS " - + "SYSREQ_USERS_USER_CERTIFICATE " - + "SYSREQ_USERS_USER_CERTIFICATE_INFO " - + "SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME " - + "SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION " - + "SYSREQ_USERS_USER_CERTIFICATE_STATE " - + "SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME " - + "SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT " - + "SYSREQ_USERS_USER_DEFAULT_CERTIFICATE " - + "SYSREQ_USERS_USER_DESCRIPTION " - + "SYSREQ_USERS_USER_GLOBAL_NAME " - + "SYSREQ_USERS_USER_LOGIN " - + "SYSREQ_USERS_USER_MAIN_SERVER " - + "SYSREQ_USERS_USER_TYPE " - + "SYSREQ_WORK_RULES_FOLDER_ID "; - - // Result - const result_constants = "RESULT_VAR_NAME RESULT_VAR_NAME_ENG "; - - // Rule identification - const rule_identification_constants = - "AUTO_NUMERATION_RULE_ID " - + "CANT_CHANGE_ID_REQUISITE_RULE_ID " - + "CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID " - + "CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID " - + "CHECK_CODE_REQUISITE_RULE_ID " - + "CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID " - + "CHECK_FILTRATER_CHANGES_RULE_ID " - + "CHECK_RECORD_INTERVAL_RULE_ID " - + "CHECK_REFERENCE_INTERVAL_RULE_ID " - + "CHECK_REQUIRED_DATA_FULLNESS_RULE_ID " - + "CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID " - + "MAKE_RECORD_UNRATIFIED_RULE_ID " - + "RESTORE_AUTO_NUMERATION_RULE_ID " - + "SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID " - + "SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID " - + "SET_IDSPS_VALUE_RULE_ID " - + "SET_NEXT_CODE_VALUE_RULE_ID " - + "SET_OURFIRM_BOUNDS_RULE_ID " - + "SET_OURFIRM_REQUISITE_RULE_ID "; - - // Script block properties - const script_block_properties_constants = - "SCRIPT_BLOCK_AFTER_FINISH_EVENT " - + "SCRIPT_BLOCK_BEFORE_START_EVENT " - + "SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY " - + "SCRIPT_BLOCK_NAME_PROPERTY " - + "SCRIPT_BLOCK_SCRIPT_PROPERTY "; - - // Subtask block properties - const subtask_block_properties_constants = - "SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY " - + "SUBTASK_BLOCK_AFTER_FINISH_EVENT " - + "SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT " - + "SUBTASK_BLOCK_ATTACHMENTS_PROPERTY " - + "SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY " - + "SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY " - + "SUBTASK_BLOCK_BEFORE_START_EVENT " - + "SUBTASK_BLOCK_CREATED_TASK_PROPERTY " - + "SUBTASK_BLOCK_CREATION_EVENT " - + "SUBTASK_BLOCK_DEADLINE_PROPERTY " - + "SUBTASK_BLOCK_IMPORTANCE_PROPERTY " - + "SUBTASK_BLOCK_INITIATOR_PROPERTY " - + "SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY " - + "SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " - + "SUBTASK_BLOCK_JOBS_TYPE_PROPERTY " - + "SUBTASK_BLOCK_NAME_PROPERTY " - + "SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY " - + "SUBTASK_BLOCK_PERFORMERS_PROPERTY " - + "SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY " - + "SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY " - + "SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY " - + "SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY " - + "SUBTASK_BLOCK_START_EVENT " - + "SUBTASK_BLOCK_STEP_CONTROL_PROPERTY " - + "SUBTASK_BLOCK_SUBJECT_PROPERTY " - + "SUBTASK_BLOCK_TASK_CONTROL_PROPERTY " - + "SUBTASK_BLOCK_TEXT_PROPERTY " - + "SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY " - + "SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY " - + "SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "; - - // System component - const system_component_constants = - "SYSCOMP_CONTROL_JOBS " - + "SYSCOMP_FOLDERS " - + "SYSCOMP_JOBS " - + "SYSCOMP_NOTICES " - + "SYSCOMP_TASKS "; - - // System dialogs - const system_dialogs_constants = - "SYSDLG_CREATE_EDOCUMENT " - + "SYSDLG_CREATE_EDOCUMENT_VERSION " - + "SYSDLG_CURRENT_PERIOD " - + "SYSDLG_EDIT_FUNCTION_HELP " - + "SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE " - + "SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS " - + "SYSDLG_EXPORT_SINGLE_EDOCUMENT " - + "SYSDLG_IMPORT_EDOCUMENT " - + "SYSDLG_MULTIPLE_SELECT " - + "SYSDLG_SETUP_ACCESS_RIGHTS " - + "SYSDLG_SETUP_DEFAULT_RIGHTS " - + "SYSDLG_SETUP_FILTER_CONDITION " - + "SYSDLG_SETUP_SIGN_RIGHTS " - + "SYSDLG_SETUP_TASK_OBSERVERS " - + "SYSDLG_SETUP_TASK_ROUTE " - + "SYSDLG_SETUP_USERS_LIST " - + "SYSDLG_SIGN_EDOCUMENT " - + "SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "; - - // System reference names - const system_reference_names_constants = - "SYSREF_ACCESS_RIGHTS_TYPES " - + "SYSREF_ADMINISTRATION_HISTORY " - + "SYSREF_ALL_AVAILABLE_COMPONENTS " - + "SYSREF_ALL_AVAILABLE_PRIVILEGES " - + "SYSREF_ALL_REPLICATING_COMPONENTS " - + "SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS " - + "SYSREF_CALENDAR_EVENTS " - + "SYSREF_COMPONENT_TOKEN_HISTORY " - + "SYSREF_COMPONENT_TOKENS " - + "SYSREF_COMPONENTS " - + "SYSREF_CONSTANTS " - + "SYSREF_DATA_RECEIVE_PROTOCOL " - + "SYSREF_DATA_SEND_PROTOCOL " - + "SYSREF_DIALOGS " - + "SYSREF_DIALOGS_REQUISITES " - + "SYSREF_EDITORS " - + "SYSREF_EDOC_CARDS " - + "SYSREF_EDOC_TYPES " - + "SYSREF_EDOCUMENT_CARD_REQUISITES " - + "SYSREF_EDOCUMENT_CARD_TYPES " - + "SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE " - + "SYSREF_EDOCUMENT_CARDS " - + "SYSREF_EDOCUMENT_HISTORY " - + "SYSREF_EDOCUMENT_KINDS " - + "SYSREF_EDOCUMENT_REQUISITES " - + "SYSREF_EDOCUMENT_SIGNATURES " - + "SYSREF_EDOCUMENT_TEMPLATES " - + "SYSREF_EDOCUMENT_TEXT_STORAGES " - + "SYSREF_EDOCUMENT_VIEWS " - + "SYSREF_FILTERER_SETUP_CONFLICTS " - + "SYSREF_FILTRATER_SETTING_CONFLICTS " - + "SYSREF_FOLDER_HISTORY " - + "SYSREF_FOLDERS " - + "SYSREF_FUNCTION_GROUPS " - + "SYSREF_FUNCTION_PARAMS " - + "SYSREF_FUNCTIONS " - + "SYSREF_JOB_HISTORY " - + "SYSREF_LINKS " - + "SYSREF_LOCALIZATION_DICTIONARY " - + "SYSREF_LOCALIZATION_LANGUAGES " - + "SYSREF_MODULES " - + "SYSREF_PRIVILEGES " - + "SYSREF_RECORD_HISTORY " - + "SYSREF_REFERENCE_REQUISITES " - + "SYSREF_REFERENCE_TYPE_VIEWS " - + "SYSREF_REFERENCE_TYPES " - + "SYSREF_REFERENCES " - + "SYSREF_REFERENCES_REQUISITES " - + "SYSREF_REMOTE_SERVERS " - + "SYSREF_REPLICATION_SESSIONS_LOG " - + "SYSREF_REPLICATION_SESSIONS_PROTOCOL " - + "SYSREF_REPORTS " - + "SYSREF_ROLES " - + "SYSREF_ROUTE_BLOCK_GROUPS " - + "SYSREF_ROUTE_BLOCKS " - + "SYSREF_SCRIPTS " - + "SYSREF_SEARCHES " - + "SYSREF_SERVER_EVENTS " - + "SYSREF_SERVER_EVENTS_HISTORY " - + "SYSREF_STANDARD_ROUTE_GROUPS " - + "SYSREF_STANDARD_ROUTES " - + "SYSREF_STATUSES " - + "SYSREF_SYSTEM_SETTINGS " - + "SYSREF_TASK_HISTORY " - + "SYSREF_TASK_KIND_GROUPS " - + "SYSREF_TASK_KINDS " - + "SYSREF_TASK_RIGHTS " - + "SYSREF_TASK_SIGNATURES " - + "SYSREF_TASKS " - + "SYSREF_UNITS " - + "SYSREF_USER_GROUPS " - + "SYSREF_USER_GROUPS_REFERENCE " - + "SYSREF_USER_SUBSTITUTION " - + "SYSREF_USERS " - + "SYSREF_USERS_REFERENCE " - + "SYSREF_VIEWERS " - + "SYSREF_WORKING_TIME_CALENDARS "; - - // Table name - const table_name_constants = - "ACCESS_RIGHTS_TABLE_NAME " - + "EDMS_ACCESS_TABLE_NAME " - + "EDOC_TYPES_TABLE_NAME "; - - // Test - const test_constants = - "TEST_DEV_DB_NAME " - + "TEST_DEV_SYSTEM_CODE " - + "TEST_EDMS_DB_NAME " - + "TEST_EDMS_MAIN_CODE " - + "TEST_EDMS_MAIN_DB_NAME " - + "TEST_EDMS_SECOND_CODE " - + "TEST_EDMS_SECOND_DB_NAME " - + "TEST_EDMS_SYSTEM_CODE " - + "TEST_ISB5_MAIN_CODE " - + "TEST_ISB5_SECOND_CODE " - + "TEST_SQL_SERVER_2005_NAME " - + "TEST_SQL_SERVER_NAME "; - - // Using the dialog windows - const using_the_dialog_windows_constants = - "ATTENTION_CAPTION " - + "cbsCommandLinks " - + "cbsDefault " - + "CONFIRMATION_CAPTION " - + "ERROR_CAPTION " - + "INFORMATION_CAPTION " - + "mrCancel " - + "mrOk "; - - // Using the document - const using_the_document_constants = - "EDOC_VERSION_ACTIVE_STAGE_CODE " - + "EDOC_VERSION_DESIGN_STAGE_CODE " - + "EDOC_VERSION_OBSOLETE_STAGE_CODE "; - - // Using the EA and encryption - const using_the_EA_and_encryption_constants = - "cpDataEnciphermentEnabled " - + "cpDigitalSignatureEnabled " - + "cpID " - + "cpIssuer " - + "cpPluginVersion " - + "cpSerial " - + "cpSubjectName " - + "cpSubjSimpleName " - + "cpValidFromDate " - + "cpValidToDate "; - - // Using the ISBL-editor - const using_the_ISBL_editor_constants = - "ISBL_SYNTAX " + "NO_SYNTAX " + "XML_SYNTAX "; - - // Wait block properties - const wait_block_properties_constants = - "WAIT_BLOCK_AFTER_FINISH_EVENT " - + "WAIT_BLOCK_BEFORE_START_EVENT " - + "WAIT_BLOCK_DEADLINE_PROPERTY " - + "WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY " - + "WAIT_BLOCK_NAME_PROPERTY " - + "WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "; - - // SYSRES Common - const sysres_common_constants = - "SYSRES_COMMON " - + "SYSRES_CONST " - + "SYSRES_MBFUNC " - + "SYSRES_SBDATA " - + "SYSRES_SBGUI " - + "SYSRES_SBINTF " - + "SYSRES_SBREFDSC " - + "SYSRES_SQLERRORS " - + "SYSRES_SYSCOMP "; - - // Константы ==> built_in - const CONSTANTS = - sysres_constants - + base_constants - + base_group_name_constants - + decision_block_properties_constants - + file_extension_constants - + job_block_properties_constants - + language_code_constants - + launching_external_applications_constants - + link_kind_constants - + lock_type_constants - + monitor_block_properties_constants - + notice_block_properties_constants - + object_events_constants - + object_params_constants - + other_constants - + privileges_constants - + pseudoreference_code_constants - + requisite_ISBCertificateType_values_constants - + requisite_ISBEDocStorageType_values_constants - + requisite_compType2_values_constants - + requisite_name_constants - + result_constants - + rule_identification_constants - + script_block_properties_constants - + subtask_block_properties_constants - + system_component_constants - + system_dialogs_constants - + system_reference_names_constants - + table_name_constants - + test_constants - + using_the_dialog_windows_constants - + using_the_document_constants - + using_the_EA_and_encryption_constants - + using_the_ISBL_editor_constants - + wait_block_properties_constants - + sysres_common_constants; - - // enum TAccountType - const TAccountType = "atUser atGroup atRole "; - - // enum TActionEnabledMode - const TActionEnabledMode = - "aemEnabledAlways " - + "aemDisabledAlways " - + "aemEnabledOnBrowse " - + "aemEnabledOnEdit " - + "aemDisabledOnBrowseEmpty "; - - // enum TAddPosition - const TAddPosition = "apBegin apEnd "; - - // enum TAlignment - const TAlignment = "alLeft alRight "; - - // enum TAreaShowMode - const TAreaShowMode = - "asmNever " - + "asmNoButCustomize " - + "asmAsLastTime " - + "asmYesButCustomize " - + "asmAlways "; - - // enum TCertificateInvalidationReason - const TCertificateInvalidationReason = "cirCommon cirRevoked "; - - // enum TCertificateType - const TCertificateType = "ctSignature ctEncode ctSignatureEncode "; - - // enum TCheckListBoxItemState - const TCheckListBoxItemState = "clbUnchecked clbChecked clbGrayed "; - - // enum TCloseOnEsc - const TCloseOnEsc = "ceISB ceAlways ceNever "; - - // enum TCompType - const TCompType = - "ctDocument " - + "ctReference " - + "ctScript " - + "ctUnknown " - + "ctReport " - + "ctDialog " - + "ctFunction " - + "ctFolder " - + "ctEDocument " - + "ctTask " - + "ctJob " - + "ctNotice " - + "ctControlJob "; - - // enum TConditionFormat - const TConditionFormat = "cfInternal cfDisplay "; - - // enum TConnectionIntent - const TConnectionIntent = "ciUnspecified ciWrite ciRead "; - - // enum TContentKind - const TContentKind = - "ckFolder " - + "ckEDocument " - + "ckTask " - + "ckJob " - + "ckComponentToken " - + "ckAny " - + "ckReference " - + "ckScript " - + "ckReport " - + "ckDialog "; - - // enum TControlType - const TControlType = - "ctISBLEditor " - + "ctBevel " - + "ctButton " - + "ctCheckListBox " - + "ctComboBox " - + "ctComboEdit " - + "ctGrid " - + "ctDBCheckBox " - + "ctDBComboBox " - + "ctDBEdit " - + "ctDBEllipsis " - + "ctDBMemo " - + "ctDBNavigator " - + "ctDBRadioGroup " - + "ctDBStatusLabel " - + "ctEdit " - + "ctGroupBox " - + "ctInplaceHint " - + "ctMemo " - + "ctPanel " - + "ctListBox " - + "ctRadioButton " - + "ctRichEdit " - + "ctTabSheet " - + "ctWebBrowser " - + "ctImage " - + "ctHyperLink " - + "ctLabel " - + "ctDBMultiEllipsis " - + "ctRibbon " - + "ctRichView " - + "ctInnerPanel " - + "ctPanelGroup " - + "ctBitButton "; - - // enum TCriterionContentType - const TCriterionContentType = - "cctDate " - + "cctInteger " - + "cctNumeric " - + "cctPick " - + "cctReference " - + "cctString " - + "cctText "; - - // enum TCultureType - const TCultureType = "cltInternal cltPrimary cltGUI "; - - // enum TDataSetEventType - const TDataSetEventType = - "dseBeforeOpen " - + "dseAfterOpen " - + "dseBeforeClose " - + "dseAfterClose " - + "dseOnValidDelete " - + "dseBeforeDelete " - + "dseAfterDelete " - + "dseAfterDeleteOutOfTransaction " - + "dseOnDeleteError " - + "dseBeforeInsert " - + "dseAfterInsert " - + "dseOnValidUpdate " - + "dseBeforeUpdate " - + "dseOnUpdateRatifiedRecord " - + "dseAfterUpdate " - + "dseAfterUpdateOutOfTransaction " - + "dseOnUpdateError " - + "dseAfterScroll " - + "dseOnOpenRecord " - + "dseOnCloseRecord " - + "dseBeforeCancel " - + "dseAfterCancel " - + "dseOnUpdateDeadlockError " - + "dseBeforeDetailUpdate " - + "dseOnPrepareUpdate " - + "dseOnAnyRequisiteChange "; - - // enum TDataSetState - const TDataSetState = "dssEdit dssInsert dssBrowse dssInActive "; - - // enum TDateFormatType - const TDateFormatType = "dftDate dftShortDate dftDateTime dftTimeStamp "; - - // enum TDateOffsetType - const TDateOffsetType = "dotDays dotHours dotMinutes dotSeconds "; - - // enum TDateTimeKind - const TDateTimeKind = "dtkndLocal dtkndUTC "; - - // enum TDeaAccessRights - const TDeaAccessRights = "arNone arView arEdit arFull "; - - // enum TDocumentDefaultAction - const TDocumentDefaultAction = "ddaView ddaEdit "; - - // enum TEditMode - const TEditMode = - "emLock " - + "emEdit " - + "emSign " - + "emExportWithLock " - + "emImportWithUnlock " - + "emChangeVersionNote " - + "emOpenForModify " - + "emChangeLifeStage " - + "emDelete " - + "emCreateVersion " - + "emImport " - + "emUnlockExportedWithLock " - + "emStart " - + "emAbort " - + "emReInit " - + "emMarkAsReaded " - + "emMarkAsUnreaded " - + "emPerform " - + "emAccept " - + "emResume " - + "emChangeRights " - + "emEditRoute " - + "emEditObserver " - + "emRecoveryFromLocalCopy " - + "emChangeWorkAccessType " - + "emChangeEncodeTypeToCertificate " - + "emChangeEncodeTypeToPassword " - + "emChangeEncodeTypeToNone " - + "emChangeEncodeTypeToCertificatePassword " - + "emChangeStandardRoute " - + "emGetText " - + "emOpenForView " - + "emMoveToStorage " - + "emCreateObject " - + "emChangeVersionHidden " - + "emDeleteVersion " - + "emChangeLifeCycleStage " - + "emApprovingSign " - + "emExport " - + "emContinue " - + "emLockFromEdit " - + "emUnLockForEdit " - + "emLockForServer " - + "emUnlockFromServer " - + "emDelegateAccessRights " - + "emReEncode "; - - // enum TEditorCloseObservType - const TEditorCloseObservType = "ecotFile ecotProcess "; - - // enum TEdmsApplicationAction - const TEdmsApplicationAction = "eaGet eaCopy eaCreate eaCreateStandardRoute "; - - // enum TEDocumentLockType - const TEDocumentLockType = "edltAll edltNothing edltQuery "; - - // enum TEDocumentStepShowMode - const TEDocumentStepShowMode = "essmText essmCard "; - - // enum TEDocumentStepVersionType - const TEDocumentStepVersionType = "esvtLast esvtLastActive esvtSpecified "; - - // enum TEDocumentStorageFunction - const TEDocumentStorageFunction = "edsfExecutive edsfArchive "; - - // enum TEDocumentStorageType - const TEDocumentStorageType = "edstSQLServer edstFile "; - - // enum TEDocumentVersionSourceType - const TEDocumentVersionSourceType = - "edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "; - - // enum TEDocumentVersionState - const TEDocumentVersionState = "vsDefault vsDesign vsActive vsObsolete "; - - // enum TEncodeType - const TEncodeType = "etNone etCertificate etPassword etCertificatePassword "; - - // enum TExceptionCategory - const TExceptionCategory = "ecException ecWarning ecInformation "; - - // enum TExportedSignaturesType - const TExportedSignaturesType = "estAll estApprovingOnly "; - - // enum TExportedVersionType - const TExportedVersionType = "evtLast evtLastActive evtQuery "; - - // enum TFieldDataType - const TFieldDataType = - "fdtString " - + "fdtNumeric " - + "fdtInteger " - + "fdtDate " - + "fdtText " - + "fdtUnknown " - + "fdtWideString " - + "fdtLargeInteger "; - - // enum TFolderType - const TFolderType = - "ftInbox " - + "ftOutbox " - + "ftFavorites " - + "ftCommonFolder " - + "ftUserFolder " - + "ftComponents " - + "ftQuickLaunch " - + "ftShortcuts " - + "ftSearch "; - - // enum TGridRowHeight - const TGridRowHeight = "grhAuto " + "grhX1 " + "grhX2 " + "grhX3 "; - - // enum THyperlinkType - const THyperlinkType = "hltText " + "hltRTF " + "hltHTML "; - - // enum TImageFileFormat - const TImageFileFormat = - "iffBMP " - + "iffJPEG " - + "iffMultiPageTIFF " - + "iffSinglePageTIFF " - + "iffTIFF " - + "iffPNG "; - - // enum TImageMode - const TImageMode = "im8bGrayscale " + "im24bRGB " + "im1bMonochrome "; - - // enum TImageType - const TImageType = "itBMP " + "itJPEG " + "itWMF " + "itPNG "; - - // enum TInplaceHintKind - const TInplaceHintKind = - "ikhInformation " + "ikhWarning " + "ikhError " + "ikhNoIcon "; - - // enum TISBLContext - const TISBLContext = - "icUnknown " - + "icScript " - + "icFunction " - + "icIntegratedReport " - + "icAnalyticReport " - + "icDataSetEventHandler " - + "icActionHandler " - + "icFormEventHandler " - + "icLookUpEventHandler " - + "icRequisiteChangeEventHandler " - + "icBeforeSearchEventHandler " - + "icRoleCalculation " - + "icSelectRouteEventHandler " - + "icBlockPropertyCalculation " - + "icBlockQueryParamsEventHandler " - + "icChangeSearchResultEventHandler " - + "icBlockEventHandler " - + "icSubTaskInitEventHandler " - + "icEDocDataSetEventHandler " - + "icEDocLookUpEventHandler " - + "icEDocActionHandler " - + "icEDocFormEventHandler " - + "icEDocRequisiteChangeEventHandler " - + "icStructuredConversionRule " - + "icStructuredConversionEventBefore " - + "icStructuredConversionEventAfter " - + "icWizardEventHandler " - + "icWizardFinishEventHandler " - + "icWizardStepEventHandler " - + "icWizardStepFinishEventHandler " - + "icWizardActionEnableEventHandler " - + "icWizardActionExecuteEventHandler " - + "icCreateJobsHandler " - + "icCreateNoticesHandler " - + "icBeforeLookUpEventHandler " - + "icAfterLookUpEventHandler " - + "icTaskAbortEventHandler " - + "icWorkflowBlockActionHandler " - + "icDialogDataSetEventHandler " - + "icDialogActionHandler " - + "icDialogLookUpEventHandler " - + "icDialogRequisiteChangeEventHandler " - + "icDialogFormEventHandler " - + "icDialogValidCloseEventHandler " - + "icBlockFormEventHandler " - + "icTaskFormEventHandler " - + "icReferenceMethod " - + "icEDocMethod " - + "icDialogMethod " - + "icProcessMessageHandler "; - - // enum TItemShow - const TItemShow = "isShow " + "isHide " + "isByUserSettings "; - - // enum TJobKind - const TJobKind = "jkJob " + "jkNotice " + "jkControlJob "; - - // enum TJoinType - const TJoinType = "jtInner " + "jtLeft " + "jtRight " + "jtFull " + "jtCross "; - - // enum TLabelPos - const TLabelPos = "lbpAbove " + "lbpBelow " + "lbpLeft " + "lbpRight "; - - // enum TLicensingType - const TLicensingType = "eltPerConnection " + "eltPerUser "; - - // enum TLifeCycleStageFontColor - const TLifeCycleStageFontColor = - "sfcUndefined " - + "sfcBlack " - + "sfcGreen " - + "sfcRed " - + "sfcBlue " - + "sfcOrange " - + "sfcLilac "; - - // enum TLifeCycleStageFontStyle - const TLifeCycleStageFontStyle = "sfsItalic " + "sfsStrikeout " + "sfsNormal "; - - // enum TLockableDevelopmentComponentType - const TLockableDevelopmentComponentType = - "ldctStandardRoute " - + "ldctWizard " - + "ldctScript " - + "ldctFunction " - + "ldctRouteBlock " - + "ldctIntegratedReport " - + "ldctAnalyticReport " - + "ldctReferenceType " - + "ldctEDocumentType " - + "ldctDialog " - + "ldctServerEvents "; - - // enum TMaxRecordCountRestrictionType - const TMaxRecordCountRestrictionType = - "mrcrtNone " + "mrcrtUser " + "mrcrtMaximal " + "mrcrtCustom "; - - // enum TRangeValueType - const TRangeValueType = - "vtEqual " + "vtGreaterOrEqual " + "vtLessOrEqual " + "vtRange "; - - // enum TRelativeDate - const TRelativeDate = - "rdYesterday " - + "rdToday " - + "rdTomorrow " - + "rdThisWeek " - + "rdThisMonth " - + "rdThisYear " - + "rdNextMonth " - + "rdNextWeek " - + "rdLastWeek " - + "rdLastMonth "; - - // enum TReportDestination - const TReportDestination = "rdWindow " + "rdFile " + "rdPrinter "; - - // enum TReqDataType - const TReqDataType = - "rdtString " - + "rdtNumeric " - + "rdtInteger " - + "rdtDate " - + "rdtReference " - + "rdtAccount " - + "rdtText " - + "rdtPick " - + "rdtUnknown " - + "rdtLargeInteger " - + "rdtDocument "; - - // enum TRequisiteEventType - const TRequisiteEventType = "reOnChange " + "reOnChangeValues "; - - // enum TSBTimeType - const TSBTimeType = "ttGlobal " + "ttLocal " + "ttUser " + "ttSystem "; - - // enum TSearchShowMode - const TSearchShowMode = - "ssmBrowse " + "ssmSelect " + "ssmMultiSelect " + "ssmBrowseModal "; - - // enum TSelectMode - const TSelectMode = "smSelect " + "smLike " + "smCard "; - - // enum TSignatureType - const TSignatureType = "stNone " + "stAuthenticating " + "stApproving "; - - // enum TSignerContentType - const TSignerContentType = "sctString " + "sctStream "; - - // enum TStringsSortType - const TStringsSortType = "sstAnsiSort " + "sstNaturalSort "; - - // enum TStringValueType - const TStringValueType = "svtEqual " + "svtContain "; - - // enum TStructuredObjectAttributeType - const TStructuredObjectAttributeType = - "soatString " - + "soatNumeric " - + "soatInteger " - + "soatDatetime " - + "soatReferenceRecord " - + "soatText " - + "soatPick " - + "soatBoolean " - + "soatEDocument " - + "soatAccount " - + "soatIntegerCollection " - + "soatNumericCollection " - + "soatStringCollection " - + "soatPickCollection " - + "soatDatetimeCollection " - + "soatBooleanCollection " - + "soatReferenceRecordCollection " - + "soatEDocumentCollection " - + "soatAccountCollection " - + "soatContents " - + "soatUnknown "; - - // enum TTaskAbortReason - const TTaskAbortReason = "tarAbortByUser " + "tarAbortByWorkflowException "; - - // enum TTextValueType - const TTextValueType = "tvtAllWords " + "tvtExactPhrase " + "tvtAnyWord "; - - // enum TUserObjectStatus - const TUserObjectStatus = - "usNone " - + "usCompleted " - + "usRedSquare " - + "usBlueSquare " - + "usYellowSquare " - + "usGreenSquare " - + "usOrangeSquare " - + "usPurpleSquare " - + "usFollowUp "; - - // enum TUserType - const TUserType = - "utUnknown " - + "utUser " - + "utDeveloper " - + "utAdministrator " - + "utSystemDeveloper " - + "utDisconnected "; - - // enum TValuesBuildType - const TValuesBuildType = - "btAnd " + "btDetailAnd " + "btOr " + "btNotOr " + "btOnly "; - - // enum TViewMode - const TViewMode = "vmView " + "vmSelect " + "vmNavigation "; - - // enum TViewSelectionMode - const TViewSelectionMode = - "vsmSingle " + "vsmMultiple " + "vsmMultipleCheck " + "vsmNoSelection "; - - // enum TWizardActionType - const TWizardActionType = - "wfatPrevious " + "wfatNext " + "wfatCancel " + "wfatFinish "; - - // enum TWizardFormElementProperty - const TWizardFormElementProperty = - "wfepUndefined " - + "wfepText3 " - + "wfepText6 " - + "wfepText9 " - + "wfepSpinEdit " - + "wfepDropDown " - + "wfepRadioGroup " - + "wfepFlag " - + "wfepText12 " - + "wfepText15 " - + "wfepText18 " - + "wfepText21 " - + "wfepText24 " - + "wfepText27 " - + "wfepText30 " - + "wfepRadioGroupColumn1 " - + "wfepRadioGroupColumn2 " - + "wfepRadioGroupColumn3 "; - - // enum TWizardFormElementType - const TWizardFormElementType = - "wfetQueryParameter " + "wfetText " + "wfetDelimiter " + "wfetLabel "; - - // enum TWizardParamType - const TWizardParamType = - "wptString " - + "wptInteger " - + "wptNumeric " - + "wptBoolean " - + "wptDateTime " - + "wptPick " - + "wptText " - + "wptUser " - + "wptUserList " - + "wptEDocumentInfo " - + "wptEDocumentInfoList " - + "wptReferenceRecordInfo " - + "wptReferenceRecordInfoList " - + "wptFolderInfo " - + "wptTaskInfo " - + "wptContents " - + "wptFileName " - + "wptDate "; - - // enum TWizardStepResult - const TWizardStepResult = - "wsrComplete " - + "wsrGoNext " - + "wsrGoPrevious " - + "wsrCustom " - + "wsrCancel " - + "wsrGoFinal "; - - // enum TWizardStepType - const TWizardStepType = - "wstForm " - + "wstEDocument " - + "wstTaskCard " - + "wstReferenceRecordCard " - + "wstFinal "; - - // enum TWorkAccessType - const TWorkAccessType = "waAll " + "waPerformers " + "waManual "; - - // enum TWorkflowBlockType - const TWorkflowBlockType = - "wsbStart " - + "wsbFinish " - + "wsbNotice " - + "wsbStep " - + "wsbDecision " - + "wsbWait " - + "wsbMonitor " - + "wsbScript " - + "wsbConnector " - + "wsbSubTask " - + "wsbLifeCycleStage " - + "wsbPause "; - - // enum TWorkflowDataType - const TWorkflowDataType = - "wdtInteger " - + "wdtFloat " - + "wdtString " - + "wdtPick " - + "wdtDateTime " - + "wdtBoolean " - + "wdtTask " - + "wdtJob " - + "wdtFolder " - + "wdtEDocument " - + "wdtReferenceRecord " - + "wdtUser " - + "wdtGroup " - + "wdtRole " - + "wdtIntegerCollection " - + "wdtFloatCollection " - + "wdtStringCollection " - + "wdtPickCollection " - + "wdtDateTimeCollection " - + "wdtBooleanCollection " - + "wdtTaskCollection " - + "wdtJobCollection " - + "wdtFolderCollection " - + "wdtEDocumentCollection " - + "wdtReferenceRecordCollection " - + "wdtUserCollection " - + "wdtGroupCollection " - + "wdtRoleCollection " - + "wdtContents " - + "wdtUserList " - + "wdtSearchDescription " - + "wdtDeadLine " - + "wdtPickSet " - + "wdtAccountCollection "; - - // enum TWorkImportance - const TWorkImportance = "wiLow " + "wiNormal " + "wiHigh "; - - // enum TWorkRouteType - const TWorkRouteType = "wrtSoft " + "wrtHard "; - - // enum TWorkState - const TWorkState = - "wsInit " - + "wsRunning " - + "wsDone " - + "wsControlled " - + "wsAborted " - + "wsContinued "; - - // enum TWorkTextBuildingMode - const TWorkTextBuildingMode = - "wtmFull " + "wtmFromCurrent " + "wtmOnlyCurrent "; - - // Перечисления - const ENUMS = - TAccountType - + TActionEnabledMode - + TAddPosition - + TAlignment - + TAreaShowMode - + TCertificateInvalidationReason - + TCertificateType - + TCheckListBoxItemState - + TCloseOnEsc - + TCompType - + TConditionFormat - + TConnectionIntent - + TContentKind - + TControlType - + TCriterionContentType - + TCultureType - + TDataSetEventType - + TDataSetState - + TDateFormatType - + TDateOffsetType - + TDateTimeKind - + TDeaAccessRights - + TDocumentDefaultAction - + TEditMode - + TEditorCloseObservType - + TEdmsApplicationAction - + TEDocumentLockType - + TEDocumentStepShowMode - + TEDocumentStepVersionType - + TEDocumentStorageFunction - + TEDocumentStorageType - + TEDocumentVersionSourceType - + TEDocumentVersionState - + TEncodeType - + TExceptionCategory - + TExportedSignaturesType - + TExportedVersionType - + TFieldDataType - + TFolderType - + TGridRowHeight - + THyperlinkType - + TImageFileFormat - + TImageMode - + TImageType - + TInplaceHintKind - + TISBLContext - + TItemShow - + TJobKind - + TJoinType - + TLabelPos - + TLicensingType - + TLifeCycleStageFontColor - + TLifeCycleStageFontStyle - + TLockableDevelopmentComponentType - + TMaxRecordCountRestrictionType - + TRangeValueType - + TRelativeDate - + TReportDestination - + TReqDataType - + TRequisiteEventType - + TSBTimeType - + TSearchShowMode - + TSelectMode - + TSignatureType - + TSignerContentType - + TStringsSortType - + TStringValueType - + TStructuredObjectAttributeType - + TTaskAbortReason - + TTextValueType - + TUserObjectStatus - + TUserType - + TValuesBuildType - + TViewMode - + TViewSelectionMode - + TWizardActionType - + TWizardFormElementProperty - + TWizardFormElementType - + TWizardParamType - + TWizardStepResult - + TWizardStepType - + TWorkAccessType - + TWorkflowBlockType - + TWorkflowDataType - + TWorkImportance - + TWorkRouteType - + TWorkState - + TWorkTextBuildingMode; - - // Системные функции ==> SYSFUNCTIONS - const system_functions = - "AddSubString " - + "AdjustLineBreaks " - + "AmountInWords " - + "Analysis " - + "ArrayDimCount " - + "ArrayHighBound " - + "ArrayLowBound " - + "ArrayOf " - + "ArrayReDim " - + "Assert " - + "Assigned " - + "BeginOfMonth " - + "BeginOfPeriod " - + "BuildProfilingOperationAnalysis " - + "CallProcedure " - + "CanReadFile " - + "CArrayElement " - + "CDataSetRequisite " - + "ChangeDate " - + "ChangeReferenceDataset " - + "Char " - + "CharPos " - + "CheckParam " - + "CheckParamValue " - + "CompareStrings " - + "ConstantExists " - + "ControlState " - + "ConvertDateStr " - + "Copy " - + "CopyFile " - + "CreateArray " - + "CreateCachedReference " - + "CreateConnection " - + "CreateDialog " - + "CreateDualListDialog " - + "CreateEditor " - + "CreateException " - + "CreateFile " - + "CreateFolderDialog " - + "CreateInputDialog " - + "CreateLinkFile " - + "CreateList " - + "CreateLock " - + "CreateMemoryDataSet " - + "CreateObject " - + "CreateOpenDialog " - + "CreateProgress " - + "CreateQuery " - + "CreateReference " - + "CreateReport " - + "CreateSaveDialog " - + "CreateScript " - + "CreateSQLPivotFunction " - + "CreateStringList " - + "CreateTreeListSelectDialog " - + "CSelectSQL " - + "CSQL " - + "CSubString " - + "CurrentUserID " - + "CurrentUserName " - + "CurrentVersion " - + "DataSetLocateEx " - + "DateDiff " - + "DateTimeDiff " - + "DateToStr " - + "DayOfWeek " - + "DeleteFile " - + "DirectoryExists " - + "DisableCheckAccessRights " - + "DisableCheckFullShowingRestriction " - + "DisableMassTaskSendingRestrictions " - + "DropTable " - + "DupeString " - + "EditText " - + "EnableCheckAccessRights " - + "EnableCheckFullShowingRestriction " - + "EnableMassTaskSendingRestrictions " - + "EndOfMonth " - + "EndOfPeriod " - + "ExceptionExists " - + "ExceptionsOff " - + "ExceptionsOn " - + "Execute " - + "ExecuteProcess " - + "Exit " - + "ExpandEnvironmentVariables " - + "ExtractFileDrive " - + "ExtractFileExt " - + "ExtractFileName " - + "ExtractFilePath " - + "ExtractParams " - + "FileExists " - + "FileSize " - + "FindFile " - + "FindSubString " - + "FirmContext " - + "ForceDirectories " - + "Format " - + "FormatDate " - + "FormatNumeric " - + "FormatSQLDate " - + "FormatString " - + "FreeException " - + "GetComponent " - + "GetComponentLaunchParam " - + "GetConstant " - + "GetLastException " - + "GetReferenceRecord " - + "GetRefTypeByRefID " - + "GetTableID " - + "GetTempFolder " - + "IfThen " - + "In " - + "IndexOf " - + "InputDialog " - + "InputDialogEx " - + "InteractiveMode " - + "IsFileLocked " - + "IsGraphicFile " - + "IsNumeric " - + "Length " - + "LoadString " - + "LoadStringFmt " - + "LocalTimeToUTC " - + "LowerCase " - + "Max " - + "MessageBox " - + "MessageBoxEx " - + "MimeDecodeBinary " - + "MimeDecodeString " - + "MimeEncodeBinary " - + "MimeEncodeString " - + "Min " - + "MoneyInWords " - + "MoveFile " - + "NewID " - + "Now " - + "OpenFile " - + "Ord " - + "Precision " - + "Raise " - + "ReadCertificateFromFile " - + "ReadFile " - + "ReferenceCodeByID " - + "ReferenceNumber " - + "ReferenceRequisiteMode " - + "ReferenceRequisiteValue " - + "RegionDateSettings " - + "RegionNumberSettings " - + "RegionTimeSettings " - + "RegRead " - + "RegWrite " - + "RenameFile " - + "Replace " - + "Round " - + "SelectServerCode " - + "SelectSQL " - + "ServerDateTime " - + "SetConstant " - + "SetManagedFolderFieldsState " - + "ShowConstantsInputDialog " - + "ShowMessage " - + "Sleep " - + "Split " - + "SQL " - + "SQL2XLSTAB " - + "SQLProfilingSendReport " - + "StrToDate " - + "SubString " - + "SubStringCount " - + "SystemSetting " - + "Time " - + "TimeDiff " - + "Today " - + "Transliterate " - + "Trim " - + "UpperCase " - + "UserStatus " - + "UTCToLocalTime " - + "ValidateXML " - + "VarIsClear " - + "VarIsEmpty " - + "VarIsNull " - + "WorkTimeDiff " - + "WriteFile " - + "WriteFileEx " - + "WriteObjectHistory " - + "Анализ " - + "БазаДанных " - + "БлокЕсть " - + "БлокЕстьРасш " - + "БлокИнфо " - + "БлокСнять " - + "БлокСнятьРасш " - + "БлокУстановить " - + "Ввод " - + "ВводМеню " - + "ВедС " - + "ВедСпр " - + "ВерхняяГраницаМассива " - + "ВнешПрогр " - + "Восст " - + "ВременнаяПапка " - + "Время " - + "ВыборSQL " - + "ВыбратьЗапись " - + "ВыделитьСтр " - + "Вызвать " - + "Выполнить " - + "ВыпПрогр " - + "ГрафическийФайл " - + "ГруппаДополнительно " - + "ДатаВремяСерв " - + "ДеньНедели " - + "ДиалогДаНет " - + "ДлинаСтр " - + "ДобПодстр " - + "ЕПусто " - + "ЕслиТо " - + "ЕЧисло " - + "ЗамПодстр " - + "ЗаписьСправочника " - + "ЗначПоляСпр " - + "ИДТипСпр " - + "ИзвлечьДиск " - + "ИзвлечьИмяФайла " - + "ИзвлечьПуть " - + "ИзвлечьРасширение " - + "ИзмДат " - + "ИзменитьРазмерМассива " - + "ИзмеренийМассива " - + "ИмяОрг " - + "ИмяПоляСпр " - + "Индекс " - + "ИндикаторЗакрыть " - + "ИндикаторОткрыть " - + "ИндикаторШаг " - + "ИнтерактивныйРежим " - + "ИтогТблСпр " - + "КодВидВедСпр " - + "КодВидСпрПоИД " - + "КодПоAnalit " - + "КодСимвола " - + "КодСпр " - + "КолПодстр " - + "КолПроп " - + "КонМес " - + "Конст " - + "КонстЕсть " - + "КонстЗнач " - + "КонТран " - + "КопироватьФайл " - + "КопияСтр " - + "КПериод " - + "КСтрТблСпр " - + "Макс " - + "МаксСтрТблСпр " - + "Массив " - + "Меню " - + "МенюРасш " - + "Мин " - + "НаборДанныхНайтиРасш " - + "НаимВидСпр " - + "НаимПоAnalit " - + "НаимСпр " - + "НастроитьПереводыСтрок " - + "НачМес " - + "НачТран " - + "НижняяГраницаМассива " - + "НомерСпр " - + "НПериод " - + "Окно " - + "Окр " - + "Окружение " - + "ОтлИнфДобавить " - + "ОтлИнфУдалить " - + "Отчет " - + "ОтчетАнал " - + "ОтчетИнт " - + "ПапкаСуществует " - + "Пауза " - + "ПВыборSQL " - + "ПереименоватьФайл " - + "Переменные " - + "ПереместитьФайл " - + "Подстр " - + "ПоискПодстр " - + "ПоискСтр " - + "ПолучитьИДТаблицы " - + "ПользовательДополнительно " - + "ПользовательИД " - + "ПользовательИмя " - + "ПользовательСтатус " - + "Прервать " - + "ПроверитьПараметр " - + "ПроверитьПараметрЗнач " - + "ПроверитьУсловие " - + "РазбСтр " - + "РазнВремя " - + "РазнДат " - + "РазнДатаВремя " - + "РазнРабВремя " - + "РегУстВрем " - + "РегУстДат " - + "РегУстЧсл " - + "РедТекст " - + "РеестрЗапись " - + "РеестрСписокИменПарам " - + "РеестрЧтение " - + "РеквСпр " - + "РеквСпрПр " - + "Сегодня " - + "Сейчас " - + "Сервер " - + "СерверПроцессИД " - + "СертификатФайлСчитать " - + "СжПроб " - + "Символ " - + "СистемаДиректумКод " - + "СистемаИнформация " - + "СистемаКод " - + "Содержит " - + "СоединениеЗакрыть " - + "СоединениеОткрыть " - + "СоздатьДиалог " - + "СоздатьДиалогВыбораИзДвухСписков " - + "СоздатьДиалогВыбораПапки " - + "СоздатьДиалогОткрытияФайла " - + "СоздатьДиалогСохраненияФайла " - + "СоздатьЗапрос " - + "СоздатьИндикатор " - + "СоздатьИсключение " - + "СоздатьКэшированныйСправочник " - + "СоздатьМассив " - + "СоздатьНаборДанных " - + "СоздатьОбъект " - + "СоздатьОтчет " - + "СоздатьПапку " - + "СоздатьРедактор " - + "СоздатьСоединение " - + "СоздатьСписок " - + "СоздатьСписокСтрок " - + "СоздатьСправочник " - + "СоздатьСценарий " - + "СоздСпр " - + "СостСпр " - + "Сохр " - + "СохрСпр " - + "СписокСистем " - + "Спр " - + "Справочник " - + "СпрБлокЕсть " - + "СпрБлокСнять " - + "СпрБлокСнятьРасш " - + "СпрБлокУстановить " - + "СпрИзмНабДан " - + "СпрКод " - + "СпрНомер " - + "СпрОбновить " - + "СпрОткрыть " - + "СпрОтменить " - + "СпрПарам " - + "СпрПолеЗнач " - + "СпрПолеИмя " - + "СпрРекв " - + "СпрРеквВведЗн " - + "СпрРеквНовые " - + "СпрРеквПр " - + "СпрРеквПредЗн " - + "СпрРеквРежим " - + "СпрРеквТипТекст " - + "СпрСоздать " - + "СпрСост " - + "СпрСохранить " - + "СпрТблИтог " - + "СпрТблСтр " - + "СпрТблСтрКол " - + "СпрТблСтрМакс " - + "СпрТблСтрМин " - + "СпрТблСтрПред " - + "СпрТблСтрСлед " - + "СпрТблСтрСозд " - + "СпрТблСтрУд " - + "СпрТекПредст " - + "СпрУдалить " - + "СравнитьСтр " - + "СтрВерхРегистр " - + "СтрНижнРегистр " - + "СтрТблСпр " - + "СумПроп " - + "Сценарий " - + "СценарийПарам " - + "ТекВерсия " - + "ТекОрг " - + "Точн " - + "Тран " - + "Транслитерация " - + "УдалитьТаблицу " - + "УдалитьФайл " - + "УдСпр " - + "УдСтрТблСпр " - + "Уст " - + "УстановкиКонстант " - + "ФайлАтрибутСчитать " - + "ФайлАтрибутУстановить " - + "ФайлВремя " - + "ФайлВремяУстановить " - + "ФайлВыбрать " - + "ФайлЗанят " - + "ФайлЗаписать " - + "ФайлИскать " - + "ФайлКопировать " - + "ФайлМожноЧитать " - + "ФайлОткрыть " - + "ФайлПереименовать " - + "ФайлПерекодировать " - + "ФайлПереместить " - + "ФайлПросмотреть " - + "ФайлРазмер " - + "ФайлСоздать " - + "ФайлСсылкаСоздать " - + "ФайлСуществует " - + "ФайлСчитать " - + "ФайлУдалить " - + "ФмтSQLДат " - + "ФмтДат " - + "ФмтСтр " - + "ФмтЧсл " - + "Формат " - + "ЦМассивЭлемент " - + "ЦНаборДанныхРеквизит " - + "ЦПодстр "; - - // Предопределенные переменные ==> built_in - const predefined_variables = - "AltState " - + "Application " - + "CallType " - + "ComponentTokens " - + "CreatedJobs " - + "CreatedNotices " - + "ControlState " - + "DialogResult " - + "Dialogs " - + "EDocuments " - + "EDocumentVersionSource " - + "Folders " - + "GlobalIDs " - + "Job " - + "Jobs " - + "InputValue " - + "LookUpReference " - + "LookUpRequisiteNames " - + "LookUpSearch " - + "Object " - + "ParentComponent " - + "Processes " - + "References " - + "Requisite " - + "ReportName " - + "Reports " - + "Result " - + "Scripts " - + "Searches " - + "SelectedAttachments " - + "SelectedItems " - + "SelectMode " - + "Sender " - + "ServerEvents " - + "ServiceFactory " - + "ShiftState " - + "SubTask " - + "SystemDialogs " - + "Tasks " - + "Wizard " - + "Wizards " - + "Work " - + "ВызовСпособ " - + "ИмяОтчета " - + "РеквЗнач "; - - // Интерфейсы ==> type - const interfaces = - "IApplication " - + "IAccessRights " - + "IAccountRepository " - + "IAccountSelectionRestrictions " - + "IAction " - + "IActionList " - + "IAdministrationHistoryDescription " - + "IAnchors " - + "IApplication " - + "IArchiveInfo " - + "IAttachment " - + "IAttachmentList " - + "ICheckListBox " - + "ICheckPointedList " - + "IColumn " - + "IComponent " - + "IComponentDescription " - + "IComponentToken " - + "IComponentTokenFactory " - + "IComponentTokenInfo " - + "ICompRecordInfo " - + "IConnection " - + "IContents " - + "IControl " - + "IControlJob " - + "IControlJobInfo " - + "IControlList " - + "ICrypto " - + "ICrypto2 " - + "ICustomJob " - + "ICustomJobInfo " - + "ICustomListBox " - + "ICustomObjectWizardStep " - + "ICustomWork " - + "ICustomWorkInfo " - + "IDataSet " - + "IDataSetAccessInfo " - + "IDataSigner " - + "IDateCriterion " - + "IDateRequisite " - + "IDateRequisiteDescription " - + "IDateValue " - + "IDeaAccessRights " - + "IDeaObjectInfo " - + "IDevelopmentComponentLock " - + "IDialog " - + "IDialogFactory " - + "IDialogPickRequisiteItems " - + "IDialogsFactory " - + "IDICSFactory " - + "IDocRequisite " - + "IDocumentInfo " - + "IDualListDialog " - + "IECertificate " - + "IECertificateInfo " - + "IECertificates " - + "IEditControl " - + "IEditorForm " - + "IEdmsExplorer " - + "IEdmsObject " - + "IEdmsObjectDescription " - + "IEdmsObjectFactory " - + "IEdmsObjectInfo " - + "IEDocument " - + "IEDocumentAccessRights " - + "IEDocumentDescription " - + "IEDocumentEditor " - + "IEDocumentFactory " - + "IEDocumentInfo " - + "IEDocumentStorage " - + "IEDocumentVersion " - + "IEDocumentVersionListDialog " - + "IEDocumentVersionSource " - + "IEDocumentWizardStep " - + "IEDocVerSignature " - + "IEDocVersionState " - + "IEnabledMode " - + "IEncodeProvider " - + "IEncrypter " - + "IEvent " - + "IEventList " - + "IException " - + "IExternalEvents " - + "IExternalHandler " - + "IFactory " - + "IField " - + "IFileDialog " - + "IFolder " - + "IFolderDescription " - + "IFolderDialog " - + "IFolderFactory " - + "IFolderInfo " - + "IForEach " - + "IForm " - + "IFormTitle " - + "IFormWizardStep " - + "IGlobalIDFactory " - + "IGlobalIDInfo " - + "IGrid " - + "IHasher " - + "IHistoryDescription " - + "IHyperLinkControl " - + "IImageButton " - + "IImageControl " - + "IInnerPanel " - + "IInplaceHint " - + "IIntegerCriterion " - + "IIntegerList " - + "IIntegerRequisite " - + "IIntegerValue " - + "IISBLEditorForm " - + "IJob " - + "IJobDescription " - + "IJobFactory " - + "IJobForm " - + "IJobInfo " - + "ILabelControl " - + "ILargeIntegerCriterion " - + "ILargeIntegerRequisite " - + "ILargeIntegerValue " - + "ILicenseInfo " - + "ILifeCycleStage " - + "IList " - + "IListBox " - + "ILocalIDInfo " - + "ILocalization " - + "ILock " - + "IMemoryDataSet " - + "IMessagingFactory " - + "IMetadataRepository " - + "INotice " - + "INoticeInfo " - + "INumericCriterion " - + "INumericRequisite " - + "INumericValue " - + "IObject " - + "IObjectDescription " - + "IObjectImporter " - + "IObjectInfo " - + "IObserver " - + "IPanelGroup " - + "IPickCriterion " - + "IPickProperty " - + "IPickRequisite " - + "IPickRequisiteDescription " - + "IPickRequisiteItem " - + "IPickRequisiteItems " - + "IPickValue " - + "IPrivilege " - + "IPrivilegeList " - + "IProcess " - + "IProcessFactory " - + "IProcessMessage " - + "IProgress " - + "IProperty " - + "IPropertyChangeEvent " - + "IQuery " - + "IReference " - + "IReferenceCriterion " - + "IReferenceEnabledMode " - + "IReferenceFactory " - + "IReferenceHistoryDescription " - + "IReferenceInfo " - + "IReferenceRecordCardWizardStep " - + "IReferenceRequisiteDescription " - + "IReferencesFactory " - + "IReferenceValue " - + "IRefRequisite " - + "IReport " - + "IReportFactory " - + "IRequisite " - + "IRequisiteDescription " - + "IRequisiteDescriptionList " - + "IRequisiteFactory " - + "IRichEdit " - + "IRouteStep " - + "IRule " - + "IRuleList " - + "ISchemeBlock " - + "IScript " - + "IScriptFactory " - + "ISearchCriteria " - + "ISearchCriterion " - + "ISearchDescription " - + "ISearchFactory " - + "ISearchFolderInfo " - + "ISearchForObjectDescription " - + "ISearchResultRestrictions " - + "ISecuredContext " - + "ISelectDialog " - + "IServerEvent " - + "IServerEventFactory " - + "IServiceDialog " - + "IServiceFactory " - + "ISignature " - + "ISignProvider " - + "ISignProvider2 " - + "ISignProvider3 " - + "ISimpleCriterion " - + "IStringCriterion " - + "IStringList " - + "IStringRequisite " - + "IStringRequisiteDescription " - + "IStringValue " - + "ISystemDialogsFactory " - + "ISystemInfo " - + "ITabSheet " - + "ITask " - + "ITaskAbortReasonInfo " - + "ITaskCardWizardStep " - + "ITaskDescription " - + "ITaskFactory " - + "ITaskInfo " - + "ITaskRoute " - + "ITextCriterion " - + "ITextRequisite " - + "ITextValue " - + "ITreeListSelectDialog " - + "IUser " - + "IUserList " - + "IValue " - + "IView " - + "IWebBrowserControl " - + "IWizard " - + "IWizardAction " - + "IWizardFactory " - + "IWizardFormElement " - + "IWizardParam " - + "IWizardPickParam " - + "IWizardReferenceParam " - + "IWizardStep " - + "IWorkAccessRights " - + "IWorkDescription " - + "IWorkflowAskableParam " - + "IWorkflowAskableParams " - + "IWorkflowBlock " - + "IWorkflowBlockResult " - + "IWorkflowEnabledMode " - + "IWorkflowParam " - + "IWorkflowPickParam " - + "IWorkflowReferenceParam " - + "IWorkState " - + "IWorkTreeCustomNode " - + "IWorkTreeJobNode " - + "IWorkTreeTaskNode " - + "IXMLEditorForm " - + "SBCrypto "; - - // built_in : встроенные или библиотечные объекты (константы, перечисления) - const BUILTIN = CONSTANTS + ENUMS; - - // class: встроенные наборы значений, системные объекты, фабрики - const CLASS = predefined_variables; - - // literal : примитивные типы - const LITERAL = "null true false nil "; - - // number : числа - const NUMBERS = { - className: "number", - begin: hljs.NUMBER_RE, - relevance: 0 - }; - - // string : строки - const STRINGS = { - className: "string", - variants: [ - { - begin: '"', - end: '"' - }, - { - begin: "'", - end: "'" - } - ] - }; - - // Токены - const DOCTAGS = { - className: "doctag", - begin: "\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b", - relevance: 0 - }; - - // Однострочный комментарий - const ISBL_LINE_COMMENT_MODE = { - className: "comment", - begin: "//", - end: "$", - relevance: 0, - contains: [ - hljs.PHRASAL_WORDS_MODE, - DOCTAGS - ] - }; - - // Многострочный комментарий - const ISBL_BLOCK_COMMENT_MODE = { - className: "comment", - begin: "/\\*", - end: "\\*/", - relevance: 0, - contains: [ - hljs.PHRASAL_WORDS_MODE, - DOCTAGS - ] - }; - - // comment : комментарии - const COMMENTS = { variants: [ - ISBL_LINE_COMMENT_MODE, - ISBL_BLOCK_COMMENT_MODE - ] }; - - // keywords : ключевые слова - const KEYWORDS = { - $pattern: UNDERSCORE_IDENT_RE, - keyword: KEYWORD, - built_in: BUILTIN, - class: CLASS, - literal: LITERAL - }; - - // methods : методы - const METHODS = { - begin: "\\.\\s*" + hljs.UNDERSCORE_IDENT_RE, - keywords: KEYWORDS, - relevance: 0 - }; - - // type : встроенные типы - const TYPES = { - className: "type", - begin: ":[ \\t]*(" + interfaces.trim().replace(/\s/g, "|") + ")", - end: "[ \\t]*=", - excludeEnd: true - }; - - // variables : переменные - const VARIABLES = { - className: "variable", - keywords: KEYWORDS, - begin: UNDERSCORE_IDENT_RE, - relevance: 0, - contains: [ - TYPES, - METHODS - ] - }; - - // Имена функций - const FUNCTION_TITLE = FUNCTION_NAME_IDENT_RE + "\\("; - - const TITLE_MODE = { - className: "title", - keywords: { - $pattern: UNDERSCORE_IDENT_RE, - built_in: system_functions - }, - begin: FUNCTION_TITLE, - end: "\\(", - returnBegin: true, - excludeEnd: true - }; - - // function : функции - const FUNCTIONS = { - className: "function", - begin: FUNCTION_TITLE, - end: "\\)$", - returnBegin: true, - keywords: KEYWORDS, - illegal: "[\\[\\]\\|\\$\\?%,~#@]", - contains: [ - TITLE_MODE, - METHODS, - VARIABLES, - STRINGS, - NUMBERS, - COMMENTS - ] - }; - - return { - name: 'ISBL', - case_insensitive: true, - keywords: KEYWORDS, - illegal: "\\$|\\?|%|,|;$|~|#|@| -Category: common, enterprise -Website: https://www.java.com/ -*/ - - -/** - * Allows recursive regex expressions to a given depth - * - * ie: recurRegex("(abc~~~)", /~~~/g, 2) becomes: - * (abc(abc(abc))) - * - * @param {string} re - * @param {RegExp} substitution (should be a g mode regex) - * @param {number} depth - * @returns {string}`` - */ -function recurRegex(re, substitution, depth) { - if (depth === -1) return ""; - - return re.replace(substitution, _ => { - return recurRegex(re, substitution, depth - 1); - }); -} - -/** @type LanguageFn */ -function java(hljs) { - const regex = hljs.regex; - const JAVA_IDENT_RE = '[\u00C0-\u02B8a-zA-Z_$][\u00C0-\u02B8a-zA-Z_$0-9]*'; - const GENERIC_IDENT_RE = JAVA_IDENT_RE - + recurRegex('(?:<' + JAVA_IDENT_RE + '~~~(?:\\s*,\\s*' + JAVA_IDENT_RE + '~~~)*>)?', /~~~/g, 2); - const MAIN_KEYWORDS = [ - 'synchronized', - 'abstract', - 'private', - 'var', - 'static', - 'if', - 'const ', - 'for', - 'while', - 'strictfp', - 'finally', - 'protected', - 'import', - 'native', - 'final', - 'void', - 'enum', - 'else', - 'break', - 'transient', - 'catch', - 'instanceof', - 'volatile', - 'case', - 'assert', - 'package', - 'default', - 'public', - 'try', - 'switch', - 'continue', - 'throws', - 'protected', - 'public', - 'private', - 'module', - 'requires', - 'exports', - 'do', - 'sealed', - 'yield', - 'permits', - 'goto', - 'when' - ]; - - const BUILT_INS = [ - 'super', - 'this' - ]; - - const LITERALS = [ - 'false', - 'true', - 'null' - ]; - - const TYPES = [ - 'char', - 'boolean', - 'long', - 'float', - 'int', - 'byte', - 'short', - 'double' - ]; - - const KEYWORDS = { - keyword: MAIN_KEYWORDS, - literal: LITERALS, - type: TYPES, - built_in: BUILT_INS - }; - - const ANNOTATION = { - className: 'meta', - begin: '@' + JAVA_IDENT_RE, - contains: [ - { - begin: /\(/, - end: /\)/, - contains: [ "self" ] // allow nested () inside our annotation - } - ] - }; - const PARAMS = { - className: 'params', - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - relevance: 0, - contains: [ hljs.C_BLOCK_COMMENT_MODE ], - endsParent: true - }; - - return { - name: 'Java', - aliases: [ 'jsp' ], - keywords: KEYWORDS, - illegal: /<\/|#/, - contains: [ - hljs.COMMENT( - '/\\*\\*', - '\\*/', - { - relevance: 0, - contains: [ - { - // eat up @'s in emails to prevent them to be recognized as doctags - begin: /\w+@/, - relevance: 0 - }, - { - className: 'doctag', - begin: '@[A-Za-z]+' - } - ] - } - ), - // relevance boost - { - begin: /import java\.[a-z]+\./, - keywords: "import", - relevance: 2 - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - begin: /"""/, - end: /"""/, - className: "string", - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - match: [ - /\b(?:class|interface|enum|extends|implements|new)/, - /\s+/, - JAVA_IDENT_RE - ], - className: { - 1: "keyword", - 3: "title.class" - } - }, - { - // Exceptions for hyphenated keywords - match: /non-sealed/, - scope: "keyword" - }, - { - begin: [ - regex.concat(/(?!else)/, JAVA_IDENT_RE), - /\s+/, - JAVA_IDENT_RE, - /\s+/, - /=(?!=)/ - ], - className: { - 1: "type", - 3: "variable", - 5: "operator" - } - }, - { - begin: [ - /record/, - /\s+/, - JAVA_IDENT_RE - ], - className: { - 1: "keyword", - 3: "title.class" - }, - contains: [ - PARAMS, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - // Expression keywords prevent 'keyword Name(...)' from being - // recognized as a function definition - beginKeywords: 'new throw return else', - relevance: 0 - }, - { - begin: [ - '(?:' + GENERIC_IDENT_RE + '\\s+)', - hljs.UNDERSCORE_IDENT_RE, - /\s*(?=\()/ - ], - className: { 2: "title.function" }, - keywords: KEYWORDS, - contains: [ - { - className: 'params', - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - relevance: 0, - contains: [ - ANNOTATION, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - NUMERIC, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - NUMERIC, - ANNOTATION - ] - }; -} - -export { java as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js.js deleted file mode 100644 index f7488dc..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/java" instead of "highlight.js/lib/languages/java.js"' - ); - } - } - emitWarning(); - import lang from './java.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js deleted file mode 100644 index 98091b4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +++ /dev/null @@ -1,769 +0,0 @@ -const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; -const KEYWORDS = [ - "as", // for exports - "in", - "of", - "if", - "for", - "while", - "finally", - "var", - "new", - "function", - "do", - "return", - "void", - "else", - "break", - "catch", - "instanceof", - "with", - "throw", - "case", - "default", - "try", - "switch", - "continue", - "typeof", - "delete", - "let", - "yield", - "const", - "class", - // JS handles these with a special rule - // "get", - // "set", - "debugger", - "async", - "await", - "static", - "import", - "from", - "export", - "extends", - // It's reached stage 3, which is "recommended for implementation": - "using" -]; -const LITERALS = [ - "true", - "false", - "null", - "undefined", - "NaN", - "Infinity" -]; - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects -const TYPES = [ - // Fundamental objects - "Object", - "Function", - "Boolean", - "Symbol", - // numbers and dates - "Math", - "Date", - "Number", - "BigInt", - // text - "String", - "RegExp", - // Indexed collections - "Array", - "Float32Array", - "Float64Array", - "Int8Array", - "Uint8Array", - "Uint8ClampedArray", - "Int16Array", - "Int32Array", - "Uint16Array", - "Uint32Array", - "BigInt64Array", - "BigUint64Array", - // Keyed collections - "Set", - "Map", - "WeakSet", - "WeakMap", - // Structured data - "ArrayBuffer", - "SharedArrayBuffer", - "Atomics", - "DataView", - "JSON", - // Control abstraction objects - "Promise", - "Generator", - "GeneratorFunction", - "AsyncFunction", - // Reflection - "Reflect", - "Proxy", - // Internationalization - "Intl", - // WebAssembly - "WebAssembly" -]; - -const ERROR_TYPES = [ - "Error", - "EvalError", - "InternalError", - "RangeError", - "ReferenceError", - "SyntaxError", - "TypeError", - "URIError" -]; - -const BUILT_IN_GLOBALS = [ - "setInterval", - "setTimeout", - "clearInterval", - "clearTimeout", - - "require", - "exports", - - "eval", - "isFinite", - "isNaN", - "parseFloat", - "parseInt", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "unescape" -]; - -const BUILT_IN_VARIABLES = [ - "arguments", - "this", - "super", - "console", - "window", - "document", - "localStorage", - "sessionStorage", - "module", - "global" // Node.js -]; - -const BUILT_INS = [].concat( - BUILT_IN_GLOBALS, - TYPES, - ERROR_TYPES -); - -/* -Language: JavaScript -Description: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. -Category: common, scripting, web -Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript -*/ - - -/** @type LanguageFn */ -function javascript(hljs) { - const regex = hljs.regex; - /** - * Takes a string like " { - const tag = "', - end: '' - }; - // to avoid some special cases inside isTrulyOpeningTag - const XML_SELF_CLOSING = /<[A-Za-z0-9\\._:-]+\s*\/>/; - const XML_TAG = { - begin: /<[A-Za-z0-9\\._:-]+/, - end: /\/[A-Za-z0-9\\._:-]+>|\/>/, - /** - * @param {RegExpMatchArray} match - * @param {CallbackResponse} response - */ - isTrulyOpeningTag: (match, response) => { - const afterMatchIndex = match[0].length + match.index; - const nextChar = match.input[afterMatchIndex]; - if ( - // HTML should not include another raw `<` inside a tag - // nested type? - // `>`, etc. - nextChar === "<" || - // the , gives away that this is not HTML - // `` - nextChar === "," - ) { - response.ignoreMatch(); - return; - } - - // `` - // Quite possibly a tag, lets look for a matching closing tag... - if (nextChar === ">") { - // if we cannot find a matching closing tag, then we - // will ignore it - if (!hasClosingTag(match, { after: afterMatchIndex })) { - response.ignoreMatch(); - } - } - - // `` (self-closing) - // handled by simpleSelfClosing rule - - let m; - const afterMatch = match.input.substring(afterMatchIndex); - - // some more template typing stuff - // (key?: string) => Modify< - if ((m = afterMatch.match(/^\s*=/))) { - response.ignoreMatch(); - return; - } - - // `` - // technically this could be HTML, but it smells like a type - // NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276 - if ((m = afterMatch.match(/^\s+extends\s+/))) { - if (m.index === 0) { - response.ignoreMatch(); - // eslint-disable-next-line no-useless-return - return; - } - } - } - }; - const KEYWORDS$1 = { - $pattern: IDENT_RE, - keyword: KEYWORDS, - literal: LITERALS, - built_in: BUILT_INS, - "variable.language": BUILT_IN_VARIABLES - }; - - // https://tc39.es/ecma262/#sec-literals-numeric-literals - const decimalDigits = '[0-9](_?[0-9])*'; - const frac = `\\.(${decimalDigits})`; - // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral - // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals - const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`; - const NUMBER = { - className: 'number', - variants: [ - // DecimalLiteral - { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))` + - `[eE][+-]?(${decimalDigits})\\b` }, - { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` }, - - // DecimalBigIntegerLiteral - { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` }, - - // NonDecimalIntegerLiteral - { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, - { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, - { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, - - // LegacyOctalIntegerLiteral (does not include underscore separators) - // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals - { begin: "\\b0[0-7]+n?\\b" }, - ], - relevance: 0 - }; - - const SUBST = { - className: 'subst', - begin: '\\$\\{', - end: '\\}', - keywords: KEYWORDS$1, - contains: [] // defined later - }; - const HTML_TEMPLATE = { - begin: '\.?html`', - end: '', - starts: { - end: '`', - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: 'xml' - } - }; - const CSS_TEMPLATE = { - begin: '\.?css`', - end: '', - starts: { - end: '`', - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: 'css' - } - }; - const GRAPHQL_TEMPLATE = { - begin: '\.?gql`', - end: '', - starts: { - end: '`', - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: 'graphql' - } - }; - const TEMPLATE_STRING = { - className: 'string', - begin: '`', - end: '`', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }; - const JSDOC_COMMENT = hljs.COMMENT( - /\/\*\*(?!\/)/, - '\\*/', - { - relevance: 0, - contains: [ - { - begin: '(?=@[A-Za-z]+)', - relevance: 0, - contains: [ - { - className: 'doctag', - begin: '@[A-Za-z]+' - }, - { - className: 'type', - begin: '\\{', - end: '\\}', - excludeEnd: true, - excludeBegin: true, - relevance: 0 - }, - { - className: 'variable', - begin: IDENT_RE$1 + '(?=\\s*(-)|$)', - endsParent: true, - relevance: 0 - }, - // eat spaces (not newlines) so we can find - // types or variables - { - begin: /(?=[^\n])\s/, - relevance: 0 - } - ] - } - ] - } - ); - const COMMENT = { - className: "comment", - variants: [ - JSDOC_COMMENT, - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_LINE_COMMENT_MODE - ] - }; - const SUBST_INTERNALS = [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - GRAPHQL_TEMPLATE, - TEMPLATE_STRING, - // Skip numbers when they are part of a variable name - { match: /\$\d+/ }, - NUMBER, - // This is intentional: - // See https://github.com/highlightjs/highlight.js/issues/3288 - // hljs.REGEXP_MODE - ]; - SUBST.contains = SUBST_INTERNALS - .concat({ - // we need to pair up {} inside our subst to prevent - // it from ending too early by matching another } - begin: /\{/, - end: /\}/, - keywords: KEYWORDS$1, - contains: [ - "self" - ].concat(SUBST_INTERNALS) - }); - const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains); - const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([ - // eat recursive parens in sub expressions - { - begin: /(\s*)\(/, - end: /\)/, - keywords: KEYWORDS$1, - contains: ["self"].concat(SUBST_AND_COMMENTS) - } - ]); - const PARAMS = { - className: 'params', - // convert this to negative lookbehind in v12 - begin: /(\s*)\(/, // to match the parms with - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - }; - - // ES6 classes - const CLASS_OR_EXTENDS = { - variants: [ - // class Car extends vehicle - { - match: [ - /class/, - /\s+/, - IDENT_RE$1, - /\s+/, - /extends/, - /\s+/, - regex.concat(IDENT_RE$1, "(", regex.concat(/\./, IDENT_RE$1), ")*") - ], - scope: { - 1: "keyword", - 3: "title.class", - 5: "keyword", - 7: "title.class.inherited" - } - }, - // class Car - { - match: [ - /class/, - /\s+/, - IDENT_RE$1 - ], - scope: { - 1: "keyword", - 3: "title.class" - } - }, - - ] - }; - - const CLASS_REFERENCE = { - relevance: 0, - match: - regex.either( - // Hard coded exceptions - /\bJSON/, - // Float32Array, OutT - /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, - // CSSFactory, CSSFactoryT - /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, - // FPs, FPsT - /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/, - // P - // single letters are not highlighted - // BLAH - // this will be flagged as a UPPER_CASE_CONSTANT instead - ), - className: "title.class", - keywords: { - _: [ - // se we still get relevance credit for JS library classes - ...TYPES, - ...ERROR_TYPES - ] - } - }; - - const USE_STRICT = { - label: "use_strict", - className: 'meta', - relevance: 10, - begin: /^\s*['"]use (strict|asm)['"]/ - }; - - const FUNCTION_DEFINITION = { - variants: [ - { - match: [ - /function/, - /\s+/, - IDENT_RE$1, - /(?=\s*\()/ - ] - }, - // anonymous function - { - match: [ - /function/, - /\s*(?=\()/ - ] - } - ], - className: { - 1: "keyword", - 3: "title.function" - }, - label: "func.def", - contains: [ PARAMS ], - illegal: /%/ - }; - - const UPPER_CASE_CONSTANT = { - relevance: 0, - match: /\b[A-Z][A-Z_0-9]+\b/, - className: "variable.constant" - }; - - function noneOf(list) { - return regex.concat("(?!", list.join("|"), ")"); - } - - const FUNCTION_CALL = { - match: regex.concat( - /\b/, - noneOf([ - ...BUILT_IN_GLOBALS, - "super", - "import" - ].map(x => `${x}\\s*\\(`)), - IDENT_RE$1, regex.lookahead(/\s*\(/)), - className: "title.function", - relevance: 0 - }; - - const PROPERTY_ACCESS = { - begin: regex.concat(/\./, regex.lookahead( - regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/) - )), - end: IDENT_RE$1, - excludeBegin: true, - keywords: "prototype", - className: "property", - relevance: 0 - }; - - const GETTER_OR_SETTER = { - match: [ - /get|set/, - /\s+/, - IDENT_RE$1, - /(?=\()/ - ], - className: { - 1: "keyword", - 3: "title.function" - }, - contains: [ - { // eat to avoid empty params - begin: /\(\)/ - }, - PARAMS - ] - }; - - const FUNC_LEAD_IN_RE = '(\\(' + - '[^()]*(\\(' + - '[^()]*(\\(' + - '[^()]*' + - '\\)[^()]*)*' + - '\\)[^()]*)*' + - '\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\s*=>'; - - const FUNCTION_VARIABLE = { - match: [ - /const|var|let/, /\s+/, - IDENT_RE$1, /\s*/, - /=\s*/, - /(async\s*)?/, // async is optional - regex.lookahead(FUNC_LEAD_IN_RE) - ], - keywords: "async", - className: { - 1: "keyword", - 3: "title.function" - }, - contains: [ - PARAMS - ] - }; - - return { - name: 'JavaScript', - aliases: ['js', 'jsx', 'mjs', 'cjs'], - keywords: KEYWORDS$1, - // this will be extended by TypeScript - exports: { PARAMS_CONTAINS, CLASS_REFERENCE }, - illegal: /#(?![$_A-z])/, - contains: [ - hljs.SHEBANG({ - label: "shebang", - binary: "node", - relevance: 5 - }), - USE_STRICT, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - GRAPHQL_TEMPLATE, - TEMPLATE_STRING, - COMMENT, - // Skip numbers when they are part of a variable name - { match: /\$\d+/ }, - NUMBER, - CLASS_REFERENCE, - { - scope: 'attr', - match: IDENT_RE$1 + regex.lookahead(':'), - relevance: 0 - }, - FUNCTION_VARIABLE, - { // "value" container - begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', - keywords: 'return throw case', - relevance: 0, - contains: [ - COMMENT, - hljs.REGEXP_MODE, - { - className: 'function', - // we have to count the parens to make sure we actually have the - // correct bounding ( ) before the =>. There could be any number of - // sub-expressions inside also surrounded by parens. - begin: FUNC_LEAD_IN_RE, - returnBegin: true, - end: '\\s*=>', - contains: [ - { - className: 'params', - variants: [ - { - begin: hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - }, - { - className: null, - begin: /\(\s*\)/, - skip: true - }, - { - begin: /(\s*)\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - } - ] - } - ] - }, - { // could be a comma delimited list of params to a function call - begin: /,/, - relevance: 0 - }, - { - match: /\s+/, - relevance: 0 - }, - { // JSX - variants: [ - { begin: FRAGMENT.begin, end: FRAGMENT.end }, - { match: XML_SELF_CLOSING }, - { - begin: XML_TAG.begin, - // we carefully check the opening tag to see if it truly - // is a tag and not a false positive - 'on:begin': XML_TAG.isTrulyOpeningTag, - end: XML_TAG.end - } - ], - subLanguage: 'xml', - contains: [ - { - begin: XML_TAG.begin, - end: XML_TAG.end, - skip: true, - contains: ['self'] - } - ] - } - ], - }, - FUNCTION_DEFINITION, - { - // prevent this from getting swallowed up by function - // since they appear "function like" - beginKeywords: "while if switch catch for" - }, - { - // we have to count the parens to make sure we actually have the correct - // bounding ( ). There could be any number of sub-expressions inside - // also surrounded by parens. - begin: '\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE + - '\\(' + // first parens - '[^()]*(\\(' + - '[^()]*(\\(' + - '[^()]*' + - '\\)[^()]*)*' + - '\\)[^()]*)*' + - '\\)\\s*\\{', // end parens - returnBegin:true, - label: "func.def", - contains: [ - PARAMS, - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" }) - ] - }, - // catch ... so it won't trigger the property rule below - { - match: /\.\.\./, - relevance: 0 - }, - PROPERTY_ACCESS, - // hack: prevents detection of keywords in some circumstances - // .keyword() - // $keyword = x - { - match: '\\$' + IDENT_RE$1, - relevance: 0 - }, - { - match: [ /\bconstructor(?=\s*\()/ ], - className: { 1: "title.function" }, - contains: [ PARAMS ] - }, - FUNCTION_CALL, - UPPER_CASE_CONSTANT, - CLASS_OR_EXTENDS, - GETTER_OR_SETTER, - { - match: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` - } - ] - }; -} - -export { javascript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js.js deleted file mode 100644 index 1b87533..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/javascript" instead of "highlight.js/lib/languages/javascript.js"' - ); - } - } - emitWarning(); - import lang from './javascript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/jboss-cli.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/jboss-cli.js deleted file mode 100644 index fb6988b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/jboss-cli.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - Language: JBoss CLI - Author: Raphaël Parrëe - Description: language definition jboss cli - Website: https://docs.jboss.org/author/display/WFLY/Command+Line+Interface - Category: config - */ - -function jbossCli(hljs) { - const PARAM = { - begin: /[\w-]+ *=/, - returnBegin: true, - relevance: 0, - contains: [ - { - className: 'attr', - begin: /[\w-]+/ - } - ] - }; - const PARAMSBLOCK = { - className: 'params', - begin: /\(/, - end: /\)/, - contains: [ PARAM ], - relevance: 0 - }; - const OPERATION = { - className: 'function', - begin: /:[\w\-.]+/, - relevance: 0 - }; - const PATH = { - className: 'string', - begin: /\B([\/.])[\w\-.\/=]+/ - }; - const COMMAND_PARAMS = { - className: 'params', - begin: /--[\w\-=\/]+/ - }; - return { - name: 'JBoss CLI', - aliases: [ 'wildfly-cli' ], - keywords: { - $pattern: '[a-z\-]+', - keyword: 'alias batch cd clear command connect connection-factory connection-info data-source deploy ' - + 'deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls ' - + 'patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias ' - + 'undeploy unset version xa-data-source', // module - literal: 'true false' - }, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - COMMAND_PARAMS, - OPERATION, - PATH, - PARAMSBLOCK - ] - }; -} - -export { jbossCli as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/jboss-cli.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/jboss-cli.js.js deleted file mode 100644 index 4bd02c3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/jboss-cli.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/jboss-cli" instead of "highlight.js/lib/languages/jboss-cli.js"' - ); - } - } - emitWarning(); - import lang from './jboss-cli.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js deleted file mode 100644 index 49a7cf4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +++ /dev/null @@ -1,54 +0,0 @@ -/* -Language: JSON -Description: JSON (JavaScript Object Notation) is a lightweight data-interchange format. -Author: Ivan Sagalaev -Website: http://www.json.org -Category: common, protocols, web -*/ - -function json(hljs) { - const ATTRIBUTE = { - className: 'attr', - begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/, - relevance: 1.01 - }; - const PUNCTUATION = { - match: /[{}[\],:]/, - className: "punctuation", - relevance: 0 - }; - const LITERALS = [ - "true", - "false", - "null" - ]; - // NOTE: normally we would rely on `keywords` for this but using a mode here allows us - // - to use the very tight `illegal: \S` rule later to flag any other character - // - as illegal indicating that despite looking like JSON we do not truly have - // - JSON and thus improve false-positively greatly since JSON will try and claim - // - all sorts of JSON looking stuff - const LITERALS_MODE = { - scope: "literal", - beginKeywords: LITERALS.join(" "), - }; - - return { - name: 'JSON', - aliases: ['jsonc'], - keywords:{ - literal: LITERALS, - }, - contains: [ - ATTRIBUTE, - PUNCTUATION, - hljs.QUOTE_STRING_MODE, - LITERALS_MODE, - hljs.C_NUMBER_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ], - illegal: '\\S' - }; -} - -export { json as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js.js deleted file mode 100644 index 57cbe21..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/json" instead of "highlight.js/lib/languages/json.js"' - ); - } - } - emitWarning(); - import lang from './json.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia-repl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia-repl.js deleted file mode 100644 index 41a6abf..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia-repl.js +++ /dev/null @@ -1,51 +0,0 @@ -/* -Language: Julia REPL -Description: Julia REPL sessions -Author: Morten Piibeleht -Website: https://julialang.org -Requires: julia.js -Category: scientific - -The Julia REPL code blocks look something like the following: - - julia> function foo(x) - x + 1 - end - foo (generic function with 1 method) - -They start on a new line with "julia>". Usually there should also be a space after this, but -we also allow the code to start right after the > character. The code may run over multiple -lines, but the additional lines must start with six spaces (i.e. be indented to match -"julia>"). The rest of the code is assumed to be output from the executed code and will be -left un-highlighted. - -Using simply spaces to identify line continuations may get a false-positive if the output -also prints out six spaces, but such cases should be rare. -*/ - -function juliaRepl(hljs) { - return { - name: 'Julia REPL', - contains: [ - { - className: 'meta.prompt', - begin: /^julia>/, - relevance: 10, - starts: { - // end the highlighting if we are on a new line and the line does not have at - // least six spaces in the beginning - end: /^(?![ ]{6})/, - subLanguage: 'julia' - }, - }, - ], - // jldoctest Markdown blocks are used in the Julia manual and package docs indicate - // code snippets that should be verified when the documentation is built. They can be - // either REPL-like or script-like, but are usually REPL-like and therefore we apply - // julia-repl highlighting to them. More information can be found in Documenter's - // manual: https://juliadocs.github.io/Documenter.jl/latest/man/doctests.html - aliases: [ 'jldoctest' ], - }; -} - -export { juliaRepl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia-repl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia-repl.js.js deleted file mode 100644 index 430095b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia-repl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/julia-repl" instead of "highlight.js/lib/languages/julia-repl.js"' - ); - } - } - emitWarning(); - import lang from './julia-repl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia.js deleted file mode 100644 index 5fe61b1..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia.js +++ /dev/null @@ -1,442 +0,0 @@ -/* -Language: Julia -Description: Julia is a high-level, high-performance, dynamic programming language. -Author: Kenta Sato -Contributors: Alex Arslan , Fredrik Ekre -Website: https://julialang.org -Category: scientific -*/ - -function julia(hljs) { - // Since there are numerous special names in Julia, it is too much trouble - // to maintain them by hand. Hence these names (i.e. keywords, literals and - // built-ins) are automatically generated from Julia 1.5.2 itself through - // the following scripts for each. - - // ref: https://docs.julialang.org/en/v1/manual/variables/#Allowed-Variable-Names - const VARIABLE_NAME_RE = '[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*'; - - // # keyword generator, multi-word keywords handled manually below (Julia 1.5.2) - // import REPL.REPLCompletions - // res = String["in", "isa", "where"] - // for kw in collect(x.keyword for x in REPLCompletions.complete_keyword("")) - // if !(contains(kw, " ") || kw == "struct") - // push!(res, kw) - // end - // end - // sort!(unique!(res)) - // foreach(x -> println("\'", x, "\',"), res) - const KEYWORD_LIST = [ - 'baremodule', - 'begin', - 'break', - 'catch', - 'ccall', - 'const', - 'continue', - 'do', - 'else', - 'elseif', - 'end', - 'export', - 'false', - 'finally', - 'for', - 'function', - 'global', - 'if', - 'import', - 'in', - 'isa', - 'let', - 'local', - 'macro', - 'module', - 'quote', - 'return', - 'true', - 'try', - 'using', - 'where', - 'while', - ]; - - // # literal generator (Julia 1.5.2) - // import REPL.REPLCompletions - // res = String["true", "false"] - // for compl in filter!(x -> isa(x, REPLCompletions.ModuleCompletion) && (x.parent === Base || x.parent === Core), - // REPLCompletions.completions("", 0)[1]) - // try - // v = eval(Symbol(compl.mod)) - // if !(v isa Function || v isa Type || v isa TypeVar || v isa Module || v isa Colon) - // push!(res, compl.mod) - // end - // catch e - // end - // end - // sort!(unique!(res)) - // foreach(x -> println("\'", x, "\',"), res) - const LITERAL_LIST = [ - 'ARGS', - 'C_NULL', - 'DEPOT_PATH', - 'ENDIAN_BOM', - 'ENV', - 'Inf', - 'Inf16', - 'Inf32', - 'Inf64', - 'InsertionSort', - 'LOAD_PATH', - 'MergeSort', - 'NaN', - 'NaN16', - 'NaN32', - 'NaN64', - 'PROGRAM_FILE', - 'QuickSort', - 'RoundDown', - 'RoundFromZero', - 'RoundNearest', - 'RoundNearestTiesAway', - 'RoundNearestTiesUp', - 'RoundToZero', - 'RoundUp', - 'VERSION|0', - 'devnull', - 'false', - 'im', - 'missing', - 'nothing', - 'pi', - 'stderr', - 'stdin', - 'stdout', - 'true', - 'undef', - 'π', - 'ℯ', - ]; - - // # built_in generator (Julia 1.5.2) - // import REPL.REPLCompletions - // res = String[] - // for compl in filter!(x -> isa(x, REPLCompletions.ModuleCompletion) && (x.parent === Base || x.parent === Core), - // REPLCompletions.completions("", 0)[1]) - // try - // v = eval(Symbol(compl.mod)) - // if (v isa Type || v isa TypeVar) && (compl.mod != "=>") - // push!(res, compl.mod) - // end - // catch e - // end - // end - // sort!(unique!(res)) - // foreach(x -> println("\'", x, "\',"), res) - const BUILT_IN_LIST = [ - 'AbstractArray', - 'AbstractChannel', - 'AbstractChar', - 'AbstractDict', - 'AbstractDisplay', - 'AbstractFloat', - 'AbstractIrrational', - 'AbstractMatrix', - 'AbstractRange', - 'AbstractSet', - 'AbstractString', - 'AbstractUnitRange', - 'AbstractVecOrMat', - 'AbstractVector', - 'Any', - 'ArgumentError', - 'Array', - 'AssertionError', - 'BigFloat', - 'BigInt', - 'BitArray', - 'BitMatrix', - 'BitSet', - 'BitVector', - 'Bool', - 'BoundsError', - 'CapturedException', - 'CartesianIndex', - 'CartesianIndices', - 'Cchar', - 'Cdouble', - 'Cfloat', - 'Channel', - 'Char', - 'Cint', - 'Cintmax_t', - 'Clong', - 'Clonglong', - 'Cmd', - 'Colon', - 'Complex', - 'ComplexF16', - 'ComplexF32', - 'ComplexF64', - 'CompositeException', - 'Condition', - 'Cptrdiff_t', - 'Cshort', - 'Csize_t', - 'Cssize_t', - 'Cstring', - 'Cuchar', - 'Cuint', - 'Cuintmax_t', - 'Culong', - 'Culonglong', - 'Cushort', - 'Cvoid', - 'Cwchar_t', - 'Cwstring', - 'DataType', - 'DenseArray', - 'DenseMatrix', - 'DenseVecOrMat', - 'DenseVector', - 'Dict', - 'DimensionMismatch', - 'Dims', - 'DivideError', - 'DomainError', - 'EOFError', - 'Enum', - 'ErrorException', - 'Exception', - 'ExponentialBackOff', - 'Expr', - 'Float16', - 'Float32', - 'Float64', - 'Function', - 'GlobalRef', - 'HTML', - 'IO', - 'IOBuffer', - 'IOContext', - 'IOStream', - 'IdDict', - 'IndexCartesian', - 'IndexLinear', - 'IndexStyle', - 'InexactError', - 'InitError', - 'Int', - 'Int128', - 'Int16', - 'Int32', - 'Int64', - 'Int8', - 'Integer', - 'InterruptException', - 'InvalidStateException', - 'Irrational', - 'KeyError', - 'LinRange', - 'LineNumberNode', - 'LinearIndices', - 'LoadError', - 'MIME', - 'Matrix', - 'Method', - 'MethodError', - 'Missing', - 'MissingException', - 'Module', - 'NTuple', - 'NamedTuple', - 'Nothing', - 'Number', - 'OrdinalRange', - 'OutOfMemoryError', - 'OverflowError', - 'Pair', - 'PartialQuickSort', - 'PermutedDimsArray', - 'Pipe', - 'ProcessFailedException', - 'Ptr', - 'QuoteNode', - 'Rational', - 'RawFD', - 'ReadOnlyMemoryError', - 'Real', - 'ReentrantLock', - 'Ref', - 'Regex', - 'RegexMatch', - 'RoundingMode', - 'SegmentationFault', - 'Set', - 'Signed', - 'Some', - 'StackOverflowError', - 'StepRange', - 'StepRangeLen', - 'StridedArray', - 'StridedMatrix', - 'StridedVecOrMat', - 'StridedVector', - 'String', - 'StringIndexError', - 'SubArray', - 'SubString', - 'SubstitutionString', - 'Symbol', - 'SystemError', - 'Task', - 'TaskFailedException', - 'Text', - 'TextDisplay', - 'Timer', - 'Tuple', - 'Type', - 'TypeError', - 'TypeVar', - 'UInt', - 'UInt128', - 'UInt16', - 'UInt32', - 'UInt64', - 'UInt8', - 'UndefInitializer', - 'UndefKeywordError', - 'UndefRefError', - 'UndefVarError', - 'Union', - 'UnionAll', - 'UnitRange', - 'Unsigned', - 'Val', - 'Vararg', - 'VecElement', - 'VecOrMat', - 'Vector', - 'VersionNumber', - 'WeakKeyDict', - 'WeakRef', - ]; - - const KEYWORDS = { - $pattern: VARIABLE_NAME_RE, - keyword: KEYWORD_LIST, - literal: LITERAL_LIST, - built_in: BUILT_IN_LIST, - }; - - // placeholder for recursive self-reference - const DEFAULT = { - keywords: KEYWORDS, - illegal: /<\// - }; - - // ref: https://docs.julialang.org/en/v1/manual/integers-and-floating-point-numbers/ - const NUMBER = { - className: 'number', - // supported numeric literals: - // * binary literal (e.g. 0x10) - // * octal literal (e.g. 0o76543210) - // * hexadecimal literal (e.g. 0xfedcba876543210) - // * hexadecimal floating point literal (e.g. 0x1p0, 0x1.2p2) - // * decimal literal (e.g. 9876543210, 100_000_000) - // * floating pointe literal (e.g. 1.2, 1.2f, .2, 1., 1.2e10, 1.2e-10) - begin: /(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/, - relevance: 0 - }; - - const CHAR = { - className: 'string', - begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/ - }; - - const INTERPOLATION = { - className: 'subst', - begin: /\$\(/, - end: /\)/, - keywords: KEYWORDS - }; - - const INTERPOLATED_VARIABLE = { - className: 'variable', - begin: '\\$' + VARIABLE_NAME_RE - }; - - // TODO: neatly escape normal code in string literal - const STRING = { - className: 'string', - contains: [ - hljs.BACKSLASH_ESCAPE, - INTERPOLATION, - INTERPOLATED_VARIABLE - ], - variants: [ - { - begin: /\w*"""/, - end: /"""\w*/, - relevance: 10 - }, - { - begin: /\w*"/, - end: /"\w*/ - } - ] - }; - - const COMMAND = { - className: 'string', - contains: [ - hljs.BACKSLASH_ESCAPE, - INTERPOLATION, - INTERPOLATED_VARIABLE - ], - begin: '`', - end: '`' - }; - - const MACROCALL = { - className: 'meta', - begin: '@' + VARIABLE_NAME_RE - }; - - const COMMENT = { - className: 'comment', - variants: [ - { - begin: '#=', - end: '=#', - relevance: 10 - }, - { - begin: '#', - end: '$' - } - ] - }; - - DEFAULT.name = 'Julia'; - DEFAULT.contains = [ - NUMBER, - CHAR, - STRING, - COMMAND, - MACROCALL, - COMMENT, - hljs.HASH_COMMENT_MODE, - { - className: 'keyword', - begin: - '\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b' - }, - { begin: /<:/ } // relevance booster - ]; - INTERPOLATION.contains = DEFAULT.contains; - - return DEFAULT; -} - -export { julia as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia.js.js deleted file mode 100644 index 05974a8..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/julia.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/julia" instead of "highlight.js/lib/languages/julia.js"' - ); - } - } - emitWarning(); - import lang from './julia.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js deleted file mode 100644 index 76bd950..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js +++ /dev/null @@ -1,286 +0,0 @@ -// https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10 -var decimalDigits = '[0-9](_*[0-9])*'; -var frac = `\\.(${decimalDigits})`; -var hexDigits = '[0-9a-fA-F](_*[0-9a-fA-F])*'; -var NUMERIC = { - className: 'number', - variants: [ - // DecimalFloatingPointLiteral - // including ExponentPart - { begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))` + - `[eE][+-]?(${decimalDigits})[fFdD]?\\b` }, - // excluding ExponentPart - { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` }, - { begin: `(${frac})[fFdD]?\\b` }, - { begin: `\\b(${decimalDigits})[fFdD]\\b` }, - - // HexadecimalFloatingPointLiteral - { begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))` + - `[pP][+-]?(${decimalDigits})[fFdD]?\\b` }, - - // DecimalIntegerLiteral - { begin: '\\b(0|[1-9](_*[0-9])*)[lL]?\\b' }, - - // HexIntegerLiteral - { begin: `\\b0[xX](${hexDigits})[lL]?\\b` }, - - // OctalIntegerLiteral - { begin: '\\b0(_*[0-7])*[lL]?\\b' }, - - // BinaryIntegerLiteral - { begin: '\\b0[bB][01](_*[01])*[lL]?\\b' }, - ], - relevance: 0 -}; - -/* - Language: Kotlin - Description: Kotlin is an OSS statically typed programming language that targets the JVM, Android, JavaScript and Native. - Author: Sergey Mashkov - Website: https://kotlinlang.org - Category: common - */ - - -function kotlin(hljs) { - const KEYWORDS = { - keyword: - 'abstract as val var vararg get set class object open private protected public noinline ' - + 'crossinline dynamic final enum if else do while for when throw try catch finally ' - + 'import package is in fun override companion reified inline lateinit init ' - + 'interface annotation data sealed internal infix operator out by constructor super ' - + 'tailrec where const inner suspend typealias external expect actual', - built_in: - 'Byte Short Char Int Long Boolean Float Double Void Unit Nothing', - literal: - 'true false null' - }; - const KEYWORDS_WITH_LABEL = { - className: 'keyword', - begin: /\b(break|continue|return|this)\b/, - starts: { contains: [ - { - className: 'symbol', - begin: /@\w+/ - } - ] } - }; - const LABEL = { - className: 'symbol', - begin: hljs.UNDERSCORE_IDENT_RE + '@' - }; - - // for string templates - const SUBST = { - className: 'subst', - begin: /\$\{/, - end: /\}/, - contains: [ hljs.C_NUMBER_MODE ] - }; - const VARIABLE = { - className: 'variable', - begin: '\\$' + hljs.UNDERSCORE_IDENT_RE - }; - const STRING = { - className: 'string', - variants: [ - { - begin: '"""', - end: '"""(?=[^"])', - contains: [ - VARIABLE, - SUBST - ] - }, - // Can't use built-in modes easily, as we want to use STRING in the meta - // context as 'meta-string' and there's no syntax to remove explicitly set - // classNames in built-in modes. - { - begin: '\'', - end: '\'', - illegal: /\n/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: '"', - end: '"', - illegal: /\n/, - contains: [ - hljs.BACKSLASH_ESCAPE, - VARIABLE, - SUBST - ] - } - ] - }; - SUBST.contains.push(STRING); - - const ANNOTATION_USE_SITE = { - className: 'meta', - begin: '@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*' + hljs.UNDERSCORE_IDENT_RE + ')?' - }; - const ANNOTATION = { - className: 'meta', - begin: '@' + hljs.UNDERSCORE_IDENT_RE, - contains: [ - { - begin: /\(/, - end: /\)/, - contains: [ - hljs.inherit(STRING, { className: 'string' }), - "self" - ] - } - ] - }; - - // https://kotlinlang.org/docs/reference/whatsnew11.html#underscores-in-numeric-literals - // According to the doc above, the number mode of kotlin is the same as java 8, - // so the code below is copied from java.js - const KOTLIN_NUMBER_MODE = NUMERIC; - const KOTLIN_NESTED_COMMENT = hljs.COMMENT( - '/\\*', '\\*/', - { contains: [ hljs.C_BLOCK_COMMENT_MODE ] } - ); - const KOTLIN_PAREN_TYPE = { variants: [ - { - className: 'type', - begin: hljs.UNDERSCORE_IDENT_RE - }, - { - begin: /\(/, - end: /\)/, - contains: [] // defined later - } - ] }; - const KOTLIN_PAREN_TYPE2 = KOTLIN_PAREN_TYPE; - KOTLIN_PAREN_TYPE2.variants[1].contains = [ KOTLIN_PAREN_TYPE ]; - KOTLIN_PAREN_TYPE.variants[1].contains = [ KOTLIN_PAREN_TYPE2 ]; - - return { - name: 'Kotlin', - aliases: [ - 'kt', - 'kts' - ], - keywords: KEYWORDS, - contains: [ - hljs.COMMENT( - '/\\*\\*', - '\\*/', - { - relevance: 0, - contains: [ - { - className: 'doctag', - begin: '@[A-Za-z]+' - } - ] - } - ), - hljs.C_LINE_COMMENT_MODE, - KOTLIN_NESTED_COMMENT, - KEYWORDS_WITH_LABEL, - LABEL, - ANNOTATION_USE_SITE, - ANNOTATION, - { - className: 'function', - beginKeywords: 'fun', - end: '[(]|$', - returnBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - relevance: 5, - contains: [ - { - begin: hljs.UNDERSCORE_IDENT_RE + '\\s*\\(', - returnBegin: true, - relevance: 0, - contains: [ hljs.UNDERSCORE_TITLE_MODE ] - }, - { - className: 'type', - begin: //, - keywords: 'reified', - relevance: 0 - }, - { - className: 'params', - begin: /\(/, - end: /\)/, - endsParent: true, - keywords: KEYWORDS, - relevance: 0, - contains: [ - { - begin: /:/, - end: /[=,\/]/, - endsWithParent: true, - contains: [ - KOTLIN_PAREN_TYPE, - hljs.C_LINE_COMMENT_MODE, - KOTLIN_NESTED_COMMENT - ], - relevance: 0 - }, - hljs.C_LINE_COMMENT_MODE, - KOTLIN_NESTED_COMMENT, - ANNOTATION_USE_SITE, - ANNOTATION, - STRING, - hljs.C_NUMBER_MODE - ] - }, - KOTLIN_NESTED_COMMENT - ] - }, - { - begin: [ - /class|interface|trait/, - /\s+/, - hljs.UNDERSCORE_IDENT_RE - ], - beginScope: { - 3: "title.class" - }, - keywords: 'class interface trait', - end: /[:\{(]|$/, - excludeEnd: true, - illegal: 'extends implements', - contains: [ - { beginKeywords: 'public protected internal private constructor' }, - hljs.UNDERSCORE_TITLE_MODE, - { - className: 'type', - begin: //, - excludeBegin: true, - excludeEnd: true, - relevance: 0 - }, - { - className: 'type', - begin: /[,:]\s*/, - end: /[<\(,){\s]|$/, - excludeBegin: true, - returnEnd: true - }, - ANNOTATION_USE_SITE, - ANNOTATION - ] - }, - STRING, - { - className: 'meta', - begin: "^#!/usr/bin/env", - end: '$', - illegal: '\n' - }, - KOTLIN_NUMBER_MODE - ] - }; -} - -export { kotlin as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js.js deleted file mode 100644 index accf259..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/kotlin.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/kotlin" instead of "highlight.js/lib/languages/kotlin.js"' - ); - } - } - emitWarning(); - import lang from './kotlin.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lasso.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lasso.js deleted file mode 100644 index 93d3122..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lasso.js +++ /dev/null @@ -1,171 +0,0 @@ -/* -Language: Lasso -Author: Eric Knibbe -Description: Lasso is a language and server platform for database-driven web applications. This definition handles Lasso 9 syntax and LassoScript for Lasso 8.6 and earlier. -Website: http://www.lassosoft.com/What-Is-Lasso -Category: database, web -*/ - -function lasso(hljs) { - const LASSO_IDENT_RE = '[a-zA-Z_][\\w.]*'; - const LASSO_ANGLE_RE = '<\\?(lasso(script)?|=)'; - const LASSO_CLOSE_RE = '\\]|\\?>'; - const LASSO_KEYWORDS = { - $pattern: LASSO_IDENT_RE + '|&[lg]t;', - literal: - 'true false none minimal full all void and or not ' - + 'bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft', - built_in: - 'array date decimal duration integer map pair string tag xml null ' - + 'boolean bytes keyword list locale queue set stack staticarray ' - + 'local var variable global data self inherited currentcapture givenblock', - keyword: - 'cache database_names database_schemanames database_tablenames ' - + 'define_tag define_type email_batch encode_set html_comment handle ' - + 'handle_error header if inline iterate ljax_target link ' - + 'link_currentaction link_currentgroup link_currentrecord link_detail ' - + 'link_firstgroup link_firstrecord link_lastgroup link_lastrecord ' - + 'link_nextgroup link_nextrecord link_prevgroup link_prevrecord log ' - + 'loop namespace_using output_none portal private protect records ' - + 'referer referrer repeating resultset rows search_args ' - + 'search_arguments select sort_args sort_arguments thread_atomic ' - + 'value_list while abort case else fail_if fail_ifnot fail if_empty ' - + 'if_false if_null if_true loop_abort loop_continue loop_count params ' - + 'params_up return return_value run_children soap_definetag ' - + 'soap_lastrequest soap_lastresponse tag_name ascending average by ' - + 'define descending do equals frozen group handle_failure import in ' - + 'into join let match max min on order parent protected provide public ' - + 'require returnhome skip split_thread sum take thread to trait type ' - + 'where with yield yieldhome' - }; - const HTML_COMMENT = hljs.COMMENT( - '', - { relevance: 0 } - ); - const LASSO_NOPROCESS = { - className: 'meta', - begin: '\\[noprocess\\]', - starts: { - end: '\\[/noprocess\\]', - returnEnd: true, - contains: [ HTML_COMMENT ] - } - }; - const LASSO_START = { - className: 'meta', - begin: '\\[/noprocess|' + LASSO_ANGLE_RE - }; - const LASSO_DATAMEMBER = { - className: 'symbol', - begin: '\'' + LASSO_IDENT_RE + '\'' - }; - const LASSO_CODE = [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.inherit(hljs.C_NUMBER_MODE, { begin: hljs.C_NUMBER_RE + '|(-?infinity|NaN)\\b' }), - hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), - { - className: 'string', - begin: '`', - end: '`' - }, - { // variables - variants: [ - { begin: '[#$]' + LASSO_IDENT_RE }, - { - begin: '#', - end: '\\d+', - illegal: '\\W' - } - ] }, - { - className: 'type', - begin: '::\\s*', - end: LASSO_IDENT_RE, - illegal: '\\W' - }, - { - className: 'params', - variants: [ - { - begin: '-(?!infinity)' + LASSO_IDENT_RE, - relevance: 0 - }, - { begin: '(\\.\\.\\.)' } - ] - }, - { - begin: /(->|\.)\s*/, - relevance: 0, - contains: [ LASSO_DATAMEMBER ] - }, - { - className: 'class', - beginKeywords: 'define', - returnEnd: true, - end: '\\(|=>', - contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: LASSO_IDENT_RE + '(=(?!>))?|[-+*/%](?!>)' }) ] - } - ]; - return { - name: 'Lasso', - aliases: [ - 'ls', - 'lassoscript' - ], - case_insensitive: true, - keywords: LASSO_KEYWORDS, - contains: [ - { - className: 'meta', - begin: LASSO_CLOSE_RE, - relevance: 0, - starts: { // markup - end: '\\[|' + LASSO_ANGLE_RE, - returnEnd: true, - relevance: 0, - contains: [ HTML_COMMENT ] - } - }, - LASSO_NOPROCESS, - LASSO_START, - { - className: 'meta', - begin: '\\[no_square_brackets', - starts: { - end: '\\[/no_square_brackets\\]', // not implemented in the language - keywords: LASSO_KEYWORDS, - contains: [ - { - className: 'meta', - begin: LASSO_CLOSE_RE, - relevance: 0, - starts: { - end: '\\[noprocess\\]|' + LASSO_ANGLE_RE, - returnEnd: true, - contains: [ HTML_COMMENT ] - } - }, - LASSO_NOPROCESS, - LASSO_START - ].concat(LASSO_CODE) - } - }, - { - className: 'meta', - begin: '\\[', - relevance: 0 - }, - { - className: 'meta', - begin: '^#!', - end: 'lasso9$', - relevance: 10 - } - ].concat(LASSO_CODE) - }; -} - -export { lasso as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lasso.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lasso.js.js deleted file mode 100644 index 97e2e24..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lasso.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/lasso" instead of "highlight.js/lib/languages/lasso.js"' - ); - } - } - emitWarning(); - import lang from './lasso.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js deleted file mode 100644 index b61f6d7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js +++ /dev/null @@ -1,278 +0,0 @@ -/* -Language: LaTeX -Author: Benedikt Wilde -Website: https://www.latex-project.org -Category: markup -*/ - -/** @type LanguageFn */ -function latex(hljs) { - const regex = hljs.regex; - const KNOWN_CONTROL_WORDS = regex.either(...[ - '(?:NeedsTeXFormat|RequirePackage|GetIdInfo)', - 'Provides(?:Expl)?(?:Package|Class|File)', - '(?:DeclareOption|ProcessOptions)', - '(?:documentclass|usepackage|input|include)', - 'makeat(?:letter|other)', - 'ExplSyntax(?:On|Off)', - '(?:new|renew|provide)?command', - '(?:re)newenvironment', - '(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand', - '(?:New|Renew|Provide|Declare)DocumentEnvironment', - '(?:(?:e|g|x)?def|let)', - '(?:begin|end)', - '(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)', - 'caption', - '(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)', - '(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)', - '(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)', - '(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)', - '(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)', - '(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)' - ].map(word => word + '(?![a-zA-Z@:_])')); - const L3_REGEX = new RegExp([ - // A function \module_function_name:signature or \__module_function_name:signature, - // where both module and function_name need at least two characters and - // function_name may contain single underscores. - '(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*', - // A variable \scope_module_and_name_type or \scope__module_ane_name_type, - // where scope is one of l, g or c, type needs at least two characters - // and module_and_name may contain single underscores. - '[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}', - // A quark \q_the_name or \q__the_name or - // scan mark \s_the_name or \s__vthe_name, - // where variable_name needs at least two characters and - // may contain single underscores. - '[qs]__?[a-zA-Z](?:_?[a-zA-Z])+', - // Other LaTeX3 macro names that are not covered by the three rules above. - 'use(?:_i)?:[a-zA-Z]*', - '(?:else|fi|or):', - '(?:if|cs|exp):w', - '(?:hbox|vbox):n', - '::[a-zA-Z]_unbraced', - '::[a-zA-Z:]' - ].map(pattern => pattern + '(?![a-zA-Z:_])').join('|')); - const L2_VARIANTS = [ - { begin: /[a-zA-Z@]+/ }, // control word - { begin: /[^a-zA-Z@]?/ } // control symbol - ]; - const DOUBLE_CARET_VARIANTS = [ - { begin: /\^{6}[0-9a-f]{6}/ }, - { begin: /\^{5}[0-9a-f]{5}/ }, - { begin: /\^{4}[0-9a-f]{4}/ }, - { begin: /\^{3}[0-9a-f]{3}/ }, - { begin: /\^{2}[0-9a-f]{2}/ }, - { begin: /\^{2}[\u0000-\u007f]/ } - ]; - const CONTROL_SEQUENCE = { - className: 'keyword', - begin: /\\/, - relevance: 0, - contains: [ - { - endsParent: true, - begin: KNOWN_CONTROL_WORDS - }, - { - endsParent: true, - begin: L3_REGEX - }, - { - endsParent: true, - variants: DOUBLE_CARET_VARIANTS - }, - { - endsParent: true, - relevance: 0, - variants: L2_VARIANTS - } - ] - }; - const MACRO_PARAM = { - className: 'params', - relevance: 0, - begin: /#+\d?/ - }; - const DOUBLE_CARET_CHAR = { - // relevance: 1 - variants: DOUBLE_CARET_VARIANTS }; - const SPECIAL_CATCODE = { - className: 'built_in', - relevance: 0, - begin: /[$&^_]/ - }; - const MAGIC_COMMENT = { - className: 'meta', - begin: /% ?!(T[eE]X|tex|BIB|bib)/, - end: '$', - relevance: 10 - }; - const COMMENT = hljs.COMMENT( - '%', - '$', - { relevance: 0 } - ); - const EVERYTHING_BUT_VERBATIM = [ - CONTROL_SEQUENCE, - MACRO_PARAM, - DOUBLE_CARET_CHAR, - SPECIAL_CATCODE, - MAGIC_COMMENT, - COMMENT - ]; - const BRACE_GROUP_NO_VERBATIM = { - begin: /\{/, - end: /\}/, - relevance: 0, - contains: [ - 'self', - ...EVERYTHING_BUT_VERBATIM - ] - }; - const ARGUMENT_BRACES = hljs.inherit( - BRACE_GROUP_NO_VERBATIM, - { - relevance: 0, - endsParent: true, - contains: [ - BRACE_GROUP_NO_VERBATIM, - ...EVERYTHING_BUT_VERBATIM - ] - } - ); - const ARGUMENT_BRACKETS = { - begin: /\[/, - end: /\]/, - endsParent: true, - relevance: 0, - contains: [ - BRACE_GROUP_NO_VERBATIM, - ...EVERYTHING_BUT_VERBATIM - ] - }; - const SPACE_GOBBLER = { - begin: /\s+/, - relevance: 0 - }; - const ARGUMENT_M = [ ARGUMENT_BRACES ]; - const ARGUMENT_O = [ ARGUMENT_BRACKETS ]; - const ARGUMENT_AND_THEN = function(arg, starts_mode) { - return { - contains: [ SPACE_GOBBLER ], - starts: { - relevance: 0, - contains: arg, - starts: starts_mode - } - }; - }; - const CSNAME = function(csname, starts_mode) { - return { - begin: '\\\\' + csname + '(?![a-zA-Z@:_])', - keywords: { - $pattern: /\\[a-zA-Z]+/, - keyword: '\\' + csname - }, - relevance: 0, - contains: [ SPACE_GOBBLER ], - starts: starts_mode - }; - }; - const BEGIN_ENV = function(envname, starts_mode) { - return hljs.inherit( - { - begin: '\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{' + envname + '\\})', - keywords: { - $pattern: /\\[a-zA-Z]+/, - keyword: '\\begin' - }, - relevance: 0, - }, - ARGUMENT_AND_THEN(ARGUMENT_M, starts_mode) - ); - }; - const VERBATIM_DELIMITED_EQUAL = (innerName = "string") => { - return hljs.END_SAME_AS_BEGIN({ - className: innerName, - begin: /(.|\r?\n)/, - end: /(.|\r?\n)/, - excludeBegin: true, - excludeEnd: true, - endsParent: true - }); - }; - const VERBATIM_DELIMITED_ENV = function(envname) { - return { - className: 'string', - end: '(?=\\\\end\\{' + envname + '\\})' - }; - }; - - const VERBATIM_DELIMITED_BRACES = (innerName = "string") => { - return { - relevance: 0, - begin: /\{/, - starts: { - endsParent: true, - contains: [ - { - className: innerName, - end: /(?=\})/, - endsParent: true, - contains: [ - { - begin: /\{/, - end: /\}/, - relevance: 0, - contains: [ "self" ] - } - ], - } - ] - } - }; - }; - const VERBATIM = [ - ...[ - 'verb', - 'lstinline' - ].map(csname => CSNAME(csname, { contains: [ VERBATIM_DELIMITED_EQUAL() ] })), - CSNAME('mint', ARGUMENT_AND_THEN(ARGUMENT_M, { contains: [ VERBATIM_DELIMITED_EQUAL() ] })), - CSNAME('mintinline', ARGUMENT_AND_THEN(ARGUMENT_M, { contains: [ - VERBATIM_DELIMITED_BRACES(), - VERBATIM_DELIMITED_EQUAL() - ] })), - CSNAME('url', { contains: [ - VERBATIM_DELIMITED_BRACES("link"), - VERBATIM_DELIMITED_BRACES("link") - ] }), - CSNAME('hyperref', { contains: [ VERBATIM_DELIMITED_BRACES("link") ] }), - CSNAME('href', ARGUMENT_AND_THEN(ARGUMENT_O, { contains: [ VERBATIM_DELIMITED_BRACES("link") ] })), - ...[].concat(...[ - '', - '\\*' - ].map(suffix => [ - BEGIN_ENV('verbatim' + suffix, VERBATIM_DELIMITED_ENV('verbatim' + suffix)), - BEGIN_ENV('filecontents' + suffix, ARGUMENT_AND_THEN(ARGUMENT_M, VERBATIM_DELIMITED_ENV('filecontents' + suffix))), - ...[ - '', - 'B', - 'L' - ].map(prefix => - BEGIN_ENV(prefix + 'Verbatim' + suffix, ARGUMENT_AND_THEN(ARGUMENT_O, VERBATIM_DELIMITED_ENV(prefix + 'Verbatim' + suffix))) - ) - ])), - BEGIN_ENV('minted', ARGUMENT_AND_THEN(ARGUMENT_O, ARGUMENT_AND_THEN(ARGUMENT_M, VERBATIM_DELIMITED_ENV('minted')))), - ]; - - return { - name: 'LaTeX', - aliases: [ 'tex' ], - contains: [ - ...VERBATIM, - ...EVERYTHING_BUT_VERBATIM - ] - }; -} - -export { latex as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js.js deleted file mode 100644 index 938ae5c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/latex.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/latex" instead of "highlight.js/lib/languages/latex.js"' - ); - } - } - emitWarning(); - import lang from './latex.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ldif.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ldif.js deleted file mode 100644 index cca0538..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ldif.js +++ /dev/null @@ -1,31 +0,0 @@ -/* -Language: LDIF -Contributors: Jacob Childress -Category: enterprise, config -Website: https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format -*/ - -/** @type LanguageFn */ -function ldif(hljs) { - return { - name: 'LDIF', - contains: [ - { - className: 'attribute', - match: '^dn(?=:)', - relevance: 10 - }, - { - className: 'attribute', - match: '^\\w+(?=:)' - }, - { - className: 'literal', - match: '^-' - }, - hljs.HASH_COMMENT_MODE - ] - }; -} - -export { ldif as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ldif.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ldif.js.js deleted file mode 100644 index 4ee4894..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ldif.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ldif" instead of "highlight.js/lib/languages/ldif.js"' - ); - } - } - emitWarning(); - import lang from './ldif.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/leaf.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/leaf.js deleted file mode 100644 index c865b3e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/leaf.js +++ /dev/null @@ -1,97 +0,0 @@ -/* -Language: Leaf -Description: A Swift-based templating language created for the Vapor project. -Website: https://docs.vapor.codes/leaf/overview -Category: template -*/ - -function leaf(hljs) { - const IDENT = /([A-Za-z_][A-Za-z_0-9]*)?/; - const LITERALS = [ - 'true', - 'false', - 'in' - ]; - const PARAMS = { - scope: 'params', - begin: /\(/, - end: /\)(?=\:?)/, - endsParent: true, - relevance: 7, - contains: [ - { - scope: 'string', - begin: '"', - end: '"' - }, - { - scope: 'keyword', - match: LITERALS.join("|"), - }, - { - scope: 'variable', - match: /[A-Za-z_][A-Za-z_0-9]*/ - }, - { - scope: 'operator', - match: /\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/ - } - ] - }; - const INSIDE_DISPATCH = { - match: [ - IDENT, - /(?=\()/, - ], - scope: { - 1: "keyword" - }, - contains: [ PARAMS ] - }; - PARAMS.contains.unshift(INSIDE_DISPATCH); - return { - name: 'Leaf', - contains: [ - // #ident(): - { - match: [ - /#+/, - IDENT, - /(?=\()/, - ], - scope: { - 1: "punctuation", - 2: "keyword" - }, - // will start up after the ending `)` match from line ~44 - // just to grab the trailing `:` if we can match it - starts: { - contains: [ - { - match: /\:/, - scope: "punctuation" - } - ] - }, - contains: [ - PARAMS - ], - }, - // #ident or #ident: - { - match: [ - /#+/, - IDENT, - /:?/, - ], - scope: { - 1: "punctuation", - 2: "keyword", - 3: "punctuation" - } - }, - ] - }; -} - -export { leaf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/leaf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/leaf.js.js deleted file mode 100644 index 6200dc2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/leaf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/leaf" instead of "highlight.js/lib/languages/leaf.js"' - ); - } - } - emitWarning(); - import lang from './leaf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js deleted file mode 100644 index f54f590..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js +++ /dev/null @@ -1,1050 +0,0 @@ -const MODES = (hljs) => { - return { - IMPORTANT: { - scope: 'meta', - begin: '!important' - }, - BLOCK_COMMENT: hljs.C_BLOCK_COMMENT_MODE, - HEXCOLOR: { - scope: 'number', - begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ - }, - FUNCTION_DISPATCH: { - className: "built_in", - begin: /[\w-]+(?=\()/ - }, - ATTRIBUTE_SELECTOR_MODE: { - scope: 'selector-attr', - begin: /\[/, - end: /\]/, - illegal: '$', - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }, - CSS_NUMBER_MODE: { - scope: 'number', - begin: hljs.NUMBER_RE + '(' + - '%|em|ex|ch|rem' + - '|vw|vh|vmin|vmax' + - '|cm|mm|in|pt|pc|px' + - '|deg|grad|rad|turn' + - '|s|ms' + - '|Hz|kHz' + - '|dpi|dpcm|dppx' + - ')?', - relevance: 0 - }, - CSS_VARIABLE: { - className: "attr", - begin: /--[A-Za-z_][A-Za-z0-9_-]*/ - } - }; -}; - -const HTML_TAGS = [ - 'a', - 'abbr', - 'address', - 'article', - 'aside', - 'audio', - 'b', - 'blockquote', - 'body', - 'button', - 'canvas', - 'caption', - 'cite', - 'code', - 'dd', - 'del', - 'details', - 'dfn', - 'div', - 'dl', - 'dt', - 'em', - 'fieldset', - 'figcaption', - 'figure', - 'footer', - 'form', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'header', - 'hgroup', - 'html', - 'i', - 'iframe', - 'img', - 'input', - 'ins', - 'kbd', - 'label', - 'legend', - 'li', - 'main', - 'mark', - 'menu', - 'nav', - 'object', - 'ol', - 'optgroup', - 'option', - 'p', - 'picture', - 'q', - 'quote', - 'samp', - 'section', - 'select', - 'source', - 'span', - 'strong', - 'summary', - 'sup', - 'table', - 'tbody', - 'td', - 'textarea', - 'tfoot', - 'th', - 'thead', - 'time', - 'tr', - 'ul', - 'var', - 'video' -]; - -const SVG_TAGS = [ - 'defs', - 'g', - 'marker', - 'mask', - 'pattern', - 'svg', - 'switch', - 'symbol', - 'feBlend', - 'feColorMatrix', - 'feComponentTransfer', - 'feComposite', - 'feConvolveMatrix', - 'feDiffuseLighting', - 'feDisplacementMap', - 'feFlood', - 'feGaussianBlur', - 'feImage', - 'feMerge', - 'feMorphology', - 'feOffset', - 'feSpecularLighting', - 'feTile', - 'feTurbulence', - 'linearGradient', - 'radialGradient', - 'stop', - 'circle', - 'ellipse', - 'image', - 'line', - 'path', - 'polygon', - 'polyline', - 'rect', - 'text', - 'use', - 'textPath', - 'tspan', - 'foreignObject', - 'clipPath' -]; - -const TAGS = [ - ...HTML_TAGS, - ...SVG_TAGS, -]; - -// Sorting, then reversing makes sure longer attributes/elements like -// `font-weight` are matched fully instead of getting false positives on say `font` - -const MEDIA_FEATURES = [ - 'any-hover', - 'any-pointer', - 'aspect-ratio', - 'color', - 'color-gamut', - 'color-index', - 'device-aspect-ratio', - 'device-height', - 'device-width', - 'display-mode', - 'forced-colors', - 'grid', - 'height', - 'hover', - 'inverted-colors', - 'monochrome', - 'orientation', - 'overflow-block', - 'overflow-inline', - 'pointer', - 'prefers-color-scheme', - 'prefers-contrast', - 'prefers-reduced-motion', - 'prefers-reduced-transparency', - 'resolution', - 'scan', - 'scripting', - 'update', - 'width', - // TODO: find a better solution? - 'min-width', - 'max-width', - 'min-height', - 'max-height' -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes -const PSEUDO_CLASSES = [ - 'active', - 'any-link', - 'blank', - 'checked', - 'current', - 'default', - 'defined', - 'dir', // dir() - 'disabled', - 'drop', - 'empty', - 'enabled', - 'first', - 'first-child', - 'first-of-type', - 'fullscreen', - 'future', - 'focus', - 'focus-visible', - 'focus-within', - 'has', // has() - 'host', // host or host() - 'host-context', // host-context() - 'hover', - 'indeterminate', - 'in-range', - 'invalid', - 'is', // is() - 'lang', // lang() - 'last-child', - 'last-of-type', - 'left', - 'link', - 'local-link', - 'not', // not() - 'nth-child', // nth-child() - 'nth-col', // nth-col() - 'nth-last-child', // nth-last-child() - 'nth-last-col', // nth-last-col() - 'nth-last-of-type', //nth-last-of-type() - 'nth-of-type', //nth-of-type() - 'only-child', - 'only-of-type', - 'optional', - 'out-of-range', - 'past', - 'placeholder-shown', - 'read-only', - 'read-write', - 'required', - 'right', - 'root', - 'scope', - 'target', - 'target-within', - 'user-invalid', - 'valid', - 'visited', - 'where' // where() -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements -const PSEUDO_ELEMENTS = [ - 'after', - 'backdrop', - 'before', - 'cue', - 'cue-region', - 'first-letter', - 'first-line', - 'grammar-error', - 'marker', - 'part', - 'placeholder', - 'selection', - 'slotted', - 'spelling-error' -].sort().reverse(); - -const ATTRIBUTES = [ - 'accent-color', - 'align-content', - 'align-items', - 'align-self', - 'alignment-baseline', - 'all', - 'anchor-name', - 'animation', - 'animation-composition', - 'animation-delay', - 'animation-direction', - 'animation-duration', - 'animation-fill-mode', - 'animation-iteration-count', - 'animation-name', - 'animation-play-state', - 'animation-range', - 'animation-range-end', - 'animation-range-start', - 'animation-timeline', - 'animation-timing-function', - 'appearance', - 'aspect-ratio', - 'backdrop-filter', - 'backface-visibility', - 'background', - 'background-attachment', - 'background-blend-mode', - 'background-clip', - 'background-color', - 'background-image', - 'background-origin', - 'background-position', - 'background-position-x', - 'background-position-y', - 'background-repeat', - 'background-size', - 'baseline-shift', - 'block-size', - 'border', - 'border-block', - 'border-block-color', - 'border-block-end', - 'border-block-end-color', - 'border-block-end-style', - 'border-block-end-width', - 'border-block-start', - 'border-block-start-color', - 'border-block-start-style', - 'border-block-start-width', - 'border-block-style', - 'border-block-width', - 'border-bottom', - 'border-bottom-color', - 'border-bottom-left-radius', - 'border-bottom-right-radius', - 'border-bottom-style', - 'border-bottom-width', - 'border-collapse', - 'border-color', - 'border-end-end-radius', - 'border-end-start-radius', - 'border-image', - 'border-image-outset', - 'border-image-repeat', - 'border-image-slice', - 'border-image-source', - 'border-image-width', - 'border-inline', - 'border-inline-color', - 'border-inline-end', - 'border-inline-end-color', - 'border-inline-end-style', - 'border-inline-end-width', - 'border-inline-start', - 'border-inline-start-color', - 'border-inline-start-style', - 'border-inline-start-width', - 'border-inline-style', - 'border-inline-width', - 'border-left', - 'border-left-color', - 'border-left-style', - 'border-left-width', - 'border-radius', - 'border-right', - 'border-right-color', - 'border-right-style', - 'border-right-width', - 'border-spacing', - 'border-start-end-radius', - 'border-start-start-radius', - 'border-style', - 'border-top', - 'border-top-color', - 'border-top-left-radius', - 'border-top-right-radius', - 'border-top-style', - 'border-top-width', - 'border-width', - 'bottom', - 'box-align', - 'box-decoration-break', - 'box-direction', - 'box-flex', - 'box-flex-group', - 'box-lines', - 'box-ordinal-group', - 'box-orient', - 'box-pack', - 'box-shadow', - 'box-sizing', - 'break-after', - 'break-before', - 'break-inside', - 'caption-side', - 'caret-color', - 'clear', - 'clip', - 'clip-path', - 'clip-rule', - 'color', - 'color-interpolation', - 'color-interpolation-filters', - 'color-profile', - 'color-rendering', - 'color-scheme', - 'column-count', - 'column-fill', - 'column-gap', - 'column-rule', - 'column-rule-color', - 'column-rule-style', - 'column-rule-width', - 'column-span', - 'column-width', - 'columns', - 'contain', - 'contain-intrinsic-block-size', - 'contain-intrinsic-height', - 'contain-intrinsic-inline-size', - 'contain-intrinsic-size', - 'contain-intrinsic-width', - 'container', - 'container-name', - 'container-type', - 'content', - 'content-visibility', - 'counter-increment', - 'counter-reset', - 'counter-set', - 'cue', - 'cue-after', - 'cue-before', - 'cursor', - 'cx', - 'cy', - 'direction', - 'display', - 'dominant-baseline', - 'empty-cells', - 'enable-background', - 'field-sizing', - 'fill', - 'fill-opacity', - 'fill-rule', - 'filter', - 'flex', - 'flex-basis', - 'flex-direction', - 'flex-flow', - 'flex-grow', - 'flex-shrink', - 'flex-wrap', - 'float', - 'flood-color', - 'flood-opacity', - 'flow', - 'font', - 'font-display', - 'font-family', - 'font-feature-settings', - 'font-kerning', - 'font-language-override', - 'font-optical-sizing', - 'font-palette', - 'font-size', - 'font-size-adjust', - 'font-smooth', - 'font-smoothing', - 'font-stretch', - 'font-style', - 'font-synthesis', - 'font-synthesis-position', - 'font-synthesis-small-caps', - 'font-synthesis-style', - 'font-synthesis-weight', - 'font-variant', - 'font-variant-alternates', - 'font-variant-caps', - 'font-variant-east-asian', - 'font-variant-emoji', - 'font-variant-ligatures', - 'font-variant-numeric', - 'font-variant-position', - 'font-variation-settings', - 'font-weight', - 'forced-color-adjust', - 'gap', - 'glyph-orientation-horizontal', - 'glyph-orientation-vertical', - 'grid', - 'grid-area', - 'grid-auto-columns', - 'grid-auto-flow', - 'grid-auto-rows', - 'grid-column', - 'grid-column-end', - 'grid-column-start', - 'grid-gap', - 'grid-row', - 'grid-row-end', - 'grid-row-start', - 'grid-template', - 'grid-template-areas', - 'grid-template-columns', - 'grid-template-rows', - 'hanging-punctuation', - 'height', - 'hyphenate-character', - 'hyphenate-limit-chars', - 'hyphens', - 'icon', - 'image-orientation', - 'image-rendering', - 'image-resolution', - 'ime-mode', - 'initial-letter', - 'initial-letter-align', - 'inline-size', - 'inset', - 'inset-area', - 'inset-block', - 'inset-block-end', - 'inset-block-start', - 'inset-inline', - 'inset-inline-end', - 'inset-inline-start', - 'isolation', - 'justify-content', - 'justify-items', - 'justify-self', - 'kerning', - 'left', - 'letter-spacing', - 'lighting-color', - 'line-break', - 'line-height', - 'line-height-step', - 'list-style', - 'list-style-image', - 'list-style-position', - 'list-style-type', - 'margin', - 'margin-block', - 'margin-block-end', - 'margin-block-start', - 'margin-bottom', - 'margin-inline', - 'margin-inline-end', - 'margin-inline-start', - 'margin-left', - 'margin-right', - 'margin-top', - 'margin-trim', - 'marker', - 'marker-end', - 'marker-mid', - 'marker-start', - 'marks', - 'mask', - 'mask-border', - 'mask-border-mode', - 'mask-border-outset', - 'mask-border-repeat', - 'mask-border-slice', - 'mask-border-source', - 'mask-border-width', - 'mask-clip', - 'mask-composite', - 'mask-image', - 'mask-mode', - 'mask-origin', - 'mask-position', - 'mask-repeat', - 'mask-size', - 'mask-type', - 'masonry-auto-flow', - 'math-depth', - 'math-shift', - 'math-style', - 'max-block-size', - 'max-height', - 'max-inline-size', - 'max-width', - 'min-block-size', - 'min-height', - 'min-inline-size', - 'min-width', - 'mix-blend-mode', - 'nav-down', - 'nav-index', - 'nav-left', - 'nav-right', - 'nav-up', - 'none', - 'normal', - 'object-fit', - 'object-position', - 'offset', - 'offset-anchor', - 'offset-distance', - 'offset-path', - 'offset-position', - 'offset-rotate', - 'opacity', - 'order', - 'orphans', - 'outline', - 'outline-color', - 'outline-offset', - 'outline-style', - 'outline-width', - 'overflow', - 'overflow-anchor', - 'overflow-block', - 'overflow-clip-margin', - 'overflow-inline', - 'overflow-wrap', - 'overflow-x', - 'overflow-y', - 'overlay', - 'overscroll-behavior', - 'overscroll-behavior-block', - 'overscroll-behavior-inline', - 'overscroll-behavior-x', - 'overscroll-behavior-y', - 'padding', - 'padding-block', - 'padding-block-end', - 'padding-block-start', - 'padding-bottom', - 'padding-inline', - 'padding-inline-end', - 'padding-inline-start', - 'padding-left', - 'padding-right', - 'padding-top', - 'page', - 'page-break-after', - 'page-break-before', - 'page-break-inside', - 'paint-order', - 'pause', - 'pause-after', - 'pause-before', - 'perspective', - 'perspective-origin', - 'place-content', - 'place-items', - 'place-self', - 'pointer-events', - 'position', - 'position-anchor', - 'position-visibility', - 'print-color-adjust', - 'quotes', - 'r', - 'resize', - 'rest', - 'rest-after', - 'rest-before', - 'right', - 'rotate', - 'row-gap', - 'ruby-align', - 'ruby-position', - 'scale', - 'scroll-behavior', - 'scroll-margin', - 'scroll-margin-block', - 'scroll-margin-block-end', - 'scroll-margin-block-start', - 'scroll-margin-bottom', - 'scroll-margin-inline', - 'scroll-margin-inline-end', - 'scroll-margin-inline-start', - 'scroll-margin-left', - 'scroll-margin-right', - 'scroll-margin-top', - 'scroll-padding', - 'scroll-padding-block', - 'scroll-padding-block-end', - 'scroll-padding-block-start', - 'scroll-padding-bottom', - 'scroll-padding-inline', - 'scroll-padding-inline-end', - 'scroll-padding-inline-start', - 'scroll-padding-left', - 'scroll-padding-right', - 'scroll-padding-top', - 'scroll-snap-align', - 'scroll-snap-stop', - 'scroll-snap-type', - 'scroll-timeline', - 'scroll-timeline-axis', - 'scroll-timeline-name', - 'scrollbar-color', - 'scrollbar-gutter', - 'scrollbar-width', - 'shape-image-threshold', - 'shape-margin', - 'shape-outside', - 'shape-rendering', - 'speak', - 'speak-as', - 'src', // @font-face - 'stop-color', - 'stop-opacity', - 'stroke', - 'stroke-dasharray', - 'stroke-dashoffset', - 'stroke-linecap', - 'stroke-linejoin', - 'stroke-miterlimit', - 'stroke-opacity', - 'stroke-width', - 'tab-size', - 'table-layout', - 'text-align', - 'text-align-all', - 'text-align-last', - 'text-anchor', - 'text-combine-upright', - 'text-decoration', - 'text-decoration-color', - 'text-decoration-line', - 'text-decoration-skip', - 'text-decoration-skip-ink', - 'text-decoration-style', - 'text-decoration-thickness', - 'text-emphasis', - 'text-emphasis-color', - 'text-emphasis-position', - 'text-emphasis-style', - 'text-indent', - 'text-justify', - 'text-orientation', - 'text-overflow', - 'text-rendering', - 'text-shadow', - 'text-size-adjust', - 'text-transform', - 'text-underline-offset', - 'text-underline-position', - 'text-wrap', - 'text-wrap-mode', - 'text-wrap-style', - 'timeline-scope', - 'top', - 'touch-action', - 'transform', - 'transform-box', - 'transform-origin', - 'transform-style', - 'transition', - 'transition-behavior', - 'transition-delay', - 'transition-duration', - 'transition-property', - 'transition-timing-function', - 'translate', - 'unicode-bidi', - 'user-modify', - 'user-select', - 'vector-effect', - 'vertical-align', - 'view-timeline', - 'view-timeline-axis', - 'view-timeline-inset', - 'view-timeline-name', - 'view-transition-name', - 'visibility', - 'voice-balance', - 'voice-duration', - 'voice-family', - 'voice-pitch', - 'voice-range', - 'voice-rate', - 'voice-stress', - 'voice-volume', - 'white-space', - 'white-space-collapse', - 'widows', - 'width', - 'will-change', - 'word-break', - 'word-spacing', - 'word-wrap', - 'writing-mode', - 'x', - 'y', - 'z-index', - 'zoom' -].sort().reverse(); - -// some grammars use them all as a single group -const PSEUDO_SELECTORS = PSEUDO_CLASSES.concat(PSEUDO_ELEMENTS).sort().reverse(); - -/* -Language: Less -Description: It's CSS, with just a little more. -Author: Max Mikhailov -Website: http://lesscss.org -Category: common, css, web -*/ - - -/** @type LanguageFn */ -function less(hljs) { - const modes = MODES(hljs); - const PSEUDO_SELECTORS$1 = PSEUDO_SELECTORS; - - const AT_MODIFIERS = "and or not only"; - const IDENT_RE = '[\\w-]+'; // yes, Less identifiers may begin with a digit - const INTERP_IDENT_RE = '(' + IDENT_RE + '|@\\{' + IDENT_RE + '\\})'; - - /* Generic Modes */ - - const RULES = []; const VALUE_MODES = []; // forward def. for recursive modes - - const STRING_MODE = function(c) { - return { - // Less strings are not multiline (also include '~' for more consistent coloring of "escaped" strings) - className: 'string', - begin: '~?' + c + '.*?' + c - }; - }; - - const IDENT_MODE = function(name, begin, relevance) { - return { - className: name, - begin: begin, - relevance: relevance - }; - }; - - const AT_KEYWORDS = { - $pattern: /[a-z-]+/, - keyword: AT_MODIFIERS, - attribute: MEDIA_FEATURES.join(" ") - }; - - const PARENS_MODE = { - // used only to properly balance nested parens inside mixin call, def. arg list - begin: '\\(', - end: '\\)', - contains: VALUE_MODES, - keywords: AT_KEYWORDS, - relevance: 0 - }; - - // generic Less highlighter (used almost everywhere except selectors): - VALUE_MODES.push( - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRING_MODE("'"), - STRING_MODE('"'), - modes.CSS_NUMBER_MODE, // fixme: it does not include dot for numbers like .5em :( - { - begin: '(url|data-uri)\\(', - starts: { - className: 'string', - end: '[\\)\\n]', - excludeEnd: true - } - }, - modes.HEXCOLOR, - PARENS_MODE, - IDENT_MODE('variable', '@@?' + IDENT_RE, 10), - IDENT_MODE('variable', '@\\{' + IDENT_RE + '\\}'), - IDENT_MODE('built_in', '~?`[^`]*?`'), // inline javascript (or whatever host language) *multiline* string - { // @media features (it’s here to not duplicate things in AT_RULE_MODE with extra PARENS_MODE overriding): - className: 'attribute', - begin: IDENT_RE + '\\s*:', - end: ':', - returnBegin: true, - excludeEnd: true - }, - modes.IMPORTANT, - { beginKeywords: 'and not' }, - modes.FUNCTION_DISPATCH - ); - - const VALUE_WITH_RULESETS = VALUE_MODES.concat({ - begin: /\{/, - end: /\}/, - contains: RULES - }); - - const MIXIN_GUARD_MODE = { - beginKeywords: 'when', - endsWithParent: true, - contains: [ { beginKeywords: 'and not' } ].concat(VALUE_MODES) // using this form to override VALUE’s 'function' match - }; - - /* Rule-Level Modes */ - - const RULE_MODE = { - begin: INTERP_IDENT_RE + '\\s*:', - returnBegin: true, - end: /[;}]/, - relevance: 0, - contains: [ - { begin: /-(webkit|moz|ms|o)-/ }, - modes.CSS_VARIABLE, - { - className: 'attribute', - begin: '\\b(' + ATTRIBUTES.join('|') + ')\\b', - end: /(?=:)/, - starts: { - endsWithParent: true, - illegal: '[<=$]', - relevance: 0, - contains: VALUE_MODES - } - } - ] - }; - - const AT_RULE_MODE = { - className: 'keyword', - begin: '@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b', - starts: { - end: '[;{}]', - keywords: AT_KEYWORDS, - returnEnd: true, - contains: VALUE_MODES, - relevance: 0 - } - }; - - // variable definitions and calls - const VAR_RULE_MODE = { - className: 'variable', - variants: [ - // using more strict pattern for higher relevance to increase chances of Less detection. - // this is *the only* Less specific statement used in most of the sources, so... - // (we’ll still often loose to the css-parser unless there's '//' comment, - // simply because 1 variable just can't beat 99 properties :) - { - begin: '@' + IDENT_RE + '\\s*:', - relevance: 15 - }, - { begin: '@' + IDENT_RE } - ], - starts: { - end: '[;}]', - returnEnd: true, - contains: VALUE_WITH_RULESETS - } - }; - - const SELECTOR_MODE = { - // first parse unambiguous selectors (i.e. those not starting with tag) - // then fall into the scary lookahead-discriminator variant. - // this mode also handles mixin definitions and calls - variants: [ - { - begin: '[\\.#:&\\[>]', - end: '[;{}]' // mixin calls end with ';' - }, - { - begin: INTERP_IDENT_RE, - end: /\{/ - } - ], - returnBegin: true, - returnEnd: true, - illegal: '[<=\'$"]', - relevance: 0, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - MIXIN_GUARD_MODE, - IDENT_MODE('keyword', 'all\\b'), - IDENT_MODE('variable', '@\\{' + IDENT_RE + '\\}'), // otherwise it’s identified as tag - - { - begin: '\\b(' + TAGS.join('|') + ')\\b', - className: 'selector-tag' - }, - modes.CSS_NUMBER_MODE, - IDENT_MODE('selector-tag', INTERP_IDENT_RE, 0), - IDENT_MODE('selector-id', '#' + INTERP_IDENT_RE), - IDENT_MODE('selector-class', '\\.' + INTERP_IDENT_RE, 0), - IDENT_MODE('selector-tag', '&', 0), - modes.ATTRIBUTE_SELECTOR_MODE, - { - className: 'selector-pseudo', - begin: ':(' + PSEUDO_CLASSES.join('|') + ')' - }, - { - className: 'selector-pseudo', - begin: ':(:)?(' + PSEUDO_ELEMENTS.join('|') + ')' - }, - { - begin: /\(/, - end: /\)/, - relevance: 0, - contains: VALUE_WITH_RULESETS - }, // argument list of parametric mixins - { begin: '!important' }, // eat !important after mixin call or it will be colored as tag - modes.FUNCTION_DISPATCH - ] - }; - - const PSEUDO_SELECTOR_MODE = { - begin: IDENT_RE + ':(:)?' + `(${PSEUDO_SELECTORS$1.join('|')})`, - returnBegin: true, - contains: [ SELECTOR_MODE ] - }; - - RULES.push( - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - AT_RULE_MODE, - VAR_RULE_MODE, - PSEUDO_SELECTOR_MODE, - RULE_MODE, - SELECTOR_MODE, - MIXIN_GUARD_MODE, - modes.FUNCTION_DISPATCH - ); - - return { - name: 'Less', - case_insensitive: true, - illegal: '[=>\'/<($"]', - contains: RULES - }; -} - -export { less as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js.js deleted file mode 100644 index b7abb03..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/less.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/less" instead of "highlight.js/lib/languages/less.js"' - ); - } - } - emitWarning(); - import lang from './less.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lisp.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lisp.js deleted file mode 100644 index 2c5538b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lisp.js +++ /dev/null @@ -1,139 +0,0 @@ -/* -Language: Lisp -Description: Generic lisp syntax -Author: Vasily Polovnyov -Category: lisp -*/ - -function lisp(hljs) { - const LISP_IDENT_RE = '[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*'; - const MEC_RE = '\\|[^]*?\\|'; - const LISP_SIMPLE_NUMBER_RE = '(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?'; - const LITERAL = { - className: 'literal', - begin: '\\b(t{1}|nil)\\b' - }; - const NUMBER = { - className: 'number', - variants: [ - { - begin: LISP_SIMPLE_NUMBER_RE, - relevance: 0 - }, - { begin: '#(b|B)[0-1]+(/[0-1]+)?' }, - { begin: '#(o|O)[0-7]+(/[0-7]+)?' }, - { begin: '#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?' }, - { - begin: '#(c|C)\\(' + LISP_SIMPLE_NUMBER_RE + ' +' + LISP_SIMPLE_NUMBER_RE, - end: '\\)' - } - ] - }; - const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }); - const COMMENT = hljs.COMMENT( - ';', '$', - { relevance: 0 } - ); - const VARIABLE = { - begin: '\\*', - end: '\\*' - }; - const KEYWORD = { - className: 'symbol', - begin: '[:&]' + LISP_IDENT_RE - }; - const IDENT = { - begin: LISP_IDENT_RE, - relevance: 0 - }; - const MEC = { begin: MEC_RE }; - const QUOTED_LIST = { - begin: '\\(', - end: '\\)', - contains: [ - 'self', - LITERAL, - STRING, - NUMBER, - IDENT - ] - }; - const QUOTED = { - contains: [ - NUMBER, - STRING, - VARIABLE, - KEYWORD, - QUOTED_LIST, - IDENT - ], - variants: [ - { - begin: '[\'`]\\(', - end: '\\)' - }, - { - begin: '\\(quote ', - end: '\\)', - keywords: { name: 'quote' } - }, - { begin: '\'' + MEC_RE } - ] - }; - const QUOTED_ATOM = { variants: [ - { begin: '\'' + LISP_IDENT_RE }, - { begin: '#\'' + LISP_IDENT_RE + '(::' + LISP_IDENT_RE + ')*' } - ] }; - const LIST = { - begin: '\\(\\s*', - end: '\\)' - }; - const BODY = { - endsWithParent: true, - relevance: 0 - }; - LIST.contains = [ - { - className: 'name', - variants: [ - { - begin: LISP_IDENT_RE, - relevance: 0, - }, - { begin: MEC_RE } - ] - }, - BODY - ]; - BODY.contains = [ - QUOTED, - QUOTED_ATOM, - LIST, - LITERAL, - NUMBER, - STRING, - COMMENT, - VARIABLE, - KEYWORD, - MEC, - IDENT - ]; - - return { - name: 'Lisp', - illegal: /\S/, - contains: [ - NUMBER, - hljs.SHEBANG(), - LITERAL, - STRING, - COMMENT, - QUOTED, - QUOTED_ATOM, - LIST, - IDENT - ] - }; -} - -export { lisp as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lisp.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lisp.js.js deleted file mode 100644 index dd1e4bc..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lisp.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/lisp" instead of "highlight.js/lib/languages/lisp.js"' - ); - } - } - emitWarning(); - import lang from './lisp.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livecodeserver.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livecodeserver.js deleted file mode 100644 index 6af162a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livecodeserver.js +++ /dev/null @@ -1,173 +0,0 @@ -/* -Language: LiveCode -Author: Ralf Bitter -Description: Language definition for LiveCode server accounting for revIgniter (a web application framework) characteristics. -Version: 1.1 -Date: 2019-04-17 -Category: enterprise -*/ - -function livecodeserver(hljs) { - const VARIABLE = { - className: 'variable', - variants: [ - { begin: '\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)' }, - { begin: '\\$_[A-Z]+' } - ], - relevance: 0 - }; - const COMMENT_MODES = [ - hljs.C_BLOCK_COMMENT_MODE, - hljs.HASH_COMMENT_MODE, - hljs.COMMENT('--', '$'), - hljs.COMMENT('[^:]//', '$') - ]; - const TITLE1 = hljs.inherit(hljs.TITLE_MODE, { variants: [ - { begin: '\\b_*rig[A-Z][A-Za-z0-9_\\-]*' }, - { begin: '\\b_[a-z0-9\\-]+' } - ] }); - const TITLE2 = hljs.inherit(hljs.TITLE_MODE, { begin: '\\b([A-Za-z0-9_\\-]+)\\b' }); - return { - name: 'LiveCode', - case_insensitive: false, - keywords: { - keyword: - '$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER ' - + 'codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph ' - + 'after byte bytes english the until http forever descending using line real8 with seventh ' - + 'for stdout finally element word words fourth before black ninth sixth characters chars stderr ' - + 'uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid ' - + 'at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 ' - + 'int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat ' - + 'end repeat URL in try into switch to words https token binfile each tenth as ticks tick ' - + 'system real4 by dateItems without char character ascending eighth whole dateTime numeric short ' - + 'first ftp integer abbreviated abbr abbrev private case while if ' - + 'div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within ' - + 'contains ends with begins the keys of keys', - literal: - 'SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE ' - + 'QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO ' - + 'six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five ' - + 'quote empty one true return cr linefeed right backslash null seven tab three two ' - + 'RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK ' - + 'FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK', - built_in: - 'put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode ' - + 'base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum ' - + 'cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress ' - + 'constantNames cos date dateFormat decompress difference directories ' - + 'diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global ' - + 'globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset ' - + 'keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders ' - + 'libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 ' - + 'longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec ' - + 'millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar ' - + 'numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets ' - + 'paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation ' - + 'populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile ' - + 'revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull ' - + 'revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered ' - + 'revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames ' - + 'revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull ' - + 'revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections ' - + 'revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype ' - + 'revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext ' - + 'revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames ' - + 'revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase ' - + 'revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute ' - + 'revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces ' - + 'revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode ' - + 'revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling ' - + 'revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error ' - + 'revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute ' - + 'revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort ' - + 'revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree ' - + 'revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance ' - + 'sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound ' - + 'stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper ' - + 'transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames ' - + 'variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet ' - + 'xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process ' - + 'combine constant convert create new alias folder directory decrypt delete variable word line folder ' - + 'directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile ' - + 'libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver ' - + 'libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime ' - + 'libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename ' - + 'replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase ' - + 'revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees ' - + 'revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord ' - + 'revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase ' - + 'revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD ' - + 'revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost ' - + 'revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData ' - + 'revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel ' - + 'revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback ' - + 'revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop ' - + 'subtract symmetric union unload vectorDotProduct wait write' - }, - contains: [ - VARIABLE, - { - className: 'keyword', - begin: '\\bend\\sif\\b' - }, - { - className: 'function', - beginKeywords: 'function', - end: '$', - contains: [ - VARIABLE, - TITLE2, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.BINARY_NUMBER_MODE, - hljs.C_NUMBER_MODE, - TITLE1 - ] - }, - { - className: 'function', - begin: '\\bend\\s+', - end: '$', - keywords: 'end', - contains: [ - TITLE2, - TITLE1 - ], - relevance: 0 - }, - { - beginKeywords: 'command on', - end: '$', - contains: [ - VARIABLE, - TITLE2, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.BINARY_NUMBER_MODE, - hljs.C_NUMBER_MODE, - TITLE1 - ] - }, - { - className: 'meta', - variants: [ - { - begin: '<\\?(rev|lc|livecode)', - relevance: 10 - }, - { begin: '<\\?' }, - { begin: '\\?>' } - ] - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.BINARY_NUMBER_MODE, - hljs.C_NUMBER_MODE, - TITLE1 - ].concat(COMMENT_MODES), - illegal: ';$|^\\[|^=|&|\\{' - }; -} - -export { livecodeserver as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livecodeserver.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livecodeserver.js.js deleted file mode 100644 index 32253c1..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livecodeserver.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/livecodeserver" instead of "highlight.js/lib/languages/livecodeserver.js"' - ); - } - } - emitWarning(); - import lang from './livecodeserver.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livescript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livescript.js deleted file mode 100644 index a05df0e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livescript.js +++ /dev/null @@ -1,380 +0,0 @@ -const KEYWORDS = [ - "as", // for exports - "in", - "of", - "if", - "for", - "while", - "finally", - "var", - "new", - "function", - "do", - "return", - "void", - "else", - "break", - "catch", - "instanceof", - "with", - "throw", - "case", - "default", - "try", - "switch", - "continue", - "typeof", - "delete", - "let", - "yield", - "const", - "class", - // JS handles these with a special rule - // "get", - // "set", - "debugger", - "async", - "await", - "static", - "import", - "from", - "export", - "extends", - // It's reached stage 3, which is "recommended for implementation": - "using" -]; -const LITERALS = [ - "true", - "false", - "null", - "undefined", - "NaN", - "Infinity" -]; - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects -const TYPES = [ - // Fundamental objects - "Object", - "Function", - "Boolean", - "Symbol", - // numbers and dates - "Math", - "Date", - "Number", - "BigInt", - // text - "String", - "RegExp", - // Indexed collections - "Array", - "Float32Array", - "Float64Array", - "Int8Array", - "Uint8Array", - "Uint8ClampedArray", - "Int16Array", - "Int32Array", - "Uint16Array", - "Uint32Array", - "BigInt64Array", - "BigUint64Array", - // Keyed collections - "Set", - "Map", - "WeakSet", - "WeakMap", - // Structured data - "ArrayBuffer", - "SharedArrayBuffer", - "Atomics", - "DataView", - "JSON", - // Control abstraction objects - "Promise", - "Generator", - "GeneratorFunction", - "AsyncFunction", - // Reflection - "Reflect", - "Proxy", - // Internationalization - "Intl", - // WebAssembly - "WebAssembly" -]; - -const ERROR_TYPES = [ - "Error", - "EvalError", - "InternalError", - "RangeError", - "ReferenceError", - "SyntaxError", - "TypeError", - "URIError" -]; - -const BUILT_IN_GLOBALS = [ - "setInterval", - "setTimeout", - "clearInterval", - "clearTimeout", - - "require", - "exports", - - "eval", - "isFinite", - "isNaN", - "parseFloat", - "parseInt", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "unescape" -]; - -const BUILT_INS = [].concat( - BUILT_IN_GLOBALS, - TYPES, - ERROR_TYPES -); - -/* -Language: LiveScript -Author: Taneli Vatanen -Contributors: Jen Evers-Corvina -Origin: coffeescript.js -Description: LiveScript is a programming language that transcompiles to JavaScript. For info about language see http://livescript.net/ -Website: https://livescript.net -Category: scripting -*/ - - -function livescript(hljs) { - const LIVESCRIPT_BUILT_INS = [ - 'npm', - 'print' - ]; - const LIVESCRIPT_LITERALS = [ - 'yes', - 'no', - 'on', - 'off', - 'it', - 'that', - 'void' - ]; - const LIVESCRIPT_KEYWORDS = [ - 'then', - 'unless', - 'until', - 'loop', - 'of', - 'by', - 'when', - 'and', - 'or', - 'is', - 'isnt', - 'not', - 'it', - 'that', - 'otherwise', - 'from', - 'to', - 'til', - 'fallthrough', - 'case', - 'enum', - 'native', - 'list', - 'map', - '__hasProp', - '__extends', - '__slice', - '__bind', - '__indexOf' - ]; - const KEYWORDS$1 = { - keyword: KEYWORDS.concat(LIVESCRIPT_KEYWORDS), - literal: LITERALS.concat(LIVESCRIPT_LITERALS), - built_in: BUILT_INS.concat(LIVESCRIPT_BUILT_INS) - }; - const JS_IDENT_RE = '[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*'; - const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE }); - const SUBST = { - className: 'subst', - begin: /#\{/, - end: /\}/, - keywords: KEYWORDS$1 - }; - const SUBST_SIMPLE = { - className: 'subst', - begin: /#[A-Za-z$_]/, - end: /(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/, - keywords: KEYWORDS$1 - }; - const EXPRESSIONS = [ - hljs.BINARY_NUMBER_MODE, - { - className: 'number', - begin: '(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)', - relevance: 0, - starts: { - end: '(\\s*/)?', - relevance: 0 - } // a number tries to eat the following slash to prevent treating it as a regexp - }, - { - className: 'string', - variants: [ - { - begin: /'''/, - end: /'''/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: /'/, - end: /'/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: /"""/, - end: /"""/, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - SUBST_SIMPLE - ] - }, - { - begin: /"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST, - SUBST_SIMPLE - ] - }, - { - begin: /\\/, - end: /(\s|$)/, - excludeEnd: true - } - ] - }, - { - className: 'regexp', - variants: [ - { - begin: '//', - end: '//[gim]*', - contains: [ - SUBST, - hljs.HASH_COMMENT_MODE - ] - }, - { - // regex can't start with space to parse x / 2 / 3 as two divisions - // regex can't start with *, and it supports an "illegal" in the main mode - begin: /\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/ } - ] - }, - { begin: '@' + JS_IDENT_RE }, - { - begin: '``', - end: '``', - excludeBegin: true, - excludeEnd: true, - subLanguage: 'javascript' - } - ]; - SUBST.contains = EXPRESSIONS; - - const PARAMS = { - className: 'params', - begin: '\\(', - returnBegin: true, - /* We need another contained nameless mode to not have every nested - pair of parens to be called "params" */ - contains: [ - { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS$1, - contains: [ 'self' ].concat(EXPRESSIONS) - } - ] - }; - - const SYMBOLS = { begin: '(#=>|=>|\\|>>|-?->|!->)' }; - - const CLASS_DEFINITION = { - variants: [ - { match: [ - /class\s+/, - JS_IDENT_RE, - /\s+extends\s+/, - JS_IDENT_RE - ] }, - { match: [ - /class\s+/, - JS_IDENT_RE - ] } - ], - scope: { - 2: "title.class", - 4: "title.class.inherited" - }, - keywords: KEYWORDS$1 - }; - - return { - name: 'LiveScript', - aliases: [ 'ls' ], - keywords: KEYWORDS$1, - illegal: /\/\*/, - contains: EXPRESSIONS.concat([ - hljs.COMMENT('\\/\\*', '\\*\\/'), - hljs.HASH_COMMENT_MODE, - SYMBOLS, // relevance booster - { - className: 'function', - contains: [ - TITLE, - PARAMS - ], - returnBegin: true, - variants: [ - { - begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?', - end: '->\\*?' - }, - { - begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?', - end: '[-~]{1,2}>\\*?' - }, - { - begin: '(' + JS_IDENT_RE + '\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?', - end: '!?[-~]{1,2}>\\*?' - } - ] - }, - CLASS_DEFINITION, - { - begin: JS_IDENT_RE + ':', - end: ':', - returnBegin: true, - returnEnd: true, - relevance: 0 - } - ]) - }; -} - -export { livescript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livescript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livescript.js.js deleted file mode 100644 index 1b07772..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/livescript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/livescript" instead of "highlight.js/lib/languages/livescript.js"' - ); - } - } - emitWarning(); - import lang from './livescript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/llvm.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/llvm.js deleted file mode 100644 index 302fb6c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/llvm.js +++ /dev/null @@ -1,135 +0,0 @@ -/* -Language: LLVM IR -Author: Michael Rodler -Description: language used as intermediate representation in the LLVM compiler framework -Website: https://llvm.org/docs/LangRef.html -Category: assembler -Audit: 2020 -*/ - -/** @type LanguageFn */ -function llvm(hljs) { - const regex = hljs.regex; - const IDENT_RE = /([-a-zA-Z$._][\w$.-]*)/; - const TYPE = { - className: 'type', - begin: /\bi\d+(?=\s|\b)/ - }; - const OPERATOR = { - className: 'operator', - relevance: 0, - begin: /=/ - }; - const PUNCTUATION = { - className: 'punctuation', - relevance: 0, - begin: /,/ - }; - const NUMBER = { - className: 'number', - variants: [ - { begin: /[su]?0[xX][KMLHR]?[a-fA-F0-9]+/ }, - { begin: /[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/ } - ], - relevance: 0 - }; - const LABEL = { - className: 'symbol', - variants: [ { begin: /^\s*[a-z]+:/ }, // labels - ], - relevance: 0 - }; - const VARIABLE = { - className: 'variable', - variants: [ - { begin: regex.concat(/%/, IDENT_RE) }, - { begin: /%\d+/ }, - { begin: /#\d+/ }, - ] - }; - const FUNCTION = { - className: 'title', - variants: [ - { begin: regex.concat(/@/, IDENT_RE) }, - { begin: /@\d+/ }, - { begin: regex.concat(/!/, IDENT_RE) }, - { begin: regex.concat(/!\d+/, IDENT_RE) }, - // https://llvm.org/docs/LangRef.html#namedmetadatastructure - // obviously a single digit can also be used in this fashion - { begin: /!\d+/ } - ] - }; - - return { - name: 'LLVM IR', - // TODO: split into different categories of keywords - keywords: { - keyword: 'begin end true false declare define global ' - + 'constant private linker_private internal ' - + 'available_externally linkonce linkonce_odr weak ' - + 'weak_odr appending dllimport dllexport common ' - + 'default hidden protected extern_weak external ' - + 'thread_local zeroinitializer undef null to tail ' - + 'target triple datalayout volatile nuw nsw nnan ' - + 'ninf nsz arcp fast exact inbounds align ' - + 'addrspace section alias module asm sideeffect ' - + 'gc dbg linker_private_weak attributes blockaddress ' - + 'initialexec localdynamic localexec prefix unnamed_addr ' - + 'ccc fastcc coldcc x86_stdcallcc x86_fastcallcc ' - + 'arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ' - + 'ptx_kernel intel_ocl_bicc msp430_intrcc spir_func ' - + 'spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc ' - + 'cc c signext zeroext inreg sret nounwind ' - + 'noreturn noalias nocapture byval nest readnone ' - + 'readonly inlinehint noinline alwaysinline optsize ssp ' - + 'sspreq noredzone noimplicitfloat naked builtin cold ' - + 'nobuiltin noduplicate nonlazybind optnone returns_twice ' - + 'sanitize_address sanitize_memory sanitize_thread sspstrong ' - + 'uwtable returned type opaque eq ne slt sgt ' - + 'sle sge ult ugt ule uge oeq one olt ogt ' - + 'ole oge ord uno ueq une x acq_rel acquire ' - + 'alignstack atomic catch cleanup filter inteldialect ' - + 'max min monotonic nand personality release seq_cst ' - + 'singlethread umax umin unordered xchg add fadd ' - + 'sub fsub mul fmul udiv sdiv fdiv urem srem ' - + 'frem shl lshr ashr and or xor icmp fcmp ' - + 'phi call trunc zext sext fptrunc fpext uitofp ' - + 'sitofp fptoui fptosi inttoptr ptrtoint bitcast ' - + 'addrspacecast select va_arg ret br switch invoke ' - + 'unwind unreachable indirectbr landingpad resume ' - + 'malloc alloca free load store getelementptr ' - + 'extractelement insertelement shufflevector getresult ' - + 'extractvalue insertvalue atomicrmw cmpxchg fence ' - + 'argmemonly', - type: 'void half bfloat float double fp128 x86_fp80 ppc_fp128 ' - + 'x86_amx x86_mmx ptr label token metadata opaque' - }, - contains: [ - TYPE, - // this matches "empty comments"... - // ...because it's far more likely this is a statement terminator in - // another language than an actual comment - hljs.COMMENT(/;\s*$/, null, { relevance: 0 }), - hljs.COMMENT(/;/, /$/), - { - className: 'string', - begin: /"/, - end: /"/, - contains: [ - { - className: 'char.escape', - match: /\\\d\d/ - } - ] - }, - FUNCTION, - PUNCTUATION, - OPERATOR, - VARIABLE, - LABEL, - NUMBER - ] - }; -} - -export { llvm as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/llvm.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/llvm.js.js deleted file mode 100644 index e8933f2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/llvm.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/llvm" instead of "highlight.js/lib/languages/llvm.js"' - ); - } - } - emitWarning(); - import lang from './llvm.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lsl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lsl.js deleted file mode 100644 index c66546c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lsl.js +++ /dev/null @@ -1,76 +0,0 @@ -/* -Language: LSL (Linden Scripting Language) -Description: The Linden Scripting Language is used in Second Life by Linden Labs. -Author: Builder's Brewery -Website: http://wiki.secondlife.com/wiki/LSL_Portal -Category: scripting -*/ - -function lsl(hljs) { - const LSL_STRING_ESCAPE_CHARS = { - className: 'subst', - begin: /\\[tn"\\]/ - }; - - const LSL_STRINGS = { - className: 'string', - begin: '"', - end: '"', - contains: [ LSL_STRING_ESCAPE_CHARS ] - }; - - const LSL_NUMBERS = { - className: 'number', - relevance: 0, - begin: hljs.C_NUMBER_RE - }; - - const LSL_CONSTANTS = { - className: 'literal', - variants: [ - { begin: '\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b' }, - { begin: '\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b' }, - { begin: '\\b(FALSE|TRUE)\\b' }, - { begin: '\\b(ZERO_ROTATION)\\b' }, - { begin: '\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b' }, - { begin: '\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b' } - ] - }; - - const LSL_FUNCTIONS = { - className: 'built_in', - begin: '\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b' - }; - - return { - name: 'LSL (Linden Scripting Language)', - illegal: ':', - contains: [ - LSL_STRINGS, - { - className: 'comment', - variants: [ - hljs.COMMENT('//', '$'), - hljs.COMMENT('/\\*', '\\*/') - ], - relevance: 0 - }, - LSL_NUMBERS, - { - className: 'section', - variants: [ - { begin: '\\b(state|default)\\b' }, - { begin: '\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b' } - ] - }, - LSL_FUNCTIONS, - LSL_CONSTANTS, - { - className: 'type', - begin: '\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b' - } - ] - }; -} - -export { lsl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lsl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lsl.js.js deleted file mode 100644 index 1c8c0c3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lsl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/lsl" instead of "highlight.js/lib/languages/lsl.js"' - ); - } - } - emitWarning(); - import lang from './lsl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js deleted file mode 100644 index 993265e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js +++ /dev/null @@ -1,81 +0,0 @@ -/* -Language: Lua -Description: Lua is a powerful, efficient, lightweight, embeddable scripting language. -Author: Andrew Fedorov -Category: common, gaming, scripting -Website: https://www.lua.org -*/ - -function lua(hljs) { - const OPENING_LONG_BRACKET = '\\[=*\\['; - const CLOSING_LONG_BRACKET = '\\]=*\\]'; - const LONG_BRACKETS = { - begin: OPENING_LONG_BRACKET, - end: CLOSING_LONG_BRACKET, - contains: [ 'self' ] - }; - const COMMENTS = [ - hljs.COMMENT('--(?!' + OPENING_LONG_BRACKET + ')', '$'), - hljs.COMMENT( - '--' + OPENING_LONG_BRACKET, - CLOSING_LONG_BRACKET, - { - contains: [ LONG_BRACKETS ], - relevance: 10 - } - ) - ]; - return { - name: 'Lua', - aliases: ['pluto'], - keywords: { - $pattern: hljs.UNDERSCORE_IDENT_RE, - literal: "true false nil", - keyword: "and break do else elseif end for goto if in local not or repeat return then until while", - built_in: - // Metatags and globals: - '_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len ' - + '__gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert ' - // Standard methods and properties: - + 'collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring ' - + 'module next pairs pcall print rawequal rawget rawset require select setfenv ' - + 'setmetatable tonumber tostring type unpack xpcall arg self ' - // Library methods and properties (one line per library): - + 'coroutine resume yield status wrap create running debug getupvalue ' - + 'debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv ' - + 'io lines write close flush open output type read stderr stdin input stdout popen tmpfile ' - + 'math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan ' - + 'os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall ' - + 'string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower ' - + 'table setn insert getn foreachi maxn foreach concat sort remove' - }, - contains: COMMENTS.concat([ - { - className: 'function', - beginKeywords: 'function', - end: '\\)', - contains: [ - hljs.inherit(hljs.TITLE_MODE, { begin: '([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*' }), - { - className: 'params', - begin: '\\(', - endsWithParent: true, - contains: COMMENTS - } - ].concat(COMMENTS) - }, - hljs.C_NUMBER_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - className: 'string', - begin: OPENING_LONG_BRACKET, - end: CLOSING_LONG_BRACKET, - contains: [ LONG_BRACKETS ], - relevance: 5 - } - ]) - }; -} - -export { lua as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js.js deleted file mode 100644 index 1fc6c58..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/lua.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/lua" instead of "highlight.js/lib/languages/lua.js"' - ); - } - } - emitWarning(); - import lang from './lua.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/makefile.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/makefile.js deleted file mode 100644 index 47b2bad..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/makefile.js +++ /dev/null @@ -1,89 +0,0 @@ -/* -Language: Makefile -Author: Ivan Sagalaev -Contributors: Joël Porquet -Website: https://www.gnu.org/software/make/manual/html_node/Introduction.html -Category: common, build-system -*/ - -function makefile(hljs) { - /* Variables: simple (eg $(var)) and special (eg $@) */ - const VARIABLE = { - className: 'variable', - variants: [ - { - begin: '\\$\\(' + hljs.UNDERSCORE_IDENT_RE + '\\)', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { begin: /\$[@% -Website: https://daringfireball.net/projects/markdown/ -Category: common, markup -*/ - -function markdown(hljs) { - const regex = hljs.regex; - const INLINE_HTML = { - begin: /<\/?[A-Za-z_]/, - end: '>', - subLanguage: 'xml', - relevance: 0 - }; - const HORIZONTAL_RULE = { - begin: '^[-\\*]{3,}', - end: '$' - }; - const CODE = { - className: 'code', - variants: [ - // TODO: fix to allow these to work with sublanguage also - { begin: '(`{3,})[^`](.|\\n)*?\\1`*[ ]*' }, - { begin: '(~{3,})[^~](.|\\n)*?\\1~*[ ]*' }, - // needed to allow markdown as a sublanguage to work - { - begin: '```', - end: '```+[ ]*$' - }, - { - begin: '~~~', - end: '~~~+[ ]*$' - }, - { begin: '`.+?`' }, - { - begin: '(?=^( {4}|\\t))', - // use contains to gobble up multiple lines to allow the block to be whatever size - // but only have a single open/close tag vs one per line - contains: [ - { - begin: '^( {4}|\\t)', - end: '(\\n)$' - } - ], - relevance: 0 - } - ] - }; - const LIST = { - className: 'bullet', - begin: '^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)', - end: '\\s+', - excludeEnd: true - }; - const LINK_REFERENCE = { - begin: /^\[[^\n]+\]:/, - returnBegin: true, - contains: [ - { - className: 'symbol', - begin: /\[/, - end: /\]/, - excludeBegin: true, - excludeEnd: true - }, - { - className: 'link', - begin: /:\s*/, - end: /$/, - excludeBegin: true - } - ] - }; - const URL_SCHEME = /[A-Za-z][A-Za-z0-9+.-]*/; - const LINK = { - variants: [ - // too much like nested array access in so many languages - // to have any real relevance - { - begin: /\[.+?\]\[.*?\]/, - relevance: 0 - }, - // popular internet URLs - { - begin: /\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, - relevance: 2 - }, - { - begin: regex.concat(/\[.+?\]\(/, URL_SCHEME, /:\/\/.*?\)/), - relevance: 2 - }, - // relative urls - { - begin: /\[.+?\]\([./?&#].*?\)/, - relevance: 1 - }, - // whatever else, lower relevance (might not be a link at all) - { - begin: /\[.*?\]\(.*?\)/, - relevance: 0 - } - ], - returnBegin: true, - contains: [ - { - // empty strings for alt or link text - match: /\[(?=\])/ }, - { - className: 'string', - relevance: 0, - begin: '\\[', - end: '\\]', - excludeBegin: true, - returnEnd: true - }, - { - className: 'link', - relevance: 0, - begin: '\\]\\(', - end: '\\)', - excludeBegin: true, - excludeEnd: true - }, - { - className: 'symbol', - relevance: 0, - begin: '\\]\\[', - end: '\\]', - excludeBegin: true, - excludeEnd: true - } - ] - }; - const BOLD = { - className: 'strong', - contains: [], // defined later - variants: [ - { - begin: /_{2}(?!\s)/, - end: /_{2}/ - }, - { - begin: /\*{2}(?!\s)/, - end: /\*{2}/ - } - ] - }; - const ITALIC = { - className: 'emphasis', - contains: [], // defined later - variants: [ - { - begin: /\*(?![*\s])/, - end: /\*/ - }, - { - begin: /_(?![_\s])/, - end: /_/, - relevance: 0 - } - ] - }; - - // 3 level deep nesting is not allowed because it would create confusion - // in cases like `***testing***` because where we don't know if the last - // `***` is starting a new bold/italic or finishing the last one - const BOLD_WITHOUT_ITALIC = hljs.inherit(BOLD, { contains: [] }); - const ITALIC_WITHOUT_BOLD = hljs.inherit(ITALIC, { contains: [] }); - BOLD.contains.push(ITALIC_WITHOUT_BOLD); - ITALIC.contains.push(BOLD_WITHOUT_ITALIC); - - let CONTAINABLE = [ - INLINE_HTML, - LINK - ]; - - [ - BOLD, - ITALIC, - BOLD_WITHOUT_ITALIC, - ITALIC_WITHOUT_BOLD - ].forEach(m => { - m.contains = m.contains.concat(CONTAINABLE); - }); - - CONTAINABLE = CONTAINABLE.concat(BOLD, ITALIC); - - const HEADER = { - className: 'section', - variants: [ - { - begin: '^#{1,6}', - end: '$', - contains: CONTAINABLE - }, - { - begin: '(?=^.+?\\n[=-]{2,}$)', - contains: [ - { begin: '^[=-]*$' }, - { - begin: '^', - end: "\\n", - contains: CONTAINABLE - } - ] - } - ] - }; - - const BLOCKQUOTE = { - className: 'quote', - begin: '^>\\s+', - contains: CONTAINABLE, - end: '$' - }; - - const ENTITY = { - //https://spec.commonmark.org/0.31.2/#entity-references - scope: 'literal', - match: /&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/ - }; - - return { - name: 'Markdown', - aliases: [ - 'md', - 'mkdown', - 'mkd' - ], - contains: [ - HEADER, - INLINE_HTML, - LIST, - BOLD, - ITALIC, - BLOCKQUOTE, - CODE, - HORIZONTAL_RULE, - LINK, - LINK_REFERENCE, - ENTITY - ] - }; -} - -export { markdown as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js.js deleted file mode 100644 index 5daa3d2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/markdown" instead of "highlight.js/lib/languages/markdown.js"' - ); - } - } - emitWarning(); - import lang from './markdown.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mathematica.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mathematica.js deleted file mode 100644 index 9135a97..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mathematica.js +++ /dev/null @@ -1,7359 +0,0 @@ -const SYSTEM_SYMBOLS = [ - "AASTriangle", - "AbelianGroup", - "Abort", - "AbortKernels", - "AbortProtect", - "AbortScheduledTask", - "Above", - "Abs", - "AbsArg", - "AbsArgPlot", - "Absolute", - "AbsoluteCorrelation", - "AbsoluteCorrelationFunction", - "AbsoluteCurrentValue", - "AbsoluteDashing", - "AbsoluteFileName", - "AbsoluteOptions", - "AbsolutePointSize", - "AbsoluteThickness", - "AbsoluteTime", - "AbsoluteTiming", - "AcceptanceThreshold", - "AccountingForm", - "Accumulate", - "Accuracy", - "AccuracyGoal", - "AcousticAbsorbingValue", - "AcousticImpedanceValue", - "AcousticNormalVelocityValue", - "AcousticPDEComponent", - "AcousticPressureCondition", - "AcousticRadiationValue", - "AcousticSoundHardValue", - "AcousticSoundSoftCondition", - "ActionDelay", - "ActionMenu", - "ActionMenuBox", - "ActionMenuBoxOptions", - "Activate", - "Active", - "ActiveClassification", - "ActiveClassificationObject", - "ActiveItem", - "ActivePrediction", - "ActivePredictionObject", - "ActiveStyle", - "AcyclicGraphQ", - "AddOnHelpPath", - "AddSides", - "AddTo", - "AddToSearchIndex", - "AddUsers", - "AdjacencyGraph", - "AdjacencyList", - "AdjacencyMatrix", - "AdjacentMeshCells", - "Adjugate", - "AdjustmentBox", - "AdjustmentBoxOptions", - "AdjustTimeSeriesForecast", - "AdministrativeDivisionData", - "AffineHalfSpace", - "AffineSpace", - "AffineStateSpaceModel", - "AffineTransform", - "After", - "AggregatedEntityClass", - "AggregationLayer", - "AircraftData", - "AirportData", - "AirPressureData", - "AirSoundAttenuation", - "AirTemperatureData", - "AiryAi", - "AiryAiPrime", - "AiryAiZero", - "AiryBi", - "AiryBiPrime", - "AiryBiZero", - "AlgebraicIntegerQ", - "AlgebraicNumber", - "AlgebraicNumberDenominator", - "AlgebraicNumberNorm", - "AlgebraicNumberPolynomial", - "AlgebraicNumberTrace", - "AlgebraicRules", - "AlgebraicRulesData", - "Algebraics", - "AlgebraicUnitQ", - "Alignment", - "AlignmentMarker", - "AlignmentPoint", - "All", - "AllowAdultContent", - "AllowChatServices", - "AllowedCloudExtraParameters", - "AllowedCloudParameterExtensions", - "AllowedDimensions", - "AllowedFrequencyRange", - "AllowedHeads", - "AllowGroupClose", - "AllowIncomplete", - "AllowInlineCells", - "AllowKernelInitialization", - "AllowLooseGrammar", - "AllowReverseGroupClose", - "AllowScriptLevelChange", - "AllowVersionUpdate", - "AllTrue", - "Alphabet", - "AlphabeticOrder", - "AlphabeticSort", - "AlphaChannel", - "AlternateImage", - "AlternatingFactorial", - "AlternatingGroup", - "AlternativeHypothesis", - "Alternatives", - "AltitudeMethod", - "AmbientLight", - "AmbiguityFunction", - "AmbiguityList", - "Analytic", - "AnatomyData", - "AnatomyForm", - "AnatomyPlot3D", - "AnatomySkinStyle", - "AnatomyStyling", - "AnchoredSearch", - "And", - "AndersonDarlingTest", - "AngerJ", - "AngleBisector", - "AngleBracket", - "AnglePath", - "AnglePath3D", - "AngleVector", - "AngularGauge", - "Animate", - "AnimatedImage", - "AnimationCycleOffset", - "AnimationCycleRepetitions", - "AnimationDirection", - "AnimationDisplayTime", - "AnimationRate", - "AnimationRepetitions", - "AnimationRunning", - "AnimationRunTime", - "AnimationTimeIndex", - "AnimationVideo", - "Animator", - "AnimatorBox", - "AnimatorBoxOptions", - "AnimatorElements", - "Annotate", - "Annotation", - "AnnotationDelete", - "AnnotationKeys", - "AnnotationRules", - "AnnotationValue", - "Annuity", - "AnnuityDue", - "Annulus", - "AnomalyDetection", - "AnomalyDetector", - "AnomalyDetectorFunction", - "Anonymous", - "Antialiasing", - "Antihermitian", - "AntihermitianMatrixQ", - "Antisymmetric", - "AntisymmetricMatrixQ", - "Antonyms", - "AnyOrder", - "AnySubset", - "AnyTrue", - "Apart", - "ApartSquareFree", - "APIFunction", - "Appearance", - "AppearanceElements", - "AppearanceRules", - "AppellF1", - "Append", - "AppendCheck", - "AppendLayer", - "AppendTo", - "Application", - "Apply", - "ApplyReaction", - "ApplySides", - "ApplyTo", - "ArcCos", - "ArcCosh", - "ArcCot", - "ArcCoth", - "ArcCsc", - "ArcCsch", - "ArcCurvature", - "ARCHProcess", - "ArcLength", - "ArcSec", - "ArcSech", - "ArcSin", - "ArcSinDistribution", - "ArcSinh", - "ArcTan", - "ArcTanh", - "Area", - "Arg", - "ArgMax", - "ArgMin", - "ArgumentCountQ", - "ArgumentsOptions", - "ARIMAProcess", - "ArithmeticGeometricMean", - "ARMAProcess", - "Around", - "AroundReplace", - "ARProcess", - "Array", - "ArrayComponents", - "ArrayDepth", - "ArrayFilter", - "ArrayFlatten", - "ArrayMesh", - "ArrayPad", - "ArrayPlot", - "ArrayPlot3D", - "ArrayQ", - "ArrayReduce", - "ArrayResample", - "ArrayReshape", - "ArrayRules", - "Arrays", - "Arrow", - "Arrow3DBox", - "ArrowBox", - "Arrowheads", - "ASATriangle", - "Ask", - "AskAppend", - "AskConfirm", - "AskDisplay", - "AskedQ", - "AskedValue", - "AskFunction", - "AskState", - "AskTemplateDisplay", - "AspectRatio", - "AspectRatioFixed", - "Assert", - "AssessmentFunction", - "AssessmentResultObject", - "AssociateTo", - "Association", - "AssociationFormat", - "AssociationMap", - "AssociationQ", - "AssociationThread", - "AssumeDeterministic", - "Assuming", - "Assumptions", - "AstroAngularSeparation", - "AstroBackground", - "AstroCenter", - "AstroDistance", - "AstroGraphics", - "AstroGridLines", - "AstroGridLinesStyle", - "AstronomicalData", - "AstroPosition", - "AstroProjection", - "AstroRange", - "AstroRangePadding", - "AstroReferenceFrame", - "AstroStyling", - "AstroZoomLevel", - "Asymptotic", - "AsymptoticDSolveValue", - "AsymptoticEqual", - "AsymptoticEquivalent", - "AsymptoticExpectation", - "AsymptoticGreater", - "AsymptoticGreaterEqual", - "AsymptoticIntegrate", - "AsymptoticLess", - "AsymptoticLessEqual", - "AsymptoticOutputTracker", - "AsymptoticProbability", - "AsymptoticProduct", - "AsymptoticRSolveValue", - "AsymptoticSolve", - "AsymptoticSum", - "Asynchronous", - "AsynchronousTaskObject", - "AsynchronousTasks", - "Atom", - "AtomCoordinates", - "AtomCount", - "AtomDiagramCoordinates", - "AtomLabels", - "AtomLabelStyle", - "AtomList", - "AtomQ", - "AttachCell", - "AttachedCell", - "AttentionLayer", - "Attributes", - "Audio", - "AudioAmplify", - "AudioAnnotate", - "AudioAnnotationLookup", - "AudioBlockMap", - "AudioCapture", - "AudioChannelAssignment", - "AudioChannelCombine", - "AudioChannelMix", - "AudioChannels", - "AudioChannelSeparate", - "AudioData", - "AudioDelay", - "AudioDelete", - "AudioDevice", - "AudioDistance", - "AudioEncoding", - "AudioFade", - "AudioFrequencyShift", - "AudioGenerator", - "AudioIdentify", - "AudioInputDevice", - "AudioInsert", - "AudioInstanceQ", - "AudioIntervals", - "AudioJoin", - "AudioLabel", - "AudioLength", - "AudioLocalMeasurements", - "AudioLooping", - "AudioLoudness", - "AudioMeasurements", - "AudioNormalize", - "AudioOutputDevice", - "AudioOverlay", - "AudioPad", - "AudioPan", - "AudioPartition", - "AudioPause", - "AudioPitchShift", - "AudioPlay", - "AudioPlot", - "AudioQ", - "AudioRecord", - "AudioReplace", - "AudioResample", - "AudioReverb", - "AudioReverse", - "AudioSampleRate", - "AudioSpectralMap", - "AudioSpectralTransformation", - "AudioSplit", - "AudioStop", - "AudioStream", - "AudioStreams", - "AudioTimeStretch", - "AudioTrackApply", - "AudioTrackSelection", - "AudioTrim", - "AudioType", - "AugmentedPolyhedron", - "AugmentedSymmetricPolynomial", - "Authenticate", - "Authentication", - "AuthenticationDialog", - "AutoAction", - "Autocomplete", - "AutocompletionFunction", - "AutoCopy", - "AutocorrelationTest", - "AutoDelete", - "AutoEvaluateEvents", - "AutoGeneratedPackage", - "AutoIndent", - "AutoIndentSpacings", - "AutoItalicWords", - "AutoloadPath", - "AutoMatch", - "Automatic", - "AutomaticImageSize", - "AutoMultiplicationSymbol", - "AutoNumberFormatting", - "AutoOpenNotebooks", - "AutoOpenPalettes", - "AutoOperatorRenderings", - "AutoQuoteCharacters", - "AutoRefreshed", - "AutoRemove", - "AutorunSequencing", - "AutoScaling", - "AutoScroll", - "AutoSpacing", - "AutoStyleOptions", - "AutoStyleWords", - "AutoSubmitting", - "Axes", - "AxesEdge", - "AxesLabel", - "AxesOrigin", - "AxesStyle", - "AxiomaticTheory", - "Axis", - "Axis3DBox", - "Axis3DBoxOptions", - "AxisBox", - "AxisBoxOptions", - "AxisLabel", - "AxisObject", - "AxisStyle", - "BabyMonsterGroupB", - "Back", - "BackFaceColor", - "BackFaceGlowColor", - "BackFaceOpacity", - "BackFaceSpecularColor", - "BackFaceSpecularExponent", - "BackFaceSurfaceAppearance", - "BackFaceTexture", - "Background", - "BackgroundAppearance", - "BackgroundTasksSettings", - "Backslash", - "Backsubstitution", - "Backward", - "Ball", - "Band", - "BandpassFilter", - "BandstopFilter", - "BarabasiAlbertGraphDistribution", - "BarChart", - "BarChart3D", - "BarcodeImage", - "BarcodeRecognize", - "BaringhausHenzeTest", - "BarLegend", - "BarlowProschanImportance", - "BarnesG", - "BarOrigin", - "BarSpacing", - "BartlettHannWindow", - "BartlettWindow", - "BaseDecode", - "BaseEncode", - "BaseForm", - "Baseline", - "BaselinePosition", - "BaseStyle", - "BasicRecurrentLayer", - "BatchNormalizationLayer", - "BatchSize", - "BatesDistribution", - "BattleLemarieWavelet", - "BayesianMaximization", - "BayesianMaximizationObject", - "BayesianMinimization", - "BayesianMinimizationObject", - "Because", - "BeckmannDistribution", - "Beep", - "Before", - "Begin", - "BeginDialogPacket", - "BeginPackage", - "BellB", - "BellY", - "Below", - "BenfordDistribution", - "BeniniDistribution", - "BenktanderGibratDistribution", - "BenktanderWeibullDistribution", - "BernoulliB", - "BernoulliDistribution", - "BernoulliGraphDistribution", - "BernoulliProcess", - "BernsteinBasis", - "BesagL", - "BesselFilterModel", - "BesselI", - "BesselJ", - "BesselJZero", - "BesselK", - "BesselY", - "BesselYZero", - "Beta", - "BetaBinomialDistribution", - "BetaDistribution", - "BetaNegativeBinomialDistribution", - "BetaPrimeDistribution", - "BetaRegularized", - "Between", - "BetweennessCentrality", - "Beveled", - "BeveledPolyhedron", - "BezierCurve", - "BezierCurve3DBox", - "BezierCurve3DBoxOptions", - "BezierCurveBox", - "BezierCurveBoxOptions", - "BezierFunction", - "BilateralFilter", - "BilateralLaplaceTransform", - "BilateralZTransform", - "Binarize", - "BinaryDeserialize", - "BinaryDistance", - "BinaryFormat", - "BinaryImageQ", - "BinaryRead", - "BinaryReadList", - "BinarySerialize", - "BinaryWrite", - "BinCounts", - "BinLists", - "BinnedVariogramList", - "Binomial", - "BinomialDistribution", - "BinomialPointProcess", - "BinomialProcess", - "BinormalDistribution", - "BiorthogonalSplineWavelet", - "BioSequence", - "BioSequenceBackTranslateList", - "BioSequenceComplement", - "BioSequenceInstances", - "BioSequenceModify", - "BioSequencePlot", - "BioSequenceQ", - "BioSequenceReverseComplement", - "BioSequenceTranscribe", - "BioSequenceTranslate", - "BipartiteGraphQ", - "BiquadraticFilterModel", - "BirnbaumImportance", - "BirnbaumSaundersDistribution", - "BitAnd", - "BitClear", - "BitGet", - "BitLength", - "BitNot", - "BitOr", - "BitRate", - "BitSet", - "BitShiftLeft", - "BitShiftRight", - "BitXor", - "BiweightLocation", - "BiweightMidvariance", - "Black", - "BlackmanHarrisWindow", - "BlackmanNuttallWindow", - "BlackmanWindow", - "Blank", - "BlankForm", - "BlankNullSequence", - "BlankSequence", - "Blend", - "Block", - "BlockchainAddressData", - "BlockchainBase", - "BlockchainBlockData", - "BlockchainContractValue", - "BlockchainData", - "BlockchainGet", - "BlockchainKeyEncode", - "BlockchainPut", - "BlockchainTokenData", - "BlockchainTransaction", - "BlockchainTransactionData", - "BlockchainTransactionSign", - "BlockchainTransactionSubmit", - "BlockDiagonalMatrix", - "BlockLowerTriangularMatrix", - "BlockMap", - "BlockRandom", - "BlockUpperTriangularMatrix", - "BlomqvistBeta", - "BlomqvistBetaTest", - "Blue", - "Blur", - "Blurring", - "BodePlot", - "BohmanWindow", - "Bold", - "Bond", - "BondCount", - "BondLabels", - "BondLabelStyle", - "BondList", - "BondQ", - "Bookmarks", - "Boole", - "BooleanConsecutiveFunction", - "BooleanConvert", - "BooleanCountingFunction", - "BooleanFunction", - "BooleanGraph", - "BooleanMaxterms", - "BooleanMinimize", - "BooleanMinterms", - "BooleanQ", - "BooleanRegion", - "Booleans", - "BooleanStrings", - "BooleanTable", - "BooleanVariables", - "BorderDimensions", - "BorelTannerDistribution", - "Bottom", - "BottomHatTransform", - "BoundaryDiscretizeGraphics", - "BoundaryDiscretizeRegion", - "BoundaryMesh", - "BoundaryMeshRegion", - "BoundaryMeshRegionQ", - "BoundaryStyle", - "BoundedRegionQ", - "BoundingRegion", - "Bounds", - "Box", - "BoxBaselineShift", - "BoxData", - "BoxDimensions", - "Boxed", - "Boxes", - "BoxForm", - "BoxFormFormatTypes", - "BoxFrame", - "BoxID", - "BoxMargins", - "BoxMatrix", - "BoxObject", - "BoxRatios", - "BoxRotation", - "BoxRotationPoint", - "BoxStyle", - "BoxWhiskerChart", - "Bra", - "BracketingBar", - "BraKet", - "BrayCurtisDistance", - "BreadthFirstScan", - "Break", - "BridgeData", - "BrightnessEqualize", - "BroadcastStationData", - "Brown", - "BrownForsytheTest", - "BrownianBridgeProcess", - "BrowserCategory", - "BSplineBasis", - "BSplineCurve", - "BSplineCurve3DBox", - "BSplineCurve3DBoxOptions", - "BSplineCurveBox", - "BSplineCurveBoxOptions", - "BSplineFunction", - "BSplineSurface", - "BSplineSurface3DBox", - "BSplineSurface3DBoxOptions", - "BubbleChart", - "BubbleChart3D", - "BubbleScale", - "BubbleSizes", - "BuckyballGraph", - "BuildCompiledComponent", - "BuildingData", - "BulletGauge", - "BusinessDayQ", - "ButterflyGraph", - "ButterworthFilterModel", - "Button", - "ButtonBar", - "ButtonBox", - "ButtonBoxOptions", - "ButtonCell", - "ButtonContents", - "ButtonData", - "ButtonEvaluator", - "ButtonExpandable", - "ButtonFrame", - "ButtonFunction", - "ButtonMargins", - "ButtonMinHeight", - "ButtonNote", - "ButtonNotebook", - "ButtonSource", - "ButtonStyle", - "ButtonStyleMenuListing", - "Byte", - "ByteArray", - "ByteArrayFormat", - "ByteArrayFormatQ", - "ByteArrayQ", - "ByteArrayToString", - "ByteCount", - "ByteOrdering", - "C", - "CachedValue", - "CacheGraphics", - "CachePersistence", - "CalendarConvert", - "CalendarData", - "CalendarType", - "Callout", - "CalloutMarker", - "CalloutStyle", - "CallPacket", - "CanberraDistance", - "Cancel", - "CancelButton", - "CandlestickChart", - "CanonicalGraph", - "CanonicalizePolygon", - "CanonicalizePolyhedron", - "CanonicalizeRegion", - "CanonicalName", - "CanonicalWarpingCorrespondence", - "CanonicalWarpingDistance", - "CantorMesh", - "CantorStaircase", - "Canvas", - "Cap", - "CapForm", - "CapitalDifferentialD", - "Capitalize", - "CapsuleShape", - "CaptureRunning", - "CaputoD", - "CardinalBSplineBasis", - "CarlemanLinearize", - "CarlsonRC", - "CarlsonRD", - "CarlsonRE", - "CarlsonRF", - "CarlsonRG", - "CarlsonRJ", - "CarlsonRK", - "CarlsonRM", - "CarmichaelLambda", - "CaseOrdering", - "Cases", - "CaseSensitive", - "Cashflow", - "Casoratian", - "Cast", - "Catalan", - "CatalanNumber", - "Catch", - "CategoricalDistribution", - "Catenate", - "CatenateLayer", - "CauchyDistribution", - "CauchyMatrix", - "CauchyPointProcess", - "CauchyWindow", - "CayleyGraph", - "CDF", - "CDFDeploy", - "CDFInformation", - "CDFWavelet", - "Ceiling", - "CelestialSystem", - "Cell", - "CellAutoOverwrite", - "CellBaseline", - "CellBoundingBox", - "CellBracketOptions", - "CellChangeTimes", - "CellContents", - "CellContext", - "CellDingbat", - "CellDingbatMargin", - "CellDynamicExpression", - "CellEditDuplicate", - "CellElementsBoundingBox", - "CellElementSpacings", - "CellEpilog", - "CellEvaluationDuplicate", - "CellEvaluationFunction", - "CellEvaluationLanguage", - "CellEventActions", - "CellFrame", - "CellFrameColor", - "CellFrameLabelMargins", - "CellFrameLabels", - "CellFrameMargins", - "CellFrameStyle", - "CellGroup", - "CellGroupData", - "CellGrouping", - "CellGroupingRules", - "CellHorizontalScrolling", - "CellID", - "CellInsertionPointCell", - "CellLabel", - "CellLabelAutoDelete", - "CellLabelMargins", - "CellLabelPositioning", - "CellLabelStyle", - "CellLabelTemplate", - "CellMargins", - "CellObject", - "CellOpen", - "CellPrint", - "CellProlog", - "Cells", - "CellSize", - "CellStyle", - "CellTags", - "CellTrayPosition", - "CellTrayWidgets", - "CellularAutomaton", - "CensoredDistribution", - "Censoring", - "Center", - "CenterArray", - "CenterDot", - "CenteredInterval", - "CentralFeature", - "CentralMoment", - "CentralMomentGeneratingFunction", - "Cepstrogram", - "CepstrogramArray", - "CepstrumArray", - "CForm", - "ChampernowneNumber", - "ChangeOptions", - "ChannelBase", - "ChannelBrokerAction", - "ChannelDatabin", - "ChannelHistoryLength", - "ChannelListen", - "ChannelListener", - "ChannelListeners", - "ChannelListenerWait", - "ChannelObject", - "ChannelPreSendFunction", - "ChannelReceiverFunction", - "ChannelSend", - "ChannelSubscribers", - "ChanVeseBinarize", - "Character", - "CharacterCounts", - "CharacterEncoding", - "CharacterEncodingsPath", - "CharacteristicFunction", - "CharacteristicPolynomial", - "CharacterName", - "CharacterNormalize", - "CharacterRange", - "Characters", - "ChartBaseStyle", - "ChartElementData", - "ChartElementDataFunction", - "ChartElementFunction", - "ChartElements", - "ChartLabels", - "ChartLayout", - "ChartLegends", - "ChartStyle", - "Chebyshev1FilterModel", - "Chebyshev2FilterModel", - "ChebyshevDistance", - "ChebyshevT", - "ChebyshevU", - "Check", - "CheckAbort", - "CheckAll", - "CheckArguments", - "Checkbox", - "CheckboxBar", - "CheckboxBox", - "CheckboxBoxOptions", - "ChemicalConvert", - "ChemicalData", - "ChemicalFormula", - "ChemicalInstance", - "ChemicalReaction", - "ChessboardDistance", - "ChiDistribution", - "ChineseRemainder", - "ChiSquareDistribution", - "ChoiceButtons", - "ChoiceDialog", - "CholeskyDecomposition", - "Chop", - "ChromaticityPlot", - "ChromaticityPlot3D", - "ChromaticPolynomial", - "Circle", - "CircleBox", - "CircleDot", - "CircleMinus", - "CirclePlus", - "CirclePoints", - "CircleThrough", - "CircleTimes", - "CirculantGraph", - "CircularArcThrough", - "CircularOrthogonalMatrixDistribution", - "CircularQuaternionMatrixDistribution", - "CircularRealMatrixDistribution", - "CircularSymplecticMatrixDistribution", - "CircularUnitaryMatrixDistribution", - "Circumsphere", - "CityData", - "ClassifierFunction", - "ClassifierInformation", - "ClassifierMeasurements", - "ClassifierMeasurementsObject", - "Classify", - "ClassPriors", - "Clear", - "ClearAll", - "ClearAttributes", - "ClearCookies", - "ClearPermissions", - "ClearSystemCache", - "ClebschGordan", - "ClickPane", - "ClickToCopy", - "ClickToCopyEnabled", - "Clip", - "ClipboardNotebook", - "ClipFill", - "ClippingStyle", - "ClipPlanes", - "ClipPlanesStyle", - "ClipRange", - "Clock", - "ClockGauge", - "ClockwiseContourIntegral", - "Close", - "Closed", - "CloseKernels", - "ClosenessCentrality", - "Closing", - "ClosingAutoSave", - "ClosingEvent", - "CloudAccountData", - "CloudBase", - "CloudConnect", - "CloudConnections", - "CloudDeploy", - "CloudDirectory", - "CloudDisconnect", - "CloudEvaluate", - "CloudExport", - "CloudExpression", - "CloudExpressions", - "CloudFunction", - "CloudGet", - "CloudImport", - "CloudLoggingData", - "CloudObject", - "CloudObjectInformation", - "CloudObjectInformationData", - "CloudObjectNameFormat", - "CloudObjects", - "CloudObjectURLType", - "CloudPublish", - "CloudPut", - "CloudRenderingMethod", - "CloudSave", - "CloudShare", - "CloudSubmit", - "CloudSymbol", - "CloudUnshare", - "CloudUserID", - "ClusterClassify", - "ClusterDissimilarityFunction", - "ClusteringComponents", - "ClusteringMeasurements", - "ClusteringTree", - "CMYKColor", - "Coarse", - "CodeAssistOptions", - "Coefficient", - "CoefficientArrays", - "CoefficientDomain", - "CoefficientList", - "CoefficientRules", - "CoifletWavelet", - "Collect", - "CollinearPoints", - "Colon", - "ColonForm", - "ColorBalance", - "ColorCombine", - "ColorConvert", - "ColorCoverage", - "ColorData", - "ColorDataFunction", - "ColorDetect", - "ColorDistance", - "ColorFunction", - "ColorFunctionBinning", - "ColorFunctionScaling", - "Colorize", - "ColorNegate", - "ColorOutput", - "ColorProfileData", - "ColorQ", - "ColorQuantize", - "ColorReplace", - "ColorRules", - "ColorSelectorSettings", - "ColorSeparate", - "ColorSetter", - "ColorSetterBox", - "ColorSetterBoxOptions", - "ColorSlider", - "ColorsNear", - "ColorSpace", - "ColorToneMapping", - "Column", - "ColumnAlignments", - "ColumnBackgrounds", - "ColumnForm", - "ColumnLines", - "ColumnsEqual", - "ColumnSpacings", - "ColumnWidths", - "CombinatorB", - "CombinatorC", - "CombinatorI", - "CombinatorK", - "CombinatorS", - "CombinatorW", - "CombinatorY", - "CombinedEntityClass", - "CombinerFunction", - "CometData", - "CommonDefaultFormatTypes", - "Commonest", - "CommonestFilter", - "CommonName", - "CommonUnits", - "CommunityBoundaryStyle", - "CommunityGraphPlot", - "CommunityLabels", - "CommunityRegionStyle", - "CompanyData", - "CompatibleUnitQ", - "CompilationOptions", - "CompilationTarget", - "Compile", - "Compiled", - "CompiledCodeFunction", - "CompiledComponent", - "CompiledExpressionDeclaration", - "CompiledFunction", - "CompiledLayer", - "CompilerCallback", - "CompilerEnvironment", - "CompilerEnvironmentAppend", - "CompilerEnvironmentAppendTo", - "CompilerEnvironmentObject", - "CompilerOptions", - "Complement", - "ComplementedEntityClass", - "CompleteGraph", - "CompleteGraphQ", - "CompleteIntegral", - "CompleteKaryTree", - "CompletionsListPacket", - "Complex", - "ComplexArrayPlot", - "ComplexContourPlot", - "Complexes", - "ComplexExpand", - "ComplexInfinity", - "ComplexityFunction", - "ComplexListPlot", - "ComplexPlot", - "ComplexPlot3D", - "ComplexRegionPlot", - "ComplexStreamPlot", - "ComplexVectorPlot", - "ComponentMeasurements", - "ComponentwiseContextMenu", - "Compose", - "ComposeList", - "ComposeSeries", - "CompositeQ", - "Composition", - "CompoundElement", - "CompoundExpression", - "CompoundPoissonDistribution", - "CompoundPoissonProcess", - "CompoundRenewalProcess", - "Compress", - "CompressedData", - "CompressionLevel", - "ComputeUncertainty", - "ConcaveHullMesh", - "Condition", - "ConditionalExpression", - "Conditioned", - "Cone", - "ConeBox", - "ConfidenceLevel", - "ConfidenceRange", - "ConfidenceTransform", - "ConfigurationPath", - "Confirm", - "ConfirmAssert", - "ConfirmBy", - "ConfirmMatch", - "ConfirmQuiet", - "ConformationMethod", - "ConformAudio", - "ConformImages", - "Congruent", - "ConicGradientFilling", - "ConicHullRegion", - "ConicHullRegion3DBox", - "ConicHullRegion3DBoxOptions", - "ConicHullRegionBox", - "ConicHullRegionBoxOptions", - "ConicOptimization", - "Conjugate", - "ConjugateTranspose", - "Conjunction", - "Connect", - "ConnectedComponents", - "ConnectedGraphComponents", - "ConnectedGraphQ", - "ConnectedMeshComponents", - "ConnectedMoleculeComponents", - "ConnectedMoleculeQ", - "ConnectionSettings", - "ConnectLibraryCallbackFunction", - "ConnectSystemModelComponents", - "ConnectSystemModelController", - "ConnesWindow", - "ConoverTest", - "ConservativeConvectionPDETerm", - "ConsoleMessage", - "Constant", - "ConstantArray", - "ConstantArrayLayer", - "ConstantImage", - "ConstantPlusLayer", - "ConstantRegionQ", - "Constants", - "ConstantTimesLayer", - "ConstellationData", - "ConstrainedMax", - "ConstrainedMin", - "Construct", - "Containing", - "ContainsAll", - "ContainsAny", - "ContainsExactly", - "ContainsNone", - "ContainsOnly", - "ContentDetectorFunction", - "ContentFieldOptions", - "ContentLocationFunction", - "ContentObject", - "ContentPadding", - "ContentsBoundingBox", - "ContentSelectable", - "ContentSize", - "Context", - "ContextMenu", - "Contexts", - "ContextToFileName", - "Continuation", - "Continue", - "ContinuedFraction", - "ContinuedFractionK", - "ContinuousAction", - "ContinuousMarkovProcess", - "ContinuousTask", - "ContinuousTimeModelQ", - "ContinuousWaveletData", - "ContinuousWaveletTransform", - "ContourDetect", - "ContourGraphics", - "ContourIntegral", - "ContourLabels", - "ContourLines", - "ContourPlot", - "ContourPlot3D", - "Contours", - "ContourShading", - "ContourSmoothing", - "ContourStyle", - "ContraharmonicMean", - "ContrastiveLossLayer", - "Control", - "ControlActive", - "ControlAlignment", - "ControlGroupContentsBox", - "ControllabilityGramian", - "ControllabilityMatrix", - "ControllableDecomposition", - "ControllableModelQ", - "ControllerDuration", - "ControllerInformation", - "ControllerInformationData", - "ControllerLinking", - "ControllerManipulate", - "ControllerMethod", - "ControllerPath", - "ControllerState", - "ControlPlacement", - "ControlsRendering", - "ControlType", - "ConvectionPDETerm", - "Convergents", - "ConversionOptions", - "ConversionRules", - "ConvertToPostScript", - "ConvertToPostScriptPacket", - "ConvexHullMesh", - "ConvexHullRegion", - "ConvexOptimization", - "ConvexPolygonQ", - "ConvexPolyhedronQ", - "ConvexRegionQ", - "ConvolutionLayer", - "Convolve", - "ConwayGroupCo1", - "ConwayGroupCo2", - "ConwayGroupCo3", - "CookieFunction", - "Cookies", - "CoordinateBoundingBox", - "CoordinateBoundingBoxArray", - "CoordinateBounds", - "CoordinateBoundsArray", - "CoordinateChartData", - "CoordinatesToolOptions", - "CoordinateTransform", - "CoordinateTransformData", - "CoplanarPoints", - "CoprimeQ", - "Coproduct", - "CopulaDistribution", - "Copyable", - "CopyDatabin", - "CopyDirectory", - "CopyFile", - "CopyFunction", - "CopyTag", - "CopyToClipboard", - "CoreNilpotentDecomposition", - "CornerFilter", - "CornerNeighbors", - "Correlation", - "CorrelationDistance", - "CorrelationFunction", - "CorrelationTest", - "Cos", - "Cosh", - "CoshIntegral", - "CosineDistance", - "CosineWindow", - "CosIntegral", - "Cot", - "Coth", - "CoulombF", - "CoulombG", - "CoulombH1", - "CoulombH2", - "Count", - "CountDistinct", - "CountDistinctBy", - "CounterAssignments", - "CounterBox", - "CounterBoxOptions", - "CounterClockwiseContourIntegral", - "CounterEvaluator", - "CounterFunction", - "CounterIncrements", - "CounterStyle", - "CounterStyleMenuListing", - "CountRoots", - "CountryData", - "Counts", - "CountsBy", - "Covariance", - "CovarianceEstimatorFunction", - "CovarianceFunction", - "CoxianDistribution", - "CoxIngersollRossProcess", - "CoxModel", - "CoxModelFit", - "CramerVonMisesTest", - "CreateArchive", - "CreateCellID", - "CreateChannel", - "CreateCloudExpression", - "CreateCompilerEnvironment", - "CreateDatabin", - "CreateDataStructure", - "CreateDataSystemModel", - "CreateDialog", - "CreateDirectory", - "CreateDocument", - "CreateFile", - "CreateIntermediateDirectories", - "CreateLicenseEntitlement", - "CreateManagedLibraryExpression", - "CreateNotebook", - "CreatePacletArchive", - "CreatePalette", - "CreatePermissionsGroup", - "CreateScheduledTask", - "CreateSearchIndex", - "CreateSystemModel", - "CreateTemporary", - "CreateTypeInstance", - "CreateUUID", - "CreateWindow", - "CriterionFunction", - "CriticalityFailureImportance", - "CriticalitySuccessImportance", - "CriticalSection", - "Cross", - "CrossEntropyLossLayer", - "CrossingCount", - "CrossingDetect", - "CrossingPolygon", - "CrossMatrix", - "Csc", - "Csch", - "CSGRegion", - "CSGRegionQ", - "CSGRegionTree", - "CTCLossLayer", - "Cube", - "CubeRoot", - "Cubics", - "Cuboid", - "CuboidBox", - "CuboidBoxOptions", - "Cumulant", - "CumulantGeneratingFunction", - "CumulativeFeatureImpactPlot", - "Cup", - "CupCap", - "Curl", - "CurlyDoubleQuote", - "CurlyQuote", - "CurrencyConvert", - "CurrentDate", - "CurrentImage", - "CurrentNotebookImage", - "CurrentScreenImage", - "CurrentValue", - "Curry", - "CurryApplied", - "CurvatureFlowFilter", - "CurveClosed", - "Cyan", - "CycleGraph", - "CycleIndexPolynomial", - "Cycles", - "CyclicGroup", - "Cyclotomic", - "Cylinder", - "CylinderBox", - "CylinderBoxOptions", - "CylindricalDecomposition", - "CylindricalDecompositionFunction", - "D", - "DagumDistribution", - "DamData", - "DamerauLevenshteinDistance", - "DampingFactor", - "Darker", - "Dashed", - "Dashing", - "DatabaseConnect", - "DatabaseDisconnect", - "DatabaseReference", - "Databin", - "DatabinAdd", - "DatabinRemove", - "Databins", - "DatabinSubmit", - "DatabinUpload", - "DataCompression", - "DataDistribution", - "DataRange", - "DataReversed", - "Dataset", - "DatasetDisplayPanel", - "DatasetTheme", - "DataStructure", - "DataStructureQ", - "Date", - "DateBounds", - "Dated", - "DateDelimiters", - "DateDifference", - "DatedUnit", - "DateFormat", - "DateFunction", - "DateGranularity", - "DateHistogram", - "DateInterval", - "DateList", - "DateListLogPlot", - "DateListPlot", - "DateListStepPlot", - "DateObject", - "DateObjectQ", - "DateOverlapsQ", - "DatePattern", - "DatePlus", - "DateRange", - "DateReduction", - "DateScale", - "DateSelect", - "DateString", - "DateTicksFormat", - "DateValue", - "DateWithinQ", - "DaubechiesWavelet", - "DavisDistribution", - "DawsonF", - "DayCount", - "DayCountConvention", - "DayHemisphere", - "DaylightQ", - "DayMatchQ", - "DayName", - "DayNightTerminator", - "DayPlus", - "DayRange", - "DayRound", - "DeBruijnGraph", - "DeBruijnSequence", - "Debug", - "DebugTag", - "Decapitalize", - "Decimal", - "DecimalForm", - "DeclareCompiledComponent", - "DeclareKnownSymbols", - "DeclarePackage", - "Decompose", - "DeconvolutionLayer", - "Decrement", - "Decrypt", - "DecryptFile", - "DedekindEta", - "DeepSpaceProbeData", - "Default", - "Default2DTool", - "Default3DTool", - "DefaultAttachedCellStyle", - "DefaultAxesStyle", - "DefaultBaseStyle", - "DefaultBoxStyle", - "DefaultButton", - "DefaultColor", - "DefaultControlPlacement", - "DefaultDockedCellStyle", - "DefaultDuplicateCellStyle", - "DefaultDuration", - "DefaultElement", - "DefaultFaceGridsStyle", - "DefaultFieldHintStyle", - "DefaultFont", - "DefaultFontProperties", - "DefaultFormatType", - "DefaultFrameStyle", - "DefaultFrameTicksStyle", - "DefaultGridLinesStyle", - "DefaultInlineFormatType", - "DefaultInputFormatType", - "DefaultLabelStyle", - "DefaultMenuStyle", - "DefaultNaturalLanguage", - "DefaultNewCellStyle", - "DefaultNewInlineCellStyle", - "DefaultNotebook", - "DefaultOptions", - "DefaultOutputFormatType", - "DefaultPrintPrecision", - "DefaultStyle", - "DefaultStyleDefinitions", - "DefaultTextFormatType", - "DefaultTextInlineFormatType", - "DefaultTicksStyle", - "DefaultTooltipStyle", - "DefaultValue", - "DefaultValues", - "Defer", - "DefineExternal", - "DefineInputStreamMethod", - "DefineOutputStreamMethod", - "DefineResourceFunction", - "Definition", - "Degree", - "DegreeCentrality", - "DegreeGraphDistribution", - "DegreeLexicographic", - "DegreeReverseLexicographic", - "DEigensystem", - "DEigenvalues", - "Deinitialization", - "Del", - "DelaunayMesh", - "Delayed", - "Deletable", - "Delete", - "DeleteAdjacentDuplicates", - "DeleteAnomalies", - "DeleteBorderComponents", - "DeleteCases", - "DeleteChannel", - "DeleteCloudExpression", - "DeleteContents", - "DeleteDirectory", - "DeleteDuplicates", - "DeleteDuplicatesBy", - "DeleteElements", - "DeleteFile", - "DeleteMissing", - "DeleteObject", - "DeletePermissionsKey", - "DeleteSearchIndex", - "DeleteSmallComponents", - "DeleteStopwords", - "DeleteWithContents", - "DeletionWarning", - "DelimitedArray", - "DelimitedSequence", - "Delimiter", - "DelimiterAutoMatching", - "DelimiterFlashTime", - "DelimiterMatching", - "Delimiters", - "DeliveryFunction", - "Dendrogram", - "Denominator", - "DensityGraphics", - "DensityHistogram", - "DensityPlot", - "DensityPlot3D", - "DependentVariables", - "Deploy", - "Deployed", - "Depth", - "DepthFirstScan", - "Derivative", - "DerivativeFilter", - "DerivativePDETerm", - "DerivedKey", - "DescriptorStateSpace", - "DesignMatrix", - "DestroyAfterEvaluation", - "Det", - "DeviceClose", - "DeviceConfigure", - "DeviceExecute", - "DeviceExecuteAsynchronous", - "DeviceObject", - "DeviceOpen", - "DeviceOpenQ", - "DeviceRead", - "DeviceReadBuffer", - "DeviceReadLatest", - "DeviceReadList", - "DeviceReadTimeSeries", - "Devices", - "DeviceStreams", - "DeviceWrite", - "DeviceWriteBuffer", - "DGaussianWavelet", - "DiacriticalPositioning", - "Diagonal", - "DiagonalizableMatrixQ", - "DiagonalMatrix", - "DiagonalMatrixQ", - "Dialog", - "DialogIndent", - "DialogInput", - "DialogLevel", - "DialogNotebook", - "DialogProlog", - "DialogReturn", - "DialogSymbols", - "Diamond", - "DiamondMatrix", - "DiceDissimilarity", - "DictionaryLookup", - "DictionaryWordQ", - "DifferenceDelta", - "DifferenceOrder", - "DifferenceQuotient", - "DifferenceRoot", - "DifferenceRootReduce", - "Differences", - "DifferentialD", - "DifferentialRoot", - "DifferentialRootReduce", - "DifferentiatorFilter", - "DiffusionPDETerm", - "DiggleGatesPointProcess", - "DiggleGrattonPointProcess", - "DigitalSignature", - "DigitBlock", - "DigitBlockMinimum", - "DigitCharacter", - "DigitCount", - "DigitQ", - "DihedralAngle", - "DihedralGroup", - "Dilation", - "DimensionalCombinations", - "DimensionalMeshComponents", - "DimensionReduce", - "DimensionReducerFunction", - "DimensionReduction", - "Dimensions", - "DiracComb", - "DiracDelta", - "DirectedEdge", - "DirectedEdges", - "DirectedGraph", - "DirectedGraphQ", - "DirectedInfinity", - "Direction", - "DirectionalLight", - "Directive", - "Directory", - "DirectoryName", - "DirectoryQ", - "DirectoryStack", - "DirichletBeta", - "DirichletCharacter", - "DirichletCondition", - "DirichletConvolve", - "DirichletDistribution", - "DirichletEta", - "DirichletL", - "DirichletLambda", - "DirichletTransform", - "DirichletWindow", - "DisableConsolePrintPacket", - "DisableFormatting", - "DiscreteAsymptotic", - "DiscreteChirpZTransform", - "DiscreteConvolve", - "DiscreteDelta", - "DiscreteHadamardTransform", - "DiscreteIndicator", - "DiscreteInputOutputModel", - "DiscreteLimit", - "DiscreteLQEstimatorGains", - "DiscreteLQRegulatorGains", - "DiscreteLyapunovSolve", - "DiscreteMarkovProcess", - "DiscreteMaxLimit", - "DiscreteMinLimit", - "DiscretePlot", - "DiscretePlot3D", - "DiscreteRatio", - "DiscreteRiccatiSolve", - "DiscreteShift", - "DiscreteTimeModelQ", - "DiscreteUniformDistribution", - "DiscreteVariables", - "DiscreteWaveletData", - "DiscreteWaveletPacketTransform", - "DiscreteWaveletTransform", - "DiscretizeGraphics", - "DiscretizeRegion", - "Discriminant", - "DisjointQ", - "Disjunction", - "Disk", - "DiskBox", - "DiskBoxOptions", - "DiskMatrix", - "DiskSegment", - "Dispatch", - "DispatchQ", - "DispersionEstimatorFunction", - "Display", - "DisplayAllSteps", - "DisplayEndPacket", - "DisplayForm", - "DisplayFunction", - "DisplayPacket", - "DisplayRules", - "DisplayString", - "DisplayTemporary", - "DisplayWith", - "DisplayWithRef", - "DisplayWithVariable", - "DistanceFunction", - "DistanceMatrix", - "DistanceTransform", - "Distribute", - "Distributed", - "DistributedContexts", - "DistributeDefinitions", - "DistributionChart", - "DistributionDomain", - "DistributionFitTest", - "DistributionParameterAssumptions", - "DistributionParameterQ", - "Dithering", - "Div", - "Divergence", - "Divide", - "DivideBy", - "Dividers", - "DivideSides", - "Divisible", - "Divisors", - "DivisorSigma", - "DivisorSum", - "DMSList", - "DMSString", - "Do", - "DockedCell", - "DockedCells", - "DocumentGenerator", - "DocumentGeneratorInformation", - "DocumentGeneratorInformationData", - "DocumentGenerators", - "DocumentNotebook", - "DocumentWeightingRules", - "Dodecahedron", - "DomainRegistrationInformation", - "DominantColors", - "DominatorTreeGraph", - "DominatorVertexList", - "DOSTextFormat", - "Dot", - "DotDashed", - "DotEqual", - "DotLayer", - "DotPlusLayer", - "Dotted", - "DoubleBracketingBar", - "DoubleContourIntegral", - "DoubleDownArrow", - "DoubleLeftArrow", - "DoubleLeftRightArrow", - "DoubleLeftTee", - "DoubleLongLeftArrow", - "DoubleLongLeftRightArrow", - "DoubleLongRightArrow", - "DoubleRightArrow", - "DoubleRightTee", - "DoubleUpArrow", - "DoubleUpDownArrow", - "DoubleVerticalBar", - "DoublyInfinite", - "Down", - "DownArrow", - "DownArrowBar", - "DownArrowUpArrow", - "DownLeftRightVector", - "DownLeftTeeVector", - "DownLeftVector", - "DownLeftVectorBar", - "DownRightTeeVector", - "DownRightVector", - "DownRightVectorBar", - "Downsample", - "DownTee", - "DownTeeArrow", - "DownValues", - "DownValuesFunction", - "DragAndDrop", - "DrawBackFaces", - "DrawEdges", - "DrawFrontFaces", - "DrawHighlighted", - "DrazinInverse", - "Drop", - "DropoutLayer", - "DropShadowing", - "DSolve", - "DSolveChangeVariables", - "DSolveValue", - "Dt", - "DualLinearProgramming", - "DualPlanarGraph", - "DualPolyhedron", - "DualSystemsModel", - "DumpGet", - "DumpSave", - "DuplicateFreeQ", - "Duration", - "Dynamic", - "DynamicBox", - "DynamicBoxOptions", - "DynamicEvaluationTimeout", - "DynamicGeoGraphics", - "DynamicImage", - "DynamicLocation", - "DynamicModule", - "DynamicModuleBox", - "DynamicModuleBoxOptions", - "DynamicModuleParent", - "DynamicModuleValues", - "DynamicName", - "DynamicNamespace", - "DynamicReference", - "DynamicSetting", - "DynamicUpdating", - "DynamicWrapper", - "DynamicWrapperBox", - "DynamicWrapperBoxOptions", - "E", - "EarthImpactData", - "EarthquakeData", - "EccentricityCentrality", - "Echo", - "EchoEvaluation", - "EchoFunction", - "EchoLabel", - "EchoTiming", - "EclipseType", - "EdgeAdd", - "EdgeBetweennessCentrality", - "EdgeCapacity", - "EdgeCapForm", - "EdgeChromaticNumber", - "EdgeColor", - "EdgeConnectivity", - "EdgeContract", - "EdgeCost", - "EdgeCount", - "EdgeCoverQ", - "EdgeCycleMatrix", - "EdgeDashing", - "EdgeDelete", - "EdgeDetect", - "EdgeForm", - "EdgeIndex", - "EdgeJoinForm", - "EdgeLabeling", - "EdgeLabels", - "EdgeLabelStyle", - "EdgeList", - "EdgeOpacity", - "EdgeQ", - "EdgeRenderingFunction", - "EdgeRules", - "EdgeShapeFunction", - "EdgeStyle", - "EdgeTaggedGraph", - "EdgeTaggedGraphQ", - "EdgeTags", - "EdgeThickness", - "EdgeTransitiveGraphQ", - "EdgeValueRange", - "EdgeValueSizes", - "EdgeWeight", - "EdgeWeightedGraphQ", - "Editable", - "EditButtonSettings", - "EditCellTagsSettings", - "EditDistance", - "EffectiveInterest", - "Eigensystem", - "Eigenvalues", - "EigenvectorCentrality", - "Eigenvectors", - "Element", - "ElementData", - "ElementwiseLayer", - "ElidedForms", - "Eliminate", - "EliminationOrder", - "Ellipsoid", - "EllipticE", - "EllipticExp", - "EllipticExpPrime", - "EllipticF", - "EllipticFilterModel", - "EllipticK", - "EllipticLog", - "EllipticNomeQ", - "EllipticPi", - "EllipticReducedHalfPeriods", - "EllipticTheta", - "EllipticThetaPrime", - "EmbedCode", - "EmbeddedHTML", - "EmbeddedService", - "EmbeddedSQLEntityClass", - "EmbeddedSQLExpression", - "EmbeddingLayer", - "EmbeddingObject", - "EmitSound", - "EmphasizeSyntaxErrors", - "EmpiricalDistribution", - "Empty", - "EmptyGraphQ", - "EmptyRegion", - "EmptySpaceF", - "EnableConsolePrintPacket", - "Enabled", - "Enclose", - "Encode", - "Encrypt", - "EncryptedObject", - "EncryptFile", - "End", - "EndAdd", - "EndDialogPacket", - "EndOfBuffer", - "EndOfFile", - "EndOfLine", - "EndOfString", - "EndPackage", - "EngineEnvironment", - "EngineeringForm", - "Enter", - "EnterExpressionPacket", - "EnterTextPacket", - "Entity", - "EntityClass", - "EntityClassList", - "EntityCopies", - "EntityFunction", - "EntityGroup", - "EntityInstance", - "EntityList", - "EntityPrefetch", - "EntityProperties", - "EntityProperty", - "EntityPropertyClass", - "EntityRegister", - "EntityStore", - "EntityStores", - "EntityTypeName", - "EntityUnregister", - "EntityValue", - "Entropy", - "EntropyFilter", - "Environment", - "Epilog", - "EpilogFunction", - "Equal", - "EqualColumns", - "EqualRows", - "EqualTilde", - "EqualTo", - "EquatedTo", - "Equilibrium", - "EquirippleFilterKernel", - "Equivalent", - "Erf", - "Erfc", - "Erfi", - "ErlangB", - "ErlangC", - "ErlangDistribution", - "Erosion", - "ErrorBox", - "ErrorBoxOptions", - "ErrorNorm", - "ErrorPacket", - "ErrorsDialogSettings", - "EscapeRadius", - "EstimatedBackground", - "EstimatedDistribution", - "EstimatedPointNormals", - "EstimatedPointProcess", - "EstimatedProcess", - "EstimatedVariogramModel", - "EstimatorGains", - "EstimatorRegulator", - "EuclideanDistance", - "EulerAngles", - "EulerCharacteristic", - "EulerE", - "EulerGamma", - "EulerianGraphQ", - "EulerMatrix", - "EulerPhi", - "Evaluatable", - "Evaluate", - "Evaluated", - "EvaluatePacket", - "EvaluateScheduledTask", - "EvaluationBox", - "EvaluationCell", - "EvaluationCompletionAction", - "EvaluationData", - "EvaluationElements", - "EvaluationEnvironment", - "EvaluationMode", - "EvaluationMonitor", - "EvaluationNotebook", - "EvaluationObject", - "EvaluationOrder", - "EvaluationPrivileges", - "EvaluationRateLimit", - "Evaluator", - "EvaluatorNames", - "EvenQ", - "EventData", - "EventEvaluator", - "EventHandler", - "EventHandlerTag", - "EventLabels", - "EventSeries", - "ExactBlackmanWindow", - "ExactNumberQ", - "ExactRootIsolation", - "ExampleData", - "Except", - "ExcludedContexts", - "ExcludedForms", - "ExcludedLines", - "ExcludedPhysicalQuantities", - "ExcludePods", - "Exclusions", - "ExclusionsStyle", - "Exists", - "Exit", - "ExitDialog", - "ExoplanetData", - "Exp", - "Expand", - "ExpandAll", - "ExpandDenominator", - "ExpandFileName", - "ExpandNumerator", - "Expectation", - "ExpectationE", - "ExpectedValue", - "ExpGammaDistribution", - "ExpIntegralE", - "ExpIntegralEi", - "ExpirationDate", - "Exponent", - "ExponentFunction", - "ExponentialDistribution", - "ExponentialFamily", - "ExponentialGeneratingFunction", - "ExponentialMovingAverage", - "ExponentialPowerDistribution", - "ExponentPosition", - "ExponentStep", - "Export", - "ExportAutoReplacements", - "ExportByteArray", - "ExportForm", - "ExportPacket", - "ExportString", - "Expression", - "ExpressionCell", - "ExpressionGraph", - "ExpressionPacket", - "ExpressionTree", - "ExpressionUUID", - "ExpToTrig", - "ExtendedEntityClass", - "ExtendedGCD", - "Extension", - "ExtentElementFunction", - "ExtentMarkers", - "ExtentSize", - "ExternalBundle", - "ExternalCall", - "ExternalDataCharacterEncoding", - "ExternalEvaluate", - "ExternalFunction", - "ExternalFunctionName", - "ExternalIdentifier", - "ExternalObject", - "ExternalOptions", - "ExternalSessionObject", - "ExternalSessions", - "ExternalStorageBase", - "ExternalStorageDownload", - "ExternalStorageGet", - "ExternalStorageObject", - "ExternalStoragePut", - "ExternalStorageUpload", - "ExternalTypeSignature", - "ExternalValue", - "Extract", - "ExtractArchive", - "ExtractLayer", - "ExtractPacletArchive", - "ExtremeValueDistribution", - "FaceAlign", - "FaceForm", - "FaceGrids", - "FaceGridsStyle", - "FaceRecognize", - "FacialFeatures", - "Factor", - "FactorComplete", - "Factorial", - "Factorial2", - "FactorialMoment", - "FactorialMomentGeneratingFunction", - "FactorialPower", - "FactorInteger", - "FactorList", - "FactorSquareFree", - "FactorSquareFreeList", - "FactorTerms", - "FactorTermsList", - "Fail", - "Failure", - "FailureAction", - "FailureDistribution", - "FailureQ", - "False", - "FareySequence", - "FARIMAProcess", - "FeatureDistance", - "FeatureExtract", - "FeatureExtraction", - "FeatureExtractor", - "FeatureExtractorFunction", - "FeatureImpactPlot", - "FeatureNames", - "FeatureNearest", - "FeatureSpacePlot", - "FeatureSpacePlot3D", - "FeatureTypes", - "FeatureValueDependencyPlot", - "FeatureValueImpactPlot", - "FEDisableConsolePrintPacket", - "FeedbackLinearize", - "FeedbackSector", - "FeedbackSectorStyle", - "FeedbackType", - "FEEnableConsolePrintPacket", - "FetalGrowthData", - "Fibonacci", - "Fibonorial", - "FieldCompletionFunction", - "FieldHint", - "FieldHintStyle", - "FieldMasked", - "FieldSize", - "File", - "FileBaseName", - "FileByteCount", - "FileConvert", - "FileDate", - "FileExistsQ", - "FileExtension", - "FileFormat", - "FileFormatProperties", - "FileFormatQ", - "FileHandler", - "FileHash", - "FileInformation", - "FileName", - "FileNameDepth", - "FileNameDialogSettings", - "FileNameDrop", - "FileNameForms", - "FileNameJoin", - "FileNames", - "FileNameSetter", - "FileNameSplit", - "FileNameTake", - "FileNameToFormatList", - "FilePrint", - "FileSize", - "FileSystemMap", - "FileSystemScan", - "FileSystemTree", - "FileTemplate", - "FileTemplateApply", - "FileType", - "FilledCurve", - "FilledCurveBox", - "FilledCurveBoxOptions", - "FilledTorus", - "FillForm", - "Filling", - "FillingStyle", - "FillingTransform", - "FilteredEntityClass", - "FilterRules", - "FinancialBond", - "FinancialData", - "FinancialDerivative", - "FinancialIndicator", - "Find", - "FindAnomalies", - "FindArgMax", - "FindArgMin", - "FindChannels", - "FindClique", - "FindClusters", - "FindCookies", - "FindCurvePath", - "FindCycle", - "FindDevices", - "FindDistribution", - "FindDistributionParameters", - "FindDivisions", - "FindEdgeColoring", - "FindEdgeCover", - "FindEdgeCut", - "FindEdgeIndependentPaths", - "FindEquationalProof", - "FindEulerianCycle", - "FindExternalEvaluators", - "FindFaces", - "FindFile", - "FindFit", - "FindFormula", - "FindFundamentalCycles", - "FindGeneratingFunction", - "FindGeoLocation", - "FindGeometricConjectures", - "FindGeometricTransform", - "FindGraphCommunities", - "FindGraphIsomorphism", - "FindGraphPartition", - "FindHamiltonianCycle", - "FindHamiltonianPath", - "FindHiddenMarkovStates", - "FindImageText", - "FindIndependentEdgeSet", - "FindIndependentVertexSet", - "FindInstance", - "FindIntegerNullVector", - "FindIsomers", - "FindIsomorphicSubgraph", - "FindKClan", - "FindKClique", - "FindKClub", - "FindKPlex", - "FindLibrary", - "FindLinearRecurrence", - "FindList", - "FindMatchingColor", - "FindMaximum", - "FindMaximumCut", - "FindMaximumFlow", - "FindMaxValue", - "FindMeshDefects", - "FindMinimum", - "FindMinimumCostFlow", - "FindMinimumCut", - "FindMinValue", - "FindMoleculeSubstructure", - "FindPath", - "FindPeaks", - "FindPermutation", - "FindPlanarColoring", - "FindPointProcessParameters", - "FindPostmanTour", - "FindProcessParameters", - "FindRegionTransform", - "FindRepeat", - "FindRoot", - "FindSequenceFunction", - "FindSettings", - "FindShortestPath", - "FindShortestTour", - "FindSpanningTree", - "FindSubgraphIsomorphism", - "FindSystemModelEquilibrium", - "FindTextualAnswer", - "FindThreshold", - "FindTransientRepeat", - "FindVertexColoring", - "FindVertexCover", - "FindVertexCut", - "FindVertexIndependentPaths", - "Fine", - "FinishDynamic", - "FiniteAbelianGroupCount", - "FiniteGroupCount", - "FiniteGroupData", - "First", - "FirstCase", - "FirstPassageTimeDistribution", - "FirstPosition", - "FischerGroupFi22", - "FischerGroupFi23", - "FischerGroupFi24Prime", - "FisherHypergeometricDistribution", - "FisherRatioTest", - "FisherZDistribution", - "Fit", - "FitAll", - "FitRegularization", - "FittedModel", - "FixedOrder", - "FixedPoint", - "FixedPointList", - "FlashSelection", - "Flat", - "FlatShading", - "Flatten", - "FlattenAt", - "FlattenLayer", - "FlatTopWindow", - "FlightData", - "FlipView", - "Floor", - "FlowPolynomial", - "Fold", - "FoldList", - "FoldPair", - "FoldPairList", - "FoldWhile", - "FoldWhileList", - "FollowRedirects", - "Font", - "FontColor", - "FontFamily", - "FontForm", - "FontName", - "FontOpacity", - "FontPostScriptName", - "FontProperties", - "FontReencoding", - "FontSize", - "FontSlant", - "FontSubstitutions", - "FontTracking", - "FontVariations", - "FontWeight", - "For", - "ForAll", - "ForAllType", - "ForceVersionInstall", - "Format", - "FormatRules", - "FormatType", - "FormatTypeAutoConvert", - "FormatValues", - "FormBox", - "FormBoxOptions", - "FormControl", - "FormFunction", - "FormLayoutFunction", - "FormObject", - "FormPage", - "FormProtectionMethod", - "FormTheme", - "FormulaData", - "FormulaLookup", - "FortranForm", - "Forward", - "ForwardBackward", - "ForwardCloudCredentials", - "Fourier", - "FourierCoefficient", - "FourierCosCoefficient", - "FourierCosSeries", - "FourierCosTransform", - "FourierDCT", - "FourierDCTFilter", - "FourierDCTMatrix", - "FourierDST", - "FourierDSTMatrix", - "FourierMatrix", - "FourierParameters", - "FourierSequenceTransform", - "FourierSeries", - "FourierSinCoefficient", - "FourierSinSeries", - "FourierSinTransform", - "FourierTransform", - "FourierTrigSeries", - "FoxH", - "FoxHReduce", - "FractionalBrownianMotionProcess", - "FractionalD", - "FractionalGaussianNoiseProcess", - "FractionalPart", - "FractionBox", - "FractionBoxOptions", - "FractionLine", - "Frame", - "FrameBox", - "FrameBoxOptions", - "Framed", - "FrameInset", - "FrameLabel", - "Frameless", - "FrameListVideo", - "FrameMargins", - "FrameRate", - "FrameStyle", - "FrameTicks", - "FrameTicksStyle", - "FRatioDistribution", - "FrechetDistribution", - "FreeQ", - "FrenetSerretSystem", - "FrequencySamplingFilterKernel", - "FresnelC", - "FresnelF", - "FresnelG", - "FresnelS", - "Friday", - "FrobeniusNumber", - "FrobeniusSolve", - "FromAbsoluteTime", - "FromCharacterCode", - "FromCoefficientRules", - "FromContinuedFraction", - "FromDate", - "FromDateString", - "FromDigits", - "FromDMS", - "FromEntity", - "FromJulianDate", - "FromLetterNumber", - "FromPolarCoordinates", - "FromRawPointer", - "FromRomanNumeral", - "FromSphericalCoordinates", - "FromUnixTime", - "Front", - "FrontEndDynamicExpression", - "FrontEndEventActions", - "FrontEndExecute", - "FrontEndObject", - "FrontEndResource", - "FrontEndResourceString", - "FrontEndStackSize", - "FrontEndToken", - "FrontEndTokenExecute", - "FrontEndValueCache", - "FrontEndVersion", - "FrontFaceColor", - "FrontFaceGlowColor", - "FrontFaceOpacity", - "FrontFaceSpecularColor", - "FrontFaceSpecularExponent", - "FrontFaceSurfaceAppearance", - "FrontFaceTexture", - "Full", - "FullAxes", - "FullDefinition", - "FullForm", - "FullGraphics", - "FullInformationOutputRegulator", - "FullOptions", - "FullRegion", - "FullSimplify", - "Function", - "FunctionAnalytic", - "FunctionBijective", - "FunctionCompile", - "FunctionCompileExport", - "FunctionCompileExportByteArray", - "FunctionCompileExportLibrary", - "FunctionCompileExportString", - "FunctionContinuous", - "FunctionConvexity", - "FunctionDeclaration", - "FunctionDiscontinuities", - "FunctionDomain", - "FunctionExpand", - "FunctionInjective", - "FunctionInterpolation", - "FunctionLayer", - "FunctionMeromorphic", - "FunctionMonotonicity", - "FunctionPeriod", - "FunctionPoles", - "FunctionRange", - "FunctionSign", - "FunctionSingularities", - "FunctionSpace", - "FunctionSurjective", - "FussellVeselyImportance", - "GaborFilter", - "GaborMatrix", - "GaborWavelet", - "GainMargins", - "GainPhaseMargins", - "GalaxyData", - "GalleryView", - "Gamma", - "GammaDistribution", - "GammaRegularized", - "GapPenalty", - "GARCHProcess", - "GatedRecurrentLayer", - "Gather", - "GatherBy", - "GaugeFaceElementFunction", - "GaugeFaceStyle", - "GaugeFrameElementFunction", - "GaugeFrameSize", - "GaugeFrameStyle", - "GaugeLabels", - "GaugeMarkers", - "GaugeStyle", - "GaussianFilter", - "GaussianIntegers", - "GaussianMatrix", - "GaussianOrthogonalMatrixDistribution", - "GaussianSymplecticMatrixDistribution", - "GaussianUnitaryMatrixDistribution", - "GaussianWindow", - "GCD", - "GegenbauerC", - "General", - "GeneralizedLinearModelFit", - "GenerateAsymmetricKeyPair", - "GenerateConditions", - "GeneratedAssetFormat", - "GeneratedAssetLocation", - "GeneratedCell", - "GeneratedCellStyles", - "GeneratedDocumentBinding", - "GenerateDerivedKey", - "GenerateDigitalSignature", - "GenerateDocument", - "GeneratedParameters", - "GeneratedQuantityMagnitudes", - "GenerateFileSignature", - "GenerateHTTPResponse", - "GenerateSecuredAuthenticationKey", - "GenerateSymmetricKey", - "GeneratingFunction", - "GeneratorDescription", - "GeneratorHistoryLength", - "GeneratorOutputType", - "Generic", - "GenericCylindricalDecomposition", - "GenomeData", - "GenomeLookup", - "GeoAntipode", - "GeoArea", - "GeoArraySize", - "GeoBackground", - "GeoBoundary", - "GeoBoundingBox", - "GeoBounds", - "GeoBoundsRegion", - "GeoBoundsRegionBoundary", - "GeoBubbleChart", - "GeoCenter", - "GeoCircle", - "GeoContourPlot", - "GeoDensityPlot", - "GeodesicClosing", - "GeodesicDilation", - "GeodesicErosion", - "GeodesicOpening", - "GeodesicPolyhedron", - "GeoDestination", - "GeodesyData", - "GeoDirection", - "GeoDisk", - "GeoDisplacement", - "GeoDistance", - "GeoDistanceList", - "GeoElevationData", - "GeoEntities", - "GeoGraphics", - "GeoGraphPlot", - "GeoGraphValuePlot", - "GeogravityModelData", - "GeoGridDirectionDifference", - "GeoGridLines", - "GeoGridLinesStyle", - "GeoGridPosition", - "GeoGridRange", - "GeoGridRangePadding", - "GeoGridUnitArea", - "GeoGridUnitDistance", - "GeoGridVector", - "GeoGroup", - "GeoHemisphere", - "GeoHemisphereBoundary", - "GeoHistogram", - "GeoIdentify", - "GeoImage", - "GeoLabels", - "GeoLength", - "GeoListPlot", - "GeoLocation", - "GeologicalPeriodData", - "GeomagneticModelData", - "GeoMarker", - "GeometricAssertion", - "GeometricBrownianMotionProcess", - "GeometricDistribution", - "GeometricMean", - "GeometricMeanFilter", - "GeometricOptimization", - "GeometricScene", - "GeometricStep", - "GeometricStylingRules", - "GeometricTest", - "GeometricTransformation", - "GeometricTransformation3DBox", - "GeometricTransformation3DBoxOptions", - "GeometricTransformationBox", - "GeometricTransformationBoxOptions", - "GeoModel", - "GeoNearest", - "GeoOrientationData", - "GeoPath", - "GeoPolygon", - "GeoPosition", - "GeoPositionENU", - "GeoPositionXYZ", - "GeoProjection", - "GeoProjectionData", - "GeoRange", - "GeoRangePadding", - "GeoRegionValuePlot", - "GeoResolution", - "GeoScaleBar", - "GeoServer", - "GeoSmoothHistogram", - "GeoStreamPlot", - "GeoStyling", - "GeoStylingImageFunction", - "GeoVariant", - "GeoVector", - "GeoVectorENU", - "GeoVectorPlot", - "GeoVectorXYZ", - "GeoVisibleRegion", - "GeoVisibleRegionBoundary", - "GeoWithinQ", - "GeoZoomLevel", - "GestureHandler", - "GestureHandlerTag", - "Get", - "GetContext", - "GetEnvironment", - "GetFileName", - "GetLinebreakInformationPacket", - "GibbsPointProcess", - "Glaisher", - "GlobalClusteringCoefficient", - "GlobalPreferences", - "GlobalSession", - "Glow", - "GoldenAngle", - "GoldenRatio", - "GompertzMakehamDistribution", - "GoochShading", - "GoodmanKruskalGamma", - "GoodmanKruskalGammaTest", - "Goto", - "GouraudShading", - "Grad", - "Gradient", - "GradientFilter", - "GradientFittedMesh", - "GradientOrientationFilter", - "GrammarApply", - "GrammarRules", - "GrammarToken", - "Graph", - "Graph3D", - "GraphAssortativity", - "GraphAutomorphismGroup", - "GraphCenter", - "GraphComplement", - "GraphData", - "GraphDensity", - "GraphDiameter", - "GraphDifference", - "GraphDisjointUnion", - "GraphDistance", - "GraphDistanceMatrix", - "GraphEmbedding", - "GraphHighlight", - "GraphHighlightStyle", - "GraphHub", - "Graphics", - "Graphics3D", - "Graphics3DBox", - "Graphics3DBoxOptions", - "GraphicsArray", - "GraphicsBaseline", - "GraphicsBox", - "GraphicsBoxOptions", - "GraphicsColor", - "GraphicsColumn", - "GraphicsComplex", - "GraphicsComplex3DBox", - "GraphicsComplex3DBoxOptions", - "GraphicsComplexBox", - "GraphicsComplexBoxOptions", - "GraphicsContents", - "GraphicsData", - "GraphicsGrid", - "GraphicsGridBox", - "GraphicsGroup", - "GraphicsGroup3DBox", - "GraphicsGroup3DBoxOptions", - "GraphicsGroupBox", - "GraphicsGroupBoxOptions", - "GraphicsGrouping", - "GraphicsHighlightColor", - "GraphicsRow", - "GraphicsSpacing", - "GraphicsStyle", - "GraphIntersection", - "GraphJoin", - "GraphLayerLabels", - "GraphLayers", - "GraphLayerStyle", - "GraphLayout", - "GraphLinkEfficiency", - "GraphPeriphery", - "GraphPlot", - "GraphPlot3D", - "GraphPower", - "GraphProduct", - "GraphPropertyDistribution", - "GraphQ", - "GraphRadius", - "GraphReciprocity", - "GraphRoot", - "GraphStyle", - "GraphSum", - "GraphTree", - "GraphUnion", - "Gray", - "GrayLevel", - "Greater", - "GreaterEqual", - "GreaterEqualLess", - "GreaterEqualThan", - "GreaterFullEqual", - "GreaterGreater", - "GreaterLess", - "GreaterSlantEqual", - "GreaterThan", - "GreaterTilde", - "GreekStyle", - "Green", - "GreenFunction", - "Grid", - "GridBaseline", - "GridBox", - "GridBoxAlignment", - "GridBoxBackground", - "GridBoxDividers", - "GridBoxFrame", - "GridBoxItemSize", - "GridBoxItemStyle", - "GridBoxOptions", - "GridBoxSpacings", - "GridCreationSettings", - "GridDefaultElement", - "GridElementStyleOptions", - "GridFrame", - "GridFrameMargins", - "GridGraph", - "GridLines", - "GridLinesStyle", - "GridVideo", - "GroebnerBasis", - "GroupActionBase", - "GroupBy", - "GroupCentralizer", - "GroupElementFromWord", - "GroupElementPosition", - "GroupElementQ", - "GroupElements", - "GroupElementToWord", - "GroupGenerators", - "Groupings", - "GroupMultiplicationTable", - "GroupOpenerColor", - "GroupOpenerInsideFrame", - "GroupOrbits", - "GroupOrder", - "GroupPageBreakWithin", - "GroupSetwiseStabilizer", - "GroupStabilizer", - "GroupStabilizerChain", - "GroupTogetherGrouping", - "GroupTogetherNestedGrouping", - "GrowCutComponents", - "Gudermannian", - "GuidedFilter", - "GumbelDistribution", - "HaarWavelet", - "HadamardMatrix", - "HalfLine", - "HalfNormalDistribution", - "HalfPlane", - "HalfSpace", - "HalftoneShading", - "HamiltonianGraphQ", - "HammingDistance", - "HammingWindow", - "HandlerFunctions", - "HandlerFunctionsKeys", - "HankelH1", - "HankelH2", - "HankelMatrix", - "HankelTransform", - "HannPoissonWindow", - "HannWindow", - "HaradaNortonGroupHN", - "HararyGraph", - "HardcorePointProcess", - "HarmonicMean", - "HarmonicMeanFilter", - "HarmonicNumber", - "Hash", - "HatchFilling", - "HatchShading", - "Haversine", - "HazardFunction", - "Head", - "HeadCompose", - "HeaderAlignment", - "HeaderBackground", - "HeaderDisplayFunction", - "HeaderLines", - "Headers", - "HeaderSize", - "HeaderStyle", - "Heads", - "HeatFluxValue", - "HeatInsulationValue", - "HeatOutflowValue", - "HeatRadiationValue", - "HeatSymmetryValue", - "HeatTemperatureCondition", - "HeatTransferPDEComponent", - "HeatTransferValue", - "HeavisideLambda", - "HeavisidePi", - "HeavisideTheta", - "HeldGroupHe", - "HeldPart", - "HelmholtzPDEComponent", - "HelpBrowserLookup", - "HelpBrowserNotebook", - "HelpBrowserSettings", - "HelpViewerSettings", - "Here", - "HermiteDecomposition", - "HermiteH", - "Hermitian", - "HermitianMatrixQ", - "HessenbergDecomposition", - "Hessian", - "HeunB", - "HeunBPrime", - "HeunC", - "HeunCPrime", - "HeunD", - "HeunDPrime", - "HeunG", - "HeunGPrime", - "HeunT", - "HeunTPrime", - "HexadecimalCharacter", - "Hexahedron", - "HexahedronBox", - "HexahedronBoxOptions", - "HiddenItems", - "HiddenMarkovProcess", - "HiddenSurface", - "Highlighted", - "HighlightGraph", - "HighlightImage", - "HighlightMesh", - "HighlightString", - "HighpassFilter", - "HigmanSimsGroupHS", - "HilbertCurve", - "HilbertFilter", - "HilbertMatrix", - "Histogram", - "Histogram3D", - "HistogramDistribution", - "HistogramList", - "HistogramPointDensity", - "HistogramTransform", - "HistogramTransformInterpolation", - "HistoricalPeriodData", - "HitMissTransform", - "HITSCentrality", - "HjorthDistribution", - "HodgeDual", - "HoeffdingD", - "HoeffdingDTest", - "Hold", - "HoldAll", - "HoldAllComplete", - "HoldComplete", - "HoldFirst", - "HoldForm", - "HoldPattern", - "HoldRest", - "HolidayCalendar", - "HomeDirectory", - "HomePage", - "Horizontal", - "HorizontalForm", - "HorizontalGauge", - "HorizontalScrollPosition", - "HornerForm", - "HostLookup", - "HotellingTSquareDistribution", - "HoytDistribution", - "HTMLSave", - "HTTPErrorResponse", - "HTTPRedirect", - "HTTPRequest", - "HTTPRequestData", - "HTTPResponse", - "Hue", - "HumanGrowthData", - "HumpDownHump", - "HumpEqual", - "HurwitzLerchPhi", - "HurwitzZeta", - "HyperbolicDistribution", - "HypercubeGraph", - "HyperexponentialDistribution", - "Hyperfactorial", - "Hypergeometric0F1", - "Hypergeometric0F1Regularized", - "Hypergeometric1F1", - "Hypergeometric1F1Regularized", - "Hypergeometric2F1", - "Hypergeometric2F1Regularized", - "HypergeometricDistribution", - "HypergeometricPFQ", - "HypergeometricPFQRegularized", - "HypergeometricU", - "Hyperlink", - "HyperlinkAction", - "HyperlinkCreationSettings", - "Hyperplane", - "Hyphenation", - "HyphenationOptions", - "HypoexponentialDistribution", - "HypothesisTestData", - "I", - "IconData", - "Iconize", - "IconizedObject", - "IconRules", - "Icosahedron", - "Identity", - "IdentityMatrix", - "If", - "IfCompiled", - "IgnoreCase", - "IgnoreDiacritics", - "IgnoreIsotopes", - "IgnorePunctuation", - "IgnoreSpellCheck", - "IgnoreStereochemistry", - "IgnoringInactive", - "Im", - "Image", - "Image3D", - "Image3DProjection", - "Image3DSlices", - "ImageAccumulate", - "ImageAdd", - "ImageAdjust", - "ImageAlign", - "ImageApply", - "ImageApplyIndexed", - "ImageAspectRatio", - "ImageAssemble", - "ImageAugmentationLayer", - "ImageBoundingBoxes", - "ImageCache", - "ImageCacheValid", - "ImageCapture", - "ImageCaptureFunction", - "ImageCases", - "ImageChannels", - "ImageClip", - "ImageCollage", - "ImageColorSpace", - "ImageCompose", - "ImageContainsQ", - "ImageContents", - "ImageConvolve", - "ImageCooccurrence", - "ImageCorners", - "ImageCorrelate", - "ImageCorrespondingPoints", - "ImageCrop", - "ImageData", - "ImageDeconvolve", - "ImageDemosaic", - "ImageDifference", - "ImageDimensions", - "ImageDisplacements", - "ImageDistance", - "ImageEditMode", - "ImageEffect", - "ImageExposureCombine", - "ImageFeatureTrack", - "ImageFileApply", - "ImageFileFilter", - "ImageFileScan", - "ImageFilter", - "ImageFocusCombine", - "ImageForestingComponents", - "ImageFormattingWidth", - "ImageForwardTransformation", - "ImageGraphics", - "ImageHistogram", - "ImageIdentify", - "ImageInstanceQ", - "ImageKeypoints", - "ImageLabels", - "ImageLegends", - "ImageLevels", - "ImageLines", - "ImageMargins", - "ImageMarker", - "ImageMarkers", - "ImageMeasurements", - "ImageMesh", - "ImageMultiply", - "ImageOffset", - "ImagePad", - "ImagePadding", - "ImagePartition", - "ImagePeriodogram", - "ImagePerspectiveTransformation", - "ImagePosition", - "ImagePreviewFunction", - "ImagePyramid", - "ImagePyramidApply", - "ImageQ", - "ImageRangeCache", - "ImageRecolor", - "ImageReflect", - "ImageRegion", - "ImageResize", - "ImageResolution", - "ImageRestyle", - "ImageRotate", - "ImageRotated", - "ImageSaliencyFilter", - "ImageScaled", - "ImageScan", - "ImageSize", - "ImageSizeAction", - "ImageSizeCache", - "ImageSizeMultipliers", - "ImageSizeRaw", - "ImageStitch", - "ImageSubtract", - "ImageTake", - "ImageTransformation", - "ImageTrim", - "ImageType", - "ImageValue", - "ImageValuePositions", - "ImageVectorscopePlot", - "ImageWaveformPlot", - "ImagingDevice", - "ImplicitD", - "ImplicitRegion", - "Implies", - "Import", - "ImportAutoReplacements", - "ImportByteArray", - "ImportedObject", - "ImportOptions", - "ImportString", - "ImprovementImportance", - "In", - "Inactivate", - "Inactive", - "InactiveStyle", - "IncidenceGraph", - "IncidenceList", - "IncidenceMatrix", - "IncludeAromaticBonds", - "IncludeConstantBasis", - "IncludedContexts", - "IncludeDefinitions", - "IncludeDirectories", - "IncludeFileExtension", - "IncludeGeneratorTasks", - "IncludeHydrogens", - "IncludeInflections", - "IncludeMetaInformation", - "IncludePods", - "IncludeQuantities", - "IncludeRelatedTables", - "IncludeSingularSolutions", - "IncludeSingularTerm", - "IncludeWindowTimes", - "Increment", - "IndefiniteMatrixQ", - "Indent", - "IndentingNewlineSpacings", - "IndentMaxFraction", - "IndependenceTest", - "IndependentEdgeSetQ", - "IndependentPhysicalQuantity", - "IndependentUnit", - "IndependentUnitDimension", - "IndependentVertexSetQ", - "Indeterminate", - "IndeterminateThreshold", - "IndexCreationOptions", - "Indexed", - "IndexEdgeTaggedGraph", - "IndexGraph", - "IndexTag", - "Inequality", - "InertEvaluate", - "InertExpression", - "InexactNumberQ", - "InexactNumbers", - "InfiniteFuture", - "InfiniteLine", - "InfiniteLineThrough", - "InfinitePast", - "InfinitePlane", - "Infinity", - "Infix", - "InflationAdjust", - "InflationMethod", - "Information", - "InformationData", - "InformationDataGrid", - "Inherited", - "InheritScope", - "InhomogeneousPoissonPointProcess", - "InhomogeneousPoissonProcess", - "InitialEvaluationHistory", - "Initialization", - "InitializationCell", - "InitializationCellEvaluation", - "InitializationCellWarning", - "InitializationObject", - "InitializationObjects", - "InitializationValue", - "Initialize", - "InitialSeeding", - "InlineCounterAssignments", - "InlineCounterIncrements", - "InlineRules", - "Inner", - "InnerPolygon", - "InnerPolyhedron", - "Inpaint", - "Input", - "InputAliases", - "InputAssumptions", - "InputAutoReplacements", - "InputField", - "InputFieldBox", - "InputFieldBoxOptions", - "InputForm", - "InputGrouping", - "InputNamePacket", - "InputNotebook", - "InputPacket", - "InputPorts", - "InputSettings", - "InputStream", - "InputString", - "InputStringPacket", - "InputToBoxFormPacket", - "Insert", - "InsertionFunction", - "InsertionPointObject", - "InsertLinebreaks", - "InsertResults", - "Inset", - "Inset3DBox", - "Inset3DBoxOptions", - "InsetBox", - "InsetBoxOptions", - "Insphere", - "Install", - "InstallService", - "InstanceNormalizationLayer", - "InString", - "Integer", - "IntegerDigits", - "IntegerExponent", - "IntegerLength", - "IntegerName", - "IntegerPart", - "IntegerPartitions", - "IntegerQ", - "IntegerReverse", - "Integers", - "IntegerString", - "Integral", - "Integrate", - "IntegrateChangeVariables", - "Interactive", - "InteractiveTradingChart", - "InterfaceSwitched", - "Interlaced", - "Interleaving", - "InternallyBalancedDecomposition", - "InterpolatingFunction", - "InterpolatingPolynomial", - "Interpolation", - "InterpolationOrder", - "InterpolationPoints", - "InterpolationPrecision", - "Interpretation", - "InterpretationBox", - "InterpretationBoxOptions", - "InterpretationFunction", - "Interpreter", - "InterpretTemplate", - "InterquartileRange", - "Interrupt", - "InterruptSettings", - "IntersectedEntityClass", - "IntersectingQ", - "Intersection", - "Interval", - "IntervalIntersection", - "IntervalMarkers", - "IntervalMarkersStyle", - "IntervalMemberQ", - "IntervalSlider", - "IntervalUnion", - "Into", - "Inverse", - "InverseBetaRegularized", - "InverseBilateralLaplaceTransform", - "InverseBilateralZTransform", - "InverseCDF", - "InverseChiSquareDistribution", - "InverseContinuousWaveletTransform", - "InverseDistanceTransform", - "InverseEllipticNomeQ", - "InverseErf", - "InverseErfc", - "InverseFourier", - "InverseFourierCosTransform", - "InverseFourierSequenceTransform", - "InverseFourierSinTransform", - "InverseFourierTransform", - "InverseFunction", - "InverseFunctions", - "InverseGammaDistribution", - "InverseGammaRegularized", - "InverseGaussianDistribution", - "InverseGudermannian", - "InverseHankelTransform", - "InverseHaversine", - "InverseImagePyramid", - "InverseJacobiCD", - "InverseJacobiCN", - "InverseJacobiCS", - "InverseJacobiDC", - "InverseJacobiDN", - "InverseJacobiDS", - "InverseJacobiNC", - "InverseJacobiND", - "InverseJacobiNS", - "InverseJacobiSC", - "InverseJacobiSD", - "InverseJacobiSN", - "InverseLaplaceTransform", - "InverseMellinTransform", - "InversePermutation", - "InverseRadon", - "InverseRadonTransform", - "InverseSeries", - "InverseShortTimeFourier", - "InverseSpectrogram", - "InverseSurvivalFunction", - "InverseTransformedRegion", - "InverseWaveletTransform", - "InverseWeierstrassP", - "InverseWishartMatrixDistribution", - "InverseZTransform", - "Invisible", - "InvisibleApplication", - "InvisibleTimes", - "IPAddress", - "IrreduciblePolynomialQ", - "IslandData", - "IsolatingInterval", - "IsomorphicGraphQ", - "IsomorphicSubgraphQ", - "IsotopeData", - "Italic", - "Item", - "ItemAspectRatio", - "ItemBox", - "ItemBoxOptions", - "ItemDisplayFunction", - "ItemSize", - "ItemStyle", - "ItoProcess", - "JaccardDissimilarity", - "JacobiAmplitude", - "Jacobian", - "JacobiCD", - "JacobiCN", - "JacobiCS", - "JacobiDC", - "JacobiDN", - "JacobiDS", - "JacobiEpsilon", - "JacobiNC", - "JacobiND", - "JacobiNS", - "JacobiP", - "JacobiSC", - "JacobiSD", - "JacobiSN", - "JacobiSymbol", - "JacobiZeta", - "JacobiZN", - "JankoGroupJ1", - "JankoGroupJ2", - "JankoGroupJ3", - "JankoGroupJ4", - "JarqueBeraALMTest", - "JohnsonDistribution", - "Join", - "JoinAcross", - "Joined", - "JoinedCurve", - "JoinedCurveBox", - "JoinedCurveBoxOptions", - "JoinForm", - "JordanDecomposition", - "JordanModelDecomposition", - "JulianDate", - "JuliaSetBoettcher", - "JuliaSetIterationCount", - "JuliaSetPlot", - "JuliaSetPoints", - "K", - "KagiChart", - "KaiserBesselWindow", - "KaiserWindow", - "KalmanEstimator", - "KalmanFilter", - "KarhunenLoeveDecomposition", - "KaryTree", - "KatzCentrality", - "KCoreComponents", - "KDistribution", - "KEdgeConnectedComponents", - "KEdgeConnectedGraphQ", - "KeepExistingVersion", - "KelvinBei", - "KelvinBer", - "KelvinKei", - "KelvinKer", - "KendallTau", - "KendallTauTest", - "KernelConfiguration", - "KernelExecute", - "KernelFunction", - "KernelMixtureDistribution", - "KernelObject", - "Kernels", - "Ket", - "Key", - "KeyCollisionFunction", - "KeyComplement", - "KeyDrop", - "KeyDropFrom", - "KeyExistsQ", - "KeyFreeQ", - "KeyIntersection", - "KeyMap", - "KeyMemberQ", - "KeypointStrength", - "Keys", - "KeySelect", - "KeySort", - "KeySortBy", - "KeyTake", - "KeyUnion", - "KeyValueMap", - "KeyValuePattern", - "Khinchin", - "KillProcess", - "KirchhoffGraph", - "KirchhoffMatrix", - "KleinInvariantJ", - "KnapsackSolve", - "KnightTourGraph", - "KnotData", - "KnownUnitQ", - "KochCurve", - "KolmogorovSmirnovTest", - "KroneckerDelta", - "KroneckerModelDecomposition", - "KroneckerProduct", - "KroneckerSymbol", - "KuiperTest", - "KumaraswamyDistribution", - "Kurtosis", - "KuwaharaFilter", - "KVertexConnectedComponents", - "KVertexConnectedGraphQ", - "LABColor", - "Label", - "Labeled", - "LabeledSlider", - "LabelingFunction", - "LabelingSize", - "LabelStyle", - "LabelVisibility", - "LaguerreL", - "LakeData", - "LambdaComponents", - "LambertW", - "LameC", - "LameCPrime", - "LameEigenvalueA", - "LameEigenvalueB", - "LameS", - "LameSPrime", - "LaminaData", - "LanczosWindow", - "LandauDistribution", - "Language", - "LanguageCategory", - "LanguageData", - "LanguageIdentify", - "LanguageOptions", - "LaplaceDistribution", - "LaplaceTransform", - "Laplacian", - "LaplacianFilter", - "LaplacianGaussianFilter", - "LaplacianPDETerm", - "Large", - "Larger", - "Last", - "Latitude", - "LatitudeLongitude", - "LatticeData", - "LatticeReduce", - "Launch", - "LaunchKernels", - "LayeredGraphPlot", - "LayeredGraphPlot3D", - "LayerSizeFunction", - "LayoutInformation", - "LCHColor", - "LCM", - "LeaderSize", - "LeafCount", - "LeapVariant", - "LeapYearQ", - "LearnDistribution", - "LearnedDistribution", - "LearningRate", - "LearningRateMultipliers", - "LeastSquares", - "LeastSquaresFilterKernel", - "Left", - "LeftArrow", - "LeftArrowBar", - "LeftArrowRightArrow", - "LeftDownTeeVector", - "LeftDownVector", - "LeftDownVectorBar", - "LeftRightArrow", - "LeftRightVector", - "LeftTee", - "LeftTeeArrow", - "LeftTeeVector", - "LeftTriangle", - "LeftTriangleBar", - "LeftTriangleEqual", - "LeftUpDownVector", - "LeftUpTeeVector", - "LeftUpVector", - "LeftUpVectorBar", - "LeftVector", - "LeftVectorBar", - "LegendAppearance", - "Legended", - "LegendFunction", - "LegendLabel", - "LegendLayout", - "LegendMargins", - "LegendMarkers", - "LegendMarkerSize", - "LegendreP", - "LegendreQ", - "LegendreType", - "Length", - "LengthWhile", - "LerchPhi", - "Less", - "LessEqual", - "LessEqualGreater", - "LessEqualThan", - "LessFullEqual", - "LessGreater", - "LessLess", - "LessSlantEqual", - "LessThan", - "LessTilde", - "LetterCharacter", - "LetterCounts", - "LetterNumber", - "LetterQ", - "Level", - "LeveneTest", - "LeviCivitaTensor", - "LevyDistribution", - "Lexicographic", - "LexicographicOrder", - "LexicographicSort", - "LibraryDataType", - "LibraryFunction", - "LibraryFunctionDeclaration", - "LibraryFunctionError", - "LibraryFunctionInformation", - "LibraryFunctionLoad", - "LibraryFunctionUnload", - "LibraryLoad", - "LibraryUnload", - "LicenseEntitlementObject", - "LicenseEntitlements", - "LicenseID", - "LicensingSettings", - "LiftingFilterData", - "LiftingWaveletTransform", - "LightBlue", - "LightBrown", - "LightCyan", - "Lighter", - "LightGray", - "LightGreen", - "Lighting", - "LightingAngle", - "LightMagenta", - "LightOrange", - "LightPink", - "LightPurple", - "LightRed", - "LightSources", - "LightYellow", - "Likelihood", - "Limit", - "LimitsPositioning", - "LimitsPositioningTokens", - "LindleyDistribution", - "Line", - "Line3DBox", - "Line3DBoxOptions", - "LinearFilter", - "LinearFractionalOptimization", - "LinearFractionalTransform", - "LinearGradientFilling", - "LinearGradientImage", - "LinearizingTransformationData", - "LinearLayer", - "LinearModelFit", - "LinearOffsetFunction", - "LinearOptimization", - "LinearProgramming", - "LinearRecurrence", - "LinearSolve", - "LinearSolveFunction", - "LineBox", - "LineBoxOptions", - "LineBreak", - "LinebreakAdjustments", - "LineBreakChart", - "LinebreakSemicolonWeighting", - "LineBreakWithin", - "LineColor", - "LineGraph", - "LineIndent", - "LineIndentMaxFraction", - "LineIntegralConvolutionPlot", - "LineIntegralConvolutionScale", - "LineLegend", - "LineOpacity", - "LineSpacing", - "LineWrapParts", - "LinkActivate", - "LinkClose", - "LinkConnect", - "LinkConnectedQ", - "LinkCreate", - "LinkError", - "LinkFlush", - "LinkFunction", - "LinkHost", - "LinkInterrupt", - "LinkLaunch", - "LinkMode", - "LinkObject", - "LinkOpen", - "LinkOptions", - "LinkPatterns", - "LinkProtocol", - "LinkRankCentrality", - "LinkRead", - "LinkReadHeld", - "LinkReadyQ", - "Links", - "LinkService", - "LinkWrite", - "LinkWriteHeld", - "LiouvilleLambda", - "List", - "Listable", - "ListAnimate", - "ListContourPlot", - "ListContourPlot3D", - "ListConvolve", - "ListCorrelate", - "ListCurvePathPlot", - "ListDeconvolve", - "ListDensityPlot", - "ListDensityPlot3D", - "Listen", - "ListFormat", - "ListFourierSequenceTransform", - "ListInterpolation", - "ListLineIntegralConvolutionPlot", - "ListLinePlot", - "ListLinePlot3D", - "ListLogLinearPlot", - "ListLogLogPlot", - "ListLogPlot", - "ListPicker", - "ListPickerBox", - "ListPickerBoxBackground", - "ListPickerBoxOptions", - "ListPlay", - "ListPlot", - "ListPlot3D", - "ListPointPlot3D", - "ListPolarPlot", - "ListQ", - "ListSliceContourPlot3D", - "ListSliceDensityPlot3D", - "ListSliceVectorPlot3D", - "ListStepPlot", - "ListStreamDensityPlot", - "ListStreamPlot", - "ListStreamPlot3D", - "ListSurfacePlot3D", - "ListVectorDensityPlot", - "ListVectorDisplacementPlot", - "ListVectorDisplacementPlot3D", - "ListVectorPlot", - "ListVectorPlot3D", - "ListZTransform", - "Literal", - "LiteralSearch", - "LiteralType", - "LoadCompiledComponent", - "LocalAdaptiveBinarize", - "LocalCache", - "LocalClusteringCoefficient", - "LocalEvaluate", - "LocalizeDefinitions", - "LocalizeVariables", - "LocalObject", - "LocalObjects", - "LocalResponseNormalizationLayer", - "LocalSubmit", - "LocalSymbol", - "LocalTime", - "LocalTimeZone", - "LocationEquivalenceTest", - "LocationTest", - "Locator", - "LocatorAutoCreate", - "LocatorBox", - "LocatorBoxOptions", - "LocatorCentering", - "LocatorPane", - "LocatorPaneBox", - "LocatorPaneBoxOptions", - "LocatorRegion", - "Locked", - "Log", - "Log10", - "Log2", - "LogBarnesG", - "LogGamma", - "LogGammaDistribution", - "LogicalExpand", - "LogIntegral", - "LogisticDistribution", - "LogisticSigmoid", - "LogitModelFit", - "LogLikelihood", - "LogLinearPlot", - "LogLogisticDistribution", - "LogLogPlot", - "LogMultinormalDistribution", - "LogNormalDistribution", - "LogPlot", - "LogRankTest", - "LogSeriesDistribution", - "LongEqual", - "Longest", - "LongestCommonSequence", - "LongestCommonSequencePositions", - "LongestCommonSubsequence", - "LongestCommonSubsequencePositions", - "LongestMatch", - "LongestOrderedSequence", - "LongForm", - "Longitude", - "LongLeftArrow", - "LongLeftRightArrow", - "LongRightArrow", - "LongShortTermMemoryLayer", - "Lookup", - "Loopback", - "LoopFreeGraphQ", - "Looping", - "LossFunction", - "LowerCaseQ", - "LowerLeftArrow", - "LowerRightArrow", - "LowerTriangularize", - "LowerTriangularMatrix", - "LowerTriangularMatrixQ", - "LowpassFilter", - "LQEstimatorGains", - "LQGRegulator", - "LQOutputRegulatorGains", - "LQRegulatorGains", - "LUBackSubstitution", - "LucasL", - "LuccioSamiComponents", - "LUDecomposition", - "LunarEclipse", - "LUVColor", - "LyapunovSolve", - "LyonsGroupLy", - "MachineID", - "MachineName", - "MachineNumberQ", - "MachinePrecision", - "MacintoshSystemPageSetup", - "Magenta", - "Magnification", - "Magnify", - "MailAddressValidation", - "MailExecute", - "MailFolder", - "MailItem", - "MailReceiverFunction", - "MailResponseFunction", - "MailSearch", - "MailServerConnect", - "MailServerConnection", - "MailSettings", - "MainSolve", - "MaintainDynamicCaches", - "Majority", - "MakeBoxes", - "MakeExpression", - "MakeRules", - "ManagedLibraryExpressionID", - "ManagedLibraryExpressionQ", - "MandelbrotSetBoettcher", - "MandelbrotSetDistance", - "MandelbrotSetIterationCount", - "MandelbrotSetMemberQ", - "MandelbrotSetPlot", - "MangoldtLambda", - "ManhattanDistance", - "Manipulate", - "Manipulator", - "MannedSpaceMissionData", - "MannWhitneyTest", - "MantissaExponent", - "Manual", - "Map", - "MapAll", - "MapApply", - "MapAt", - "MapIndexed", - "MAProcess", - "MapThread", - "MarchenkoPasturDistribution", - "MarcumQ", - "MardiaCombinedTest", - "MardiaKurtosisTest", - "MardiaSkewnessTest", - "MarginalDistribution", - "MarkovProcessProperties", - "Masking", - "MassConcentrationCondition", - "MassFluxValue", - "MassImpermeableBoundaryValue", - "MassOutflowValue", - "MassSymmetryValue", - "MassTransferValue", - "MassTransportPDEComponent", - "MatchingDissimilarity", - "MatchLocalNameQ", - "MatchLocalNames", - "MatchQ", - "Material", - "MaterialShading", - "MaternPointProcess", - "MathematicalFunctionData", - "MathematicaNotation", - "MathieuC", - "MathieuCharacteristicA", - "MathieuCharacteristicB", - "MathieuCharacteristicExponent", - "MathieuCPrime", - "MathieuGroupM11", - "MathieuGroupM12", - "MathieuGroupM22", - "MathieuGroupM23", - "MathieuGroupM24", - "MathieuS", - "MathieuSPrime", - "MathMLForm", - "MathMLText", - "Matrices", - "MatrixExp", - "MatrixForm", - "MatrixFunction", - "MatrixLog", - "MatrixNormalDistribution", - "MatrixPlot", - "MatrixPower", - "MatrixPropertyDistribution", - "MatrixQ", - "MatrixRank", - "MatrixTDistribution", - "Max", - "MaxBend", - "MaxCellMeasure", - "MaxColorDistance", - "MaxDate", - "MaxDetect", - "MaxDisplayedChildren", - "MaxDuration", - "MaxExtraBandwidths", - "MaxExtraConditions", - "MaxFeatureDisplacement", - "MaxFeatures", - "MaxFilter", - "MaximalBy", - "Maximize", - "MaxItems", - "MaxIterations", - "MaxLimit", - "MaxMemoryUsed", - "MaxMixtureKernels", - "MaxOverlapFraction", - "MaxPlotPoints", - "MaxPoints", - "MaxRecursion", - "MaxStableDistribution", - "MaxStepFraction", - "MaxSteps", - "MaxStepSize", - "MaxTrainingRounds", - "MaxValue", - "MaxwellDistribution", - "MaxWordGap", - "McLaughlinGroupMcL", - "Mean", - "MeanAbsoluteLossLayer", - "MeanAround", - "MeanClusteringCoefficient", - "MeanDegreeConnectivity", - "MeanDeviation", - "MeanFilter", - "MeanGraphDistance", - "MeanNeighborDegree", - "MeanPointDensity", - "MeanShift", - "MeanShiftFilter", - "MeanSquaredLossLayer", - "Median", - "MedianDeviation", - "MedianFilter", - "MedicalTestData", - "Medium", - "MeijerG", - "MeijerGReduce", - "MeixnerDistribution", - "MellinConvolve", - "MellinTransform", - "MemberQ", - "MemoryAvailable", - "MemoryConstrained", - "MemoryConstraint", - "MemoryInUse", - "MengerMesh", - "Menu", - "MenuAppearance", - "MenuCommandKey", - "MenuEvaluator", - "MenuItem", - "MenuList", - "MenuPacket", - "MenuSortingValue", - "MenuStyle", - "MenuView", - "Merge", - "MergeDifferences", - "MergingFunction", - "MersennePrimeExponent", - "MersennePrimeExponentQ", - "Mesh", - "MeshCellCentroid", - "MeshCellCount", - "MeshCellHighlight", - "MeshCellIndex", - "MeshCellLabel", - "MeshCellMarker", - "MeshCellMeasure", - "MeshCellQuality", - "MeshCells", - "MeshCellShapeFunction", - "MeshCellStyle", - "MeshConnectivityGraph", - "MeshCoordinates", - "MeshFunctions", - "MeshPrimitives", - "MeshQualityGoal", - "MeshRange", - "MeshRefinementFunction", - "MeshRegion", - "MeshRegionQ", - "MeshShading", - "MeshStyle", - "Message", - "MessageDialog", - "MessageList", - "MessageName", - "MessageObject", - "MessageOptions", - "MessagePacket", - "Messages", - "MessagesNotebook", - "MetaCharacters", - "MetaInformation", - "MeteorShowerData", - "Method", - "MethodOptions", - "MexicanHatWavelet", - "MeyerWavelet", - "Midpoint", - "MIMETypeToFormatList", - "Min", - "MinColorDistance", - "MinDate", - "MinDetect", - "MineralData", - "MinFilter", - "MinimalBy", - "MinimalPolynomial", - "MinimalStateSpaceModel", - "Minimize", - "MinimumTimeIncrement", - "MinIntervalSize", - "MinkowskiQuestionMark", - "MinLimit", - "MinMax", - "MinorPlanetData", - "Minors", - "MinPointSeparation", - "MinRecursion", - "MinSize", - "MinStableDistribution", - "Minus", - "MinusPlus", - "MinValue", - "Missing", - "MissingBehavior", - "MissingDataMethod", - "MissingDataRules", - "MissingQ", - "MissingString", - "MissingStyle", - "MissingValuePattern", - "MissingValueSynthesis", - "MittagLefflerE", - "MixedFractionParts", - "MixedGraphQ", - "MixedMagnitude", - "MixedRadix", - "MixedRadixQuantity", - "MixedUnit", - "MixtureDistribution", - "Mod", - "Modal", - "Mode", - "ModelPredictiveController", - "Modular", - "ModularInverse", - "ModularLambda", - "Module", - "Modulus", - "MoebiusMu", - "Molecule", - "MoleculeAlign", - "MoleculeContainsQ", - "MoleculeDraw", - "MoleculeEquivalentQ", - "MoleculeFreeQ", - "MoleculeGraph", - "MoleculeMatchQ", - "MoleculeMaximumCommonSubstructure", - "MoleculeModify", - "MoleculeName", - "MoleculePattern", - "MoleculePlot", - "MoleculePlot3D", - "MoleculeProperty", - "MoleculeQ", - "MoleculeRecognize", - "MoleculeSubstructureCount", - "MoleculeValue", - "Moment", - "MomentConvert", - "MomentEvaluate", - "MomentGeneratingFunction", - "MomentOfInertia", - "Monday", - "Monitor", - "MonomialList", - "MonomialOrder", - "MonsterGroupM", - "MoonPhase", - "MoonPosition", - "MorletWavelet", - "MorphologicalBinarize", - "MorphologicalBranchPoints", - "MorphologicalComponents", - "MorphologicalEulerNumber", - "MorphologicalGraph", - "MorphologicalPerimeter", - "MorphologicalTransform", - "MortalityData", - "Most", - "MountainData", - "MouseAnnotation", - "MouseAppearance", - "MouseAppearanceTag", - "MouseButtons", - "Mouseover", - "MousePointerNote", - "MousePosition", - "MovieData", - "MovingAverage", - "MovingMap", - "MovingMedian", - "MoyalDistribution", - "MultiaxisArrangement", - "Multicolumn", - "MultiedgeStyle", - "MultigraphQ", - "MultilaunchWarning", - "MultiLetterItalics", - "MultiLetterStyle", - "MultilineFunction", - "Multinomial", - "MultinomialDistribution", - "MultinormalDistribution", - "MultiplicativeOrder", - "Multiplicity", - "MultiplySides", - "MultiscriptBoxOptions", - "Multiselection", - "MultivariateHypergeometricDistribution", - "MultivariatePoissonDistribution", - "MultivariateTDistribution", - "N", - "NakagamiDistribution", - "NameQ", - "Names", - "NamespaceBox", - "NamespaceBoxOptions", - "Nand", - "NArgMax", - "NArgMin", - "NBernoulliB", - "NBodySimulation", - "NBodySimulationData", - "NCache", - "NCaputoD", - "NDEigensystem", - "NDEigenvalues", - "NDSolve", - "NDSolveValue", - "Nearest", - "NearestFunction", - "NearestMeshCells", - "NearestNeighborG", - "NearestNeighborGraph", - "NearestTo", - "NebulaData", - "NeedlemanWunschSimilarity", - "Needs", - "Negative", - "NegativeBinomialDistribution", - "NegativeDefiniteMatrixQ", - "NegativeIntegers", - "NegativelyOrientedPoints", - "NegativeMultinomialDistribution", - "NegativeRationals", - "NegativeReals", - "NegativeSemidefiniteMatrixQ", - "NeighborhoodData", - "NeighborhoodGraph", - "Nest", - "NestedGreaterGreater", - "NestedLessLess", - "NestedScriptRules", - "NestGraph", - "NestList", - "NestTree", - "NestWhile", - "NestWhileList", - "NetAppend", - "NetArray", - "NetArrayLayer", - "NetBidirectionalOperator", - "NetChain", - "NetDecoder", - "NetDelete", - "NetDrop", - "NetEncoder", - "NetEvaluationMode", - "NetExternalObject", - "NetExtract", - "NetFlatten", - "NetFoldOperator", - "NetGANOperator", - "NetGraph", - "NetInformation", - "NetInitialize", - "NetInsert", - "NetInsertSharedArrays", - "NetJoin", - "NetMapOperator", - "NetMapThreadOperator", - "NetMeasurements", - "NetModel", - "NetNestOperator", - "NetPairEmbeddingOperator", - "NetPort", - "NetPortGradient", - "NetPrepend", - "NetRename", - "NetReplace", - "NetReplacePart", - "NetSharedArray", - "NetStateObject", - "NetTake", - "NetTrain", - "NetTrainResultsObject", - "NetUnfold", - "NetworkPacketCapture", - "NetworkPacketRecording", - "NetworkPacketRecordingDuring", - "NetworkPacketTrace", - "NeumannValue", - "NevilleThetaC", - "NevilleThetaD", - "NevilleThetaN", - "NevilleThetaS", - "NewPrimitiveStyle", - "NExpectation", - "Next", - "NextCell", - "NextDate", - "NextPrime", - "NextScheduledTaskTime", - "NeymanScottPointProcess", - "NFractionalD", - "NHoldAll", - "NHoldFirst", - "NHoldRest", - "NicholsGridLines", - "NicholsPlot", - "NightHemisphere", - "NIntegrate", - "NMaximize", - "NMaxValue", - "NMinimize", - "NMinValue", - "NominalScale", - "NominalVariables", - "NonAssociative", - "NoncentralBetaDistribution", - "NoncentralChiSquareDistribution", - "NoncentralFRatioDistribution", - "NoncentralStudentTDistribution", - "NonCommutativeMultiply", - "NonConstants", - "NondimensionalizationTransform", - "None", - "NoneTrue", - "NonlinearModelFit", - "NonlinearStateSpaceModel", - "NonlocalMeansFilter", - "NonNegative", - "NonNegativeIntegers", - "NonNegativeRationals", - "NonNegativeReals", - "NonPositive", - "NonPositiveIntegers", - "NonPositiveRationals", - "NonPositiveReals", - "Nor", - "NorlundB", - "Norm", - "Normal", - "NormalDistribution", - "NormalGrouping", - "NormalizationLayer", - "Normalize", - "Normalized", - "NormalizedSquaredEuclideanDistance", - "NormalMatrixQ", - "NormalsFunction", - "NormFunction", - "Not", - "NotCongruent", - "NotCupCap", - "NotDoubleVerticalBar", - "Notebook", - "NotebookApply", - "NotebookAutoSave", - "NotebookBrowseDirectory", - "NotebookClose", - "NotebookConvertSettings", - "NotebookCreate", - "NotebookDefault", - "NotebookDelete", - "NotebookDirectory", - "NotebookDynamicExpression", - "NotebookEvaluate", - "NotebookEventActions", - "NotebookFileName", - "NotebookFind", - "NotebookGet", - "NotebookImport", - "NotebookInformation", - "NotebookInterfaceObject", - "NotebookLocate", - "NotebookObject", - "NotebookOpen", - "NotebookPath", - "NotebookPrint", - "NotebookPut", - "NotebookRead", - "Notebooks", - "NotebookSave", - "NotebookSelection", - "NotebooksMenu", - "NotebookTemplate", - "NotebookWrite", - "NotElement", - "NotEqualTilde", - "NotExists", - "NotGreater", - "NotGreaterEqual", - "NotGreaterFullEqual", - "NotGreaterGreater", - "NotGreaterLess", - "NotGreaterSlantEqual", - "NotGreaterTilde", - "Nothing", - "NotHumpDownHump", - "NotHumpEqual", - "NotificationFunction", - "NotLeftTriangle", - "NotLeftTriangleBar", - "NotLeftTriangleEqual", - "NotLess", - "NotLessEqual", - "NotLessFullEqual", - "NotLessGreater", - "NotLessLess", - "NotLessSlantEqual", - "NotLessTilde", - "NotNestedGreaterGreater", - "NotNestedLessLess", - "NotPrecedes", - "NotPrecedesEqual", - "NotPrecedesSlantEqual", - "NotPrecedesTilde", - "NotReverseElement", - "NotRightTriangle", - "NotRightTriangleBar", - "NotRightTriangleEqual", - "NotSquareSubset", - "NotSquareSubsetEqual", - "NotSquareSuperset", - "NotSquareSupersetEqual", - "NotSubset", - "NotSubsetEqual", - "NotSucceeds", - "NotSucceedsEqual", - "NotSucceedsSlantEqual", - "NotSucceedsTilde", - "NotSuperset", - "NotSupersetEqual", - "NotTilde", - "NotTildeEqual", - "NotTildeFullEqual", - "NotTildeTilde", - "NotVerticalBar", - "Now", - "NoWhitespace", - "NProbability", - "NProduct", - "NProductFactors", - "NRoots", - "NSolve", - "NSolveValues", - "NSum", - "NSumTerms", - "NuclearExplosionData", - "NuclearReactorData", - "Null", - "NullRecords", - "NullSpace", - "NullWords", - "Number", - "NumberCompose", - "NumberDecompose", - "NumberDigit", - "NumberExpand", - "NumberFieldClassNumber", - "NumberFieldDiscriminant", - "NumberFieldFundamentalUnits", - "NumberFieldIntegralBasis", - "NumberFieldNormRepresentatives", - "NumberFieldRegulator", - "NumberFieldRootsOfUnity", - "NumberFieldSignature", - "NumberForm", - "NumberFormat", - "NumberLinePlot", - "NumberMarks", - "NumberMultiplier", - "NumberPadding", - "NumberPoint", - "NumberQ", - "NumberSeparator", - "NumberSigns", - "NumberString", - "Numerator", - "NumeratorDenominator", - "NumericalOrder", - "NumericalSort", - "NumericArray", - "NumericArrayQ", - "NumericArrayType", - "NumericFunction", - "NumericQ", - "NuttallWindow", - "NValues", - "NyquistGridLines", - "NyquistPlot", - "O", - "ObjectExistsQ", - "ObservabilityGramian", - "ObservabilityMatrix", - "ObservableDecomposition", - "ObservableModelQ", - "OceanData", - "Octahedron", - "OddQ", - "Off", - "Offset", - "OLEData", - "On", - "ONanGroupON", - "Once", - "OneIdentity", - "Opacity", - "OpacityFunction", - "OpacityFunctionScaling", - "Open", - "OpenAppend", - "Opener", - "OpenerBox", - "OpenerBoxOptions", - "OpenerView", - "OpenFunctionInspectorPacket", - "Opening", - "OpenRead", - "OpenSpecialOptions", - "OpenTemporary", - "OpenWrite", - "Operate", - "OperatingSystem", - "OperatorApplied", - "OptimumFlowData", - "Optional", - "OptionalElement", - "OptionInspectorSettings", - "OptionQ", - "Options", - "OptionsPacket", - "OptionsPattern", - "OptionValue", - "OptionValueBox", - "OptionValueBoxOptions", - "Or", - "Orange", - "Order", - "OrderDistribution", - "OrderedQ", - "Ordering", - "OrderingBy", - "OrderingLayer", - "Orderless", - "OrderlessPatternSequence", - "OrdinalScale", - "OrnsteinUhlenbeckProcess", - "Orthogonalize", - "OrthogonalMatrixQ", - "Out", - "Outer", - "OuterPolygon", - "OuterPolyhedron", - "OutputAutoOverwrite", - "OutputControllabilityMatrix", - "OutputControllableModelQ", - "OutputForm", - "OutputFormData", - "OutputGrouping", - "OutputMathEditExpression", - "OutputNamePacket", - "OutputPorts", - "OutputResponse", - "OutputSizeLimit", - "OutputStream", - "Over", - "OverBar", - "OverDot", - "Overflow", - "OverHat", - "Overlaps", - "Overlay", - "OverlayBox", - "OverlayBoxOptions", - "OverlayVideo", - "Overscript", - "OverscriptBox", - "OverscriptBoxOptions", - "OverTilde", - "OverVector", - "OverwriteTarget", - "OwenT", - "OwnValues", - "Package", - "PackingMethod", - "PackPaclet", - "PacletDataRebuild", - "PacletDirectoryAdd", - "PacletDirectoryLoad", - "PacletDirectoryRemove", - "PacletDirectoryUnload", - "PacletDisable", - "PacletEnable", - "PacletFind", - "PacletFindRemote", - "PacletInformation", - "PacletInstall", - "PacletInstallSubmit", - "PacletNewerQ", - "PacletObject", - "PacletObjectQ", - "PacletSite", - "PacletSiteObject", - "PacletSiteRegister", - "PacletSites", - "PacletSiteUnregister", - "PacletSiteUpdate", - "PacletSymbol", - "PacletUninstall", - "PacletUpdate", - "PaddedForm", - "Padding", - "PaddingLayer", - "PaddingSize", - "PadeApproximant", - "PadLeft", - "PadRight", - "PageBreakAbove", - "PageBreakBelow", - "PageBreakWithin", - "PageFooterLines", - "PageFooters", - "PageHeaderLines", - "PageHeaders", - "PageHeight", - "PageRankCentrality", - "PageTheme", - "PageWidth", - "Pagination", - "PairCorrelationG", - "PairedBarChart", - "PairedHistogram", - "PairedSmoothHistogram", - "PairedTTest", - "PairedZTest", - "PaletteNotebook", - "PalettePath", - "PalettesMenuSettings", - "PalindromeQ", - "Pane", - "PaneBox", - "PaneBoxOptions", - "Panel", - "PanelBox", - "PanelBoxOptions", - "Paneled", - "PaneSelector", - "PaneSelectorBox", - "PaneSelectorBoxOptions", - "PaperWidth", - "ParabolicCylinderD", - "ParagraphIndent", - "ParagraphSpacing", - "ParallelArray", - "ParallelAxisPlot", - "ParallelCombine", - "ParallelDo", - "Parallelepiped", - "ParallelEvaluate", - "Parallelization", - "Parallelize", - "ParallelKernels", - "ParallelMap", - "ParallelNeeds", - "Parallelogram", - "ParallelProduct", - "ParallelSubmit", - "ParallelSum", - "ParallelTable", - "ParallelTry", - "Parameter", - "ParameterEstimator", - "ParameterMixtureDistribution", - "ParameterVariables", - "ParametricConvexOptimization", - "ParametricFunction", - "ParametricNDSolve", - "ParametricNDSolveValue", - "ParametricPlot", - "ParametricPlot3D", - "ParametricRampLayer", - "ParametricRegion", - "ParentBox", - "ParentCell", - "ParentConnect", - "ParentDirectory", - "ParentEdgeLabel", - "ParentEdgeLabelFunction", - "ParentEdgeLabelStyle", - "ParentEdgeShapeFunction", - "ParentEdgeStyle", - "ParentEdgeStyleFunction", - "ParentForm", - "Parenthesize", - "ParentList", - "ParentNotebook", - "ParetoDistribution", - "ParetoPickandsDistribution", - "ParkData", - "Part", - "PartBehavior", - "PartialCorrelationFunction", - "PartialD", - "ParticleAcceleratorData", - "ParticleData", - "Partition", - "PartitionGranularity", - "PartitionsP", - "PartitionsQ", - "PartLayer", - "PartOfSpeech", - "PartProtection", - "ParzenWindow", - "PascalDistribution", - "PassEventsDown", - "PassEventsUp", - "Paste", - "PasteAutoQuoteCharacters", - "PasteBoxFormInlineCells", - "PasteButton", - "Path", - "PathGraph", - "PathGraphQ", - "Pattern", - "PatternFilling", - "PatternReaction", - "PatternSequence", - "PatternTest", - "PauliMatrix", - "PaulWavelet", - "Pause", - "PausedTime", - "PDF", - "PeakDetect", - "PeanoCurve", - "PearsonChiSquareTest", - "PearsonCorrelationTest", - "PearsonDistribution", - "PenttinenPointProcess", - "PercentForm", - "PerfectNumber", - "PerfectNumberQ", - "PerformanceGoal", - "Perimeter", - "PeriodicBoundaryCondition", - "PeriodicInterpolation", - "Periodogram", - "PeriodogramArray", - "Permanent", - "Permissions", - "PermissionsGroup", - "PermissionsGroupMemberQ", - "PermissionsGroups", - "PermissionsKey", - "PermissionsKeys", - "PermutationCycles", - "PermutationCyclesQ", - "PermutationGroup", - "PermutationLength", - "PermutationList", - "PermutationListQ", - "PermutationMatrix", - "PermutationMax", - "PermutationMin", - "PermutationOrder", - "PermutationPower", - "PermutationProduct", - "PermutationReplace", - "Permutations", - "PermutationSupport", - "Permute", - "PeronaMalikFilter", - "Perpendicular", - "PerpendicularBisector", - "PersistenceLocation", - "PersistenceTime", - "PersistentObject", - "PersistentObjects", - "PersistentSymbol", - "PersistentValue", - "PersonData", - "PERTDistribution", - "PetersenGraph", - "PhaseMargins", - "PhaseRange", - "PhongShading", - "PhysicalSystemData", - "Pi", - "Pick", - "PickedElements", - "PickMode", - "PIDData", - "PIDDerivativeFilter", - "PIDFeedforward", - "PIDTune", - "Piecewise", - "PiecewiseExpand", - "PieChart", - "PieChart3D", - "PillaiTrace", - "PillaiTraceTest", - "PingTime", - "Pink", - "PitchRecognize", - "Pivoting", - "PixelConstrained", - "PixelValue", - "PixelValuePositions", - "Placed", - "Placeholder", - "PlaceholderLayer", - "PlaceholderReplace", - "Plain", - "PlanarAngle", - "PlanarFaceList", - "PlanarGraph", - "PlanarGraphQ", - "PlanckRadiationLaw", - "PlaneCurveData", - "PlanetaryMoonData", - "PlanetData", - "PlantData", - "Play", - "PlaybackSettings", - "PlayRange", - "Plot", - "Plot3D", - "Plot3Matrix", - "PlotDivision", - "PlotJoined", - "PlotLabel", - "PlotLabels", - "PlotLayout", - "PlotLegends", - "PlotMarkers", - "PlotPoints", - "PlotRange", - "PlotRangeClipping", - "PlotRangeClipPlanesStyle", - "PlotRangePadding", - "PlotRegion", - "PlotStyle", - "PlotTheme", - "Pluralize", - "Plus", - "PlusMinus", - "Pochhammer", - "PodStates", - "PodWidth", - "Point", - "Point3DBox", - "Point3DBoxOptions", - "PointBox", - "PointBoxOptions", - "PointCountDistribution", - "PointDensity", - "PointDensityFunction", - "PointFigureChart", - "PointLegend", - "PointLight", - "PointProcessEstimator", - "PointProcessFitTest", - "PointProcessParameterAssumptions", - "PointProcessParameterQ", - "PointSize", - "PointStatisticFunction", - "PointValuePlot", - "PoissonConsulDistribution", - "PoissonDistribution", - "PoissonPDEComponent", - "PoissonPointProcess", - "PoissonProcess", - "PoissonWindow", - "PolarAxes", - "PolarAxesOrigin", - "PolarGridLines", - "PolarPlot", - "PolarTicks", - "PoleZeroMarkers", - "PolyaAeppliDistribution", - "PolyGamma", - "Polygon", - "Polygon3DBox", - "Polygon3DBoxOptions", - "PolygonalNumber", - "PolygonAngle", - "PolygonBox", - "PolygonBoxOptions", - "PolygonCoordinates", - "PolygonDecomposition", - "PolygonHoleScale", - "PolygonIntersections", - "PolygonScale", - "Polyhedron", - "PolyhedronAngle", - "PolyhedronBox", - "PolyhedronBoxOptions", - "PolyhedronCoordinates", - "PolyhedronData", - "PolyhedronDecomposition", - "PolyhedronGenus", - "PolyLog", - "PolynomialExpressionQ", - "PolynomialExtendedGCD", - "PolynomialForm", - "PolynomialGCD", - "PolynomialLCM", - "PolynomialMod", - "PolynomialQ", - "PolynomialQuotient", - "PolynomialQuotientRemainder", - "PolynomialReduce", - "PolynomialRemainder", - "Polynomials", - "PolynomialSumOfSquaresList", - "PoolingLayer", - "PopupMenu", - "PopupMenuBox", - "PopupMenuBoxOptions", - "PopupView", - "PopupWindow", - "Position", - "PositionIndex", - "PositionLargest", - "PositionSmallest", - "Positive", - "PositiveDefiniteMatrixQ", - "PositiveIntegers", - "PositivelyOrientedPoints", - "PositiveRationals", - "PositiveReals", - "PositiveSemidefiniteMatrixQ", - "PossibleZeroQ", - "Postfix", - "PostScript", - "Power", - "PowerDistribution", - "PowerExpand", - "PowerMod", - "PowerModList", - "PowerRange", - "PowerSpectralDensity", - "PowersRepresentations", - "PowerSymmetricPolynomial", - "Precedence", - "PrecedenceForm", - "Precedes", - "PrecedesEqual", - "PrecedesSlantEqual", - "PrecedesTilde", - "Precision", - "PrecisionGoal", - "PreDecrement", - "Predict", - "PredictionRoot", - "PredictorFunction", - "PredictorInformation", - "PredictorMeasurements", - "PredictorMeasurementsObject", - "PreemptProtect", - "PreferencesPath", - "PreferencesSettings", - "Prefix", - "PreIncrement", - "Prepend", - "PrependLayer", - "PrependTo", - "PreprocessingRules", - "PreserveColor", - "PreserveImageOptions", - "Previous", - "PreviousCell", - "PreviousDate", - "PriceGraphDistribution", - "PrimaryPlaceholder", - "Prime", - "PrimeNu", - "PrimeOmega", - "PrimePi", - "PrimePowerQ", - "PrimeQ", - "Primes", - "PrimeZetaP", - "PrimitivePolynomialQ", - "PrimitiveRoot", - "PrimitiveRootList", - "PrincipalComponents", - "PrincipalValue", - "Print", - "PrintableASCIIQ", - "PrintAction", - "PrintForm", - "PrintingCopies", - "PrintingOptions", - "PrintingPageRange", - "PrintingStartingPageNumber", - "PrintingStyleEnvironment", - "Printout3D", - "Printout3DPreviewer", - "PrintPrecision", - "PrintTemporary", - "Prism", - "PrismBox", - "PrismBoxOptions", - "PrivateCellOptions", - "PrivateEvaluationOptions", - "PrivateFontOptions", - "PrivateFrontEndOptions", - "PrivateKey", - "PrivateNotebookOptions", - "PrivatePaths", - "Probability", - "ProbabilityDistribution", - "ProbabilityPlot", - "ProbabilityPr", - "ProbabilityScalePlot", - "ProbitModelFit", - "ProcessConnection", - "ProcessDirectory", - "ProcessEnvironment", - "Processes", - "ProcessEstimator", - "ProcessInformation", - "ProcessObject", - "ProcessParameterAssumptions", - "ProcessParameterQ", - "ProcessStateDomain", - "ProcessStatus", - "ProcessTimeDomain", - "Product", - "ProductDistribution", - "ProductLog", - "ProgressIndicator", - "ProgressIndicatorBox", - "ProgressIndicatorBoxOptions", - "ProgressReporting", - "Projection", - "Prolog", - "PromptForm", - "ProofObject", - "PropagateAborts", - "Properties", - "Property", - "PropertyList", - "PropertyValue", - "Proportion", - "Proportional", - "Protect", - "Protected", - "ProteinData", - "Pruning", - "PseudoInverse", - "PsychrometricPropertyData", - "PublicKey", - "PublisherID", - "PulsarData", - "PunctuationCharacter", - "Purple", - "Put", - "PutAppend", - "Pyramid", - "PyramidBox", - "PyramidBoxOptions", - "QBinomial", - "QFactorial", - "QGamma", - "QHypergeometricPFQ", - "QnDispersion", - "QPochhammer", - "QPolyGamma", - "QRDecomposition", - "QuadraticIrrationalQ", - "QuadraticOptimization", - "Quantile", - "QuantilePlot", - "Quantity", - "QuantityArray", - "QuantityDistribution", - "QuantityForm", - "QuantityMagnitude", - "QuantityQ", - "QuantityUnit", - "QuantityVariable", - "QuantityVariableCanonicalUnit", - "QuantityVariableDimensions", - "QuantityVariableIdentifier", - "QuantityVariablePhysicalQuantity", - "Quartics", - "QuartileDeviation", - "Quartiles", - "QuartileSkewness", - "Query", - "QuestionGenerator", - "QuestionInterface", - "QuestionObject", - "QuestionSelector", - "QueueingNetworkProcess", - "QueueingProcess", - "QueueProperties", - "Quiet", - "QuietEcho", - "Quit", - "Quotient", - "QuotientRemainder", - "RadialAxisPlot", - "RadialGradientFilling", - "RadialGradientImage", - "RadialityCentrality", - "RadicalBox", - "RadicalBoxOptions", - "RadioButton", - "RadioButtonBar", - "RadioButtonBox", - "RadioButtonBoxOptions", - "Radon", - "RadonTransform", - "RamanujanTau", - "RamanujanTauL", - "RamanujanTauTheta", - "RamanujanTauZ", - "Ramp", - "Random", - "RandomArrayLayer", - "RandomChoice", - "RandomColor", - "RandomComplex", - "RandomDate", - "RandomEntity", - "RandomFunction", - "RandomGeneratorState", - "RandomGeoPosition", - "RandomGraph", - "RandomImage", - "RandomInstance", - "RandomInteger", - "RandomPermutation", - "RandomPoint", - "RandomPointConfiguration", - "RandomPolygon", - "RandomPolyhedron", - "RandomPrime", - "RandomReal", - "RandomSample", - "RandomSeed", - "RandomSeeding", - "RandomTime", - "RandomTree", - "RandomVariate", - "RandomWalkProcess", - "RandomWord", - "Range", - "RangeFilter", - "RangeSpecification", - "RankedMax", - "RankedMin", - "RarerProbability", - "Raster", - "Raster3D", - "Raster3DBox", - "Raster3DBoxOptions", - "RasterArray", - "RasterBox", - "RasterBoxOptions", - "Rasterize", - "RasterSize", - "Rational", - "RationalExpressionQ", - "RationalFunctions", - "Rationalize", - "Rationals", - "Ratios", - "RawArray", - "RawBoxes", - "RawData", - "RawMedium", - "RayleighDistribution", - "Re", - "ReactionBalance", - "ReactionBalancedQ", - "ReactionPDETerm", - "Read", - "ReadByteArray", - "ReadLine", - "ReadList", - "ReadProtected", - "ReadString", - "Real", - "RealAbs", - "RealBlockDiagonalForm", - "RealDigits", - "RealExponent", - "Reals", - "RealSign", - "Reap", - "RebuildPacletData", - "RecalibrationFunction", - "RecognitionPrior", - "RecognitionThreshold", - "ReconstructionMesh", - "Record", - "RecordLists", - "RecordSeparators", - "Rectangle", - "RectangleBox", - "RectangleBoxOptions", - "RectangleChart", - "RectangleChart3D", - "RectangularRepeatingElement", - "RecurrenceFilter", - "RecurrenceTable", - "RecurringDigitsForm", - "Red", - "Reduce", - "RefBox", - "ReferenceLineStyle", - "ReferenceMarkers", - "ReferenceMarkerStyle", - "Refine", - "ReflectionMatrix", - "ReflectionTransform", - "Refresh", - "RefreshRate", - "Region", - "RegionBinarize", - "RegionBoundary", - "RegionBoundaryStyle", - "RegionBounds", - "RegionCentroid", - "RegionCongruent", - "RegionConvert", - "RegionDifference", - "RegionDilation", - "RegionDimension", - "RegionDisjoint", - "RegionDistance", - "RegionDistanceFunction", - "RegionEmbeddingDimension", - "RegionEqual", - "RegionErosion", - "RegionFillingStyle", - "RegionFit", - "RegionFunction", - "RegionImage", - "RegionIntersection", - "RegionMeasure", - "RegionMember", - "RegionMemberFunction", - "RegionMoment", - "RegionNearest", - "RegionNearestFunction", - "RegionPlot", - "RegionPlot3D", - "RegionProduct", - "RegionQ", - "RegionResize", - "RegionSimilar", - "RegionSize", - "RegionSymmetricDifference", - "RegionUnion", - "RegionWithin", - "RegisterExternalEvaluator", - "RegularExpression", - "Regularization", - "RegularlySampledQ", - "RegularPolygon", - "ReIm", - "ReImLabels", - "ReImPlot", - "ReImStyle", - "Reinstall", - "RelationalDatabase", - "RelationGraph", - "Release", - "ReleaseHold", - "ReliabilityDistribution", - "ReliefImage", - "ReliefPlot", - "RemoteAuthorizationCaching", - "RemoteBatchJobAbort", - "RemoteBatchJobObject", - "RemoteBatchJobs", - "RemoteBatchMapSubmit", - "RemoteBatchSubmissionEnvironment", - "RemoteBatchSubmit", - "RemoteConnect", - "RemoteConnectionObject", - "RemoteEvaluate", - "RemoteFile", - "RemoteInputFiles", - "RemoteKernelObject", - "RemoteProviderSettings", - "RemoteRun", - "RemoteRunProcess", - "RemovalConditions", - "Remove", - "RemoveAlphaChannel", - "RemoveAsynchronousTask", - "RemoveAudioStream", - "RemoveBackground", - "RemoveChannelListener", - "RemoveChannelSubscribers", - "Removed", - "RemoveDiacritics", - "RemoveInputStreamMethod", - "RemoveOutputStreamMethod", - "RemoveProperty", - "RemoveScheduledTask", - "RemoveUsers", - "RemoveVideoStream", - "RenameDirectory", - "RenameFile", - "RenderAll", - "RenderingOptions", - "RenewalProcess", - "RenkoChart", - "RepairMesh", - "Repeated", - "RepeatedNull", - "RepeatedString", - "RepeatedTiming", - "RepeatingElement", - "Replace", - "ReplaceAll", - "ReplaceAt", - "ReplaceHeldPart", - "ReplaceImageValue", - "ReplaceList", - "ReplacePart", - "ReplacePixelValue", - "ReplaceRepeated", - "ReplicateLayer", - "RequiredPhysicalQuantities", - "Resampling", - "ResamplingAlgorithmData", - "ResamplingMethod", - "Rescale", - "RescalingTransform", - "ResetDirectory", - "ResetScheduledTask", - "ReshapeLayer", - "Residue", - "ResidueSum", - "ResizeLayer", - "Resolve", - "ResolveContextAliases", - "ResourceAcquire", - "ResourceData", - "ResourceFunction", - "ResourceObject", - "ResourceRegister", - "ResourceRemove", - "ResourceSearch", - "ResourceSubmissionObject", - "ResourceSubmit", - "ResourceSystemBase", - "ResourceSystemPath", - "ResourceUpdate", - "ResourceVersion", - "ResponseForm", - "Rest", - "RestartInterval", - "Restricted", - "Resultant", - "ResumePacket", - "Return", - "ReturnCreatesNewCell", - "ReturnEntersInput", - "ReturnExpressionPacket", - "ReturnInputFormPacket", - "ReturnPacket", - "ReturnReceiptFunction", - "ReturnTextPacket", - "Reverse", - "ReverseApplied", - "ReverseBiorthogonalSplineWavelet", - "ReverseElement", - "ReverseEquilibrium", - "ReverseGraph", - "ReverseSort", - "ReverseSortBy", - "ReverseUpEquilibrium", - "RevolutionAxis", - "RevolutionPlot3D", - "RGBColor", - "RiccatiSolve", - "RiceDistribution", - "RidgeFilter", - "RiemannR", - "RiemannSiegelTheta", - "RiemannSiegelZ", - "RiemannXi", - "Riffle", - "Right", - "RightArrow", - "RightArrowBar", - "RightArrowLeftArrow", - "RightComposition", - "RightCosetRepresentative", - "RightDownTeeVector", - "RightDownVector", - "RightDownVectorBar", - "RightTee", - "RightTeeArrow", - "RightTeeVector", - "RightTriangle", - "RightTriangleBar", - "RightTriangleEqual", - "RightUpDownVector", - "RightUpTeeVector", - "RightUpVector", - "RightUpVectorBar", - "RightVector", - "RightVectorBar", - "RipleyK", - "RipleyRassonRegion", - "RiskAchievementImportance", - "RiskReductionImportance", - "RobustConvexOptimization", - "RogersTanimotoDissimilarity", - "RollPitchYawAngles", - "RollPitchYawMatrix", - "RomanNumeral", - "Root", - "RootApproximant", - "RootIntervals", - "RootLocusPlot", - "RootMeanSquare", - "RootOfUnityQ", - "RootReduce", - "Roots", - "RootSum", - "RootTree", - "Rotate", - "RotateLabel", - "RotateLeft", - "RotateRight", - "RotationAction", - "RotationBox", - "RotationBoxOptions", - "RotationMatrix", - "RotationTransform", - "Round", - "RoundImplies", - "RoundingRadius", - "Row", - "RowAlignments", - "RowBackgrounds", - "RowBox", - "RowHeights", - "RowLines", - "RowMinHeight", - "RowReduce", - "RowsEqual", - "RowSpacings", - "RSolve", - "RSolveValue", - "RudinShapiro", - "RudvalisGroupRu", - "Rule", - "RuleCondition", - "RuleDelayed", - "RuleForm", - "RulePlot", - "RulerUnits", - "RulesTree", - "Run", - "RunProcess", - "RunScheduledTask", - "RunThrough", - "RuntimeAttributes", - "RuntimeOptions", - "RussellRaoDissimilarity", - "SameAs", - "SameQ", - "SameTest", - "SameTestProperties", - "SampledEntityClass", - "SampleDepth", - "SampledSoundFunction", - "SampledSoundList", - "SampleRate", - "SamplingPeriod", - "SARIMAProcess", - "SARMAProcess", - "SASTriangle", - "SatelliteData", - "SatisfiabilityCount", - "SatisfiabilityInstances", - "SatisfiableQ", - "Saturday", - "Save", - "Saveable", - "SaveAutoDelete", - "SaveConnection", - "SaveDefinitions", - "SavitzkyGolayMatrix", - "SawtoothWave", - "Scale", - "Scaled", - "ScaleDivisions", - "ScaledMousePosition", - "ScaleOrigin", - "ScalePadding", - "ScaleRanges", - "ScaleRangeStyle", - "ScalingFunctions", - "ScalingMatrix", - "ScalingTransform", - "Scan", - "ScheduledTask", - "ScheduledTaskActiveQ", - "ScheduledTaskInformation", - "ScheduledTaskInformationData", - "ScheduledTaskObject", - "ScheduledTasks", - "SchurDecomposition", - "ScientificForm", - "ScientificNotationThreshold", - "ScorerGi", - "ScorerGiPrime", - "ScorerHi", - "ScorerHiPrime", - "ScreenRectangle", - "ScreenStyleEnvironment", - "ScriptBaselineShifts", - "ScriptForm", - "ScriptLevel", - "ScriptMinSize", - "ScriptRules", - "ScriptSizeMultipliers", - "Scrollbars", - "ScrollingOptions", - "ScrollPosition", - "SearchAdjustment", - "SearchIndexObject", - "SearchIndices", - "SearchQueryString", - "SearchResultObject", - "Sec", - "Sech", - "SechDistribution", - "SecondOrderConeOptimization", - "SectionGrouping", - "SectorChart", - "SectorChart3D", - "SectorOrigin", - "SectorSpacing", - "SecuredAuthenticationKey", - "SecuredAuthenticationKeys", - "SecurityCertificate", - "SeedRandom", - "Select", - "Selectable", - "SelectComponents", - "SelectedCells", - "SelectedNotebook", - "SelectFirst", - "Selection", - "SelectionAnimate", - "SelectionCell", - "SelectionCellCreateCell", - "SelectionCellDefaultStyle", - "SelectionCellParentStyle", - "SelectionCreateCell", - "SelectionDebuggerTag", - "SelectionEvaluate", - "SelectionEvaluateCreateCell", - "SelectionMove", - "SelectionPlaceholder", - "SelectWithContents", - "SelfLoops", - "SelfLoopStyle", - "SemanticImport", - "SemanticImportString", - "SemanticInterpretation", - "SemialgebraicComponentInstances", - "SemidefiniteOptimization", - "SendMail", - "SendMessage", - "Sequence", - "SequenceAlignment", - "SequenceAttentionLayer", - "SequenceCases", - "SequenceCount", - "SequenceFold", - "SequenceFoldList", - "SequenceForm", - "SequenceHold", - "SequenceIndicesLayer", - "SequenceLastLayer", - "SequenceMostLayer", - "SequencePosition", - "SequencePredict", - "SequencePredictorFunction", - "SequenceReplace", - "SequenceRestLayer", - "SequenceReverseLayer", - "SequenceSplit", - "Series", - "SeriesCoefficient", - "SeriesData", - "SeriesTermGoal", - "ServiceConnect", - "ServiceDisconnect", - "ServiceExecute", - "ServiceObject", - "ServiceRequest", - "ServiceResponse", - "ServiceSubmit", - "SessionSubmit", - "SessionTime", - "Set", - "SetAccuracy", - "SetAlphaChannel", - "SetAttributes", - "Setbacks", - "SetCloudDirectory", - "SetCookies", - "SetDelayed", - "SetDirectory", - "SetEnvironment", - "SetFileDate", - "SetFileFormatProperties", - "SetOptions", - "SetOptionsPacket", - "SetPermissions", - "SetPrecision", - "SetProperty", - "SetSecuredAuthenticationKey", - "SetSelectedNotebook", - "SetSharedFunction", - "SetSharedVariable", - "SetStreamPosition", - "SetSystemModel", - "SetSystemOptions", - "Setter", - "SetterBar", - "SetterBox", - "SetterBoxOptions", - "Setting", - "SetUsers", - "Shading", - "Shallow", - "ShannonWavelet", - "ShapiroWilkTest", - "Share", - "SharingList", - "Sharpen", - "ShearingMatrix", - "ShearingTransform", - "ShellRegion", - "ShenCastanMatrix", - "ShiftedGompertzDistribution", - "ShiftRegisterSequence", - "Short", - "ShortDownArrow", - "Shortest", - "ShortestMatch", - "ShortestPathFunction", - "ShortLeftArrow", - "ShortRightArrow", - "ShortTimeFourier", - "ShortTimeFourierData", - "ShortUpArrow", - "Show", - "ShowAutoConvert", - "ShowAutoSpellCheck", - "ShowAutoStyles", - "ShowCellBracket", - "ShowCellLabel", - "ShowCellTags", - "ShowClosedCellArea", - "ShowCodeAssist", - "ShowContents", - "ShowControls", - "ShowCursorTracker", - "ShowGroupOpenCloseIcon", - "ShowGroupOpener", - "ShowInvisibleCharacters", - "ShowPageBreaks", - "ShowPredictiveInterface", - "ShowSelection", - "ShowShortBoxForm", - "ShowSpecialCharacters", - "ShowStringCharacters", - "ShowSyntaxStyles", - "ShrinkingDelay", - "ShrinkWrapBoundingBox", - "SiderealTime", - "SiegelTheta", - "SiegelTukeyTest", - "SierpinskiCurve", - "SierpinskiMesh", - "Sign", - "Signature", - "SignedRankTest", - "SignedRegionDistance", - "SignificanceLevel", - "SignPadding", - "SignTest", - "SimilarityRules", - "SimpleGraph", - "SimpleGraphQ", - "SimplePolygonQ", - "SimplePolyhedronQ", - "Simplex", - "Simplify", - "Sin", - "Sinc", - "SinghMaddalaDistribution", - "SingleEvaluation", - "SingleLetterItalics", - "SingleLetterStyle", - "SingularValueDecomposition", - "SingularValueList", - "SingularValuePlot", - "SingularValues", - "Sinh", - "SinhIntegral", - "SinIntegral", - "SixJSymbol", - "Skeleton", - "SkeletonTransform", - "SkellamDistribution", - "Skewness", - "SkewNormalDistribution", - "SkinStyle", - "Skip", - "SliceContourPlot3D", - "SliceDensityPlot3D", - "SliceDistribution", - "SliceVectorPlot3D", - "Slider", - "Slider2D", - "Slider2DBox", - "Slider2DBoxOptions", - "SliderBox", - "SliderBoxOptions", - "SlideShowVideo", - "SlideView", - "Slot", - "SlotSequence", - "Small", - "SmallCircle", - "Smaller", - "SmithDecomposition", - "SmithDelayCompensator", - "SmithWatermanSimilarity", - "SmoothDensityHistogram", - "SmoothHistogram", - "SmoothHistogram3D", - "SmoothKernelDistribution", - "SmoothPointDensity", - "SnDispersion", - "Snippet", - "SnippetsVideo", - "SnubPolyhedron", - "SocialMediaData", - "Socket", - "SocketConnect", - "SocketListen", - "SocketListener", - "SocketObject", - "SocketOpen", - "SocketReadMessage", - "SocketReadyQ", - "Sockets", - "SocketWaitAll", - "SocketWaitNext", - "SoftmaxLayer", - "SokalSneathDissimilarity", - "SolarEclipse", - "SolarSystemFeatureData", - "SolarTime", - "SolidAngle", - "SolidBoundaryLoadValue", - "SolidData", - "SolidDisplacementCondition", - "SolidFixedCondition", - "SolidMechanicsPDEComponent", - "SolidMechanicsStrain", - "SolidMechanicsStress", - "SolidRegionQ", - "Solve", - "SolveAlways", - "SolveDelayed", - "SolveValues", - "Sort", - "SortBy", - "SortedBy", - "SortedEntityClass", - "Sound", - "SoundAndGraphics", - "SoundNote", - "SoundVolume", - "SourceLink", - "SourcePDETerm", - "Sow", - "Space", - "SpaceCurveData", - "SpaceForm", - "Spacer", - "Spacings", - "Span", - "SpanAdjustments", - "SpanCharacterRounding", - "SpanFromAbove", - "SpanFromBoth", - "SpanFromLeft", - "SpanLineThickness", - "SpanMaxSize", - "SpanMinSize", - "SpanningCharacters", - "SpanSymmetric", - "SparseArray", - "SparseArrayQ", - "SpatialBinnedPointData", - "SpatialBoundaryCorrection", - "SpatialEstimate", - "SpatialEstimatorFunction", - "SpatialGraphDistribution", - "SpatialJ", - "SpatialMedian", - "SpatialNoiseLevel", - "SpatialObservationRegionQ", - "SpatialPointData", - "SpatialPointSelect", - "SpatialRandomnessTest", - "SpatialTransformationLayer", - "SpatialTrendFunction", - "Speak", - "SpeakerMatchQ", - "SpearmanRankTest", - "SpearmanRho", - "SpeciesData", - "SpecificityGoal", - "SpectralLineData", - "Spectrogram", - "SpectrogramArray", - "Specularity", - "SpeechCases", - "SpeechInterpreter", - "SpeechRecognize", - "SpeechSynthesize", - "SpellingCorrection", - "SpellingCorrectionList", - "SpellingDictionaries", - "SpellingDictionariesPath", - "SpellingOptions", - "Sphere", - "SphereBox", - "SphereBoxOptions", - "SpherePoints", - "SphericalBesselJ", - "SphericalBesselY", - "SphericalHankelH1", - "SphericalHankelH2", - "SphericalHarmonicY", - "SphericalPlot3D", - "SphericalRegion", - "SphericalShell", - "SpheroidalEigenvalue", - "SpheroidalJoiningFactor", - "SpheroidalPS", - "SpheroidalPSPrime", - "SpheroidalQS", - "SpheroidalQSPrime", - "SpheroidalRadialFactor", - "SpheroidalS1", - "SpheroidalS1Prime", - "SpheroidalS2", - "SpheroidalS2Prime", - "Splice", - "SplicedDistribution", - "SplineClosed", - "SplineDegree", - "SplineKnots", - "SplineWeights", - "Split", - "SplitBy", - "SpokenString", - "SpotLight", - "Sqrt", - "SqrtBox", - "SqrtBoxOptions", - "Square", - "SquaredEuclideanDistance", - "SquareFreeQ", - "SquareIntersection", - "SquareMatrixQ", - "SquareRepeatingElement", - "SquaresR", - "SquareSubset", - "SquareSubsetEqual", - "SquareSuperset", - "SquareSupersetEqual", - "SquareUnion", - "SquareWave", - "SSSTriangle", - "StabilityMargins", - "StabilityMarginsStyle", - "StableDistribution", - "Stack", - "StackBegin", - "StackComplete", - "StackedDateListPlot", - "StackedListPlot", - "StackInhibit", - "StadiumShape", - "StandardAtmosphereData", - "StandardDeviation", - "StandardDeviationFilter", - "StandardForm", - "Standardize", - "Standardized", - "StandardOceanData", - "StandbyDistribution", - "Star", - "StarClusterData", - "StarData", - "StarGraph", - "StartAsynchronousTask", - "StartExternalSession", - "StartingStepSize", - "StartOfLine", - "StartOfString", - "StartProcess", - "StartScheduledTask", - "StartupSound", - "StartWebSession", - "StateDimensions", - "StateFeedbackGains", - "StateOutputEstimator", - "StateResponse", - "StateSpaceModel", - "StateSpaceRealization", - "StateSpaceTransform", - "StateTransformationLinearize", - "StationaryDistribution", - "StationaryWaveletPacketTransform", - "StationaryWaveletTransform", - "StatusArea", - "StatusCentrality", - "StepMonitor", - "StereochemistryElements", - "StieltjesGamma", - "StippleShading", - "StirlingS1", - "StirlingS2", - "StopAsynchronousTask", - "StoppingPowerData", - "StopScheduledTask", - "StrataVariables", - "StratonovichProcess", - "StraussHardcorePointProcess", - "StraussPointProcess", - "StreamColorFunction", - "StreamColorFunctionScaling", - "StreamDensityPlot", - "StreamMarkers", - "StreamPlot", - "StreamPlot3D", - "StreamPoints", - "StreamPosition", - "Streams", - "StreamScale", - "StreamStyle", - "StrictInequalities", - "String", - "StringBreak", - "StringByteCount", - "StringCases", - "StringContainsQ", - "StringCount", - "StringDelete", - "StringDrop", - "StringEndsQ", - "StringExpression", - "StringExtract", - "StringForm", - "StringFormat", - "StringFormatQ", - "StringFreeQ", - "StringInsert", - "StringJoin", - "StringLength", - "StringMatchQ", - "StringPadLeft", - "StringPadRight", - "StringPart", - "StringPartition", - "StringPosition", - "StringQ", - "StringRepeat", - "StringReplace", - "StringReplaceList", - "StringReplacePart", - "StringReverse", - "StringRiffle", - "StringRotateLeft", - "StringRotateRight", - "StringSkeleton", - "StringSplit", - "StringStartsQ", - "StringTake", - "StringTakeDrop", - "StringTemplate", - "StringToByteArray", - "StringToStream", - "StringTrim", - "StripBoxes", - "StripOnInput", - "StripStyleOnPaste", - "StripWrapperBoxes", - "StrokeForm", - "Struckthrough", - "StructuralImportance", - "StructuredArray", - "StructuredArrayHeadQ", - "StructuredSelection", - "StruveH", - "StruveL", - "Stub", - "StudentTDistribution", - "Style", - "StyleBox", - "StyleBoxAutoDelete", - "StyleData", - "StyleDefinitions", - "StyleForm", - "StyleHints", - "StyleKeyMapping", - "StyleMenuListing", - "StyleNameDialogSettings", - "StyleNames", - "StylePrint", - "StyleSheetPath", - "Subdivide", - "Subfactorial", - "Subgraph", - "SubMinus", - "SubPlus", - "SubresultantPolynomialRemainders", - "SubresultantPolynomials", - "Subresultants", - "Subscript", - "SubscriptBox", - "SubscriptBoxOptions", - "Subscripted", - "Subsequences", - "Subset", - "SubsetCases", - "SubsetCount", - "SubsetEqual", - "SubsetMap", - "SubsetPosition", - "SubsetQ", - "SubsetReplace", - "Subsets", - "SubStar", - "SubstitutionSystem", - "Subsuperscript", - "SubsuperscriptBox", - "SubsuperscriptBoxOptions", - "SubtitleEncoding", - "SubtitleTrackSelection", - "Subtract", - "SubtractFrom", - "SubtractSides", - "SubValues", - "Succeeds", - "SucceedsEqual", - "SucceedsSlantEqual", - "SucceedsTilde", - "Success", - "SuchThat", - "Sum", - "SumConvergence", - "SummationLayer", - "Sunday", - "SunPosition", - "Sunrise", - "Sunset", - "SuperDagger", - "SuperMinus", - "SupernovaData", - "SuperPlus", - "Superscript", - "SuperscriptBox", - "SuperscriptBoxOptions", - "Superset", - "SupersetEqual", - "SuperStar", - "Surd", - "SurdForm", - "SurfaceAppearance", - "SurfaceArea", - "SurfaceColor", - "SurfaceData", - "SurfaceGraphics", - "SurvivalDistribution", - "SurvivalFunction", - "SurvivalModel", - "SurvivalModelFit", - "SuspendPacket", - "SuzukiDistribution", - "SuzukiGroupSuz", - "SwatchLegend", - "Switch", - "Symbol", - "SymbolName", - "SymletWavelet", - "Symmetric", - "SymmetricDifference", - "SymmetricGroup", - "SymmetricKey", - "SymmetricMatrixQ", - "SymmetricPolynomial", - "SymmetricReduction", - "Symmetrize", - "SymmetrizedArray", - "SymmetrizedArrayRules", - "SymmetrizedDependentComponents", - "SymmetrizedIndependentComponents", - "SymmetrizedReplacePart", - "SynchronousInitialization", - "SynchronousUpdating", - "Synonyms", - "Syntax", - "SyntaxForm", - "SyntaxInformation", - "SyntaxLength", - "SyntaxPacket", - "SyntaxQ", - "SynthesizeMissingValues", - "SystemCredential", - "SystemCredentialData", - "SystemCredentialKey", - "SystemCredentialKeys", - "SystemCredentialStoreObject", - "SystemDialogInput", - "SystemException", - "SystemGet", - "SystemHelpPath", - "SystemInformation", - "SystemInformationData", - "SystemInstall", - "SystemModel", - "SystemModeler", - "SystemModelExamples", - "SystemModelLinearize", - "SystemModelMeasurements", - "SystemModelParametricSimulate", - "SystemModelPlot", - "SystemModelProgressReporting", - "SystemModelReliability", - "SystemModels", - "SystemModelSimulate", - "SystemModelSimulateSensitivity", - "SystemModelSimulationData", - "SystemOpen", - "SystemOptions", - "SystemProcessData", - "SystemProcesses", - "SystemsConnectionsModel", - "SystemsModelControllerData", - "SystemsModelDelay", - "SystemsModelDelayApproximate", - "SystemsModelDelete", - "SystemsModelDimensions", - "SystemsModelExtract", - "SystemsModelFeedbackConnect", - "SystemsModelLabels", - "SystemsModelLinearity", - "SystemsModelMerge", - "SystemsModelOrder", - "SystemsModelParallelConnect", - "SystemsModelSeriesConnect", - "SystemsModelStateFeedbackConnect", - "SystemsModelVectorRelativeOrders", - "SystemStub", - "SystemTest", - "Tab", - "TabFilling", - "Table", - "TableAlignments", - "TableDepth", - "TableDirections", - "TableForm", - "TableHeadings", - "TableSpacing", - "TableView", - "TableViewBox", - "TableViewBoxAlignment", - "TableViewBoxBackground", - "TableViewBoxHeaders", - "TableViewBoxItemSize", - "TableViewBoxItemStyle", - "TableViewBoxOptions", - "TabSpacings", - "TabView", - "TabViewBox", - "TabViewBoxOptions", - "TagBox", - "TagBoxNote", - "TagBoxOptions", - "TaggingRules", - "TagSet", - "TagSetDelayed", - "TagStyle", - "TagUnset", - "Take", - "TakeDrop", - "TakeLargest", - "TakeLargestBy", - "TakeList", - "TakeSmallest", - "TakeSmallestBy", - "TakeWhile", - "Tally", - "Tan", - "Tanh", - "TargetDevice", - "TargetFunctions", - "TargetSystem", - "TargetUnits", - "TaskAbort", - "TaskExecute", - "TaskObject", - "TaskRemove", - "TaskResume", - "Tasks", - "TaskSuspend", - "TaskWait", - "TautologyQ", - "TelegraphProcess", - "TemplateApply", - "TemplateArgBox", - "TemplateBox", - "TemplateBoxOptions", - "TemplateEvaluate", - "TemplateExpression", - "TemplateIf", - "TemplateObject", - "TemplateSequence", - "TemplateSlot", - "TemplateSlotSequence", - "TemplateUnevaluated", - "TemplateVerbatim", - "TemplateWith", - "TemporalData", - "TemporalRegularity", - "Temporary", - "TemporaryVariable", - "TensorContract", - "TensorDimensions", - "TensorExpand", - "TensorProduct", - "TensorQ", - "TensorRank", - "TensorReduce", - "TensorSymmetry", - "TensorTranspose", - "TensorWedge", - "TerminatedEvaluation", - "TernaryListPlot", - "TernaryPlotCorners", - "TestID", - "TestReport", - "TestReportObject", - "TestResultObject", - "Tetrahedron", - "TetrahedronBox", - "TetrahedronBoxOptions", - "TeXForm", - "TeXSave", - "Text", - "Text3DBox", - "Text3DBoxOptions", - "TextAlignment", - "TextBand", - "TextBoundingBox", - "TextBox", - "TextCases", - "TextCell", - "TextClipboardType", - "TextContents", - "TextData", - "TextElement", - "TextForm", - "TextGrid", - "TextJustification", - "TextLine", - "TextPacket", - "TextParagraph", - "TextPosition", - "TextRecognize", - "TextSearch", - "TextSearchReport", - "TextSentences", - "TextString", - "TextStructure", - "TextStyle", - "TextTranslation", - "Texture", - "TextureCoordinateFunction", - "TextureCoordinateScaling", - "TextWords", - "Therefore", - "ThermodynamicData", - "ThermometerGauge", - "Thick", - "Thickness", - "Thin", - "Thinning", - "ThisLink", - "ThomasPointProcess", - "ThompsonGroupTh", - "Thread", - "Threaded", - "ThreadingLayer", - "ThreeJSymbol", - "Threshold", - "Through", - "Throw", - "ThueMorse", - "Thumbnail", - "Thursday", - "TickDirection", - "TickLabelOrientation", - "TickLabelPositioning", - "TickLabels", - "TickLengths", - "TickPositions", - "Ticks", - "TicksStyle", - "TideData", - "Tilde", - "TildeEqual", - "TildeFullEqual", - "TildeTilde", - "TimeConstrained", - "TimeConstraint", - "TimeDirection", - "TimeFormat", - "TimeGoal", - "TimelinePlot", - "TimeObject", - "TimeObjectQ", - "TimeRemaining", - "Times", - "TimesBy", - "TimeSeries", - "TimeSeriesAggregate", - "TimeSeriesForecast", - "TimeSeriesInsert", - "TimeSeriesInvertibility", - "TimeSeriesMap", - "TimeSeriesMapThread", - "TimeSeriesModel", - "TimeSeriesModelFit", - "TimeSeriesResample", - "TimeSeriesRescale", - "TimeSeriesShift", - "TimeSeriesThread", - "TimeSeriesWindow", - "TimeSystem", - "TimeSystemConvert", - "TimeUsed", - "TimeValue", - "TimeWarpingCorrespondence", - "TimeWarpingDistance", - "TimeZone", - "TimeZoneConvert", - "TimeZoneOffset", - "Timing", - "Tiny", - "TitleGrouping", - "TitsGroupT", - "ToBoxes", - "ToCharacterCode", - "ToColor", - "ToContinuousTimeModel", - "ToDate", - "Today", - "ToDiscreteTimeModel", - "ToEntity", - "ToeplitzMatrix", - "ToExpression", - "ToFileName", - "Together", - "Toggle", - "ToggleFalse", - "Toggler", - "TogglerBar", - "TogglerBox", - "TogglerBoxOptions", - "ToHeldExpression", - "ToInvertibleTimeSeries", - "TokenWords", - "Tolerance", - "ToLowerCase", - "Tomorrow", - "ToNumberField", - "TooBig", - "Tooltip", - "TooltipBox", - "TooltipBoxOptions", - "TooltipDelay", - "TooltipStyle", - "ToonShading", - "Top", - "TopHatTransform", - "ToPolarCoordinates", - "TopologicalSort", - "ToRadicals", - "ToRawPointer", - "ToRules", - "Torus", - "TorusGraph", - "ToSphericalCoordinates", - "ToString", - "Total", - "TotalHeight", - "TotalLayer", - "TotalVariationFilter", - "TotalWidth", - "TouchPosition", - "TouchscreenAutoZoom", - "TouchscreenControlPlacement", - "ToUpperCase", - "TourVideo", - "Tr", - "Trace", - "TraceAbove", - "TraceAction", - "TraceBackward", - "TraceDepth", - "TraceDialog", - "TraceForward", - "TraceInternal", - "TraceLevel", - "TraceOff", - "TraceOn", - "TraceOriginal", - "TracePrint", - "TraceScan", - "TrackCellChangeTimes", - "TrackedSymbols", - "TrackingFunction", - "TracyWidomDistribution", - "TradingChart", - "TraditionalForm", - "TraditionalFunctionNotation", - "TraditionalNotation", - "TraditionalOrder", - "TrainImageContentDetector", - "TrainingProgressCheckpointing", - "TrainingProgressFunction", - "TrainingProgressMeasurements", - "TrainingProgressReporting", - "TrainingStoppingCriterion", - "TrainingUpdateSchedule", - "TrainTextContentDetector", - "TransferFunctionCancel", - "TransferFunctionExpand", - "TransferFunctionFactor", - "TransferFunctionModel", - "TransferFunctionPoles", - "TransferFunctionTransform", - "TransferFunctionZeros", - "TransformationClass", - "TransformationFunction", - "TransformationFunctions", - "TransformationMatrix", - "TransformedDistribution", - "TransformedField", - "TransformedProcess", - "TransformedRegion", - "TransitionDirection", - "TransitionDuration", - "TransitionEffect", - "TransitiveClosureGraph", - "TransitiveReductionGraph", - "Translate", - "TranslationOptions", - "TranslationTransform", - "Transliterate", - "Transparent", - "TransparentColor", - "Transpose", - "TransposeLayer", - "TrapEnterKey", - "TrapSelection", - "TravelDirections", - "TravelDirectionsData", - "TravelDistance", - "TravelDistanceList", - "TravelMethod", - "TravelTime", - "Tree", - "TreeCases", - "TreeChildren", - "TreeCount", - "TreeData", - "TreeDelete", - "TreeDepth", - "TreeElementCoordinates", - "TreeElementLabel", - "TreeElementLabelFunction", - "TreeElementLabelStyle", - "TreeElementShape", - "TreeElementShapeFunction", - "TreeElementSize", - "TreeElementSizeFunction", - "TreeElementStyle", - "TreeElementStyleFunction", - "TreeExpression", - "TreeExtract", - "TreeFold", - "TreeForm", - "TreeGraph", - "TreeGraphQ", - "TreeInsert", - "TreeLayout", - "TreeLeafCount", - "TreeLeafQ", - "TreeLeaves", - "TreeLevel", - "TreeMap", - "TreeMapAt", - "TreeOutline", - "TreePlot", - "TreePosition", - "TreeQ", - "TreeReplacePart", - "TreeRules", - "TreeScan", - "TreeSelect", - "TreeSize", - "TreeTraversalOrder", - "TrendStyle", - "Triangle", - "TriangleCenter", - "TriangleConstruct", - "TriangleMeasurement", - "TriangleWave", - "TriangularDistribution", - "TriangulateMesh", - "Trig", - "TrigExpand", - "TrigFactor", - "TrigFactorList", - "Trigger", - "TrigReduce", - "TrigToExp", - "TrimmedMean", - "TrimmedVariance", - "TropicalStormData", - "True", - "TrueQ", - "TruncatedDistribution", - "TruncatedPolyhedron", - "TsallisQExponentialDistribution", - "TsallisQGaussianDistribution", - "TTest", - "Tube", - "TubeBezierCurveBox", - "TubeBezierCurveBoxOptions", - "TubeBox", - "TubeBoxOptions", - "TubeBSplineCurveBox", - "TubeBSplineCurveBoxOptions", - "Tuesday", - "TukeyLambdaDistribution", - "TukeyWindow", - "TunnelData", - "Tuples", - "TuranGraph", - "TuringMachine", - "TuttePolynomial", - "TwoWayRule", - "Typed", - "TypeDeclaration", - "TypeEvaluate", - "TypeHint", - "TypeOf", - "TypeSpecifier", - "UnateQ", - "Uncompress", - "UnconstrainedParameters", - "Undefined", - "UnderBar", - "Underflow", - "Underlined", - "Underoverscript", - "UnderoverscriptBox", - "UnderoverscriptBoxOptions", - "Underscript", - "UnderscriptBox", - "UnderscriptBoxOptions", - "UnderseaFeatureData", - "UndirectedEdge", - "UndirectedGraph", - "UndirectedGraphQ", - "UndoOptions", - "UndoTrackedVariables", - "Unequal", - "UnequalTo", - "Unevaluated", - "UniformDistribution", - "UniformGraphDistribution", - "UniformPolyhedron", - "UniformSumDistribution", - "Uninstall", - "Union", - "UnionedEntityClass", - "UnionPlus", - "Unique", - "UniqueElements", - "UnitaryMatrixQ", - "UnitBox", - "UnitConvert", - "UnitDimensions", - "Unitize", - "UnitRootTest", - "UnitSimplify", - "UnitStep", - "UnitSystem", - "UnitTriangle", - "UnitVector", - "UnitVectorLayer", - "UnityDimensions", - "UniverseModelData", - "UniversityData", - "UnixTime", - "UnlabeledTree", - "UnmanageObject", - "Unprotect", - "UnregisterExternalEvaluator", - "UnsameQ", - "UnsavedVariables", - "Unset", - "UnsetShared", - "Until", - "UntrackedVariables", - "Up", - "UpArrow", - "UpArrowBar", - "UpArrowDownArrow", - "Update", - "UpdateDynamicObjects", - "UpdateDynamicObjectsSynchronous", - "UpdateInterval", - "UpdatePacletSites", - "UpdateSearchIndex", - "UpDownArrow", - "UpEquilibrium", - "UpperCaseQ", - "UpperLeftArrow", - "UpperRightArrow", - "UpperTriangularize", - "UpperTriangularMatrix", - "UpperTriangularMatrixQ", - "Upsample", - "UpSet", - "UpSetDelayed", - "UpTee", - "UpTeeArrow", - "UpTo", - "UpValues", - "URL", - "URLBuild", - "URLDecode", - "URLDispatcher", - "URLDownload", - "URLDownloadSubmit", - "URLEncode", - "URLExecute", - "URLExpand", - "URLFetch", - "URLFetchAsynchronous", - "URLParse", - "URLQueryDecode", - "URLQueryEncode", - "URLRead", - "URLResponseTime", - "URLSave", - "URLSaveAsynchronous", - "URLShorten", - "URLSubmit", - "UseEmbeddedLibrary", - "UseGraphicsRange", - "UserDefinedWavelet", - "Using", - "UsingFrontEnd", - "UtilityFunction", - "V2Get", - "ValenceErrorHandling", - "ValenceFilling", - "ValidationLength", - "ValidationSet", - "ValueBox", - "ValueBoxOptions", - "ValueDimensions", - "ValueForm", - "ValuePreprocessingFunction", - "ValueQ", - "Values", - "ValuesData", - "VandermondeMatrix", - "Variables", - "Variance", - "VarianceEquivalenceTest", - "VarianceEstimatorFunction", - "VarianceGammaDistribution", - "VarianceGammaPointProcess", - "VarianceTest", - "VariogramFunction", - "VariogramModel", - "VectorAngle", - "VectorAround", - "VectorAspectRatio", - "VectorColorFunction", - "VectorColorFunctionScaling", - "VectorDensityPlot", - "VectorDisplacementPlot", - "VectorDisplacementPlot3D", - "VectorGlyphData", - "VectorGreater", - "VectorGreaterEqual", - "VectorLess", - "VectorLessEqual", - "VectorMarkers", - "VectorPlot", - "VectorPlot3D", - "VectorPoints", - "VectorQ", - "VectorRange", - "Vectors", - "VectorScale", - "VectorScaling", - "VectorSizes", - "VectorStyle", - "Vee", - "Verbatim", - "Verbose", - "VerificationTest", - "VerifyConvergence", - "VerifyDerivedKey", - "VerifyDigitalSignature", - "VerifyFileSignature", - "VerifyInterpretation", - "VerifySecurityCertificates", - "VerifySolutions", - "VerifyTestAssumptions", - "VersionedPreferences", - "VertexAdd", - "VertexCapacity", - "VertexChromaticNumber", - "VertexColors", - "VertexComponent", - "VertexConnectivity", - "VertexContract", - "VertexCoordinateRules", - "VertexCoordinates", - "VertexCorrelationSimilarity", - "VertexCosineSimilarity", - "VertexCount", - "VertexCoverQ", - "VertexDataCoordinates", - "VertexDegree", - "VertexDelete", - "VertexDiceSimilarity", - "VertexEccentricity", - "VertexInComponent", - "VertexInComponentGraph", - "VertexInDegree", - "VertexIndex", - "VertexJaccardSimilarity", - "VertexLabeling", - "VertexLabels", - "VertexLabelStyle", - "VertexList", - "VertexNormals", - "VertexOutComponent", - "VertexOutComponentGraph", - "VertexOutDegree", - "VertexQ", - "VertexRenderingFunction", - "VertexReplace", - "VertexShape", - "VertexShapeFunction", - "VertexSize", - "VertexStyle", - "VertexTextureCoordinates", - "VertexTransitiveGraphQ", - "VertexWeight", - "VertexWeightedGraphQ", - "Vertical", - "VerticalBar", - "VerticalForm", - "VerticalGauge", - "VerticalSeparator", - "VerticalSlider", - "VerticalTilde", - "Video", - "VideoCapture", - "VideoCombine", - "VideoDelete", - "VideoEncoding", - "VideoExtractFrames", - "VideoFrameList", - "VideoFrameMap", - "VideoGenerator", - "VideoInsert", - "VideoIntervals", - "VideoJoin", - "VideoMap", - "VideoMapList", - "VideoMapTimeSeries", - "VideoPadding", - "VideoPause", - "VideoPlay", - "VideoQ", - "VideoRecord", - "VideoReplace", - "VideoScreenCapture", - "VideoSplit", - "VideoStop", - "VideoStream", - "VideoStreams", - "VideoTimeStretch", - "VideoTrackSelection", - "VideoTranscode", - "VideoTransparency", - "VideoTrim", - "ViewAngle", - "ViewCenter", - "ViewMatrix", - "ViewPoint", - "ViewPointSelectorSettings", - "ViewPort", - "ViewProjection", - "ViewRange", - "ViewVector", - "ViewVertical", - "VirtualGroupData", - "Visible", - "VisibleCell", - "VoiceStyleData", - "VoigtDistribution", - "VolcanoData", - "Volume", - "VonMisesDistribution", - "VoronoiMesh", - "WaitAll", - "WaitAsynchronousTask", - "WaitNext", - "WaitUntil", - "WakebyDistribution", - "WalleniusHypergeometricDistribution", - "WaringYuleDistribution", - "WarpingCorrespondence", - "WarpingDistance", - "WatershedComponents", - "WatsonUSquareTest", - "WattsStrogatzGraphDistribution", - "WaveletBestBasis", - "WaveletFilterCoefficients", - "WaveletImagePlot", - "WaveletListPlot", - "WaveletMapIndexed", - "WaveletMatrixPlot", - "WaveletPhi", - "WaveletPsi", - "WaveletScale", - "WaveletScalogram", - "WaveletThreshold", - "WavePDEComponent", - "WeaklyConnectedComponents", - "WeaklyConnectedGraphComponents", - "WeaklyConnectedGraphQ", - "WeakStationarity", - "WeatherData", - "WeatherForecastData", - "WebAudioSearch", - "WebColumn", - "WebElementObject", - "WeberE", - "WebExecute", - "WebImage", - "WebImageSearch", - "WebItem", - "WebPageMetaInformation", - "WebRow", - "WebSearch", - "WebSessionObject", - "WebSessions", - "WebWindowObject", - "Wedge", - "Wednesday", - "WeibullDistribution", - "WeierstrassE1", - "WeierstrassE2", - "WeierstrassE3", - "WeierstrassEta1", - "WeierstrassEta2", - "WeierstrassEta3", - "WeierstrassHalfPeriods", - "WeierstrassHalfPeriodW1", - "WeierstrassHalfPeriodW2", - "WeierstrassHalfPeriodW3", - "WeierstrassInvariantG2", - "WeierstrassInvariantG3", - "WeierstrassInvariants", - "WeierstrassP", - "WeierstrassPPrime", - "WeierstrassSigma", - "WeierstrassZeta", - "WeightedAdjacencyGraph", - "WeightedAdjacencyMatrix", - "WeightedData", - "WeightedGraphQ", - "Weights", - "WelchWindow", - "WheelGraph", - "WhenEvent", - "Which", - "While", - "White", - "WhiteNoiseProcess", - "WhitePoint", - "Whitespace", - "WhitespaceCharacter", - "WhittakerM", - "WhittakerW", - "WholeCellGroupOpener", - "WienerFilter", - "WienerProcess", - "WignerD", - "WignerSemicircleDistribution", - "WikidataData", - "WikidataSearch", - "WikipediaData", - "WikipediaSearch", - "WilksW", - "WilksWTest", - "WindDirectionData", - "WindingCount", - "WindingPolygon", - "WindowClickSelect", - "WindowElements", - "WindowFloating", - "WindowFrame", - "WindowFrameElements", - "WindowMargins", - "WindowMovable", - "WindowOpacity", - "WindowPersistentStyles", - "WindowSelected", - "WindowSize", - "WindowStatusArea", - "WindowTitle", - "WindowToolbars", - "WindowWidth", - "WindSpeedData", - "WindVectorData", - "WinsorizedMean", - "WinsorizedVariance", - "WishartMatrixDistribution", - "With", - "WithCleanup", - "WithLock", - "WolframAlpha", - "WolframAlphaDate", - "WolframAlphaQuantity", - "WolframAlphaResult", - "WolframCloudSettings", - "WolframLanguageData", - "Word", - "WordBoundary", - "WordCharacter", - "WordCloud", - "WordCount", - "WordCounts", - "WordData", - "WordDefinition", - "WordFrequency", - "WordFrequencyData", - "WordList", - "WordOrientation", - "WordSearch", - "WordSelectionFunction", - "WordSeparators", - "WordSpacings", - "WordStem", - "WordTranslation", - "WorkingPrecision", - "WrapAround", - "Write", - "WriteLine", - "WriteString", - "Wronskian", - "XMLElement", - "XMLObject", - "XMLTemplate", - "Xnor", - "Xor", - "XYZColor", - "Yellow", - "Yesterday", - "YuleDissimilarity", - "ZernikeR", - "ZeroSymmetric", - "ZeroTest", - "ZeroWidthTimes", - "Zeta", - "ZetaZero", - "ZIPCodeData", - "ZipfDistribution", - "ZoomCenter", - "ZoomFactor", - "ZTest", - "ZTransform", - "$Aborted", - "$ActivationGroupID", - "$ActivationKey", - "$ActivationUserRegistered", - "$AddOnsDirectory", - "$AllowDataUpdates", - "$AllowExternalChannelFunctions", - "$AllowInternet", - "$AssertFunction", - "$Assumptions", - "$AsynchronousTask", - "$AudioDecoders", - "$AudioEncoders", - "$AudioInputDevices", - "$AudioOutputDevices", - "$BaseDirectory", - "$BasePacletsDirectory", - "$BatchInput", - "$BatchOutput", - "$BlockchainBase", - "$BoxForms", - "$ByteOrdering", - "$CacheBaseDirectory", - "$Canceled", - "$ChannelBase", - "$CharacterEncoding", - "$CharacterEncodings", - "$CloudAccountName", - "$CloudBase", - "$CloudConnected", - "$CloudConnection", - "$CloudCreditsAvailable", - "$CloudEvaluation", - "$CloudExpressionBase", - "$CloudObjectNameFormat", - "$CloudObjectURLType", - "$CloudRootDirectory", - "$CloudSymbolBase", - "$CloudUserID", - "$CloudUserUUID", - "$CloudVersion", - "$CloudVersionNumber", - "$CloudWolframEngineVersionNumber", - "$CommandLine", - "$CompilationTarget", - "$CompilerEnvironment", - "$ConditionHold", - "$ConfiguredKernels", - "$Context", - "$ContextAliases", - "$ContextPath", - "$ControlActiveSetting", - "$Cookies", - "$CookieStore", - "$CreationDate", - "$CryptographicEllipticCurveNames", - "$CurrentLink", - "$CurrentTask", - "$CurrentWebSession", - "$DataStructures", - "$DateStringFormat", - "$DefaultAudioInputDevice", - "$DefaultAudioOutputDevice", - "$DefaultFont", - "$DefaultFrontEnd", - "$DefaultImagingDevice", - "$DefaultKernels", - "$DefaultLocalBase", - "$DefaultLocalKernel", - "$DefaultMailbox", - "$DefaultNetworkInterface", - "$DefaultPath", - "$DefaultProxyRules", - "$DefaultRemoteBatchSubmissionEnvironment", - "$DefaultRemoteKernel", - "$DefaultSystemCredentialStore", - "$Display", - "$DisplayFunction", - "$DistributedContexts", - "$DynamicEvaluation", - "$Echo", - "$EmbedCodeEnvironments", - "$EmbeddableServices", - "$EntityStores", - "$Epilog", - "$EvaluationCloudBase", - "$EvaluationCloudObject", - "$EvaluationEnvironment", - "$ExportFormats", - "$ExternalIdentifierTypes", - "$ExternalStorageBase", - "$Failed", - "$FinancialDataSource", - "$FontFamilies", - "$FormatType", - "$FrontEnd", - "$FrontEndSession", - "$GeneratedAssetLocation", - "$GeoEntityTypes", - "$GeoLocation", - "$GeoLocationCity", - "$GeoLocationCountry", - "$GeoLocationPrecision", - "$GeoLocationSource", - "$HistoryLength", - "$HomeDirectory", - "$HTMLExportRules", - "$HTTPCookies", - "$HTTPRequest", - "$IgnoreEOF", - "$ImageFormattingWidth", - "$ImageResolution", - "$ImagingDevice", - "$ImagingDevices", - "$ImportFormats", - "$IncomingMailSettings", - "$InitialDirectory", - "$Initialization", - "$InitializationContexts", - "$Input", - "$InputFileName", - "$InputStreamMethods", - "$Inspector", - "$InstallationDate", - "$InstallationDirectory", - "$InterfaceEnvironment", - "$InterpreterTypes", - "$IterationLimit", - "$KernelCount", - "$KernelID", - "$Language", - "$LaunchDirectory", - "$LibraryPath", - "$LicenseExpirationDate", - "$LicenseID", - "$LicenseProcesses", - "$LicenseServer", - "$LicenseSubprocesses", - "$LicenseType", - "$Line", - "$Linked", - "$LinkSupported", - "$LoadedFiles", - "$LocalBase", - "$LocalSymbolBase", - "$MachineAddresses", - "$MachineDomain", - "$MachineDomains", - "$MachineEpsilon", - "$MachineID", - "$MachineName", - "$MachinePrecision", - "$MachineType", - "$MaxDisplayedChildren", - "$MaxExtraPrecision", - "$MaxLicenseProcesses", - "$MaxLicenseSubprocesses", - "$MaxMachineNumber", - "$MaxNumber", - "$MaxPiecewiseCases", - "$MaxPrecision", - "$MaxRootDegree", - "$MessageGroups", - "$MessageList", - "$MessagePrePrint", - "$Messages", - "$MinMachineNumber", - "$MinNumber", - "$MinorReleaseNumber", - "$MinPrecision", - "$MobilePhone", - "$ModuleNumber", - "$NetworkConnected", - "$NetworkInterfaces", - "$NetworkLicense", - "$NewMessage", - "$NewSymbol", - "$NotebookInlineStorageLimit", - "$Notebooks", - "$NoValue", - "$NumberMarks", - "$Off", - "$OperatingSystem", - "$Output", - "$OutputForms", - "$OutputSizeLimit", - "$OutputStreamMethods", - "$Packages", - "$ParentLink", - "$ParentProcessID", - "$PasswordFile", - "$PatchLevelID", - "$Path", - "$PathnameSeparator", - "$PerformanceGoal", - "$Permissions", - "$PermissionsGroupBase", - "$PersistenceBase", - "$PersistencePath", - "$PipeSupported", - "$PlotTheme", - "$Post", - "$Pre", - "$PreferencesDirectory", - "$PreInitialization", - "$PrePrint", - "$PreRead", - "$PrintForms", - "$PrintLiteral", - "$Printout3DPreviewer", - "$ProcessID", - "$ProcessorCount", - "$ProcessorType", - "$ProductInformation", - "$ProgramName", - "$ProgressReporting", - "$PublisherID", - "$RandomGeneratorState", - "$RandomState", - "$RecursionLimit", - "$RegisteredDeviceClasses", - "$RegisteredUserName", - "$ReleaseNumber", - "$RequesterAddress", - "$RequesterCloudUserID", - "$RequesterCloudUserUUID", - "$RequesterWolframID", - "$RequesterWolframUUID", - "$ResourceSystemBase", - "$ResourceSystemPath", - "$RootDirectory", - "$ScheduledTask", - "$ScriptCommandLine", - "$ScriptInputString", - "$SecuredAuthenticationKeyTokens", - "$ServiceCreditsAvailable", - "$Services", - "$SessionID", - "$SetParentLink", - "$SharedFunctions", - "$SharedVariables", - "$SoundDisplay", - "$SoundDisplayFunction", - "$SourceLink", - "$SSHAuthentication", - "$SubtitleDecoders", - "$SubtitleEncoders", - "$SummaryBoxDataSizeLimit", - "$SuppressInputFormHeads", - "$SynchronousEvaluation", - "$SyntaxHandler", - "$System", - "$SystemCharacterEncoding", - "$SystemCredentialStore", - "$SystemID", - "$SystemMemory", - "$SystemShell", - "$SystemTimeZone", - "$SystemWordLength", - "$TargetSystems", - "$TemplatePath", - "$TemporaryDirectory", - "$TemporaryPrefix", - "$TestFileName", - "$TextStyle", - "$TimedOut", - "$TimeUnit", - "$TimeZone", - "$TimeZoneEntity", - "$TopDirectory", - "$TraceOff", - "$TraceOn", - "$TracePattern", - "$TracePostAction", - "$TracePreAction", - "$UnitSystem", - "$Urgent", - "$UserAddOnsDirectory", - "$UserAgentLanguages", - "$UserAgentMachine", - "$UserAgentName", - "$UserAgentOperatingSystem", - "$UserAgentString", - "$UserAgentVersion", - "$UserBaseDirectory", - "$UserBasePacletsDirectory", - "$UserDocumentsDirectory", - "$Username", - "$UserName", - "$UserURLBase", - "$Version", - "$VersionNumber", - "$VideoDecoders", - "$VideoEncoders", - "$VoiceStyles", - "$WolframDocumentsDirectory", - "$WolframID", - "$WolframUUID" -]; - -/* -Language: Wolfram Language -Description: The Wolfram Language is the programming language used in Wolfram Mathematica, a modern technical computing system spanning most areas of technical computing. -Authors: Patrick Scheibe , Robert Jacobson -Website: https://www.wolfram.com/mathematica/ -Category: scientific -*/ - - -/** @type LanguageFn */ -function mathematica(hljs) { - const regex = hljs.regex; - /* - This rather scary looking matching of Mathematica numbers is carefully explained by Robert Jacobson here: - https://wltools.github.io/LanguageSpec/Specification/Syntax/Number-representations/ - */ - const BASE_RE = /([2-9]|[1-2]\d|[3][0-5])\^\^/; - const BASE_DIGITS_RE = /(\w*\.\w+|\w+\.\w*|\w+)/; - const NUMBER_RE = /(\d*\.\d+|\d+\.\d*|\d+)/; - const BASE_NUMBER_RE = regex.either(regex.concat(BASE_RE, BASE_DIGITS_RE), NUMBER_RE); - - const ACCURACY_RE = /``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/; - const PRECISION_RE = /`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/; - const APPROXIMATE_NUMBER_RE = regex.either(ACCURACY_RE, PRECISION_RE); - - const SCIENTIFIC_NOTATION_RE = /\*\^[+-]?\d+/; - - const MATHEMATICA_NUMBER_RE = regex.concat( - BASE_NUMBER_RE, - regex.optional(APPROXIMATE_NUMBER_RE), - regex.optional(SCIENTIFIC_NOTATION_RE) - ); - - const NUMBERS = { - className: 'number', - relevance: 0, - begin: MATHEMATICA_NUMBER_RE - }; - - const SYMBOL_RE = /[a-zA-Z$][a-zA-Z0-9$]*/; - const SYSTEM_SYMBOLS_SET = new Set(SYSTEM_SYMBOLS); - /** @type {Mode} */ - const SYMBOLS = { variants: [ - { - className: 'builtin-symbol', - begin: SYMBOL_RE, - // for performance out of fear of regex.either(...Mathematica.SYSTEM_SYMBOLS) - "on:begin": (match, response) => { - if (!SYSTEM_SYMBOLS_SET.has(match[0])) response.ignoreMatch(); - } - }, - { - className: 'symbol', - relevance: 0, - begin: SYMBOL_RE - } - ] }; - - const NAMED_CHARACTER = { - className: 'named-character', - begin: /\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/ - }; - - const OPERATORS = { - className: 'operator', - relevance: 0, - begin: /[+\-*/,;.:@~=><&|_`'^?!%]+/ - }; - const PATTERNS = { - className: 'pattern', - relevance: 0, - begin: /([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/ - }; - - const SLOTS = { - className: 'slot', - relevance: 0, - begin: /#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/ - }; - - const BRACES = { - className: 'brace', - relevance: 0, - begin: /[[\](){}]/ - }; - - const MESSAGES = { - className: 'message-name', - relevance: 0, - begin: regex.concat("::", SYMBOL_RE) - }; - - return { - name: 'Mathematica', - aliases: [ - 'mma', - 'wl' - ], - classNameAliases: { - brace: 'punctuation', - pattern: 'type', - slot: 'type', - symbol: 'variable', - 'named-character': 'variable', - 'builtin-symbol': 'built_in', - 'message-name': 'string' - }, - contains: [ - hljs.COMMENT(/\(\*/, /\*\)/, { contains: [ 'self' ] }), - PATTERNS, - SLOTS, - MESSAGES, - SYMBOLS, - NAMED_CHARACTER, - hljs.QUOTE_STRING_MODE, - NUMBERS, - OPERATORS, - BRACES - ] - }; -} - -export { mathematica as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mathematica.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mathematica.js.js deleted file mode 100644 index e7b98b8..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mathematica.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/mathematica" instead of "highlight.js/lib/languages/mathematica.js"' - ); - } - } - emitWarning(); - import lang from './mathematica.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/matlab.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/matlab.js deleted file mode 100644 index dcdddee..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/matlab.js +++ /dev/null @@ -1,107 +0,0 @@ -/* -Language: Matlab -Author: Denis Bardadym -Contributors: Eugene Nizhibitsky , Egor Rogov -Website: https://www.mathworks.com/products/matlab.html -Category: scientific -*/ - -/* - Formal syntax is not published, helpful link: - https://github.com/kornilova-l/matlab-IntelliJ-plugin/blob/master/src/main/grammar/Matlab.bnf -*/ -function matlab(hljs) { - const TRANSPOSE_RE = '(\'|\\.\')+'; - const TRANSPOSE = { - relevance: 0, - contains: [ { begin: TRANSPOSE_RE } ] - }; - - return { - name: 'Matlab', - keywords: { - keyword: - 'arguments break case catch classdef continue else elseif end enumeration events for function ' - + 'global if methods otherwise parfor persistent properties return spmd switch try while', - built_in: - 'sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ' - + 'atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot ' - + 'cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog ' - + 'realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal ' - + 'cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ' - + 'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma ' - + 'gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms ' - + 'nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones ' - + 'eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ' - + 'ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril ' - + 'triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute ' - + 'shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan ' - + 'isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal ' - + 'rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table ' - + 'readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun ' - + 'legend intersect ismember procrustes hold num2cell ' - }, - illegal: '(//|"|#|/\\*|\\s+/\\w+)', - contains: [ - { - className: 'function', - beginKeywords: 'function', - end: '$', - contains: [ - hljs.UNDERSCORE_TITLE_MODE, - { - className: 'params', - variants: [ - { - begin: '\\(', - end: '\\)' - }, - { - begin: '\\[', - end: '\\]' - } - ] - } - ] - }, - { - className: 'built_in', - begin: /true|false/, - relevance: 0, - starts: TRANSPOSE - }, - { - begin: '[a-zA-Z][a-zA-Z_0-9]*' + TRANSPOSE_RE, - relevance: 0 - }, - { - className: 'number', - begin: hljs.C_NUMBER_RE, - relevance: 0, - starts: TRANSPOSE - }, - { - className: 'string', - begin: '\'', - end: '\'', - contains: [ { begin: '\'\'' } ] - }, - { - begin: /\]|\}|\)/, - relevance: 0, - starts: TRANSPOSE - }, - { - className: 'string', - begin: '"', - end: '"', - contains: [ { begin: '""' } ], - starts: TRANSPOSE - }, - hljs.COMMENT('^\\s*%\\{\\s*$', '^\\s*%\\}\\s*$'), - hljs.COMMENT('%', '$') - ] - }; -} - -export { matlab as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/matlab.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/matlab.js.js deleted file mode 100644 index c2f9fcc..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/matlab.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/matlab" instead of "highlight.js/lib/languages/matlab.js"' - ); - } - } - emitWarning(); - import lang from './matlab.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/maxima.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/maxima.js deleted file mode 100644 index 1254036..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/maxima.js +++ /dev/null @@ -1,414 +0,0 @@ -/* -Language: Maxima -Author: Robert Dodier -Website: http://maxima.sourceforge.net -Category: scientific -*/ - -function maxima(hljs) { - const KEYWORDS = - 'if then else elseif for thru do while unless step in and or not'; - const LITERALS = - 'true false unknown inf minf ind und %e %i %pi %phi %gamma'; - const BUILTIN_FUNCTIONS = - ' abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate' - + ' addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix' - + ' adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type' - + ' alias allroots alphacharp alphanumericp amortization %and annuity_fv' - + ' annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2' - + ' applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply' - + ' arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger' - + ' asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order' - + ' asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method' - + ' av average_degree backtrace bars barsplot barsplot_description base64 base64_decode' - + ' bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx' - + ' bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify' - + ' bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized' - + ' bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp' - + ' bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition' - + ' block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description' - + ' break bug_report build_info|10 buildq build_sample burn cabs canform canten' - + ' cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli' - + ' cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform' - + ' cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel' - + ' cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial' - + ' cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson' - + ' cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay' - + ' ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic' - + ' cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2' - + ' charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps' - + ' chinese cholesky christof chromatic_index chromatic_number cint circulant_graph' - + ' clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph' - + ' clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse' - + ' collectterms columnop columnspace columnswap columnvector combination combine' - + ' comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph' - + ' complete_graph complex_number_p components compose_functions concan concat' - + ' conjugate conmetderiv connected_components connect_vertices cons constant' - + ' constantp constituent constvalue cont2part content continuous_freq contortion' - + ' contour_plot contract contract_edge contragrad contrib_ode convert coord' - + ' copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1' - + ' covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline' - + ' ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph' - + ' cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate' - + ' declare declare_constvalue declare_dimensions declare_fundamental_dimensions' - + ' declare_fundamental_units declare_qty declare_translated declare_unit_conversion' - + ' declare_units declare_weights decsym defcon define define_alt_display define_variable' - + ' defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten' - + ' delta demo demoivre denom depends derivdegree derivlist describe desolve' - + ' determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag' - + ' diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export' - + ' dimacs_import dimension dimensionless dimensions dimensions_as_list direct' - + ' directory discrete_freq disjoin disjointp disolate disp dispcon dispform' - + ' dispfun dispJordan display disprule dispterms distrib divide divisors divsum' - + ' dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart' - + ' draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring' - + ' edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth' - + ' einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome' - + ' ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using' - + ' ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi' - + ' ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp' - + ' equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors' - + ' euler ev eval_string evenp every evolution evolution2d evundiff example exp' - + ' expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci' - + ' expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li' - + ' expintegral_shi expintegral_si explicit explose exponentialize express expt' - + ' exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum' - + ' factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements' - + ' fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge' - + ' file_search file_type fillarray findde find_root find_root_abs find_root_error' - + ' find_root_rel first fix flatten flength float floatnump floor flower_snark' - + ' flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran' - + ' fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp' - + ' foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s' - + ' from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp' - + ' fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units' - + ' fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized' - + ' gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide' - + ' gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym' - + ' geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean' - + ' geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string' - + ' get_pixel get_plot_option get_tex_environment get_tex_environment_default' - + ' get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close' - + ' gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum' - + ' gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import' - + ' graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery' - + ' graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph' - + ' grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path' - + ' hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite' - + ' hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description' - + ' hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph' - + ' icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy' - + ' ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart' - + ' imetric implicit implicit_derivative implicit_plot indexed_tensor indices' - + ' induced_subgraph inferencep inference_result infix info_display init_atensor' - + ' init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions' - + ' integrate intersect intersection intervalp intopois intosum invariant1 invariant2' - + ' inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc' - + ' inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns' - + ' inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint' - + ' invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph' - + ' is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate' - + ' isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph' - + ' items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc' - + ' jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd' - + ' jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill' - + ' killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis' - + ' kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform' - + ' kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete' - + ' kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace' - + ' kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2' - + ' kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson' - + ' kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange' - + ' laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp' - + ' lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length' - + ' let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit' - + ' Lindstedt linear linearinterpol linear_program linear_regression line_graph' - + ' linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials' - + ' listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry' - + ' log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst' - + ' lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact' - + ' lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub' - + ' lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma' - + ' make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country' - + ' make_polygon make_random_state make_rgb_picture makeset make_string_input_stream' - + ' make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom' - + ' maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display' - + ' mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker' - + ' max max_clique max_degree max_flow maximize_lp max_independent_set max_matching' - + ' maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform' - + ' mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete' - + ' mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic' - + ' mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t' - + ' mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull' - + ' median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree' - + ' min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor' - + ' minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton' - + ' mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions' - + ' multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff' - + ' multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary' - + ' natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext' - + ' newdet new_graph newline newton new_variable next_prime nicedummies niceindices' - + ' ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp' - + ' nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst' - + ' nthroot nullity nullspace num numbered_boundaries numberp number_to_octets' - + ' num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai' - + ' nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin' - + ' oid_to_octets op opena opena_binary openr openr_binary openw openw_binary' - + ' operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless' - + ' orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap' - + ' out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface' - + ' parg parGosper parse_string parse_timedate part part2cont partfrac partition' - + ' partition_set partpol path_digraph path_graph pathname_directory pathname_name' - + ' pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform' - + ' pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete' - + ' pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal' - + ' pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal' - + ' pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t' - + ' pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph' - + ' petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding' - + ' playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff' - + ' poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar' - + ' polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion' - + ' poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal' - + ' poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal' - + ' poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation' - + ' poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm' - + ' poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form' - + ' poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part' - + ' poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension' - + ' poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod' - + ' powerseries powerset prefix prev_prime primep primes principal_components' - + ' print printf printfile print_graph printpois printprops prodrac product properties' - + ' propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct' - + ' puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp' - + ' quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile' - + ' quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2' - + ' quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f' - + ' quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel' - + ' quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal' - + ' quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t' - + ' quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t' - + ' quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan' - + ' radius random random_bernoulli random_beta random_binomial random_bipartite_graph' - + ' random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform' - + ' random_exp random_f random_gamma random_general_finite_discrete random_geometric' - + ' random_graph random_graph1 random_gumbel random_hypergeometric random_laplace' - + ' random_logistic random_lognormal random_negative_binomial random_network' - + ' random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto' - + ' random_permutation random_poisson random_rayleigh random_regular_graph random_student_t' - + ' random_tournament random_tree random_weibull range rank rat ratcoef ratdenom' - + ' ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump' - + ' ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array' - + ' read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline' - + ' read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate' - + ' realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar' - + ' rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus' - + ' rem remainder remarray rembox remcomps remcon remcoord remfun remfunction' - + ' remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions' - + ' remove_fundamental_units remove_plot_option remove_vertex rempart remrule' - + ' remsym remvalue rename rename_file reset reset_displays residue resolvante' - + ' resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein' - + ' resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer' - + ' rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann' - + ' rinvariant risch rk rmdir rncombine romberg room rootscontract round row' - + ' rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i' - + ' scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description' - + ' scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second' - + ' sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight' - + ' setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state' - + ' set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications' - + ' set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path' - + ' show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform' - + ' simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert' - + ' sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial' - + ' skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp' - + ' skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric' - + ' skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic' - + ' skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t' - + ' skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t' - + ' skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph' - + ' smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve' - + ' solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export' - + ' sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1' - + ' spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition' - + ' sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus' - + ' ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot' - + ' starplot_description status std std1 std_bernoulli std_beta std_binomial' - + ' std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma' - + ' std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace' - + ' std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t' - + ' std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull' - + ' stemplot stirling stirling1 stirling2 strim striml strimr string stringout' - + ' stringp strong_components struve_h struve_l sublis sublist sublist_indices' - + ' submatrix subsample subset subsetp subst substinpart subst_parallel substpart' - + ' substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext' - + ' symbolp symmdifference symmetricp system take_channel take_inference tan' - + ' tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract' - + ' tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference' - + ' test_normality test_proportion test_proportions_difference test_rank_sum' - + ' test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display' - + ' texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter' - + ' toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep' - + ' totalfourier totient tpartpol trace tracematrix trace_options transform_sample' - + ' translate translate_file transpose treefale tree_reduce treillis treinat' - + ' triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate' - + ' truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph' - + ' truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget' - + ' ultraspherical underlying_graph undiff union unique uniteigenvectors unitp' - + ' units unit_step unitvector unorder unsum untellrat untimer' - + ' untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli' - + ' var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform' - + ' var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel' - + ' var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial' - + ' var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson' - + ' var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp' - + ' verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance' - + ' vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle' - + ' vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j' - + ' wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian' - + ' xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta' - + ' zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors' - + ' zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table' - + ' absboxchar activecontexts adapt_depth additive adim aform algebraic' - + ' algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic' - + ' animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar' - + ' asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top' - + ' azimuth background background_color backsubst berlefact bernstein_explicit' - + ' besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest' - + ' border boundaries_array box boxchar breakup %c capping cauchysum cbrange' - + ' cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics' - + ' colorbox columns commutative complex cone context contexts contour contour_levels' - + ' cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp' - + ' cube current_let_rule_package cylinder data_file_name debugmode decreasing' - + ' default_let_rule_package delay dependencies derivabbrev derivsubst detout' - + ' diagmetric diff dim dimensions dispflag display2d|10 display_format_internal' - + ' distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor' - + ' doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules' - + ' dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart' - + ' edge_color edge_coloring edge_partition edge_type edge_width %edispflag' - + ' elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer' - + ' epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type' - + ' %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand' - + ' expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine' - + ' factlim factorflag factorial_expand factors_only fb feature features' - + ' file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10' - + ' file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color' - + ' fill_density filled_func fixed_vertices flipflag float2bf font font_size' - + ' fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim' - + ' gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command' - + ' gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command' - + ' gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command' - + ' gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble' - + ' gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args' - + ' Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both' - + ' head_length head_type height hypergeometric_representation %iargs ibase' - + ' icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form' - + ' ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval' - + ' infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued' - + ' integrate_use_rootsof integration_constant integration_constant_counter interpolate_color' - + ' intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr' - + ' julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment' - + ' label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max' - + ' leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear' - + ' linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params' - + ' linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname' - + ' loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx' - + ' logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros' - + ' mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult' - + ' matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10' - + ' maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint' - + ' maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp' - + ' mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver' - + ' modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag' - + ' newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc' - + ' noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np' - + ' npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties' - + ' opsubst optimprefix optionset orientation origin orthopoly_returns_intervals' - + ' outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution' - + ' %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart' - + ' png_file pochhammer_max_index points pointsize point_size points_joined point_type' - + ' poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm' - + ' poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list' - + ' poly_secondary_elimination_order poly_top_reduction_only posfun position' - + ' powerdisp pred prederror primep_number_of_tests product_use_gamma program' - + ' programmode promote_float_to_bigfloat prompt proportional_axes props psexpand' - + ' ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof' - + ' ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann' - + ' ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw' - + ' refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs' - + ' rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy' - + ' same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck' - + ' setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width' - + ' show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type' - + ' show_vertices show_weight simp simplified_output simplify_products simpproduct' - + ' simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn' - + ' solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag' - + ' stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda' - + ' subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric' - + ' tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials' - + ' tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch' - + ' tr track transcompile transform transform_xy translate_fast_arrays transparent' - + ' transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex' - + ' tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign' - + ' trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars' - + ' tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode' - + ' tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes' - + ' ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble' - + ' usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition' - + ' vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface' - + ' wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel' - + ' xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate' - + ' xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel' - + ' xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width' - + ' ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis' - + ' ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis' - + ' yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob' - + ' zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest'; - const SYMBOLS = '_ __ %|0 %%|0'; - - return { - name: 'Maxima', - keywords: { - $pattern: '[A-Za-z_%][0-9A-Za-z_%]*', - keyword: KEYWORDS, - literal: LITERALS, - built_in: BUILTIN_FUNCTIONS, - symbol: SYMBOLS - }, - contains: [ - { - className: 'comment', - begin: '/\\*', - end: '\\*/', - contains: [ 'self' ] - }, - hljs.QUOTE_STRING_MODE, - { - className: 'number', - relevance: 0, - variants: [ - { - // float number w/ exponent - // hmm, I wonder if we ought to include other exponent markers? - begin: '\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b' }, - { - // bigfloat number - begin: '\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b', - relevance: 10 - }, - { - // float number w/out exponent - // Doesn't seem to recognize floats which start with '.' - begin: '\\b(\\.\\d+|\\d+\\.\\d+)\\b' }, - { - // integer in base up to 36 - // Doesn't seem to recognize integers which end with '.' - begin: '\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b' } - ] - } - ], - illegal: /@/ - }; -} - -export { maxima as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/maxima.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/maxima.js.js deleted file mode 100644 index de85908..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/maxima.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/maxima" instead of "highlight.js/lib/languages/maxima.js"' - ); - } - } - emitWarning(); - import lang from './maxima.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mel.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mel.js deleted file mode 100644 index df58c73..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mel.js +++ /dev/null @@ -1,235 +0,0 @@ -/* -Language: MEL -Description: Maya Embedded Language -Author: Shuen-Huei Guan -Website: http://www.autodesk.com/products/autodesk-maya/overview -Category: graphics -*/ - -function mel(hljs) { - return { - name: 'MEL', - keywords: - 'int float string vector matrix if else switch case default while do for in break ' - + 'continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic ' - + 'addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey ' - + 'affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve ' - + 'alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor ' - + 'animDisplay animView annotate appendStringArray applicationName applyAttrPreset ' - + 'applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx ' - + 'artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu ' - + 'artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand ' - + 'assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface ' - + 'attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu ' - + 'attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp ' - + 'attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery ' - + 'autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults ' - + 'bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership ' - + 'bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType ' - + 'boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu ' - + 'buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge ' - + 'cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch ' - + 'catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox ' - + 'character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp ' - + 'checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip ' - + 'clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore ' - + 'closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter ' - + 'cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color ' - + 'colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp ' - + 'colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem ' - + 'componentEditor compositingInterop computePolysetVolume condition cone confirmDialog ' - + 'connectAttr connectControl connectDynamic connectJoint connectionInfo constrain ' - + 'constrainValue constructionHistory container containsMultibyte contextInfo control ' - + 'convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation ' - + 'convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache ' - + 'cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel ' - + 'cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver ' - + 'cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor ' - + 'createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer ' - + 'createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse ' - + 'currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx ' - + 'curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface ' - + 'curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox ' - + 'defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete ' - + 'deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes ' - + 'delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo ' - + 'dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable ' - + 'disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected ' - + 'displayColor displayCull displayLevelOfDetail displayPref displayRGBColor ' - + 'displaySmoothness displayStats displayString displaySurface distanceDimContext ' - + 'distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct ' - + 'doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator ' - + 'duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression ' - + 'dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor ' - + 'dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers ' - + 'editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor ' - + 'editorTemplate effector emit emitter enableDevice encodeString endString endsWith env ' - + 'equivalent equivalentTol erf error eval evalDeferred evalEcho event ' - + 'exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp ' - + 'expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof ' - + 'fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo ' - + 'filetest filletCurve filter filterCurve filterExpand filterStudioImport ' - + 'findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster ' - + 'finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar ' - + 'floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo ' - + 'fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint ' - + 'frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss ' - + 'geometryConstraint getApplicationVersionAsFloat getAttr getClassification ' - + 'getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes ' - + 'getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender ' - + 'glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl ' - + 'gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid ' - + 'gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap ' - + 'HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor ' - + 'HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached ' - + 'HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel ' - + 'headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey ' - + 'hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender ' - + 'hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox ' - + 'iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ' - + 'ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ' - + 'ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform ' - + 'insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance ' - + 'instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp ' - + 'interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf ' - + 'isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect ' - + 'itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx ' - + 'jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner ' - + 'keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx ' - + 'keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx ' - + 'keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx ' - + 'keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor ' - + 'layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList ' - + 'lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep ' - + 'listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory ' - + 'listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation ' - + 'listNodeTypes listPanelCategories listRelatives listSets listTransforms ' - + 'listUnselected listerEditor loadFluid loadNewShelf loadPlugin ' - + 'loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log ' - + 'longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive ' - + 'makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext ' - + 'manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx ' - + 'manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout ' - + 'menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp ' - + 'mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move ' - + 'moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute ' - + 'nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast ' - + 'nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint ' - + 'normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect ' - + 'nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref ' - + 'nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType ' - + 'objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface ' - + 'offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit ' - + 'orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier ' - + 'paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration ' - + 'panelHistory paramDimContext paramDimension paramLocator parent parentConstraint ' - + 'particle particleExists particleInstancer particleRenderInfo partition pasteKey ' - + 'pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture ' - + 'pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo ' - + 'pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult ' - + 'pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend ' - + 'polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal ' - + 'polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge ' - + 'polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge ' - + 'polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet ' - + 'polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet ' - + 'polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection ' - + 'polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge ' - + 'polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet ' - + 'polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix ' - + 'polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut ' - + 'polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet ' - + 'polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge ' - + 'polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex ' - + 'polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection ' - + 'polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection ' - + 'polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint ' - + 'polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate ' - + 'polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge ' - + 'polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing ' - + 'polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet ' - + 'polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace ' - + 'popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer ' - + 'projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx ' - + 'propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd ' - + 'python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection ' - + 'radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl ' - + 'readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference ' - + 'referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE ' - + 'registerPluginResource rehash reloadImage removeJoint removeMultiInstance ' - + 'removePanelCategory rename renameAttr renameSelectionList renameUI render ' - + 'renderGlobalsNode renderInfo renderLayerButton renderLayerParent ' - + 'renderLayerPostProcess renderLayerUnparent renderManip renderPartition ' - + 'renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor ' - + 'renderWindowSelectContext renderer reorder reorderDeformers requires reroot ' - + 'resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget ' - + 'reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx ' - + 'rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout ' - + 'runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage ' - + 'saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale ' - + 'scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor ' - + 'sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable ' - + 'scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt ' - + 'searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey ' - + 'selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType ' - + 'selectedNodes selectionConnection separator setAttr setAttrEnumResource ' - + 'setAttrMapping setAttrNiceNameResource setConstraintRestPosition ' - + 'setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr ' - + 'setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe ' - + 'setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag ' - + 'setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject ' - + 'setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets ' - + 'shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare ' - + 'shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField ' - + 'shortNameOf showHelp showHidden showManipCtx showSelectionInTitle ' - + 'showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface ' - + 'size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep ' - + 'snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound ' - + 'soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort ' - + 'spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString ' - + 'startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp ' - + 'stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex ' - + 'stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex ' - + 'stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString ' - + 'stringToStringArray strip stripPrefixFromName stroke subdAutoProjection ' - + 'subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV ' - + 'subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror ' - + 'subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease ' - + 'subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring ' - + 'surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton ' - + 'symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext ' - + 'texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext ' - + 'texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text ' - + 'textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList ' - + 'textToShelf textureDisplacePlane textureHairColor texturePlacementContext ' - + 'textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath ' - + 'toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower ' - + 'toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper ' - + 'trace track trackCtx transferAttributes transformCompare transformLimits translator ' - + 'trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence ' - + 'twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit ' - + 'unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink ' - + 'uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane ' - + 'viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex ' - + 'waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire ' - + 'wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform', - illegal: ' -Description: Mercury is a logic/functional programming language which combines the clarity and expressiveness of declarative programming with advanced static analysis and error detection features. -Website: https://www.mercurylang.org -Category: functional -*/ - -function mercury(hljs) { - const KEYWORDS = { - keyword: - 'module use_module import_module include_module end_module initialise ' - + 'mutable initialize finalize finalise interface implementation pred ' - + 'mode func type inst solver any_pred any_func is semidet det nondet ' - + 'multi erroneous failure cc_nondet cc_multi typeclass instance where ' - + 'pragma promise external trace atomic or_else require_complete_switch ' - + 'require_det require_semidet require_multi require_nondet ' - + 'require_cc_multi require_cc_nondet require_erroneous require_failure', - meta: - // pragma - 'inline no_inline type_spec source_file fact_table obsolete memo ' - + 'loop_check minimal_model terminates does_not_terminate ' - + 'check_termination promise_equivalent_clauses ' - // preprocessor - + 'foreign_proc foreign_decl foreign_code foreign_type ' - + 'foreign_import_module foreign_export_enum foreign_export ' - + 'foreign_enum may_call_mercury will_not_call_mercury thread_safe ' - + 'not_thread_safe maybe_thread_safe promise_pure promise_semipure ' - + 'tabled_for_io local untrailed trailed attach_to_io_state ' - + 'can_pass_as_mercury_type stable will_not_throw_exception ' - + 'may_modify_trail will_not_modify_trail may_duplicate ' - + 'may_not_duplicate affects_liveness does_not_affect_liveness ' - + 'doesnt_affect_liveness no_sharing unknown_sharing sharing', - built_in: - 'some all not if then else true fail false try catch catch_any ' - + 'semidet_true semidet_false semidet_fail impure_true impure semipure' - }; - - const COMMENT = hljs.COMMENT('%', '$'); - - const NUMCODE = { - className: 'number', - begin: "0'.\\|0[box][0-9a-fA-F]*" - }; - - const ATOM = hljs.inherit(hljs.APOS_STRING_MODE, { relevance: 0 }); - const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { relevance: 0 }); - const STRING_FMT = { - className: 'subst', - begin: '\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]', - relevance: 0 - }; - STRING.contains = STRING.contains.slice(); // we need our own copy of contains - STRING.contains.push(STRING_FMT); - - const IMPLICATION = { - className: 'built_in', - variants: [ - { begin: '<=>' }, - { - begin: '<=', - relevance: 0 - }, - { - begin: '=>', - relevance: 0 - }, - { begin: '/\\\\' }, - { begin: '\\\\/' } - ] - }; - - const HEAD_BODY_CONJUNCTION = { - className: 'built_in', - variants: [ - { begin: ':-\\|-->' }, - { - begin: '=', - relevance: 0 - } - ] - }; - - return { - name: 'Mercury', - aliases: [ - 'm', - 'moo' - ], - keywords: KEYWORDS, - contains: [ - IMPLICATION, - HEAD_BODY_CONJUNCTION, - COMMENT, - hljs.C_BLOCK_COMMENT_MODE, - NUMCODE, - hljs.NUMBER_MODE, - ATOM, - STRING, - { // relevance booster - begin: /:-/ }, - { // relevance booster - begin: /\.$/ } - ] - }; -} - -export { mercury as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mercury.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mercury.js.js deleted file mode 100644 index 0a48071..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mercury.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/mercury" instead of "highlight.js/lib/languages/mercury.js"' - ); - } - } - emitWarning(); - import lang from './mercury.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mipsasm.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mipsasm.js deleted file mode 100644 index 2ab2ef3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mipsasm.js +++ /dev/null @@ -1,104 +0,0 @@ -/* -Language: MIPS Assembly -Author: Nebuleon Fumika -Description: MIPS Assembly (up to MIPS32R2) -Website: https://en.wikipedia.org/wiki/MIPS_architecture -Category: assembler -*/ - -function mipsasm(hljs) { - // local labels: %?[FB]?[AT]?\d{1,2}\w+ - return { - name: 'MIPS Assembly', - case_insensitive: true, - aliases: [ 'mips' ], - keywords: { - $pattern: '\\.?' + hljs.IDENT_RE, - meta: - // GNU preprocs - '.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ', - built_in: - '$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 ' // integer registers - + '$16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 ' // integer registers - + 'zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 ' // integer register aliases - + 't0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 ' // integer register aliases - + 'k0 k1 gp sp fp ra ' // integer register aliases - + '$f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 ' // floating-point registers - + '$f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 ' // floating-point registers - + 'Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi ' // Coprocessor 0 registers - + 'HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId ' // Coprocessor 0 registers - + 'EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ' // Coprocessor 0 registers - + 'ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt ' // Coprocessor 0 registers - }, - contains: [ - { - className: 'keyword', - begin: '\\b(' // mnemonics - // 32-bit integer instructions - + 'addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|' - + 'bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|' - + 'll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|' - + 'multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|' - + 'srlv?|subu?|sw[lr]?|xori?|wsbh|' - // floating-point instructions - + 'abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|' - + 'c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|' - + '(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|' - + 'cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|' - + 'div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|' - + 'msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|' - + 'p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|' - + 'swx?c1|' - // system control instructions - + 'break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|' - + 'rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|' - + 'tlti?u?|tnei?|wait|wrpgpr' - + ')', - end: '\\s' - }, - // lines ending with ; or # aren't really comments, probably auto-detect fail - hljs.COMMENT('[;#](?!\\s*$)', '$'), - hljs.C_BLOCK_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - { - className: 'string', - begin: '\'', - end: '[^\\\\]\'', - relevance: 0 - }, - { - className: 'title', - begin: '\\|', - end: '\\|', - illegal: '\\n', - relevance: 0 - }, - { - className: 'number', - variants: [ - { // hex - begin: '0x[0-9a-f]+' }, - { // bare number - begin: '\\b-?\\d+' } - ], - relevance: 0 - }, - { - className: 'symbol', - variants: [ - { // GNU MIPS syntax - begin: '^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:' }, - { // numbered local labels - begin: '^\\s*[0-9]+:' }, - { // number local label reference (backwards, forwards) - begin: '[0-9]+[bf]' } - ], - relevance: 0 - } - ], - // forward slashes are not allowed - illegal: /\// - }; -} - -export { mipsasm as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mipsasm.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mipsasm.js.js deleted file mode 100644 index 4c53ff0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mipsasm.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/mipsasm" instead of "highlight.js/lib/languages/mipsasm.js"' - ); - } - } - emitWarning(); - import lang from './mipsasm.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mizar.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mizar.js deleted file mode 100644 index ec38f49..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mizar.js +++ /dev/null @@ -1,27 +0,0 @@ -/* -Language: Mizar -Description: The Mizar Language is a formal language derived from the mathematical vernacular. -Author: Kelley van Evert -Website: http://mizar.org/language/ -Category: scientific -*/ - -function mizar(hljs) { - return { - name: 'Mizar', - keywords: - 'environ vocabularies notations constructors definitions ' - + 'registrations theorems schemes requirements begin end definition ' - + 'registration cluster existence pred func defpred deffunc theorem ' - + 'proof let take assume then thus hence ex for st holds consider ' - + 'reconsider such that and in provided of as from be being by means ' - + 'equals implies iff redefine define now not or attr is mode ' - + 'suppose per cases set thesis contradiction scheme reserve struct ' - + 'correctness compatibility coherence symmetry assymetry ' - + 'reflexivity irreflexivity connectedness uniqueness commutativity ' - + 'idempotence involutiveness projectivity', - contains: [ hljs.COMMENT('::', '$') ] - }; -} - -export { mizar as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mizar.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mizar.js.js deleted file mode 100644 index 09d02c9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mizar.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/mizar" instead of "highlight.js/lib/languages/mizar.js"' - ); - } - } - emitWarning(); - import lang from './mizar.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mojolicious.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mojolicious.js deleted file mode 100644 index 57d4904..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mojolicious.js +++ /dev/null @@ -1,36 +0,0 @@ -/* -Language: Mojolicious -Requires: xml.js, perl.js -Author: Dotan Dimet -Description: Mojolicious .ep (Embedded Perl) templates -Website: https://mojolicious.org -Category: template -*/ -function mojolicious(hljs) { - return { - name: 'Mojolicious', - subLanguage: 'xml', - contains: [ - { - className: 'meta', - begin: '^__(END|DATA)__$' - }, - // mojolicious line - { - begin: "^\\s*%{1,2}={0,2}", - end: '$', - subLanguage: 'perl' - }, - // mojolicious block - { - begin: "<%{1,2}={0,2}", - end: "={0,1}%>", - subLanguage: 'perl', - excludeBegin: true, - excludeEnd: true - } - ] - }; -} - -export { mojolicious as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mojolicious.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mojolicious.js.js deleted file mode 100644 index 217bc85..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/mojolicious.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/mojolicious" instead of "highlight.js/lib/languages/mojolicious.js"' - ); - } - } - emitWarning(); - import lang from './mojolicious.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/monkey.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/monkey.js deleted file mode 100644 index 3110746..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/monkey.js +++ /dev/null @@ -1,184 +0,0 @@ -/* -Language: Monkey -Description: Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research. -Author: Arthur Bikmullin -Website: https://blitzresearch.itch.io/monkey2 -Category: gaming -*/ - -function monkey(hljs) { - const NUMBER = { - className: 'number', - relevance: 0, - variants: [ - { begin: '[$][a-fA-F0-9]+' }, - hljs.NUMBER_MODE - ] - }; - const FUNC_DEFINITION = { - variants: [ - { match: [ - /(function|method)/, - /\s+/, - hljs.UNDERSCORE_IDENT_RE, - ] }, - ], - scope: { - 1: "keyword", - 3: "title.function" - } - }; - const CLASS_DEFINITION = { - variants: [ - { match: [ - /(class|interface|extends|implements)/, - /\s+/, - hljs.UNDERSCORE_IDENT_RE, - ] }, - ], - scope: { - 1: "keyword", - 3: "title.class" - } - }; - const BUILT_INS = [ - "DebugLog", - "DebugStop", - "Error", - "Print", - "ACos", - "ACosr", - "ASin", - "ASinr", - "ATan", - "ATan2", - "ATan2r", - "ATanr", - "Abs", - "Abs", - "Ceil", - "Clamp", - "Clamp", - "Cos", - "Cosr", - "Exp", - "Floor", - "Log", - "Max", - "Max", - "Min", - "Min", - "Pow", - "Sgn", - "Sgn", - "Sin", - "Sinr", - "Sqrt", - "Tan", - "Tanr", - "Seed", - "PI", - "HALFPI", - "TWOPI" - ]; - const LITERALS = [ - "true", - "false", - "null" - ]; - const KEYWORDS = [ - "public", - "private", - "property", - "continue", - "exit", - "extern", - "new", - "try", - "catch", - "eachin", - "not", - "abstract", - "final", - "select", - "case", - "default", - "const", - "local", - "global", - "field", - "end", - "if", - "then", - "else", - "elseif", - "endif", - "while", - "wend", - "repeat", - "until", - "forever", - "for", - "to", - "step", - "next", - "return", - "module", - "inline", - "throw", - "import", - // not positive, but these are not literals - "and", - "or", - "shl", - "shr", - "mod" - ]; - - return { - name: 'Monkey', - case_insensitive: true, - keywords: { - keyword: KEYWORDS, - built_in: BUILT_INS, - literal: LITERALS - }, - illegal: /\/\*/, - contains: [ - hljs.COMMENT('#rem', '#end'), - hljs.COMMENT( - "'", - '$', - { relevance: 0 } - ), - FUNC_DEFINITION, - CLASS_DEFINITION, - { - className: 'variable.language', - begin: /\b(self|super)\b/ - }, - { - className: 'meta', - begin: /\s*#/, - end: '$', - keywords: { keyword: 'if else elseif endif end then' } - }, - { - match: [ - /^\s*/, - /strict\b/ - ], - scope: { 2: "meta" } - }, - { - beginKeywords: 'alias', - end: '=', - contains: [ hljs.UNDERSCORE_TITLE_MODE ] - }, - hljs.QUOTE_STRING_MODE, - NUMBER - ] - }; -} - -export { monkey as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/monkey.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/monkey.js.js deleted file mode 100644 index 7d26f09..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/monkey.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/monkey" instead of "highlight.js/lib/languages/monkey.js"' - ); - } - } - emitWarning(); - import lang from './monkey.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/moonscript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/moonscript.js deleted file mode 100644 index e411948..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/moonscript.js +++ /dev/null @@ -1,141 +0,0 @@ -/* -Language: MoonScript -Author: Billy Quith -Description: MoonScript is a programming language that transcompiles to Lua. -Origin: coffeescript.js -Website: http://moonscript.org/ -Category: scripting -*/ - -function moonscript(hljs) { - const KEYWORDS = { - keyword: - // Moonscript keywords - 'if then not for in while do return else elseif break continue switch and or ' - + 'unless when class extends super local import export from using', - literal: - 'true false nil', - built_in: - '_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load ' - + 'loadfile loadstring module next pairs pcall print rawequal rawget rawset require ' - + 'select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug ' - + 'io math os package string table' - }; - const JS_IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; - const SUBST = { - className: 'subst', - begin: /#\{/, - end: /\}/, - keywords: KEYWORDS - }; - const EXPRESSIONS = [ - hljs.inherit(hljs.C_NUMBER_MODE, - { starts: { - end: '(\\s*/)?', - relevance: 0 - } }), // a number tries to eat the following slash to prevent treating it as a regexp - { - className: 'string', - variants: [ - { - begin: /'/, - end: /'/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: /"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - } - ] - }, - { - className: 'built_in', - begin: '@__' + hljs.IDENT_RE - }, - { begin: '@' + hljs.IDENT_RE // relevance booster on par with CoffeeScript - }, - { begin: hljs.IDENT_RE + '\\\\' + hljs.IDENT_RE // inst\method - } - ]; - SUBST.contains = EXPRESSIONS; - - const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE }); - const POSSIBLE_PARAMS_RE = '(\\(.*\\)\\s*)?\\B[-=]>'; - const PARAMS = { - className: 'params', - begin: '\\([^\\(]', - returnBegin: true, - /* We need another contained nameless mode to not have every nested - pair of parens to be called "params" */ - contains: [ - { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - contains: [ 'self' ].concat(EXPRESSIONS) - } - ] - }; - - return { - name: 'MoonScript', - aliases: [ 'moon' ], - keywords: KEYWORDS, - illegal: /\/\*/, - contains: EXPRESSIONS.concat([ - hljs.COMMENT('--', '$'), - { - className: 'function', // function: -> => - begin: '^\\s*' + JS_IDENT_RE + '\\s*=\\s*' + POSSIBLE_PARAMS_RE, - end: '[-=]>', - returnBegin: true, - contains: [ - TITLE, - PARAMS - ] - }, - { - begin: /[\(,:=]\s*/, // anonymous function start - relevance: 0, - contains: [ - { - className: 'function', - begin: POSSIBLE_PARAMS_RE, - end: '[-=]>', - returnBegin: true, - contains: [ PARAMS ] - } - ] - }, - { - className: 'class', - beginKeywords: 'class', - end: '$', - illegal: /[:="\[\]]/, - contains: [ - { - beginKeywords: 'extends', - endsWithParent: true, - illegal: /[:="\[\]]/, - contains: [ TITLE ] - }, - TITLE - ] - }, - { - className: 'name', // table - begin: JS_IDENT_RE + ':', - end: ':', - returnBegin: true, - returnEnd: true, - relevance: 0 - } - ]) - }; -} - -export { moonscript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/moonscript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/moonscript.js.js deleted file mode 100644 index c2302fd..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/moonscript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/moonscript" instead of "highlight.js/lib/languages/moonscript.js"' - ); - } - } - emitWarning(); - import lang from './moonscript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/n1ql.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/n1ql.js deleted file mode 100644 index f66781f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/n1ql.js +++ /dev/null @@ -1,365 +0,0 @@ -/* - Language: N1QL - Author: Andres Täht - Contributors: Rene Saarsoo - Description: Couchbase query language - Website: https://www.couchbase.com/products/n1ql - Category: database - */ - -function n1ql(hljs) { - // Taken from http://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/reservedwords.html - const KEYWORDS = [ - "all", - "alter", - "analyze", - "and", - "any", - "array", - "as", - "asc", - "begin", - "between", - "binary", - "boolean", - "break", - "bucket", - "build", - "by", - "call", - "case", - "cast", - "cluster", - "collate", - "collection", - "commit", - "connect", - "continue", - "correlate", - "cover", - "create", - "database", - "dataset", - "datastore", - "declare", - "decrement", - "delete", - "derived", - "desc", - "describe", - "distinct", - "do", - "drop", - "each", - "element", - "else", - "end", - "every", - "except", - "exclude", - "execute", - "exists", - "explain", - "fetch", - "first", - "flatten", - "for", - "force", - "from", - "function", - "grant", - "group", - "gsi", - "having", - "if", - "ignore", - "ilike", - "in", - "include", - "increment", - "index", - "infer", - "inline", - "inner", - "insert", - "intersect", - "into", - "is", - "join", - "key", - "keys", - "keyspace", - "known", - "last", - "left", - "let", - "letting", - "like", - "limit", - "lsm", - "map", - "mapping", - "matched", - "materialized", - "merge", - "minus", - "namespace", - "nest", - "not", - "number", - "object", - "offset", - "on", - "option", - "or", - "order", - "outer", - "over", - "parse", - "partition", - "password", - "path", - "pool", - "prepare", - "primary", - "private", - "privilege", - "procedure", - "public", - "raw", - "realm", - "reduce", - "rename", - "return", - "returning", - "revoke", - "right", - "role", - "rollback", - "satisfies", - "schema", - "select", - "self", - "semi", - "set", - "show", - "some", - "start", - "statistics", - "string", - "system", - "then", - "to", - "transaction", - "trigger", - "truncate", - "under", - "union", - "unique", - "unknown", - "unnest", - "unset", - "update", - "upsert", - "use", - "user", - "using", - "validate", - "value", - "valued", - "values", - "via", - "view", - "when", - "where", - "while", - "with", - "within", - "work", - "xor" - ]; - // Taken from http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/literals.html - const LITERALS = [ - "true", - "false", - "null", - "missing|5" - ]; - // Taken from http://developer.couchbase.com/documentation/server/4.5/n1ql/n1ql-language-reference/functions.html - const BUILT_INS = [ - "array_agg", - "array_append", - "array_concat", - "array_contains", - "array_count", - "array_distinct", - "array_ifnull", - "array_length", - "array_max", - "array_min", - "array_position", - "array_prepend", - "array_put", - "array_range", - "array_remove", - "array_repeat", - "array_replace", - "array_reverse", - "array_sort", - "array_sum", - "avg", - "count", - "max", - "min", - "sum", - "greatest", - "least", - "ifmissing", - "ifmissingornull", - "ifnull", - "missingif", - "nullif", - "ifinf", - "ifnan", - "ifnanorinf", - "naninf", - "neginfif", - "posinfif", - "clock_millis", - "clock_str", - "date_add_millis", - "date_add_str", - "date_diff_millis", - "date_diff_str", - "date_part_millis", - "date_part_str", - "date_trunc_millis", - "date_trunc_str", - "duration_to_str", - "millis", - "str_to_millis", - "millis_to_str", - "millis_to_utc", - "millis_to_zone_name", - "now_millis", - "now_str", - "str_to_duration", - "str_to_utc", - "str_to_zone_name", - "decode_json", - "encode_json", - "encoded_size", - "poly_length", - "base64", - "base64_encode", - "base64_decode", - "meta", - "uuid", - "abs", - "acos", - "asin", - "atan", - "atan2", - "ceil", - "cos", - "degrees", - "e", - "exp", - "ln", - "log", - "floor", - "pi", - "power", - "radians", - "random", - "round", - "sign", - "sin", - "sqrt", - "tan", - "trunc", - "object_length", - "object_names", - "object_pairs", - "object_inner_pairs", - "object_values", - "object_inner_values", - "object_add", - "object_put", - "object_remove", - "object_unwrap", - "regexp_contains", - "regexp_like", - "regexp_position", - "regexp_replace", - "contains", - "initcap", - "length", - "lower", - "ltrim", - "position", - "repeat", - "replace", - "rtrim", - "split", - "substr", - "title", - "trim", - "upper", - "isarray", - "isatom", - "isboolean", - "isnumber", - "isobject", - "isstring", - "type", - "toarray", - "toatom", - "toboolean", - "tonumber", - "toobject", - "tostring" - ]; - - return { - name: 'N1QL', - case_insensitive: true, - contains: [ - { - beginKeywords: - 'build create index delete drop explain infer|10 insert merge prepare select update upsert|10', - end: /;/, - keywords: { - keyword: KEYWORDS, - literal: LITERALS, - built_in: BUILT_INS - }, - contains: [ - { - className: 'string', - begin: '\'', - end: '\'', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - className: 'string', - begin: '"', - end: '"', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - className: 'symbol', - begin: '`', - end: '`', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - hljs.C_NUMBER_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - hljs.C_BLOCK_COMMENT_MODE - ] - }; -} - -export { n1ql as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/n1ql.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/n1ql.js.js deleted file mode 100644 index 0a42c8e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/n1ql.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/n1ql" instead of "highlight.js/lib/languages/n1ql.js"' - ); - } - } - emitWarning(); - import lang from './n1ql.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nestedtext.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nestedtext.js deleted file mode 100644 index 579268b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nestedtext.js +++ /dev/null @@ -1,83 +0,0 @@ -/* -Language: NestedText -Description: NestedText is a file format for holding data that is to be entered, edited, or viewed by people. -Website: https://nestedtext.org/ -Category: config -*/ - -/** @type LanguageFn */ -function nestedtext(hljs) { - const NESTED = { - match: [ - /^\s*(?=\S)/, // have to look forward here to avoid polynomial backtracking - /[^:]+/, - /:\s*/, - /$/ - ], - className: { - 2: "attribute", - 3: "punctuation" - } - }; - const DICTIONARY_ITEM = { - match: [ - /^\s*(?=\S)/, // have to look forward here to avoid polynomial backtracking - /[^:]*[^: ]/, - /[ ]*:/, - /[ ]/, - /.*$/ - ], - className: { - 2: "attribute", - 3: "punctuation", - 5: "string" - } - }; - const STRING = { - match: [ - /^\s*/, - />/, - /[ ]/, - /.*$/ - ], - className: { - 2: "punctuation", - 4: "string" - } - }; - const LIST_ITEM = { - variants: [ - { match: [ - /^\s*/, - /-/, - /[ ]/, - /.*$/ - ] }, - { match: [ - /^\s*/, - /-$/ - ] } - ], - className: { - 2: "bullet", - 4: "string" - } - }; - - return { - name: 'Nested Text', - aliases: [ 'nt' ], - contains: [ - hljs.inherit(hljs.HASH_COMMENT_MODE, { - begin: /^\s*(?=#)/, - excludeBegin: true - }), - LIST_ITEM, - STRING, - NESTED, - DICTIONARY_ITEM - ] - }; -} - -export { nestedtext as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nestedtext.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nestedtext.js.js deleted file mode 100644 index 054f33e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nestedtext.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/nestedtext" instead of "highlight.js/lib/languages/nestedtext.js"' - ); - } - } - emitWarning(); - import lang from './nestedtext.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.js deleted file mode 100644 index a244ae1..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.js +++ /dev/null @@ -1,153 +0,0 @@ -/* -Language: Nginx config -Author: Peter Leonov -Contributors: Ivan Sagalaev -Category: config, web -Website: https://www.nginx.com -*/ - -/** @type LanguageFn */ -function nginx(hljs) { - const regex = hljs.regex; - const VAR = { - className: 'variable', - variants: [ - { begin: /\$\d+/ }, - { begin: /\$\{\w+\}/ }, - { begin: regex.concat(/[$@]/, hljs.UNDERSCORE_IDENT_RE) } - ] - }; - const LITERALS = [ - "on", - "off", - "yes", - "no", - "true", - "false", - "none", - "blocked", - "debug", - "info", - "notice", - "warn", - "error", - "crit", - "select", - "break", - "last", - "permanent", - "redirect", - "kqueue", - "rtsig", - "epoll", - "poll", - "/dev/poll" - ]; - const DEFAULT = { - endsWithParent: true, - keywords: { - $pattern: /[a-z_]{2,}|\/dev\/poll/, - literal: LITERALS - }, - relevance: 0, - illegal: '=>', - contains: [ - hljs.HASH_COMMENT_MODE, - { - className: 'string', - contains: [ - hljs.BACKSLASH_ESCAPE, - VAR - ], - variants: [ - { - begin: /"/, - end: /"/ - }, - { - begin: /'/, - end: /'/ - } - ] - }, - // this swallows entire URLs to avoid detecting numbers within - { - begin: '([a-z]+):/', - end: '\\s', - endsWithParent: true, - excludeEnd: true, - contains: [ VAR ] - }, - { - className: 'regexp', - contains: [ - hljs.BACKSLASH_ESCAPE, - VAR - ], - variants: [ - { - begin: "\\s\\^", - end: "\\s|\\{|;", - returnEnd: true - }, - // regexp locations (~, ~*) - { - begin: "~\\*?\\s+", - end: "\\s|\\{|;", - returnEnd: true - }, - // *.example.com - { begin: "\\*(\\.[a-z\\-]+)+" }, - // sub.example.* - { begin: "([a-z\\-]+\\.)+\\*" } - ] - }, - // IP - { - className: 'number', - begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b' - }, - // units - { - className: 'number', - begin: '\\b\\d+[kKmMgGdshdwy]?\\b', - relevance: 0 - }, - VAR - ] - }; - - return { - name: 'Nginx config', - aliases: [ 'nginxconf' ], - contains: [ - hljs.HASH_COMMENT_MODE, - { - beginKeywords: "upstream location", - end: /;|\{/, - contains: DEFAULT.contains, - keywords: { section: "upstream location" } - }, - { - className: 'section', - begin: regex.concat(hljs.UNDERSCORE_IDENT_RE + regex.lookahead(/\s+\{/)), - relevance: 0 - }, - { - begin: regex.lookahead(hljs.UNDERSCORE_IDENT_RE + '\\s'), - end: ';|\\{', - contains: [ - { - className: 'attribute', - begin: hljs.UNDERSCORE_IDENT_RE, - starts: DEFAULT - } - ], - relevance: 0 - } - ], - illegal: '[^\\s\\}\\{]' - }; -} - -export { nginx as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.js.js deleted file mode 100644 index bf620b6..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/nginx" instead of "highlight.js/lib/languages/nginx.js"' - ); - } - } - emitWarning(); - import lang from './nginx.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nim.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nim.js deleted file mode 100644 index 00b463f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nim.js +++ /dev/null @@ -1,187 +0,0 @@ -/* -Language: Nim -Description: Nim is a statically typed compiled systems programming language. -Website: https://nim-lang.org -Category: system -*/ - -function nim(hljs) { - const TYPES = [ - "int", - "int8", - "int16", - "int32", - "int64", - "uint", - "uint8", - "uint16", - "uint32", - "uint64", - "float", - "float32", - "float64", - "bool", - "char", - "string", - "cstring", - "pointer", - "expr", - "stmt", - "void", - "auto", - "any", - "range", - "array", - "openarray", - "varargs", - "seq", - "set", - "clong", - "culong", - "cchar", - "cschar", - "cshort", - "cint", - "csize", - "clonglong", - "cfloat", - "cdouble", - "clongdouble", - "cuchar", - "cushort", - "cuint", - "culonglong", - "cstringarray", - "semistatic" - ]; - const KEYWORDS = [ - "addr", - "and", - "as", - "asm", - "bind", - "block", - "break", - "case", - "cast", - "concept", - "const", - "continue", - "converter", - "defer", - "discard", - "distinct", - "div", - "do", - "elif", - "else", - "end", - "enum", - "except", - "export", - "finally", - "for", - "from", - "func", - "generic", - "guarded", - "if", - "import", - "in", - "include", - "interface", - "is", - "isnot", - "iterator", - "let", - "macro", - "method", - "mixin", - "mod", - "nil", - "not", - "notin", - "object", - "of", - "or", - "out", - "proc", - "ptr", - "raise", - "ref", - "return", - "shared", - "shl", - "shr", - "static", - "template", - "try", - "tuple", - "type", - "using", - "var", - "when", - "while", - "with", - "without", - "xor", - "yield" - ]; - const BUILT_INS = [ - "stdin", - "stdout", - "stderr", - "result" - ]; - const LITERALS = [ - "true", - "false" - ]; - return { - name: 'Nim', - keywords: { - keyword: KEYWORDS, - literal: LITERALS, - type: TYPES, - built_in: BUILT_INS - }, - contains: [ - { - className: 'meta', // Actually pragma - begin: /\{\./, - end: /\.\}/, - relevance: 10 - }, - { - className: 'string', - begin: /[a-zA-Z]\w*"/, - end: /"/, - contains: [ { begin: /""/ } ] - }, - { - className: 'string', - begin: /([a-zA-Z]\w*)?"""/, - end: /"""/ - }, - hljs.QUOTE_STRING_MODE, - { - className: 'type', - begin: /\b[A-Z]\w+\b/, - relevance: 0 - }, - { - className: 'number', - relevance: 0, - variants: [ - { begin: /\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/ }, - { begin: /\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/ }, - { begin: /\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/ }, - { begin: /\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/ } - ] - }, - hljs.HASH_COMMENT_MODE - ] - }; -} - -export { nim as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nim.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nim.js.js deleted file mode 100644 index f6832bb..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nim.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/nim" instead of "highlight.js/lib/languages/nim.js"' - ); - } - } - emitWarning(); - import lang from './nim.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nix.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nix.js deleted file mode 100644 index 053ec92..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nix.js +++ /dev/null @@ -1,372 +0,0 @@ -/* -Language: Nix -Author: Domen Kožar -Description: Nix functional language -Website: http://nixos.org/nix -Category: system -*/ - -/** @type LanguageFn */ -function nix(hljs) { - const regex = hljs.regex; - const KEYWORDS = { - keyword: [ - "assert", - "else", - "if", - "in", - "inherit", - "let", - "or", - "rec", - "then", - "with", - ], - literal: [ - "true", - "false", - "null", - ], - built_in: [ - // toplevel builtins - "abort", - "baseNameOf", - "builtins", - "derivation", - "derivationStrict", - "dirOf", - "fetchGit", - "fetchMercurial", - "fetchTarball", - "fetchTree", - "fromTOML", - "import", - "isNull", - "map", - "placeholder", - "removeAttrs", - "scopedImport", - "throw", - "toString", - ], - }; - - const BUILTINS = { - scope: 'built_in', - match: regex.either(...[ - "abort", - "add", - "addDrvOutputDependencies", - "addErrorContext", - "all", - "any", - "appendContext", - "attrNames", - "attrValues", - "baseNameOf", - "bitAnd", - "bitOr", - "bitXor", - "break", - "builtins", - "catAttrs", - "ceil", - "compareVersions", - "concatLists", - "concatMap", - "concatStringsSep", - "convertHash", - "currentSystem", - "currentTime", - "deepSeq", - "derivation", - "derivationStrict", - "dirOf", - "div", - "elem", - "elemAt", - "false", - "fetchGit", - "fetchMercurial", - "fetchTarball", - "fetchTree", - "fetchurl", - "filter", - "filterSource", - "findFile", - "flakeRefToString", - "floor", - "foldl'", - "fromJSON", - "fromTOML", - "functionArgs", - "genList", - "genericClosure", - "getAttr", - "getContext", - "getEnv", - "getFlake", - "groupBy", - "hasAttr", - "hasContext", - "hashFile", - "hashString", - "head", - "import", - "intersectAttrs", - "isAttrs", - "isBool", - "isFloat", - "isFunction", - "isInt", - "isList", - "isNull", - "isPath", - "isString", - "langVersion", - "length", - "lessThan", - "listToAttrs", - "map", - "mapAttrs", - "match", - "mul", - "nixPath", - "nixVersion", - "null", - "parseDrvName", - "parseFlakeRef", - "partition", - "path", - "pathExists", - "placeholder", - "readDir", - "readFile", - "readFileType", - "removeAttrs", - "replaceStrings", - "scopedImport", - "seq", - "sort", - "split", - "splitVersion", - "storeDir", - "storePath", - "stringLength", - "sub", - "substring", - "tail", - "throw", - "toFile", - "toJSON", - "toPath", - "toString", - "toXML", - "trace", - "traceVerbose", - "true", - "tryEval", - "typeOf", - "unsafeDiscardOutputDependency", - "unsafeDiscardStringContext", - "unsafeGetAttrPos", - "warn", - "zipAttrsWith", - ].map(b => `builtins\\.${b}`)), - relevance: 10, - }; - - const IDENTIFIER_REGEX = '[A-Za-z_][A-Za-z0-9_\'-]*'; - - const LOOKUP_PATH = { - scope: 'symbol', - match: new RegExp(`<${IDENTIFIER_REGEX}(/${IDENTIFIER_REGEX})*>`), - }; - - const PATH_PIECE = "[A-Za-z0-9_\\+\\.-]+"; - const PATH = { - scope: 'symbol', - match: new RegExp(`(\\.\\.|\\.|~)?/(${PATH_PIECE})?(/${PATH_PIECE})*(?=[\\s;])`), - }; - - const OPERATOR_WITHOUT_MINUS_REGEX = regex.either(...[ - '==', - '=', - '\\+\\+', - '\\+', - '<=', - '<\\|', - '<', - '>=', - '>', - '->', - '//', - '/', - '!=', - '!', - '\\|\\|', - '\\|>', - '\\?', - '\\*', - '&&', - ]); - - const OPERATOR = { - scope: 'operator', - match: regex.concat(OPERATOR_WITHOUT_MINUS_REGEX, /(?!-)/), - relevance: 0, - }; - - // '-' is being handled by itself to ensure we are able to tell the difference - // between a dash in an identifier and a minus operator - const NUMBER = { - scope: 'number', - match: new RegExp(`${hljs.NUMBER_RE}(?!-)`), - relevance: 0, - }; - const MINUS_OPERATOR = { - variants: [ - { - scope: 'operator', - beforeMatch: /\s/, - // The (?!>) is used to ensure this doesn't collide with the '->' operator - begin: /-(?!>)/, - }, - { - begin: [ - new RegExp(`${hljs.NUMBER_RE}`), - /-/, - /(?!>)/, - ], - beginScope: { - 1: 'number', - 2: 'operator' - }, - }, - { - begin: [ - OPERATOR_WITHOUT_MINUS_REGEX, - /-/, - /(?!>)/, - ], - beginScope: { - 1: 'operator', - 2: 'operator' - }, - }, - ], - relevance: 0, - }; - - const ATTRS = { - beforeMatch: /(^|\{|;)\s*/, - begin: new RegExp(`${IDENTIFIER_REGEX}(\\.${IDENTIFIER_REGEX})*\\s*=(?!=)`), - returnBegin: true, - relevance: 0, - contains: [ - { - scope: 'attr', - match: new RegExp(`${IDENTIFIER_REGEX}(\\.${IDENTIFIER_REGEX})*(?=\\s*=)`), - relevance: 0.2, - } - ], - }; - - const NORMAL_ESCAPED_DOLLAR = { - scope: 'char.escape', - match: /\\\$/, - }; - const INDENTED_ESCAPED_DOLLAR = { - scope: 'char.escape', - match: /''\$/, - }; - const ANTIQUOTE = { - scope: 'subst', - begin: /\$\{/, - end: /\}/, - keywords: KEYWORDS, - }; - const ESCAPED_DOUBLEQUOTE = { - scope: 'char.escape', - match: /'''/, - }; - const ESCAPED_LITERAL = { - scope: 'char.escape', - match: /\\(?!\$)./, - }; - const STRING = { - scope: 'string', - variants: [ - { - begin: "''", - end: "''", - contains: [ - INDENTED_ESCAPED_DOLLAR, - ANTIQUOTE, - ESCAPED_DOUBLEQUOTE, - ESCAPED_LITERAL, - ], - }, - { - begin: '"', - end: '"', - contains: [ - NORMAL_ESCAPED_DOLLAR, - ANTIQUOTE, - ESCAPED_LITERAL, - ], - }, - ], - }; - - const FUNCTION_PARAMS = { - scope: 'params', - match: new RegExp(`${IDENTIFIER_REGEX}\\s*:(?=\\s)`), - }; - - const EXPRESSIONS = [ - NUMBER, - hljs.HASH_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.COMMENT( - /\/\*\*(?!\/)/, - /\*\//, - { - subLanguage: 'markdown', - relevance: 0 - } - ), - BUILTINS, - STRING, - LOOKUP_PATH, - PATH, - FUNCTION_PARAMS, - ATTRS, - MINUS_OPERATOR, - OPERATOR, - ]; - - ANTIQUOTE.contains = EXPRESSIONS; - - const REPL = [ - { - scope: 'meta.prompt', - match: /^nix-repl>(?=\s)/, - relevance: 10, - }, - { - scope: 'meta', - beforeMatch: /\s+/, - begin: /:([a-z]+|\?)/, - }, - ]; - - return { - name: 'Nix', - aliases: [ "nixos" ], - keywords: KEYWORDS, - contains: EXPRESSIONS.concat(REPL), - }; -} - -export { nix as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nix.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nix.js.js deleted file mode 100644 index 4009121..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nix.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/nix" instead of "highlight.js/lib/languages/nix.js"' - ); - } - } - emitWarning(); - import lang from './nix.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/node-repl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/node-repl.js deleted file mode 100644 index 37cf0ec..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/node-repl.js +++ /dev/null @@ -1,33 +0,0 @@ -/* -Language: Node REPL -Requires: javascript.js -Author: Marat Nagayev -Category: scripting -*/ - -/** @type LanguageFn */ -function nodeRepl(hljs) { - return { - name: 'Node REPL', - contains: [ - { - className: 'meta.prompt', - starts: { - // a space separates the REPL prefix from the actual code - // this is purely for cleaner HTML output - end: / |$/, - starts: { - end: '$', - subLanguage: 'javascript' - } - }, - variants: [ - { begin: /^>(?=[ ]|$)/ }, - { begin: /^\.\.\.(?=[ ]|$)/ } - ] - } - ] - }; -} - -export { nodeRepl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/node-repl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/node-repl.js.js deleted file mode 100644 index 9f57edb..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/node-repl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/node-repl" instead of "highlight.js/lib/languages/node-repl.js"' - ); - } - } - emitWarning(); - import lang from './node-repl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nsis.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nsis.js deleted file mode 100644 index caa8b94..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nsis.js +++ /dev/null @@ -1,557 +0,0 @@ -/* -Language: NSIS -Description: Nullsoft Scriptable Install System -Author: Jan T. Sott -Website: https://nsis.sourceforge.io/Main_Page -Category: scripting -*/ - - -function nsis(hljs) { - const regex = hljs.regex; - const LANGUAGE_CONSTANTS = [ - "ADMINTOOLS", - "APPDATA", - "CDBURN_AREA", - "CMDLINE", - "COMMONFILES32", - "COMMONFILES64", - "COMMONFILES", - "COOKIES", - "DESKTOP", - "DOCUMENTS", - "EXEDIR", - "EXEFILE", - "EXEPATH", - "FAVORITES", - "FONTS", - "HISTORY", - "HWNDPARENT", - "INSTDIR", - "INTERNET_CACHE", - "LANGUAGE", - "LOCALAPPDATA", - "MUSIC", - "NETHOOD", - "OUTDIR", - "PICTURES", - "PLUGINSDIR", - "PRINTHOOD", - "PROFILE", - "PROGRAMFILES32", - "PROGRAMFILES64", - "PROGRAMFILES", - "QUICKLAUNCH", - "RECENT", - "RESOURCES_LOCALIZED", - "RESOURCES", - "SENDTO", - "SMPROGRAMS", - "SMSTARTUP", - "STARTMENU", - "SYSDIR", - "TEMP", - "TEMPLATES", - "VIDEOS", - "WINDIR" - ]; - - const PARAM_NAMES = [ - "ARCHIVE", - "FILE_ATTRIBUTE_ARCHIVE", - "FILE_ATTRIBUTE_NORMAL", - "FILE_ATTRIBUTE_OFFLINE", - "FILE_ATTRIBUTE_READONLY", - "FILE_ATTRIBUTE_SYSTEM", - "FILE_ATTRIBUTE_TEMPORARY", - "HKCR", - "HKCU", - "HKDD", - "HKEY_CLASSES_ROOT", - "HKEY_CURRENT_CONFIG", - "HKEY_CURRENT_USER", - "HKEY_DYN_DATA", - "HKEY_LOCAL_MACHINE", - "HKEY_PERFORMANCE_DATA", - "HKEY_USERS", - "HKLM", - "HKPD", - "HKU", - "IDABORT", - "IDCANCEL", - "IDIGNORE", - "IDNO", - "IDOK", - "IDRETRY", - "IDYES", - "MB_ABORTRETRYIGNORE", - "MB_DEFBUTTON1", - "MB_DEFBUTTON2", - "MB_DEFBUTTON3", - "MB_DEFBUTTON4", - "MB_ICONEXCLAMATION", - "MB_ICONINFORMATION", - "MB_ICONQUESTION", - "MB_ICONSTOP", - "MB_OK", - "MB_OKCANCEL", - "MB_RETRYCANCEL", - "MB_RIGHT", - "MB_RTLREADING", - "MB_SETFOREGROUND", - "MB_TOPMOST", - "MB_USERICON", - "MB_YESNO", - "NORMAL", - "OFFLINE", - "READONLY", - "SHCTX", - "SHELL_CONTEXT", - "SYSTEM|TEMPORARY", - ]; - - const COMPILER_FLAGS = [ - "addincludedir", - "addplugindir", - "appendfile", - "assert", - "cd", - "define", - "delfile", - "echo", - "else", - "endif", - "error", - "execute", - "finalize", - "getdllversion", - "gettlbversion", - "if", - "ifdef", - "ifmacrodef", - "ifmacrondef", - "ifndef", - "include", - "insertmacro", - "macro", - "macroend", - "makensis", - "packhdr", - "searchparse", - "searchreplace", - "system", - "tempfile", - "undef", - "uninstfinalize", - "verbose", - "warning", - ]; - - const CONSTANTS = { - className: 'variable.constant', - begin: regex.concat(/\$/, regex.either(...LANGUAGE_CONSTANTS)) - }; - - const DEFINES = { - // ${defines} - className: 'variable', - begin: /\$+\{[\!\w.:-]+\}/ - }; - - const VARIABLES = { - // $variables - className: 'variable', - begin: /\$+\w[\w\.]*/, - illegal: /\(\)\{\}/ - }; - - const LANGUAGES = { - // $(language_strings) - className: 'variable', - begin: /\$+\([\w^.:!-]+\)/ - }; - - const PARAMETERS = { - // command parameters - className: 'params', - begin: regex.either(...PARAM_NAMES) - }; - - const COMPILER = { - // !compiler_flags - className: 'keyword', - begin: regex.concat( - /!/, - regex.either(...COMPILER_FLAGS) - ) - }; - - const ESCAPE_CHARS = { - // $\n, $\r, $\t, $$ - className: 'char.escape', - begin: /\$(\\[nrt]|\$)/ - }; - - const PLUGINS = { - // plug::ins - className: 'title.function', - begin: /\w+::\w+/ - }; - - const STRING = { - className: 'string', - variants: [ - { - begin: '"', - end: '"' - }, - { - begin: '\'', - end: '\'' - }, - { - begin: '`', - end: '`' - } - ], - illegal: /\n/, - contains: [ - ESCAPE_CHARS, - CONSTANTS, - DEFINES, - VARIABLES, - LANGUAGES - ] - }; - - const KEYWORDS = [ - "Abort", - "AddBrandingImage", - "AddSize", - "AllowRootDirInstall", - "AllowSkipFiles", - "AutoCloseWindow", - "BGFont", - "BGGradient", - "BrandingText", - "BringToFront", - "Call", - "CallInstDLL", - "Caption", - "ChangeUI", - "CheckBitmap", - "ClearErrors", - "CompletedText", - "ComponentText", - "CopyFiles", - "CRCCheck", - "CreateDirectory", - "CreateFont", - "CreateShortCut", - "Delete", - "DeleteINISec", - "DeleteINIStr", - "DeleteRegKey", - "DeleteRegValue", - "DetailPrint", - "DetailsButtonText", - "DirText", - "DirVar", - "DirVerify", - "EnableWindow", - "EnumRegKey", - "EnumRegValue", - "Exch", - "Exec", - "ExecShell", - "ExecShellWait", - "ExecWait", - "ExpandEnvStrings", - "File", - "FileBufSize", - "FileClose", - "FileErrorText", - "FileOpen", - "FileRead", - "FileReadByte", - "FileReadUTF16LE", - "FileReadWord", - "FileWriteUTF16LE", - "FileSeek", - "FileWrite", - "FileWriteByte", - "FileWriteWord", - "FindClose", - "FindFirst", - "FindNext", - "FindWindow", - "FlushINI", - "GetCurInstType", - "GetCurrentAddress", - "GetDlgItem", - "GetDLLVersion", - "GetDLLVersionLocal", - "GetErrorLevel", - "GetFileTime", - "GetFileTimeLocal", - "GetFullPathName", - "GetFunctionAddress", - "GetInstDirError", - "GetKnownFolderPath", - "GetLabelAddress", - "GetTempFileName", - "GetWinVer", - "Goto", - "HideWindow", - "Icon", - "IfAbort", - "IfErrors", - "IfFileExists", - "IfRebootFlag", - "IfRtlLanguage", - "IfShellVarContextAll", - "IfSilent", - "InitPluginsDir", - "InstallButtonText", - "InstallColors", - "InstallDir", - "InstallDirRegKey", - "InstProgressFlags", - "InstType", - "InstTypeGetText", - "InstTypeSetText", - "Int64Cmp", - "Int64CmpU", - "Int64Fmt", - "IntCmp", - "IntCmpU", - "IntFmt", - "IntOp", - "IntPtrCmp", - "IntPtrCmpU", - "IntPtrOp", - "IsWindow", - "LangString", - "LicenseBkColor", - "LicenseData", - "LicenseForceSelection", - "LicenseLangString", - "LicenseText", - "LoadAndSetImage", - "LoadLanguageFile", - "LockWindow", - "LogSet", - "LogText", - "ManifestDPIAware", - "ManifestLongPathAware", - "ManifestMaxVersionTested", - "ManifestSupportedOS", - "MessageBox", - "MiscButtonText", - "Name|0", - "Nop", - "OutFile", - "Page", - "PageCallbacks", - "PEAddResource", - "PEDllCharacteristics", - "PERemoveResource", - "PESubsysVer", - "Pop", - "Push", - "Quit", - "ReadEnvStr", - "ReadINIStr", - "ReadRegDWORD", - "ReadRegStr", - "Reboot", - "RegDLL", - "Rename", - "RequestExecutionLevel", - "ReserveFile", - "Return", - "RMDir", - "SearchPath", - "SectionGetFlags", - "SectionGetInstTypes", - "SectionGetSize", - "SectionGetText", - "SectionIn", - "SectionSetFlags", - "SectionSetInstTypes", - "SectionSetSize", - "SectionSetText", - "SendMessage", - "SetAutoClose", - "SetBrandingImage", - "SetCompress", - "SetCompressor", - "SetCompressorDictSize", - "SetCtlColors", - "SetCurInstType", - "SetDatablockOptimize", - "SetDateSave", - "SetDetailsPrint", - "SetDetailsView", - "SetErrorLevel", - "SetErrors", - "SetFileAttributes", - "SetFont", - "SetOutPath", - "SetOverwrite", - "SetRebootFlag", - "SetRegView", - "SetShellVarContext", - "SetSilent", - "ShowInstDetails", - "ShowUninstDetails", - "ShowWindow", - "SilentInstall", - "SilentUnInstall", - "Sleep", - "SpaceTexts", - "StrCmp", - "StrCmpS", - "StrCpy", - "StrLen", - "SubCaption", - "Unicode", - "UninstallButtonText", - "UninstallCaption", - "UninstallIcon", - "UninstallSubCaption", - "UninstallText", - "UninstPage", - "UnRegDLL", - "Var", - "VIAddVersionKey", - "VIFileVersion", - "VIProductVersion", - "WindowIcon", - "WriteINIStr", - "WriteRegBin", - "WriteRegDWORD", - "WriteRegExpandStr", - "WriteRegMultiStr", - "WriteRegNone", - "WriteRegStr", - "WriteUninstaller", - "XPStyle" - ]; - - const LITERALS = [ - "admin", - "all", - "auto", - "both", - "bottom", - "bzip2", - "colored", - "components", - "current", - "custom", - "directory", - "false", - "force", - "hide", - "highest", - "ifdiff", - "ifnewer", - "instfiles", - "lastused", - "leave", - "left", - "license", - "listonly", - "lzma", - "nevershow", - "none", - "normal", - "notset", - "off", - "on", - "open", - "print", - "right", - "show", - "silent", - "silentlog", - "smooth", - "textonly", - "top", - "true", - "try", - "un.components", - "un.custom", - "un.directory", - "un.instfiles", - "un.license", - "uninstConfirm", - "user", - "Win10", - "Win7", - "Win8", - "WinVista", - "zlib" - ]; - - const FUNCTION_DEFINITION = { - match: [ - /Function/, - /\s+/, - regex.concat(/(\.)?/, hljs.IDENT_RE) - ], - scope: { - 1: "keyword", - 3: "title.function" - } - }; - - // Var Custom.Variable.Name.Item - // Var /GLOBAL Custom.Variable.Name.Item - const VARIABLE_NAME_RE = /[A-Za-z][\w.]*/; - const VARIABLE_DEFINITION = { - match: [ - /Var/, - /\s+/, - /(?:\/GLOBAL\s+)?/, - VARIABLE_NAME_RE - ], - scope: { - 1: "keyword", - 3: "params", - 4: "variable" - } - }; - - return { - name: 'NSIS', - case_insensitive: true, - keywords: { - keyword: KEYWORDS, - literal: LITERALS - }, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.COMMENT( - ';', - '$', - { relevance: 0 } - ), - VARIABLE_DEFINITION, - FUNCTION_DEFINITION, - { beginKeywords: 'Function PageEx Section SectionGroup FunctionEnd SectionEnd', }, - STRING, - COMPILER, - DEFINES, - VARIABLES, - LANGUAGES, - PARAMETERS, - PLUGINS, - hljs.NUMBER_MODE - ] - }; -} - -export { nsis as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nsis.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nsis.js.js deleted file mode 100644 index f680ce9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nsis.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/nsis" instead of "highlight.js/lib/languages/nsis.js"' - ); - } - } - emitWarning(); - import lang from './nsis.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js deleted file mode 100644 index 964f22e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js +++ /dev/null @@ -1,253 +0,0 @@ -/* -Language: Objective-C -Author: Valerii Hiora -Contributors: Angel G. Olloqui , Matt Diephouse , Andrew Farmer , Minh Nguyễn -Website: https://developer.apple.com/documentation/objectivec -Category: common -*/ - -function objectivec(hljs) { - const API_CLASS = { - className: 'built_in', - begin: '\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+' - }; - const IDENTIFIER_RE = /[a-zA-Z@][a-zA-Z0-9_]*/; - const TYPES = [ - "int", - "float", - "char", - "unsigned", - "signed", - "short", - "long", - "double", - "wchar_t", - "unichar", - "void", - "bool", - "BOOL", - "id|0", - "_Bool" - ]; - const KWS = [ - "while", - "export", - "sizeof", - "typedef", - "const", - "struct", - "for", - "union", - "volatile", - "static", - "mutable", - "if", - "do", - "return", - "goto", - "enum", - "else", - "break", - "extern", - "asm", - "case", - "default", - "register", - "explicit", - "typename", - "switch", - "continue", - "inline", - "readonly", - "assign", - "readwrite", - "self", - "@synchronized", - "id", - "typeof", - "nonatomic", - "IBOutlet", - "IBAction", - "strong", - "weak", - "copy", - "in", - "out", - "inout", - "bycopy", - "byref", - "oneway", - "__strong", - "__weak", - "__block", - "__autoreleasing", - "@private", - "@protected", - "@public", - "@try", - "@property", - "@end", - "@throw", - "@catch", - "@finally", - "@autoreleasepool", - "@synthesize", - "@dynamic", - "@selector", - "@optional", - "@required", - "@encode", - "@package", - "@import", - "@defs", - "@compatibility_alias", - "__bridge", - "__bridge_transfer", - "__bridge_retained", - "__bridge_retain", - "__covariant", - "__contravariant", - "__kindof", - "_Nonnull", - "_Nullable", - "_Null_unspecified", - "__FUNCTION__", - "__PRETTY_FUNCTION__", - "__attribute__", - "getter", - "setter", - "retain", - "unsafe_unretained", - "nonnull", - "nullable", - "null_unspecified", - "null_resettable", - "class", - "instancetype", - "NS_DESIGNATED_INITIALIZER", - "NS_UNAVAILABLE", - "NS_REQUIRES_SUPER", - "NS_RETURNS_INNER_POINTER", - "NS_INLINE", - "NS_AVAILABLE", - "NS_DEPRECATED", - "NS_ENUM", - "NS_OPTIONS", - "NS_SWIFT_UNAVAILABLE", - "NS_ASSUME_NONNULL_BEGIN", - "NS_ASSUME_NONNULL_END", - "NS_REFINED_FOR_SWIFT", - "NS_SWIFT_NAME", - "NS_SWIFT_NOTHROW", - "NS_DURING", - "NS_HANDLER", - "NS_ENDHANDLER", - "NS_VALUERETURN", - "NS_VOIDRETURN" - ]; - const LITERALS = [ - "false", - "true", - "FALSE", - "TRUE", - "nil", - "YES", - "NO", - "NULL" - ]; - const BUILT_INS = [ - "dispatch_once_t", - "dispatch_queue_t", - "dispatch_sync", - "dispatch_async", - "dispatch_once" - ]; - const KEYWORDS = { - "variable.language": [ - "this", - "super" - ], - $pattern: IDENTIFIER_RE, - keyword: KWS, - literal: LITERALS, - built_in: BUILT_INS, - type: TYPES - }; - const CLASS_KEYWORDS = { - $pattern: IDENTIFIER_RE, - keyword: [ - "@interface", - "@class", - "@protocol", - "@implementation" - ] - }; - return { - name: 'Objective-C', - aliases: [ - 'mm', - 'objc', - 'obj-c', - 'obj-c++', - 'objective-c++' - ], - keywords: KEYWORDS, - illegal: '/, - end: /$/, - illegal: '\\n' - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }, - { - className: 'class', - begin: '(' + CLASS_KEYWORDS.keyword.join('|') + ')\\b', - end: /(\{|$)/, - excludeEnd: true, - keywords: CLASS_KEYWORDS, - contains: [ hljs.UNDERSCORE_TITLE_MODE ] - }, - { - begin: '\\.' + hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - } - ] - }; -} - -export { objectivec as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js.js deleted file mode 100644 index 07fa8e5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/objectivec.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/objectivec" instead of "highlight.js/lib/languages/objectivec.js"' - ); - } - } - emitWarning(); - import lang from './objectivec.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ocaml.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ocaml.js deleted file mode 100644 index 2d2824d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ocaml.js +++ /dev/null @@ -1,83 +0,0 @@ -/* -Language: OCaml -Author: Mehdi Dogguy -Contributors: Nicolas Braud-Santoni , Mickael Delahaye -Description: OCaml language definition. -Website: https://ocaml.org -Category: functional -*/ - -function ocaml(hljs) { - /* missing support for heredoc-like string (OCaml 4.0.2+) */ - return { - name: 'OCaml', - aliases: [ 'ml' ], - keywords: { - $pattern: '[a-z_]\\w*!?', - keyword: - 'and as assert asr begin class constraint do done downto else end ' - + 'exception external for fun function functor if in include ' - + 'inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method ' - + 'mod module mutable new object of open! open or private rec sig struct ' - + 'then to try type val! val virtual when while with ' - /* camlp4 */ - + 'parser value', - built_in: - /* built-in types */ - 'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit ' - /* (some) types in Pervasives */ - + 'in_channel out_channel ref', - literal: - 'true false' - }, - illegal: /\/\/|>>/, - contains: [ - { - className: 'literal', - begin: '\\[(\\|\\|)?\\]|\\(\\)', - relevance: 0 - }, - hljs.COMMENT( - '\\(\\*', - '\\*\\)', - { contains: [ 'self' ] } - ), - { /* type variable */ - className: 'symbol', - begin: '\'[A-Za-z_](?!\')[\\w\']*' - /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ - }, - { /* polymorphic variant */ - className: 'type', - begin: '`[A-Z][\\w\']*' - }, - { /* module or constructor */ - className: 'type', - begin: '\\b[A-Z][\\w\']*', - relevance: 0 - }, - { /* don't color identifiers, but safely catch all identifiers with ' */ - begin: '[a-z_]\\w*\'[\\w\']*', - relevance: 0 - }, - hljs.inherit(hljs.APOS_STRING_MODE, { - className: 'string', - relevance: 0 - }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), - { - className: 'number', - begin: - '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' - + '0[oO][0-7_]+[Lln]?|' - + '0[bB][01_]+[Lln]?|' - + '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)', - relevance: 0 - }, - { begin: /->/ // relevance booster - } - ] - }; -} - -export { ocaml as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ocaml.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ocaml.js.js deleted file mode 100644 index e6de3f8..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ocaml.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ocaml" instead of "highlight.js/lib/languages/ocaml.js"' - ); - } - } - emitWarning(); - import lang from './ocaml.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/openscad.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/openscad.js deleted file mode 100644 index d6d492b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/openscad.js +++ /dev/null @@ -1,77 +0,0 @@ -/* -Language: OpenSCAD -Author: Dan Panzarella -Description: OpenSCAD is a language for the 3D CAD modeling software of the same name. -Website: https://www.openscad.org -Category: scientific -*/ - -function openscad(hljs) { - const SPECIAL_VARS = { - className: 'keyword', - begin: '\\$(f[asn]|t|vp[rtd]|children)' - }; - const LITERALS = { - className: 'literal', - begin: 'false|true|PI|undef' - }; - const NUMBERS = { - className: 'number', - begin: '\\b\\d+(\\.\\d+)?(e-?\\d+)?', // adds 1e5, 1e-10 - relevance: 0 - }; - const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }); - const PREPRO = { - className: 'meta', - keywords: { keyword: 'include use' }, - begin: 'include|use <', - end: '>' - }; - const PARAMS = { - className: 'params', - begin: '\\(', - end: '\\)', - contains: [ - 'self', - NUMBERS, - STRING, - SPECIAL_VARS, - LITERALS - ] - }; - const MODIFIERS = { - begin: '[*!#%]', - relevance: 0 - }; - const FUNCTIONS = { - className: 'function', - beginKeywords: 'module function', - end: /=|\{/, - contains: [ - PARAMS, - hljs.UNDERSCORE_TITLE_MODE - ] - }; - - return { - name: 'OpenSCAD', - aliases: [ 'scad' ], - keywords: { - keyword: 'function module include use for intersection_for if else \\%', - literal: 'false true PI undef', - built_in: 'circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign' - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - NUMBERS, - PREPRO, - STRING, - SPECIAL_VARS, - MODIFIERS, - FUNCTIONS - ] - }; -} - -export { openscad as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/openscad.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/openscad.js.js deleted file mode 100644 index e9a7b02..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/openscad.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/openscad" instead of "highlight.js/lib/languages/openscad.js"' - ); - } - } - emitWarning(); - import lang from './openscad.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/oxygene.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/oxygene.js deleted file mode 100644 index 3c1e98f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/oxygene.js +++ /dev/null @@ -1,87 +0,0 @@ -/* -Language: Oxygene -Author: Carlo Kok -Description: Oxygene is built on the foundation of Object Pascal, revamped and extended to be a modern language for the twenty-first century. -Website: https://www.elementscompiler.com/elements/default.aspx -Category: build-system -*/ - -function oxygene(hljs) { - const OXYGENE_KEYWORDS = { - $pattern: /\.?\w+/, - keyword: - 'abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue ' - + 'create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false ' - + 'final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited ' - + 'inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of ' - + 'old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly ' - + 'record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple ' - + 'type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal ' - + 'register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained' - }; - const CURLY_COMMENT = hljs.COMMENT( - /\{/, - /\}/, - { relevance: 0 } - ); - const PAREN_COMMENT = hljs.COMMENT( - '\\(\\*', - '\\*\\)', - { relevance: 10 } - ); - const STRING = { - className: 'string', - begin: '\'', - end: '\'', - contains: [ { begin: '\'\'' } ] - }; - const CHAR_STRING = { - className: 'string', - begin: '(#\\d+)+' - }; - const FUNCTION = { - beginKeywords: 'function constructor destructor procedure method', - end: '[:;]', - keywords: 'function constructor|10 destructor|10 procedure|10 method|10', - contains: [ - hljs.inherit(hljs.TITLE_MODE, { scope: "title.function" }), - { - className: 'params', - begin: '\\(', - end: '\\)', - keywords: OXYGENE_KEYWORDS, - contains: [ - STRING, - CHAR_STRING - ] - }, - CURLY_COMMENT, - PAREN_COMMENT - ] - }; - - const SEMICOLON = { - scope: "punctuation", - match: /;/, - relevance: 0 - }; - - return { - name: 'Oxygene', - case_insensitive: true, - keywords: OXYGENE_KEYWORDS, - illegal: '("|\\$[G-Zg-z]|\\/\\*||->)', - contains: [ - CURLY_COMMENT, - PAREN_COMMENT, - hljs.C_LINE_COMMENT_MODE, - STRING, - CHAR_STRING, - hljs.NUMBER_MODE, - FUNCTION, - SEMICOLON - ] - }; -} - -export { oxygene as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/oxygene.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/oxygene.js.js deleted file mode 100644 index 8586865..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/oxygene.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/oxygene" instead of "highlight.js/lib/languages/oxygene.js"' - ); - } - } - emitWarning(); - import lang from './oxygene.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/parser3.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/parser3.js deleted file mode 100644 index 10dd89a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/parser3.js +++ /dev/null @@ -1,55 +0,0 @@ -/* -Language: Parser3 -Requires: xml.js -Author: Oleg Volchkov -Website: https://www.parser.ru/en/ -Category: template -*/ - -function parser3(hljs) { - const CURLY_SUBCOMMENT = hljs.COMMENT( - /\{/, - /\}/, - { contains: [ 'self' ] } - ); - return { - name: 'Parser3', - subLanguage: 'xml', - relevance: 0, - contains: [ - hljs.COMMENT('^#', '$'), - hljs.COMMENT( - /\^rem\{/, - /\}/, - { - relevance: 10, - contains: [ CURLY_SUBCOMMENT ] - } - ), - { - className: 'meta', - begin: '^@(?:BASE|USE|CLASS|OPTIONS)$', - relevance: 10 - }, - { - className: 'title', - begin: '@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$' - }, - { - className: 'variable', - begin: /\$\{?[\w\-.:]+\}?/ - }, - { - className: 'keyword', - begin: /\^[\w\-.:]+/ - }, - { - className: 'number', - begin: '\\^#[0-9a-fA-F]+' - }, - hljs.C_NUMBER_MODE - ] - }; -} - -export { parser3 as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/parser3.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/parser3.js.js deleted file mode 100644 index 4552db5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/parser3.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/parser3" instead of "highlight.js/lib/languages/parser3.js"' - ); - } - } - emitWarning(); - import lang from './parser3.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js deleted file mode 100644 index d535989..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js +++ /dev/null @@ -1,504 +0,0 @@ -/* -Language: Perl -Author: Peter Leonov -Website: https://www.perl.org -Category: common -*/ - -/** @type LanguageFn */ -function perl(hljs) { - const regex = hljs.regex; - const KEYWORDS = [ - 'abs', - 'accept', - 'alarm', - 'and', - 'atan2', - 'bind', - 'binmode', - 'bless', - 'break', - 'caller', - 'chdir', - 'chmod', - 'chomp', - 'chop', - 'chown', - 'chr', - 'chroot', - 'class', - 'close', - 'closedir', - 'connect', - 'continue', - 'cos', - 'crypt', - 'dbmclose', - 'dbmopen', - 'defined', - 'delete', - 'die', - 'do', - 'dump', - 'each', - 'else', - 'elsif', - 'endgrent', - 'endhostent', - 'endnetent', - 'endprotoent', - 'endpwent', - 'endservent', - 'eof', - 'eval', - 'exec', - 'exists', - 'exit', - 'exp', - 'fcntl', - 'field', - 'fileno', - 'flock', - 'for', - 'foreach', - 'fork', - 'format', - 'formline', - 'getc', - 'getgrent', - 'getgrgid', - 'getgrnam', - 'gethostbyaddr', - 'gethostbyname', - 'gethostent', - 'getlogin', - 'getnetbyaddr', - 'getnetbyname', - 'getnetent', - 'getpeername', - 'getpgrp', - 'getpriority', - 'getprotobyname', - 'getprotobynumber', - 'getprotoent', - 'getpwent', - 'getpwnam', - 'getpwuid', - 'getservbyname', - 'getservbyport', - 'getservent', - 'getsockname', - 'getsockopt', - 'given', - 'glob', - 'gmtime', - 'goto', - 'grep', - 'gt', - 'hex', - 'if', - 'index', - 'int', - 'ioctl', - 'join', - 'keys', - 'kill', - 'last', - 'lc', - 'lcfirst', - 'length', - 'link', - 'listen', - 'local', - 'localtime', - 'log', - 'lstat', - 'lt', - 'ma', - 'map', - 'method', - 'mkdir', - 'msgctl', - 'msgget', - 'msgrcv', - 'msgsnd', - 'my', - 'ne', - 'next', - 'no', - 'not', - 'oct', - 'open', - 'opendir', - 'or', - 'ord', - 'our', - 'pack', - 'package', - 'pipe', - 'pop', - 'pos', - 'print', - 'printf', - 'prototype', - 'push', - 'q|0', - 'qq', - 'quotemeta', - 'qw', - 'qx', - 'rand', - 'read', - 'readdir', - 'readline', - 'readlink', - 'readpipe', - 'recv', - 'redo', - 'ref', - 'rename', - 'require', - 'reset', - 'return', - 'reverse', - 'rewinddir', - 'rindex', - 'rmdir', - 'say', - 'scalar', - 'seek', - 'seekdir', - 'select', - 'semctl', - 'semget', - 'semop', - 'send', - 'setgrent', - 'sethostent', - 'setnetent', - 'setpgrp', - 'setpriority', - 'setprotoent', - 'setpwent', - 'setservent', - 'setsockopt', - 'shift', - 'shmctl', - 'shmget', - 'shmread', - 'shmwrite', - 'shutdown', - 'sin', - 'sleep', - 'socket', - 'socketpair', - 'sort', - 'splice', - 'split', - 'sprintf', - 'sqrt', - 'srand', - 'stat', - 'state', - 'study', - 'sub', - 'substr', - 'symlink', - 'syscall', - 'sysopen', - 'sysread', - 'sysseek', - 'system', - 'syswrite', - 'tell', - 'telldir', - 'tie', - 'tied', - 'time', - 'times', - 'tr', - 'truncate', - 'uc', - 'ucfirst', - 'umask', - 'undef', - 'unless', - 'unlink', - 'unpack', - 'unshift', - 'untie', - 'until', - 'use', - 'utime', - 'values', - 'vec', - 'wait', - 'waitpid', - 'wantarray', - 'warn', - 'when', - 'while', - 'write', - 'x|0', - 'xor', - 'y|0' - ]; - - // https://perldoc.perl.org/perlre#Modifiers - const REGEX_MODIFIERS = /[dualxmsipngr]{0,12}/; // aa and xx are valid, making max length 12 - const PERL_KEYWORDS = { - $pattern: /[\w.]+/, - keyword: KEYWORDS.join(" ") - }; - const SUBST = { - className: 'subst', - begin: '[$@]\\{', - end: '\\}', - keywords: PERL_KEYWORDS - }; - const METHOD = { - begin: /->\{/, - end: /\}/ - // contains defined later - }; - const ATTR = { - scope: 'attr', - match: /\s+:\s*\w+(\s*\(.*?\))?/, - }; - const VAR = { - scope: 'variable', - variants: [ - { begin: /\$\d/ }, - { begin: regex.concat( - /[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/, - // negative look-ahead tries to avoid matching patterns that are not - // Perl at all like $ident$, @ident@, etc. - `(?![A-Za-z])(?![@$%])` - ) - }, - { - // Only $= is a special Perl variable and one can't declare @= or %=. - begin: /[$%@](?!")[^\s\w{=]|\$=/, - relevance: 0 - } - ], - contains: [ ATTR ], - }; - const NUMBER = { - className: 'number', - variants: [ - // decimal numbers: - // include the case where a number starts with a dot (eg. .9), and - // the leading 0? avoids mixing the first and second match on 0.x cases - { match: /0?\.[0-9][0-9_]+\b/ }, - // include the special versioned number (eg. v5.38) - { match: /\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/ }, - // non-decimal numbers: - { match: /\b0[0-7][0-7_]*\b/ }, - { match: /\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/ }, - { match: /\b0b[0-1][0-1_]*\b/ }, - ], - relevance: 0 - }; - const STRING_CONTAINS = [ - hljs.BACKSLASH_ESCAPE, - SUBST, - VAR - ]; - const REGEX_DELIMS = [ - /!/, - /\//, - /\|/, - /\?/, - /'/, - /"/, // valid but infrequent and weird - /#/ // valid but infrequent and weird - ]; - /** - * @param {string|RegExp} prefix - * @param {string|RegExp} open - * @param {string|RegExp} close - */ - const PAIRED_DOUBLE_RE = (prefix, open, close = '\\1') => { - const middle = (close === '\\1') - ? close - : regex.concat(close, open); - return regex.concat( - regex.concat("(?:", prefix, ")"), - open, - /(?:\\.|[^\\\/])*?/, - middle, - /(?:\\.|[^\\\/])*?/, - close, - REGEX_MODIFIERS - ); - }; - /** - * @param {string|RegExp} prefix - * @param {string|RegExp} open - * @param {string|RegExp} close - */ - const PAIRED_RE = (prefix, open, close) => { - return regex.concat( - regex.concat("(?:", prefix, ")"), - open, - /(?:\\.|[^\\\/])*?/, - close, - REGEX_MODIFIERS - ); - }; - const PERL_DEFAULT_CONTAINS = [ - VAR, - hljs.HASH_COMMENT_MODE, - hljs.COMMENT( - /^=\w/, - /=cut/, - { endsWithParent: true } - ), - METHOD, - { - className: 'string', - contains: STRING_CONTAINS, - variants: [ - { - begin: 'q[qwxr]?\\s*\\(', - end: '\\)', - relevance: 5 - }, - { - begin: 'q[qwxr]?\\s*\\[', - end: '\\]', - relevance: 5 - }, - { - begin: 'q[qwxr]?\\s*\\{', - end: '\\}', - relevance: 5 - }, - { - begin: 'q[qwxr]?\\s*\\|', - end: '\\|', - relevance: 5 - }, - { - begin: 'q[qwxr]?\\s*<', - end: '>', - relevance: 5 - }, - { - begin: 'qw\\s+q', - end: 'q', - relevance: 5 - }, - { - begin: '\'', - end: '\'', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: '"', - end: '"' - }, - { - begin: '`', - end: '`', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: /\{\w+\}/, - relevance: 0 - }, - { - begin: '-?\\w+\\s*=>', - relevance: 0 - } - ] - }, - NUMBER, - { // regexp container - begin: '(\\/\\/|' + hljs.RE_STARTERS_RE + '|\\b(split|return|print|reverse|grep)\\b)\\s*', - keywords: 'split return print reverse grep', - relevance: 0, - contains: [ - hljs.HASH_COMMENT_MODE, - { - className: 'regexp', - variants: [ - // allow matching common delimiters - { begin: PAIRED_DOUBLE_RE("s|tr|y", regex.either(...REGEX_DELIMS, { capture: true })) }, - // and then paired delmis - { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\(", "\\)") }, - { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\[", "\\]") }, - { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\{", "\\}") } - ], - relevance: 2 - }, - { - className: 'regexp', - variants: [ - { - // could be a comment in many languages so do not count - // as relevant - begin: /(m|qr)\/\//, - relevance: 0 - }, - // prefix is optional with /regex/ - { begin: PAIRED_RE("(?:m|qr)?", /\//, /\//) }, - // allow matching common delimiters - { begin: PAIRED_RE("m|qr", regex.either(...REGEX_DELIMS, { capture: true }), /\1/) }, - // allow common paired delmins - { begin: PAIRED_RE("m|qr", /\(/, /\)/) }, - { begin: PAIRED_RE("m|qr", /\[/, /\]/) }, - { begin: PAIRED_RE("m|qr", /\{/, /\}/) } - ] - } - ] - }, - { - className: 'function', - beginKeywords: 'sub method', - end: '(\\s*\\(.*?\\))?[;{]', - excludeEnd: true, - relevance: 5, - contains: [ hljs.TITLE_MODE, ATTR ] - }, - { - className: 'class', - beginKeywords: 'class', - end: '[;{]', - excludeEnd: true, - relevance: 5, - contains: [ hljs.TITLE_MODE, ATTR, NUMBER ] - }, - { - begin: '-\\w\\b', - relevance: 0 - }, - { - begin: "^__DATA__$", - end: "^__END__$", - subLanguage: 'mojolicious', - contains: [ - { - begin: "^@@.*", - end: "$", - className: "comment" - } - ] - } - ]; - SUBST.contains = PERL_DEFAULT_CONTAINS; - METHOD.contains = PERL_DEFAULT_CONTAINS; - - return { - name: 'Perl', - aliases: [ - 'pl', - 'pm' - ], - keywords: PERL_KEYWORDS, - contains: PERL_DEFAULT_CONTAINS - }; -} - -export { perl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js.js deleted file mode 100644 index ddb8f32..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/perl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/perl" instead of "highlight.js/lib/languages/perl.js"' - ); - } - } - emitWarning(); - import lang from './perl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pf.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pf.js deleted file mode 100644 index af9023d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pf.js +++ /dev/null @@ -1,60 +0,0 @@ -/* -Language: Packet Filter config -Description: pf.conf — packet filter configuration file (OpenBSD) -Author: Peter Piwowarski -Website: http://man.openbsd.org/pf.conf -Category: config -*/ - -function pf(hljs) { - const MACRO = { - className: 'variable', - begin: /\$[\w\d#@][\w\d_]*/, - relevance: 0 - }; - const TABLE = { - className: 'variable', - begin: /<(?!\/)/, - end: />/ - }; - - return { - name: 'Packet Filter config', - aliases: [ 'pf.conf' ], - keywords: { - $pattern: /[a-z0-9_<>-]+/, - built_in: /* block match pass are "actions" in pf.conf(5), the rest are - * lexically similar top-level commands. - */ - 'block match pass load anchor|5 antispoof|10 set table', - keyword: - 'in out log quick on rdomain inet inet6 proto from port os to route ' - + 'allow-opts divert-packet divert-reply divert-to flags group icmp-type ' - + 'icmp6-type label once probability recieved-on rtable prio queue ' - + 'tos tag tagged user keep fragment for os drop ' - + 'af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin ' - + 'source-hash static-port ' - + 'dup-to reply-to route-to ' - + 'parent bandwidth default min max qlimit ' - + 'block-policy debug fingerprints hostid limit loginterface optimization ' - + 'reassemble ruleset-optimization basic none profile skip state-defaults ' - + 'state-policy timeout ' - + 'const counters persist ' - + 'no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy ' - + 'source-track global rule max-src-nodes max-src-states max-src-conn ' - + 'max-src-conn-rate overload flush ' - + 'scrub|5 max-mss min-ttl no-df|10 random-id', - literal: - 'all any no-route self urpf-failed egress|5 unknown' - }, - contains: [ - hljs.HASH_COMMENT_MODE, - hljs.NUMBER_MODE, - hljs.QUOTE_STRING_MODE, - MACRO, - TABLE - ] - }; -} - -export { pf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pf.js.js deleted file mode 100644 index f13b611..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/pf" instead of "highlight.js/lib/languages/pf.js"' - ); - } - } - emitWarning(); - import lang from './pf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pgsql.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pgsql.js deleted file mode 100644 index 604d84a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pgsql.js +++ /dev/null @@ -1,525 +0,0 @@ -/* -Language: PostgreSQL and PL/pgSQL -Author: Egor Rogov (e.rogov@postgrespro.ru) -Website: https://www.postgresql.org/docs/11/sql.html -Description: - This language incorporates both PostgreSQL SQL dialect and PL/pgSQL language. - It is based on PostgreSQL version 11. Some notes: - - Text in double-dollar-strings is _always_ interpreted as some programming code. Text - in ordinary quotes is _never_ interpreted that way and highlighted just as a string. - - There are quite a bit "special cases". That's because many keywords are not strictly - they are keywords in some contexts and ordinary identifiers in others. Only some - of such cases are handled; you still can get some of your identifiers highlighted - wrong way. - - Function names deliberately are not highlighted. There is no way to tell function - call from other constructs, hence we can't highlight _all_ function names. And - some names highlighted while others not looks ugly. -Category: database -*/ - -function pgsql(hljs) { - const COMMENT_MODE = hljs.COMMENT('--', '$'); - const UNQUOTED_IDENT = '[a-zA-Z_][a-zA-Z_0-9$]*'; - const DOLLAR_STRING = '\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$'; - const LABEL = '<<\\s*' + UNQUOTED_IDENT + '\\s*>>'; - - const SQL_KW = - // https://www.postgresql.org/docs/11/static/sql-keywords-appendix.html - // https://www.postgresql.org/docs/11/static/sql-commands.html - // SQL commands (starting words) - 'ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE ' - + 'DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY ' - + 'PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW ' - + 'START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES ' - // SQL commands (others) - + 'AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN ' - + 'WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS ' - + 'FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM ' - + 'TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS ' - + 'METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION ' - + 'INDEX PROCEDURE ASSERTION ' - // additional reserved key words - + 'ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK ' - + 'COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS ' - + 'DEFERRABLE RANGE ' - + 'DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ' - + 'ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT ' - + 'NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY ' - + 'REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN ' - + 'TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH ' - // some of non-reserved (which are used in clauses or as PL/pgSQL keyword) - + 'BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN ' - + 'BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT ' - + 'TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN ' - + 'EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH ' - + 'REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ' - + 'ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED ' - + 'INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 ' - + 'INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ' - + 'ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES ' - + 'RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS ' - + 'UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF ' - // some parameters of VACUUM/ANALYZE/EXPLAIN - + 'FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING ' - // - + 'RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED ' - + 'OF NOTHING NONE EXCLUDE ATTRIBUTE ' - // from GRANT (not keywords actually) - + 'USAGE ROUTINES ' - // actually literals, but look better this way (due to IS TRUE, IS FALSE, ISNULL etc) - + 'TRUE FALSE NAN INFINITY '; - - const ROLE_ATTRS = // only those not in keywrods already - 'SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT ' - + 'LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS '; - - const PLPGSQL_KW = - 'ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS ' - + 'STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT ' - + 'OPEN '; - - const TYPES = - // https://www.postgresql.org/docs/11/static/datatype.html - 'BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR ' - + 'CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 ' - + 'MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 ' - + 'SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 ' - + 'TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR ' - + 'INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ' - // pseudotypes - + 'ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL ' - + 'RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR ' - // spec. type - + 'NAME ' - // OID-types - + 'OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 ' - + 'REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ';// + - - const TYPES_RE = - TYPES.trim() - .split(' ') - .map(function(val) { return val.split('|')[0]; }) - .join('|'); - - const SQL_BI = - 'CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP ' - + 'CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC '; - - const PLPGSQL_BI = - 'FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 ' - + 'TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ' - // get diagnostics - + 'ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME ' - + 'PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 ' - + 'PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 '; - - const PLPGSQL_EXCEPTIONS = - // exceptions https://www.postgresql.org/docs/current/static/errcodes-appendix.html - 'SQLSTATE SQLERRM|10 ' - + 'SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING ' - + 'NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED ' - + 'STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED ' - + 'SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE ' - + 'SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION ' - + 'TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED ' - + 'INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR ' - + 'INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION ' - + 'STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION ' - + 'DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW ' - + 'DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW ' - + 'INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION ' - + 'INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION ' - + 'INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST ' - + 'INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE ' - + 'NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE ' - + 'INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE ' - + 'INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT ' - + 'INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH ' - + 'NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE ' - + 'SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION ' - + 'SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING ' - + 'FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION ' - + 'BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT ' - + 'INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION ' - + 'INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION ' - + 'UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE ' - + 'INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE ' - + 'HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION ' - + 'INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION ' - + 'NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION ' - + 'SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION ' - + 'IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME ' - + 'TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD ' - + 'DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST ' - + 'INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT ' - + 'MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED ' - + 'READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION ' - + 'CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED ' - + 'PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED ' - + 'EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED ' - + 'TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED ' - + 'SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME ' - + 'INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION ' - + 'SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED ' - + 'SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE ' - + 'GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME ' - + 'NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH ' - + 'INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN ' - + 'UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT ' - + 'DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION ' - + 'DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS ' - + 'DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS ' - + 'INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION ' - + 'INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION ' - + 'INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION ' - + 'INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL ' - + 'OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED ' - + 'STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE ' - + 'OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION ' - + 'QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED ' - + 'SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR ' - + 'LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED ' - + 'FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION ' - + 'FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER ' - + 'FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS ' - + 'FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX ' - + 'FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH ' - + 'FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES ' - + 'FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE ' - + 'FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION ' - + 'FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR ' - + 'RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED ' - + 'INDEX_CORRUPTED '; - - const FUNCTIONS = - // https://www.postgresql.org/docs/11/static/functions-aggregate.html - 'ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG ' - + 'JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG ' - + 'CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE ' - + 'REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP ' - + 'PERCENTILE_CONT PERCENTILE_DISC ' - // https://www.postgresql.org/docs/11/static/functions-window.html - + 'ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE ' - // https://www.postgresql.org/docs/11/static/functions-comparison.html - + 'NUM_NONNULLS NUM_NULLS ' - // https://www.postgresql.org/docs/11/static/functions-math.html - + 'ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT ' - + 'TRUNC WIDTH_BUCKET ' - + 'RANDOM SETSEED ' - + 'ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND ' - // https://www.postgresql.org/docs/11/static/functions-string.html - + 'BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ' - + 'ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP ' - + 'LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 ' - + 'QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY ' - + 'REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR ' - + 'TO_ASCII TO_HEX TRANSLATE ' - // https://www.postgresql.org/docs/11/static/functions-binarystring.html - + 'OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE ' - // https://www.postgresql.org/docs/11/static/functions-formatting.html - + 'TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP ' - // https://www.postgresql.org/docs/11/static/functions-datetime.html - + 'AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL ' - + 'MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 ' - + 'TIMEOFDAY TRANSACTION_TIMESTAMP|10 ' - // https://www.postgresql.org/docs/11/static/functions-enum.html - + 'ENUM_FIRST ENUM_LAST ENUM_RANGE ' - // https://www.postgresql.org/docs/11/static/functions-geometry.html - + 'AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH ' - + 'BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ' - // https://www.postgresql.org/docs/11/static/functions-net.html - + 'ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY ' - + 'INET_MERGE MACADDR8_SET7BIT ' - // https://www.postgresql.org/docs/11/static/functions-textsearch.html - + 'ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY ' - + 'QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE ' - + 'TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY ' - + 'TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN ' - // https://www.postgresql.org/docs/11/static/functions-xml.html - + 'XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT ' - + 'XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT ' - + 'XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES ' - + 'TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA ' - + 'QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA ' - + 'CURSOR_TO_XML CURSOR_TO_XMLSCHEMA ' - + 'SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA ' - + 'DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA ' - + 'XMLATTRIBUTES ' - // https://www.postgresql.org/docs/11/static/functions-json.html - + 'TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT ' - + 'JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH ' - + 'JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH ' - + 'JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET ' - + 'JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT ' - + 'JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET ' - + 'JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY ' - // https://www.postgresql.org/docs/11/static/functions-sequence.html - + 'CURRVAL LASTVAL NEXTVAL SETVAL ' - // https://www.postgresql.org/docs/11/static/functions-conditional.html - + 'COALESCE NULLIF GREATEST LEAST ' - // https://www.postgresql.org/docs/11/static/functions-array.html - + 'ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ' - + 'ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY ' - + 'STRING_TO_ARRAY UNNEST ' - // https://www.postgresql.org/docs/11/static/functions-range.html - + 'ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE ' - // https://www.postgresql.org/docs/11/static/functions-srf.html - + 'GENERATE_SERIES GENERATE_SUBSCRIPTS ' - // https://www.postgresql.org/docs/11/static/functions-info.html - + 'CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT ' - + 'INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE ' - + 'TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE ' - + 'COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION ' - + 'TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX ' - + 'TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS ' - // https://www.postgresql.org/docs/11/static/functions-admin.html - + 'CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE ' - + 'GIN_CLEAN_PENDING_LIST ' - // https://www.postgresql.org/docs/11/static/functions-trigger.html - + 'SUPPRESS_REDUNDANT_UPDATES_TRIGGER ' - // ihttps://www.postgresql.org/docs/devel/static/lo-funcs.html - + 'LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE ' - // - + 'GROUPING CAST '; - - const FUNCTIONS_RE = - FUNCTIONS.trim() - .split(' ') - .map(function(val) { return val.split('|')[0]; }) - .join('|'); - - return { - name: 'PostgreSQL', - aliases: [ - 'postgres', - 'postgresql' - ], - supersetOf: "sql", - case_insensitive: true, - keywords: { - keyword: - SQL_KW + PLPGSQL_KW + ROLE_ATTRS, - built_in: - SQL_BI + PLPGSQL_BI + PLPGSQL_EXCEPTIONS - }, - // Forbid some cunstructs from other languages to improve autodetect. In fact - // "[a-z]:" is legal (as part of array slice), but improbabal. - illegal: /:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/, - contains: [ - // special handling of some words, which are reserved only in some contexts - { - className: 'keyword', - variants: [ - { begin: /\bTEXT\s*SEARCH\b/ }, - { begin: /\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/ }, - { begin: /\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/ }, - { begin: /\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/ }, - { begin: /\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/ }, - { begin: /\bNULLS\s+(FIRST|LAST)\b/ }, - { begin: /\bEVENT\s+TRIGGER\b/ }, - { begin: /\b(MAPPING|OR)\s+REPLACE\b/ }, - { begin: /\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/ }, - { begin: /\b(SHARE|EXCLUSIVE)\s+MODE\b/ }, - { begin: /\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/ }, - { begin: /\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/ }, - { begin: /\bPRESERVE\s+ROWS\b/ }, - { begin: /\bDISCARD\s+PLANS\b/ }, - { begin: /\bREFERENCING\s+(OLD|NEW)\b/ }, - { begin: /\bSKIP\s+LOCKED\b/ }, - { begin: /\bGROUPING\s+SETS\b/ }, - { begin: /\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/ }, - { begin: /\b(WITH|WITHOUT)\s+HOLD\b/ }, - { begin: /\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/ }, - { begin: /\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/ }, - { begin: /\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/ }, - { begin: /\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/ }, - { begin: /\bIS\s+(NOT\s+)?UNKNOWN\b/ }, - { begin: /\bSECURITY\s+LABEL\b/ }, - { begin: /\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/ }, - { begin: /\bWITH\s+(NO\s+)?DATA\b/ }, - { begin: /\b(FOREIGN|SET)\s+DATA\b/ }, - { begin: /\bSET\s+(CATALOG|CONSTRAINTS)\b/ }, - { begin: /\b(WITH|FOR)\s+ORDINALITY\b/ }, - { begin: /\bIS\s+(NOT\s+)?DOCUMENT\b/ }, - { begin: /\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/ }, - { begin: /\b(STRIP|PRESERVE)\s+WHITESPACE\b/ }, - { begin: /\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/ }, - { begin: /\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/ }, - { begin: /\bAT\s+TIME\s+ZONE\b/ }, - { begin: /\bGRANTED\s+BY\b/ }, - { begin: /\bRETURN\s+(QUERY|NEXT)\b/ }, - { begin: /\b(ATTACH|DETACH)\s+PARTITION\b/ }, - { begin: /\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/ }, - { begin: /\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/ }, - { begin: /\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/ } - ] - }, - // functions named as keywords, followed by '(' - { begin: /\b(FORMAT|FAMILY|VERSION)\s*\(/ - // keywords: { built_in: 'FORMAT FAMILY VERSION' } - }, - // INCLUDE ( ... ) in index_parameters in CREATE TABLE - { - begin: /\bINCLUDE\s*\(/, - keywords: 'INCLUDE' - }, - // not highlight RANGE if not in frame_clause (not 100% correct, but seems satisfactory) - { begin: /\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/ }, - // disable highlighting in commands CREATE AGGREGATE/COLLATION/DATABASE/OPERTOR/TEXT SEARCH .../TYPE - // and in PL/pgSQL RAISE ... USING - { begin: /\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/ }, - // PG_smth; HAS_some_PRIVILEGE - { - // className: 'built_in', - begin: /\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/, - relevance: 10 - }, - // extract - { - begin: /\bEXTRACT\s*\(/, - end: /\bFROM\b/, - returnEnd: true, - keywords: { - // built_in: 'EXTRACT', - type: 'CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS ' - + 'MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR ' - + 'TIMEZONE_MINUTE WEEK YEAR' } - }, - // xmlelement, xmlpi - special NAME - { - begin: /\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/, - keywords: { - // built_in: 'XMLELEMENT XMLPI', - keyword: 'NAME' } - }, - // xmlparse, xmlserialize - { - begin: /\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/, - keywords: { - // built_in: 'XMLPARSE XMLSERIALIZE', - keyword: 'DOCUMENT CONTENT' } - }, - // Sequences. We actually skip everything between CACHE|INCREMENT|MAXVALUE|MINVALUE and - // nearest following numeric constant. Without with trick we find a lot of "keywords" - // in 'avrasm' autodetection test... - { - beginKeywords: 'CACHE INCREMENT MAXVALUE MINVALUE', - end: hljs.C_NUMBER_RE, - returnEnd: true, - keywords: 'BY CACHE INCREMENT MAXVALUE MINVALUE' - }, - // WITH|WITHOUT TIME ZONE as part of datatype - { - className: 'type', - begin: /\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/ - }, - // INTERVAL optional fields - { - className: 'type', - begin: /\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/ - }, - // Pseudo-types which allowed only as return type - { - begin: /\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/, - keywords: { - keyword: 'RETURNS', - type: 'LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER' - } - }, - // Known functions - only when followed by '(' - { begin: '\\b(' + FUNCTIONS_RE + ')\\s*\\(' - // keywords: { built_in: FUNCTIONS } - }, - // Types - { begin: '\\.(' + TYPES_RE + ')\\b' // prevent highlight as type, say, 'oid' in 'pgclass.oid' - }, - { - begin: '\\b(' + TYPES_RE + ')\\s+PATH\\b', // in XMLTABLE - keywords: { - keyword: 'PATH', // hopefully no one would use PATH type in XMLTABLE... - type: TYPES.replace('PATH ', '') - } - }, - { - className: 'type', - begin: '\\b(' + TYPES_RE + ')\\b' - }, - // Strings, see https://www.postgresql.org/docs/11/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS - { - className: 'string', - begin: '\'', - end: '\'', - contains: [ { begin: '\'\'' } ] - }, - { - className: 'string', - begin: '(e|E|u&|U&)\'', - end: '\'', - contains: [ { begin: '\\\\.' } ], - relevance: 10 - }, - hljs.END_SAME_AS_BEGIN({ - begin: DOLLAR_STRING, - end: DOLLAR_STRING, - contains: [ - { - // actually we want them all except SQL; listed are those with known implementations - // and XML + JSON just in case - subLanguage: [ - 'pgsql', - 'perl', - 'python', - 'tcl', - 'r', - 'lua', - 'java', - 'php', - 'ruby', - 'bash', - 'scheme', - 'xml', - 'json' - ], - endsWithParent: true - } - ] - }), - // identifiers in quotes - { - begin: '"', - end: '"', - contains: [ { begin: '""' } ] - }, - // numbers - hljs.C_NUMBER_MODE, - // comments - hljs.C_BLOCK_COMMENT_MODE, - COMMENT_MODE, - // PL/pgSQL staff - // %ROWTYPE, %TYPE, $n - { - className: 'meta', - variants: [ - { // %TYPE, %ROWTYPE - begin: '%(ROW)?TYPE', - relevance: 10 - }, - { // $n - begin: '\\$\\d+' }, - { // #compiler option - begin: '^#\\w', - end: '$' - } - ] - }, - // <> - { - className: 'symbol', - begin: LABEL, - relevance: 10 - } - ] - }; -} - -export { pgsql as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pgsql.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pgsql.js.js deleted file mode 100644 index 720480d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pgsql.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/pgsql" instead of "highlight.js/lib/languages/pgsql.js"' - ); - } - } - emitWarning(); - import lang from './pgsql.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js deleted file mode 100644 index 6dffd51..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js +++ /dev/null @@ -1,54 +0,0 @@ -/* -Language: PHP Template -Requires: xml.js, php.js -Author: Josh Goebel -Website: https://www.php.net -Category: common -*/ - -function phpTemplate(hljs) { - return { - name: "PHP template", - subLanguage: 'xml', - contains: [ - { - begin: /<\?(php|=)?/, - end: /\?>/, - subLanguage: 'php', - contains: [ - // We don't want the php closing tag ?> to close the PHP block when - // inside any of the following blocks: - { - begin: '/\\*', - end: '\\*/', - skip: true - }, - { - begin: 'b"', - end: '"', - skip: true - }, - { - begin: 'b\'', - end: '\'', - skip: true - }, - hljs.inherit(hljs.APOS_STRING_MODE, { - illegal: null, - className: null, - contains: null, - skip: true - }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { - illegal: null, - className: null, - contains: null, - skip: true - }) - ] - } - ] - }; -} - -export { phpTemplate as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js.js deleted file mode 100644 index 88debfa..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php-template.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/php-template" instead of "highlight.js/lib/languages/php-template.js"' - ); - } - } - emitWarning(); - import lang from './php-template.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js deleted file mode 100644 index da94bf2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js +++ /dev/null @@ -1,625 +0,0 @@ -/* -Language: PHP -Author: Victor Karamzin -Contributors: Evgeny Stepanischev , Ivan Sagalaev -Website: https://www.php.net -Category: common -*/ - -/** - * @param {HLJSApi} hljs - * @returns {LanguageDetail} - * */ -function php(hljs) { - const regex = hljs.regex; - // negative look-ahead tries to avoid matching patterns that are not - // Perl at all like $ident$, @ident@, etc. - const NOT_PERL_ETC = /(?![A-Za-z0-9])(?![$])/; - const IDENT_RE = regex.concat( - /[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, - NOT_PERL_ETC); - // Will not detect camelCase classes - const PASCAL_CASE_CLASS_NAME_RE = regex.concat( - /(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, - NOT_PERL_ETC); - const UPCASE_NAME_RE = regex.concat( - /[A-Z]+/, - NOT_PERL_ETC); - const VARIABLE = { - scope: 'variable', - match: '\\$+' + IDENT_RE, - }; - const PREPROCESSOR = { - scope: "meta", - variants: [ - { begin: /<\?php/, relevance: 10 }, // boost for obvious PHP - { begin: /<\?=/ }, - // less relevant per PSR-1 which says not to use short-tags - { begin: /<\?/, relevance: 0.1 }, - { begin: /\?>/ } // end php tag - ] - }; - const SUBST = { - scope: 'subst', - variants: [ - { begin: /\$\w+/ }, - { - begin: /\{\$/, - end: /\}/ - } - ] - }; - const SINGLE_QUOTED = hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null, }); - const DOUBLE_QUOTED = hljs.inherit(hljs.QUOTE_STRING_MODE, { - illegal: null, - contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST), - }); - - const HEREDOC = { - begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/, - end: /[ \t]*(\w+)\b/, - contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST), - 'on:begin': (m, resp) => { resp.data._beginMatch = m[1] || m[2]; }, - 'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); }, - }; - - const NOWDOC = hljs.END_SAME_AS_BEGIN({ - begin: /<<<[ \t]*'(\w+)'\n/, - end: /[ \t]*(\w+)\b/, - }); - // list of valid whitespaces because non-breaking space might be part of a IDENT_RE - const WHITESPACE = '[ \t\n]'; - const STRING = { - scope: 'string', - variants: [ - DOUBLE_QUOTED, - SINGLE_QUOTED, - HEREDOC, - NOWDOC - ] - }; - const NUMBER = { - scope: 'number', - variants: [ - { begin: `\\b0[bB][01]+(?:_[01]+)*\\b` }, // Binary w/ underscore support - { begin: `\\b0[oO][0-7]+(?:_[0-7]+)*\\b` }, // Octals w/ underscore support - { begin: `\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b` }, // Hex w/ underscore support - // Decimals w/ underscore support, with optional fragments and scientific exponent (e) suffix. - { begin: `(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?` } - ], - relevance: 0 - }; - const LITERALS = [ - "false", - "null", - "true" - ]; - const KWS = [ - // Magic constants: - // - "__CLASS__", - "__DIR__", - "__FILE__", - "__FUNCTION__", - "__COMPILER_HALT_OFFSET__", - "__LINE__", - "__METHOD__", - "__NAMESPACE__", - "__TRAIT__", - // Function that look like language construct or language construct that look like function: - // List of keywords that may not require parenthesis - "die", - "echo", - "exit", - "include", - "include_once", - "print", - "require", - "require_once", - // These are not language construct (function) but operate on the currently-executing function and can access the current symbol table - // 'compact extract func_get_arg func_get_args func_num_args get_called_class get_parent_class ' + - // Other keywords: - // - // - "array", - "abstract", - "and", - "as", - "binary", - "bool", - "boolean", - "break", - "callable", - "case", - "catch", - "class", - "clone", - "const", - "continue", - "declare", - "default", - "do", - "double", - "else", - "elseif", - "empty", - "enddeclare", - "endfor", - "endforeach", - "endif", - "endswitch", - "endwhile", - "enum", - "eval", - "extends", - "final", - "finally", - "float", - "for", - "foreach", - "from", - "global", - "goto", - "if", - "implements", - "instanceof", - "insteadof", - "int", - "integer", - "interface", - "isset", - "iterable", - "list", - "match|0", - "mixed", - "new", - "never", - "object", - "or", - "private", - "protected", - "public", - "readonly", - "real", - "return", - "string", - "switch", - "throw", - "trait", - "try", - "unset", - "use", - "var", - "void", - "while", - "xor", - "yield" - ]; - - const BUILT_INS = [ - // Standard PHP library: - // - "Error|0", - "AppendIterator", - "ArgumentCountError", - "ArithmeticError", - "ArrayIterator", - "ArrayObject", - "AssertionError", - "BadFunctionCallException", - "BadMethodCallException", - "CachingIterator", - "CallbackFilterIterator", - "CompileError", - "Countable", - "DirectoryIterator", - "DivisionByZeroError", - "DomainException", - "EmptyIterator", - "ErrorException", - "Exception", - "FilesystemIterator", - "FilterIterator", - "GlobIterator", - "InfiniteIterator", - "InvalidArgumentException", - "IteratorIterator", - "LengthException", - "LimitIterator", - "LogicException", - "MultipleIterator", - "NoRewindIterator", - "OutOfBoundsException", - "OutOfRangeException", - "OuterIterator", - "OverflowException", - "ParentIterator", - "ParseError", - "RangeException", - "RecursiveArrayIterator", - "RecursiveCachingIterator", - "RecursiveCallbackFilterIterator", - "RecursiveDirectoryIterator", - "RecursiveFilterIterator", - "RecursiveIterator", - "RecursiveIteratorIterator", - "RecursiveRegexIterator", - "RecursiveTreeIterator", - "RegexIterator", - "RuntimeException", - "SeekableIterator", - "SplDoublyLinkedList", - "SplFileInfo", - "SplFileObject", - "SplFixedArray", - "SplHeap", - "SplMaxHeap", - "SplMinHeap", - "SplObjectStorage", - "SplObserver", - "SplPriorityQueue", - "SplQueue", - "SplStack", - "SplSubject", - "SplTempFileObject", - "TypeError", - "UnderflowException", - "UnexpectedValueException", - "UnhandledMatchError", - // Reserved interfaces: - // - "ArrayAccess", - "BackedEnum", - "Closure", - "Fiber", - "Generator", - "Iterator", - "IteratorAggregate", - "Serializable", - "Stringable", - "Throwable", - "Traversable", - "UnitEnum", - "WeakReference", - "WeakMap", - // Reserved classes: - // - "Directory", - "__PHP_Incomplete_Class", - "parent", - "php_user_filter", - "self", - "static", - "stdClass" - ]; - - /** Dual-case keywords - * - * ["then","FILE"] => - * ["then", "THEN", "FILE", "file"] - * - * @param {string[]} items */ - const dualCase = (items) => { - /** @type string[] */ - const result = []; - items.forEach(item => { - result.push(item); - if (item.toLowerCase() === item) { - result.push(item.toUpperCase()); - } else { - result.push(item.toLowerCase()); - } - }); - return result; - }; - - const KEYWORDS = { - keyword: KWS, - literal: dualCase(LITERALS), - built_in: BUILT_INS, - }; - - /** - * @param {string[]} items */ - const normalizeKeywords = (items) => { - return items.map(item => { - return item.replace(/\|\d+$/, ""); - }); - }; - - const CONSTRUCTOR_CALL = { variants: [ - { - match: [ - /new/, - regex.concat(WHITESPACE, "+"), - // to prevent built ins from being confused as the class constructor call - regex.concat("(?!", normalizeKeywords(BUILT_INS).join("\\b|"), "\\b)"), - PASCAL_CASE_CLASS_NAME_RE, - ], - scope: { - 1: "keyword", - 4: "title.class", - }, - } - ] }; - - const CONSTANT_REFERENCE = regex.concat(IDENT_RE, "\\b(?!\\()"); - - const LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON = { variants: [ - { - match: [ - regex.concat( - /::/, - regex.lookahead(/(?!class\b)/) - ), - CONSTANT_REFERENCE, - ], - scope: { 2: "variable.constant", }, - }, - { - match: [ - /::/, - /class/, - ], - scope: { 2: "variable.language", }, - }, - { - match: [ - PASCAL_CASE_CLASS_NAME_RE, - regex.concat( - /::/, - regex.lookahead(/(?!class\b)/) - ), - CONSTANT_REFERENCE, - ], - scope: { - 1: "title.class", - 3: "variable.constant", - }, - }, - { - match: [ - PASCAL_CASE_CLASS_NAME_RE, - regex.concat( - "::", - regex.lookahead(/(?!class\b)/) - ), - ], - scope: { 1: "title.class", }, - }, - { - match: [ - PASCAL_CASE_CLASS_NAME_RE, - /::/, - /class/, - ], - scope: { - 1: "title.class", - 3: "variable.language", - }, - } - ] }; - - const NAMED_ARGUMENT = { - scope: 'attr', - match: regex.concat(IDENT_RE, regex.lookahead(':'), regex.lookahead(/(?!::)/)), - }; - const PARAMS_MODE = { - relevance: 0, - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - contains: [ - NAMED_ARGUMENT, - VARIABLE, - LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON, - hljs.C_BLOCK_COMMENT_MODE, - STRING, - NUMBER, - CONSTRUCTOR_CALL, - ], - }; - const FUNCTION_INVOKE = { - relevance: 0, - match: [ - /\b/, - // to prevent keywords from being confused as the function title - regex.concat("(?!fn\\b|function\\b|", normalizeKeywords(KWS).join("\\b|"), "|", normalizeKeywords(BUILT_INS).join("\\b|"), "\\b)"), - IDENT_RE, - regex.concat(WHITESPACE, "*"), - regex.lookahead(/(?=\()/) - ], - scope: { 3: "title.function.invoke", }, - contains: [ PARAMS_MODE ] - }; - PARAMS_MODE.contains.push(FUNCTION_INVOKE); - - const ATTRIBUTE_CONTAINS = [ - NAMED_ARGUMENT, - LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON, - hljs.C_BLOCK_COMMENT_MODE, - STRING, - NUMBER, - CONSTRUCTOR_CALL, - ]; - - const ATTRIBUTES = { - begin: regex.concat(/#\[\s*\\?/, - regex.either( - PASCAL_CASE_CLASS_NAME_RE, - UPCASE_NAME_RE - ) - ), - beginScope: "meta", - end: /]/, - endScope: "meta", - keywords: { - literal: LITERALS, - keyword: [ - 'new', - 'array', - ] - }, - contains: [ - { - begin: /\[/, - end: /]/, - keywords: { - literal: LITERALS, - keyword: [ - 'new', - 'array', - ] - }, - contains: [ - 'self', - ...ATTRIBUTE_CONTAINS, - ] - }, - ...ATTRIBUTE_CONTAINS, - { - scope: 'meta', - variants: [ - { match: PASCAL_CASE_CLASS_NAME_RE }, - { match: UPCASE_NAME_RE } - ] - } - ] - }; - - return { - case_insensitive: false, - keywords: KEYWORDS, - contains: [ - ATTRIBUTES, - hljs.HASH_COMMENT_MODE, - hljs.COMMENT('//', '$'), - hljs.COMMENT( - '/\\*', - '\\*/', - { contains: [ - { - scope: 'doctag', - match: '@[A-Za-z]+' - } - ] } - ), - { - match: /__halt_compiler\(\);/, - keywords: '__halt_compiler', - starts: { - scope: "comment", - end: hljs.MATCH_NOTHING_RE, - contains: [ - { - match: /\?>/, - scope: "meta", - endsParent: true - } - ] - } - }, - PREPROCESSOR, - { - scope: 'variable.language', - match: /\$this\b/ - }, - VARIABLE, - FUNCTION_INVOKE, - LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON, - { - match: [ - /const/, - /\s/, - IDENT_RE, - ], - scope: { - 1: "keyword", - 3: "variable.constant", - }, - }, - CONSTRUCTOR_CALL, - { - scope: 'function', - relevance: 0, - beginKeywords: 'fn function', - end: /[;{]/, - excludeEnd: true, - illegal: '[$%\\[]', - contains: [ - { beginKeywords: 'use', }, - hljs.UNDERSCORE_TITLE_MODE, - { - begin: '=>', // No markup, just a relevance booster - endsParent: true - }, - { - scope: 'params', - begin: '\\(', - end: '\\)', - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - 'self', - ATTRIBUTES, - VARIABLE, - LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON, - hljs.C_BLOCK_COMMENT_MODE, - STRING, - NUMBER - ] - }, - ] - }, - { - scope: 'class', - variants: [ - { - beginKeywords: "enum", - illegal: /[($"]/ - }, - { - beginKeywords: "class interface trait", - illegal: /[:($"]/ - } - ], - relevance: 0, - end: /\{/, - excludeEnd: true, - contains: [ - { beginKeywords: 'extends implements' }, - hljs.UNDERSCORE_TITLE_MODE - ] - }, - // both use and namespace still use "old style" rules (vs multi-match) - // because the namespace name can include `\` and we still want each - // element to be treated as its own *individual* title - { - beginKeywords: 'namespace', - relevance: 0, - end: ';', - illegal: /[.']/, - contains: [ hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, { scope: "title.class" }) ] - }, - { - beginKeywords: 'use', - relevance: 0, - end: ';', - contains: [ - // TODO: title.function vs title.class - { - match: /\b(as|const|function)\b/, - scope: "keyword" - }, - // TODO: could be title.class or title.function - hljs.UNDERSCORE_TITLE_MODE - ] - }, - STRING, - NUMBER, - ] - }; -} - -export { php as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js.js deleted file mode 100644 index 01a92f5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/php" instead of "highlight.js/lib/languages/php.js"' - ); - } - } - emitWarning(); - import lang from './php.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js deleted file mode 100644 index d119222..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +++ /dev/null @@ -1,19 +0,0 @@ -/* -Language: Plain text -Author: Egor Rogov (e.rogov@postgrespro.ru) -Description: Plain text without any highlighting. -Category: common -*/ - -function plaintext(hljs) { - return { - name: 'Plain text', - aliases: [ - 'text', - 'txt' - ], - disableAutodetect: true - }; -} - -export { plaintext as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js.js deleted file mode 100644 index 9b1ccd3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/plaintext" instead of "highlight.js/lib/languages/plaintext.js"' - ); - } - } - emitWarning(); - import lang from './plaintext.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pony.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pony.js deleted file mode 100644 index fa891e5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pony.js +++ /dev/null @@ -1,90 +0,0 @@ -/* -Language: Pony -Author: Joe Eli McIlvain -Description: Pony is an open-source, object-oriented, actor-model, - capabilities-secure, high performance programming language. -Website: https://www.ponylang.io -Category: system -*/ - -function pony(hljs) { - const KEYWORDS = { - keyword: - 'actor addressof and as be break class compile_error compile_intrinsic ' - + 'consume continue delegate digestof do else elseif embed end error ' - + 'for fun if ifdef in interface is isnt lambda let match new not object ' - + 'or primitive recover repeat return struct then trait try type until ' - + 'use var where while with xor', - meta: - 'iso val tag trn box ref', - literal: - 'this false true' - }; - - const TRIPLE_QUOTE_STRING_MODE = { - className: 'string', - begin: '"""', - end: '"""', - relevance: 10 - }; - - const QUOTE_STRING_MODE = { - className: 'string', - begin: '"', - end: '"', - contains: [ hljs.BACKSLASH_ESCAPE ] - }; - - const SINGLE_QUOTE_CHAR_MODE = { - className: 'string', - begin: '\'', - end: '\'', - contains: [ hljs.BACKSLASH_ESCAPE ], - relevance: 0 - }; - - const TYPE_NAME = { - className: 'type', - begin: '\\b_?[A-Z][\\w]*', - relevance: 0 - }; - - const PRIMED_NAME = { - begin: hljs.IDENT_RE + '\'', - relevance: 0 - }; - - const NUMBER_MODE = { - className: 'number', - begin: '(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)', - relevance: 0 - }; - - /** - * The `FUNCTION` and `CLASS` modes were intentionally removed to simplify - * highlighting and fix cases like - * ``` - * interface Iterator[A: A] - * fun has_next(): Bool - * fun next(): A? - * ``` - * where it is valid to have a function head without a body - */ - - return { - name: 'Pony', - keywords: KEYWORDS, - contains: [ - TYPE_NAME, - TRIPLE_QUOTE_STRING_MODE, - QUOTE_STRING_MODE, - SINGLE_QUOTE_CHAR_MODE, - PRIMED_NAME, - NUMBER_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; -} - -export { pony as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pony.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pony.js.js deleted file mode 100644 index 979995a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/pony.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/pony" instead of "highlight.js/lib/languages/pony.js"' - ); - } - } - emitWarning(); - import lang from './pony.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/powershell.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/powershell.js deleted file mode 100644 index ec5f5e4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/powershell.js +++ /dev/null @@ -1,317 +0,0 @@ -/* -Language: PowerShell -Description: PowerShell is a task-based command-line shell and scripting language built on .NET. -Author: David Mohundro -Contributors: Nicholas Blumhardt , Victor Zhou , Nicolas Le Gall -Website: https://docs.microsoft.com/en-us/powershell/ -Category: scripting -*/ - -function powershell(hljs) { - const TYPES = [ - "string", - "char", - "byte", - "int", - "long", - "bool", - "decimal", - "single", - "double", - "DateTime", - "xml", - "array", - "hashtable", - "void" - ]; - - // https://docs.microsoft.com/en-us/powershell/scripting/developer/cmdlet/approved-verbs-for-windows-powershell-commands - const VALID_VERBS = - 'Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|' - + 'Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|' - + 'Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|' - + 'Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|' - + 'ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|' - + 'Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|' - + 'Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|' - + 'Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|' - + 'Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|' - + 'Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|' - + 'Unprotect|Use|ForEach|Sort|Tee|Where'; - - const COMPARISON_OPERATORS = - '-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|' - + '-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|' - + '-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|' - + '-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|' - + '-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|' - + '-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|' - + '-split|-wildcard|-xor'; - - const KEYWORDS = { - $pattern: /-?[A-z\.\-]+\b/, - keyword: - 'if else foreach return do while until elseif begin for trap data dynamicparam ' - + 'end break throw param continue finally in switch exit filter try process catch ' - + 'hidden static parameter', - // "echo" relevance has been set to 0 to avoid auto-detect conflicts with shell transcripts - built_in: - 'ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp ' - + 'cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx ' - + 'fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group ' - + 'gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi ' - + 'iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh ' - + 'popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp ' - + 'rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp ' - + 'spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write' - // TODO: 'validate[A-Z]+' can't work in keywords - }; - - const TITLE_NAME_RE = /\w[\w\d]*((-)[\w\d]+)*/; - - const BACKTICK_ESCAPE = { - begin: '`[\\s\\S]', - relevance: 0 - }; - - const VAR = { - className: 'variable', - variants: [ - { begin: /\$\B/ }, - { - className: 'keyword', - begin: /\$this/ - }, - { begin: /\$[\w\d][\w\d_:]*/ } - ] - }; - - const LITERAL = { - className: 'literal', - begin: /\$(null|true|false)\b/ - }; - - const QUOTE_STRING = { - className: "string", - variants: [ - { - begin: /"/, - end: /"/ - }, - { - begin: /@"/, - end: /^"@/ - } - ], - contains: [ - BACKTICK_ESCAPE, - VAR, - { - className: 'variable', - begin: /\$[A-z]/, - end: /[^A-z]/ - } - ] - }; - - const APOS_STRING = { - className: 'string', - variants: [ - { - begin: /'/, - end: /'/ - }, - { - begin: /@'/, - end: /^'@/ - } - ] - }; - - const PS_HELPTAGS = { - className: "doctag", - variants: [ - /* no paramater help tags */ - { begin: /\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/ }, - /* one parameter help tags */ - { begin: /\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/ } - ] - }; - - const PS_COMMENT = hljs.inherit( - hljs.COMMENT(null, null), - { - variants: [ - /* single-line comment */ - { - begin: /#/, - end: /$/ - }, - /* multi-line comment */ - { - begin: /<#/, - end: /#>/ - } - ], - contains: [ PS_HELPTAGS ] - } - ); - - const CMDLETS = { - className: 'built_in', - variants: [ { begin: '('.concat(VALID_VERBS, ')+(-)[\\w\\d]+') } ] - }; - - const PS_CLASS = { - className: 'class', - beginKeywords: 'class enum', - end: /\s*[{]/, - excludeEnd: true, - relevance: 0, - contains: [ hljs.TITLE_MODE ] - }; - - const PS_FUNCTION = { - className: 'function', - begin: /function\s+/, - end: /\s*\{|$/, - excludeEnd: true, - returnBegin: true, - relevance: 0, - contains: [ - { - begin: "function", - relevance: 0, - className: "keyword" - }, - { - className: "title", - begin: TITLE_NAME_RE, - relevance: 0 - }, - { - begin: /\(/, - end: /\)/, - className: "params", - relevance: 0, - contains: [ VAR ] - } - // CMDLETS - ] - }; - - // Using statment, plus type, plus assembly name. - const PS_USING = { - begin: /using\s/, - end: /$/, - returnBegin: true, - contains: [ - QUOTE_STRING, - APOS_STRING, - { - className: 'keyword', - begin: /(using|assembly|command|module|namespace|type)/ - } - ] - }; - - // Comperison operators & function named parameters. - const PS_ARGUMENTS = { variants: [ - // PS literals are pretty verbose so it's a good idea to accent them a bit. - { - className: 'operator', - begin: '('.concat(COMPARISON_OPERATORS, ')\\b') - }, - { - className: 'literal', - begin: /(-){1,2}[\w\d-]+/, - relevance: 0 - } - ] }; - - const HASH_SIGNS = { - className: 'selector-tag', - begin: /@\B/, - relevance: 0 - }; - - // It's a very general rule so I'll narrow it a bit with some strict boundaries - // to avoid any possible false-positive collisions! - const PS_METHODS = { - className: 'function', - begin: /\[.*\]\s*[\w]+[ ]??\(/, - end: /$/, - returnBegin: true, - relevance: 0, - contains: [ - { - className: 'keyword', - begin: '('.concat( - KEYWORDS.keyword.toString().replace(/\s/g, '|' - ), ')\\b'), - endsParent: true, - relevance: 0 - }, - hljs.inherit(hljs.TITLE_MODE, { endsParent: true }) - ] - }; - - const GENTLEMANS_SET = [ - // STATIC_MEMBER, - PS_METHODS, - PS_COMMENT, - BACKTICK_ESCAPE, - hljs.NUMBER_MODE, - QUOTE_STRING, - APOS_STRING, - // PS_NEW_OBJECT_TYPE, - CMDLETS, - VAR, - LITERAL, - HASH_SIGNS - ]; - - const PS_TYPE = { - begin: /\[/, - end: /\]/, - excludeBegin: true, - excludeEnd: true, - relevance: 0, - contains: [].concat( - 'self', - GENTLEMANS_SET, - { - begin: "(" + TYPES.join("|") + ")", - className: "built_in", - relevance: 0 - }, - { - className: 'type', - begin: /[\.\w\d]+/, - relevance: 0 - } - ) - }; - - PS_METHODS.contains.unshift(PS_TYPE); - - return { - name: 'PowerShell', - aliases: [ - "pwsh", - "ps", - "ps1" - ], - case_insensitive: true, - keywords: KEYWORDS, - contains: GENTLEMANS_SET.concat( - PS_CLASS, - PS_FUNCTION, - PS_USING, - PS_ARGUMENTS, - PS_TYPE - ) - }; -} - -export { powershell as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/powershell.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/powershell.js.js deleted file mode 100644 index a8eff38..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/powershell.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/powershell" instead of "highlight.js/lib/languages/powershell.js"' - ); - } - } - emitWarning(); - import lang from './powershell.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/processing.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/processing.js deleted file mode 100644 index 11ef9b6..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/processing.js +++ /dev/null @@ -1,434 +0,0 @@ -/* -Language: Processing -Description: Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts. -Author: Erik Paluka -Website: https://processing.org -Category: graphics -*/ - -function processing(hljs) { - const regex = hljs.regex; - const BUILT_INS = [ - "displayHeight", - "displayWidth", - "mouseY", - "mouseX", - "mousePressed", - "pmouseX", - "pmouseY", - "key", - "keyCode", - "pixels", - "focused", - "frameCount", - "frameRate", - "height", - "width", - "size", - "createGraphics", - "beginDraw", - "createShape", - "loadShape", - "PShape", - "arc", - "ellipse", - "line", - "point", - "quad", - "rect", - "triangle", - "bezier", - "bezierDetail", - "bezierPoint", - "bezierTangent", - "curve", - "curveDetail", - "curvePoint", - "curveTangent", - "curveTightness", - "shape", - "shapeMode", - "beginContour", - "beginShape", - "bezierVertex", - "curveVertex", - "endContour", - "endShape", - "quadraticVertex", - "vertex", - "ellipseMode", - "noSmooth", - "rectMode", - "smooth", - "strokeCap", - "strokeJoin", - "strokeWeight", - "mouseClicked", - "mouseDragged", - "mouseMoved", - "mousePressed", - "mouseReleased", - "mouseWheel", - "keyPressed", - "keyPressedkeyReleased", - "keyTyped", - "print", - "println", - "save", - "saveFrame", - "day", - "hour", - "millis", - "minute", - "month", - "second", - "year", - "background", - "clear", - "colorMode", - "fill", - "noFill", - "noStroke", - "stroke", - "alpha", - "blue", - "brightness", - "color", - "green", - "hue", - "lerpColor", - "red", - "saturation", - "modelX", - "modelY", - "modelZ", - "screenX", - "screenY", - "screenZ", - "ambient", - "emissive", - "shininess", - "specular", - "add", - "createImage", - "beginCamera", - "camera", - "endCamera", - "frustum", - "ortho", - "perspective", - "printCamera", - "printProjection", - "cursor", - "frameRate", - "noCursor", - "exit", - "loop", - "noLoop", - "popStyle", - "pushStyle", - "redraw", - "binary", - "boolean", - "byte", - "char", - "float", - "hex", - "int", - "str", - "unbinary", - "unhex", - "join", - "match", - "matchAll", - "nf", - "nfc", - "nfp", - "nfs", - "split", - "splitTokens", - "trim", - "append", - "arrayCopy", - "concat", - "expand", - "reverse", - "shorten", - "sort", - "splice", - "subset", - "box", - "sphere", - "sphereDetail", - "createInput", - "createReader", - "loadBytes", - "loadJSONArray", - "loadJSONObject", - "loadStrings", - "loadTable", - "loadXML", - "open", - "parseXML", - "saveTable", - "selectFolder", - "selectInput", - "beginRaw", - "beginRecord", - "createOutput", - "createWriter", - "endRaw", - "endRecord", - "PrintWritersaveBytes", - "saveJSONArray", - "saveJSONObject", - "saveStream", - "saveStrings", - "saveXML", - "selectOutput", - "popMatrix", - "printMatrix", - "pushMatrix", - "resetMatrix", - "rotate", - "rotateX", - "rotateY", - "rotateZ", - "scale", - "shearX", - "shearY", - "translate", - "ambientLight", - "directionalLight", - "lightFalloff", - "lights", - "lightSpecular", - "noLights", - "normal", - "pointLight", - "spotLight", - "image", - "imageMode", - "loadImage", - "noTint", - "requestImage", - "tint", - "texture", - "textureMode", - "textureWrap", - "blend", - "copy", - "filter", - "get", - "loadPixels", - "set", - "updatePixels", - "blendMode", - "loadShader", - "PShaderresetShader", - "shader", - "createFont", - "loadFont", - "text", - "textFont", - "textAlign", - "textLeading", - "textMode", - "textSize", - "textWidth", - "textAscent", - "textDescent", - "abs", - "ceil", - "constrain", - "dist", - "exp", - "floor", - "lerp", - "log", - "mag", - "map", - "max", - "min", - "norm", - "pow", - "round", - "sq", - "sqrt", - "acos", - "asin", - "atan", - "atan2", - "cos", - "degrees", - "radians", - "sin", - "tan", - "noise", - "noiseDetail", - "noiseSeed", - "random", - "randomGaussian", - "randomSeed" - ]; - const IDENT = hljs.IDENT_RE; - const FUNC_NAME = { variants: [ - { - match: regex.concat(regex.either(...BUILT_INS), regex.lookahead(/\s*\(/)), - className: "built_in" - }, - { - relevance: 0, - match: regex.concat( - /\b(?!for|if|while)/, - IDENT, regex.lookahead(/\s*\(/)), - className: "title.function" - } - ] }; - const NEW_CLASS = { - match: [ - /new\s+/, - IDENT - ], - className: { - 1: "keyword", - 2: "class.title" - } - }; - const PROPERTY = { - relevance: 0, - match: [ - /\./, - IDENT - ], - className: { 2: "property" } - }; - const CLASS = { - variants: [ - { match: [ - /class/, - /\s+/, - IDENT, - /\s+/, - /extends/, - /\s+/, - IDENT - ] }, - { match: [ - /class/, - /\s+/, - IDENT - ] } - ], - className: { - 1: "keyword", - 3: "title.class", - 5: "keyword", - 7: "title.class.inherited" - } - }; - - const TYPES = [ - "boolean", - "byte", - "char", - "color", - "double", - "float", - "int", - "long", - "short", - ]; - const CLASSES = [ - "BufferedReader", - "PVector", - "PFont", - "PImage", - "PGraphics", - "HashMap", - "String", - "Array", - "FloatDict", - "ArrayList", - "FloatList", - "IntDict", - "IntList", - "JSONArray", - "JSONObject", - "Object", - "StringDict", - "StringList", - "Table", - "TableRow", - "XML" - ]; - const JAVA_KEYWORDS = [ - "abstract", - "assert", - "break", - "case", - "catch", - "const", - "continue", - "default", - "else", - "enum", - "final", - "finally", - "for", - "if", - "import", - "instanceof", - "long", - "native", - "new", - "package", - "private", - "private", - "protected", - "protected", - "public", - "public", - "return", - "static", - "strictfp", - "switch", - "synchronized", - "throw", - "throws", - "transient", - "try", - "void", - "volatile", - "while" - ]; - - return { - name: 'Processing', - aliases: [ 'pde' ], - keywords: { - keyword: [ ...JAVA_KEYWORDS ], - literal: 'P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false', - title: 'setup draw', - variable: "super this", - built_in: [ - ...BUILT_INS, - ...CLASSES - ], - type: TYPES - }, - contains: [ - CLASS, - NEW_CLASS, - FUNC_NAME, - PROPERTY, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE - ] - }; -} - -export { processing as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/processing.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/processing.js.js deleted file mode 100644 index fd28a4c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/processing.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/processing" instead of "highlight.js/lib/languages/processing.js"' - ); - } - } - emitWarning(); - import lang from './processing.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/profile.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/profile.js deleted file mode 100644 index ebd52ef..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/profile.js +++ /dev/null @@ -1,43 +0,0 @@ -/* -Language: Python profiler -Description: Python profiler results -Author: Brian Beck -*/ - -function profile(hljs) { - return { - name: 'Python profiler', - contains: [ - hljs.C_NUMBER_MODE, - { - begin: '[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}', - end: ':', - excludeEnd: true - }, - { - begin: '(ncalls|tottime|cumtime)', - end: '$', - keywords: 'ncalls tottime|10 cumtime|10 filename', - relevance: 10 - }, - { - begin: 'function calls', - end: '$', - contains: [ hljs.C_NUMBER_MODE ], - relevance: 10 - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { - className: 'string', - begin: '\\(', - end: '\\)$', - excludeBegin: true, - excludeEnd: true, - relevance: 0 - } - ] - }; -} - -export { profile as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/profile.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/profile.js.js deleted file mode 100644 index f15f42e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/profile.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/profile" instead of "highlight.js/lib/languages/profile.js"' - ); - } - } - emitWarning(); - import lang from './profile.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/prolog.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/prolog.js deleted file mode 100644 index 579967c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/prolog.js +++ /dev/null @@ -1,97 +0,0 @@ -/* -Language: Prolog -Description: Prolog is a general purpose logic programming language associated with artificial intelligence and computational linguistics. -Author: Raivo Laanemets -Website: https://en.wikipedia.org/wiki/Prolog -Category: functional -*/ - -function prolog(hljs) { - const ATOM = { - - begin: /[a-z][A-Za-z0-9_]*/, - relevance: 0 - }; - - const VAR = { - - className: 'symbol', - variants: [ - { begin: /[A-Z][a-zA-Z0-9_]*/ }, - { begin: /_[A-Za-z0-9_]*/ } - ], - relevance: 0 - }; - - const PARENTED = { - - begin: /\(/, - end: /\)/, - relevance: 0 - }; - - const LIST = { - - begin: /\[/, - end: /\]/ - }; - - const LINE_COMMENT = { - - className: 'comment', - begin: /%/, - end: /$/, - contains: [ hljs.PHRASAL_WORDS_MODE ] - }; - - const BACKTICK_STRING = { - - className: 'string', - begin: /`/, - end: /`/, - contains: [ hljs.BACKSLASH_ESCAPE ] - }; - - const CHAR_CODE = { - className: 'string', // 0'a etc. - begin: /0'(\\'|.)/ - }; - - const SPACE_CODE = { - className: 'string', - begin: /0'\\s/ // 0'\s - }; - - const PRED_OP = { // relevance booster - begin: /:-/ }; - - const inner = [ - - ATOM, - VAR, - PARENTED, - PRED_OP, - LIST, - LINE_COMMENT, - hljs.C_BLOCK_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - BACKTICK_STRING, - CHAR_CODE, - SPACE_CODE, - hljs.C_NUMBER_MODE - ]; - - PARENTED.contains = inner; - LIST.contains = inner; - - return { - name: 'Prolog', - contains: inner.concat([ - { // relevance booster - begin: /\.$/ } - ]) - }; -} - -export { prolog as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/prolog.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/prolog.js.js deleted file mode 100644 index 3277caa..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/prolog.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/prolog" instead of "highlight.js/lib/languages/prolog.js"' - ); - } - } - emitWarning(); - import lang from './prolog.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/properties.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/properties.js deleted file mode 100644 index a355457..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/properties.js +++ /dev/null @@ -1,68 +0,0 @@ -/* -Language: .properties -Contributors: Valentin Aitken , Egor Rogov -Website: https://en.wikipedia.org/wiki/.properties -Category: config -*/ - -/** @type LanguageFn */ -function properties(hljs) { - // whitespaces: space, tab, formfeed - const WS0 = '[ \\t\\f]*'; - const WS1 = '[ \\t\\f]+'; - // delimiter - const EQUAL_DELIM = WS0 + '[:=]' + WS0; - const WS_DELIM = WS1; - const DELIM = '(' + EQUAL_DELIM + '|' + WS_DELIM + ')'; - const KEY = '([^\\\\:= \\t\\f\\n]|\\\\.)+'; - - const DELIM_AND_VALUE = { - // skip DELIM - end: DELIM, - relevance: 0, - starts: { - // value: everything until end of line (again, taking into account backslashes) - className: 'string', - end: /$/, - relevance: 0, - contains: [ - { begin: '\\\\\\\\' }, - { begin: '\\\\\\n' } - ] - } - }; - - return { - name: '.properties', - disableAutodetect: true, - case_insensitive: true, - illegal: /\S/, - contains: [ - hljs.COMMENT('^\\s*[!#]', '$'), - // key: everything until whitespace or = or : (taking into account backslashes) - // case of a key-value pair - { - returnBegin: true, - variants: [ - { begin: KEY + EQUAL_DELIM }, - { begin: KEY + WS_DELIM } - ], - contains: [ - { - className: 'attr', - begin: KEY, - endsParent: true - } - ], - starts: DELIM_AND_VALUE - }, - // case of an empty key - { - className: 'attr', - begin: KEY + WS0 + '$' - } - ] - }; -} - -export { properties as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/properties.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/properties.js.js deleted file mode 100644 index 8c47475..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/properties.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/properties" instead of "highlight.js/lib/languages/properties.js"' - ); - } - } - emitWarning(); - import lang from './properties.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/protobuf.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/protobuf.js deleted file mode 100644 index af9f600..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/protobuf.js +++ /dev/null @@ -1,79 +0,0 @@ -/* -Language: Protocol Buffers -Author: Dan Tao -Description: Protocol buffer message definition format -Website: https://developers.google.com/protocol-buffers/docs/proto3 -Category: protocols -*/ - -function protobuf(hljs) { - const KEYWORDS = [ - "package", - "import", - "option", - "optional", - "required", - "repeated", - "group", - "oneof" - ]; - const TYPES = [ - "double", - "float", - "int32", - "int64", - "uint32", - "uint64", - "sint32", - "sint64", - "fixed32", - "fixed64", - "sfixed32", - "sfixed64", - "bool", - "string", - "bytes" - ]; - const CLASS_DEFINITION = { - match: [ - /(message|enum|service)\s+/, - hljs.IDENT_RE - ], - scope: { - 1: "keyword", - 2: "title.class" - } - }; - - return { - name: 'Protocol Buffers', - aliases: ['proto'], - keywords: { - keyword: KEYWORDS, - type: TYPES, - literal: [ - 'true', - 'false' - ] - }, - contains: [ - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - CLASS_DEFINITION, - { - className: 'function', - beginKeywords: 'rpc', - end: /[{;]/, - excludeEnd: true, - keywords: 'rpc returns' - }, - { // match enum items (relevance) - // BLAH = ...; - begin: /^\s*[A-Z_]+(?=\s*=[^\n]+;$)/ } - ] - }; -} - -export { protobuf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/protobuf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/protobuf.js.js deleted file mode 100644 index d2956f7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/protobuf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/protobuf" instead of "highlight.js/lib/languages/protobuf.js"' - ); - } - } - emitWarning(); - import lang from './protobuf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/puppet.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/puppet.js deleted file mode 100644 index f434cff..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/puppet.js +++ /dev/null @@ -1,146 +0,0 @@ -/* -Language: Puppet -Author: Jose Molina Colmenero -Website: https://puppet.com/docs -Category: config -*/ - -function puppet(hljs) { - const PUPPET_KEYWORDS = { - keyword: - /* language keywords */ - 'and case default else elsif false if in import enherits node or true undef unless main settings $string ', - literal: - /* metaparameters */ - 'alias audit before loglevel noop require subscribe tag ' - /* normal attributes */ - + 'owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check ' - + 'en_address ip_address realname command environment hour monute month monthday special target weekday ' - + 'creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore ' - + 'links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source ' - + 'souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ' - + 'ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel ' - + 'native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options ' - + 'device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use ' - + 'message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform ' - + 'responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running ' - + 'start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age ' - + 'password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled ' - + 'enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist ' - + 'priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey ' - + 'sslverify mounted', - built_in: - /* core facts */ - 'architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers ' - + 'domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ' - + 'ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion ' - + 'kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease ' - + 'lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major ' - + 'macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease ' - + 'operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion ' - + 'rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced ' - + 'selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime ' - + 'uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version' - }; - - const COMMENT = hljs.COMMENT('#', '$'); - - const IDENT_RE = '([A-Za-z_]|::)(\\w|::)*'; - - const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE }); - - const VARIABLE = { - className: 'variable', - begin: '\\$' + IDENT_RE - }; - - const STRING = { - className: 'string', - contains: [ - hljs.BACKSLASH_ESCAPE, - VARIABLE - ], - variants: [ - { - begin: /'/, - end: /'/ - }, - { - begin: /"/, - end: /"/ - } - ] - }; - - return { - name: 'Puppet', - aliases: [ 'pp' ], - contains: [ - COMMENT, - VARIABLE, - STRING, - { - beginKeywords: 'class', - end: '\\{|;', - illegal: /=/, - contains: [ - TITLE, - COMMENT - ] - }, - { - beginKeywords: 'define', - end: /\{/, - contains: [ - { - className: 'section', - begin: hljs.IDENT_RE, - endsParent: true - } - ] - }, - { - begin: hljs.IDENT_RE + '\\s+\\{', - returnBegin: true, - end: /\S/, - contains: [ - { - className: 'keyword', - begin: hljs.IDENT_RE, - relevance: 0.2 - }, - { - begin: /\{/, - end: /\}/, - keywords: PUPPET_KEYWORDS, - relevance: 0, - contains: [ - STRING, - COMMENT, - { - begin: '[a-zA-Z_]+\\s*=>', - returnBegin: true, - end: '=>', - contains: [ - { - className: 'attr', - begin: hljs.IDENT_RE - } - ] - }, - { - className: 'number', - begin: '(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b', - relevance: 0 - }, - VARIABLE - ] - } - ], - relevance: 0 - } - ] - }; -} - -export { puppet as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/puppet.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/puppet.js.js deleted file mode 100644 index fcdf900..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/puppet.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/puppet" instead of "highlight.js/lib/languages/puppet.js"' - ); - } - } - emitWarning(); - import lang from './puppet.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/purebasic.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/purebasic.js deleted file mode 100644 index 073185a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/purebasic.js +++ /dev/null @@ -1,100 +0,0 @@ -/* -Language: PureBASIC -Author: Tristano Ajmone -Description: Syntax highlighting for PureBASIC (v.5.00-5.60). No inline ASM highlighting. (v.1.2, May 2017) -Credits: I've taken inspiration from the PureBasic language file for GeSHi, created by Gustavo Julio Fiorenza (GuShH). -Website: https://www.purebasic.com -Category: system -*/ - -// Base deafult colors in PB IDE: background: #FFFFDF; foreground: #000000; - -function purebasic(hljs) { - const STRINGS = { // PB IDE color: #0080FF (Azure Radiance) - className: 'string', - begin: '(~)?"', - end: '"', - illegal: '\\n' - }; - const CONSTANTS = { // PB IDE color: #924B72 (Cannon Pink) - // "#" + a letter or underscore + letters, digits or underscores + (optional) "$" - className: 'symbol', - begin: '#[a-zA-Z_]\\w*\\$?' - }; - - return { - name: 'PureBASIC', - aliases: [ - 'pb', - 'pbi' - ], - keywords: // PB IDE color: #006666 (Blue Stone) + Bold - // Keywords from all version of PureBASIC 5.00 upward ... - 'Align And Array As Break CallDebugger Case CompilerCase CompilerDefault ' - + 'CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError ' - + 'CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug ' - + 'DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default ' - + 'Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM ' - + 'EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration ' - + 'EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect ' - + 'EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends ' - + 'FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC ' - + 'IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount ' - + 'Map Module NewList NewMap Next Not Or Procedure ProcedureC ' - + 'ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim ' - + 'Read Repeat Restore Return Runtime Select Shared Static Step Structure ' - + 'StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule ' - + 'UseModule Wend While With XIncludeFile XOr', - contains: [ - // COMMENTS | PB IDE color: #00AAAA (Persian Green) - hljs.COMMENT(';', '$', { relevance: 0 }), - - { // PROCEDURES DEFINITIONS - className: 'function', - begin: '\\b(Procedure|Declare)(C|CDLL|DLL)?\\b', - end: '\\(', - excludeEnd: true, - returnBegin: true, - contains: [ - { // PROCEDURE KEYWORDS | PB IDE color: #006666 (Blue Stone) + Bold - className: 'keyword', - begin: '(Procedure|Declare)(C|CDLL|DLL)?', - excludeEnd: true - }, - { // PROCEDURE RETURN TYPE SETTING | PB IDE color: #000000 (Black) - className: 'type', - begin: '\\.\\w*' - // end: ' ', - }, - hljs.UNDERSCORE_TITLE_MODE // PROCEDURE NAME | PB IDE color: #006666 (Blue Stone) - ] - }, - STRINGS, - CONSTANTS - ] - }; -} - -/* ============================================================================== - CHANGELOG - ============================================================================== - - v.1.2 (2017-05-12) - -- BUG-FIX: Some keywords were accidentally joyned together. Now fixed. - - v.1.1 (2017-04-30) - -- Updated to PureBASIC 5.60. - -- Keywords list now built by extracting them from the PureBASIC SDK's - "SyntaxHilighting.dll" (from each PureBASIC version). Tokens from each - version are added to the list, and renamed or removed tokens are kept - for the sake of covering all versions of the language from PureBASIC - v5.00 upward. (NOTE: currently, there are no renamed or deprecated - tokens in the keywords list). For more info, see: - -- http://www.purebasic.fr/english/viewtopic.php?&p=506269 - -- https://github.com/tajmone/purebasic-archives/tree/master/syntax-highlighting/guidelines - - v.1.0 (April 2016) - -- First release - -- Keywords list taken and adapted from GuShH's (Gustavo Julio Fiorenza) - PureBasic language file for GeSHi: - -- https://github.com/easybook/geshi/blob/master/geshi/purebasic.php -*/ - -export { purebasic as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/purebasic.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/purebasic.js.js deleted file mode 100644 index 27b00b9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/purebasic.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/purebasic" instead of "highlight.js/lib/languages/purebasic.js"' - ); - } - } - emitWarning(); - import lang from './purebasic.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js deleted file mode 100644 index 80dfdd3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js +++ /dev/null @@ -1,32 +0,0 @@ -/* -Language: Python REPL -Requires: python.js -Author: Josh Goebel -Category: common -*/ - -function pythonRepl(hljs) { - return { - aliases: [ 'pycon' ], - contains: [ - { - className: 'meta.prompt', - starts: { - // a space separates the REPL prefix from the actual code - // this is purely for cleaner HTML output - end: / |$/, - starts: { - end: '$', - subLanguage: 'python' - } - }, - variants: [ - { begin: /^>>>(?=[ ]|$)/ }, - { begin: /^\.\.\.(?=[ ]|$)/ } - ] - } - ] - }; -} - -export { pythonRepl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js.js deleted file mode 100644 index 38d63b7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python-repl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/python-repl" instead of "highlight.js/lib/languages/python-repl.js"' - ); - } - } - emitWarning(); - import lang from './python-repl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js deleted file mode 100644 index 4956b71..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +++ /dev/null @@ -1,436 +0,0 @@ -/* -Language: Python -Description: Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. -Website: https://www.python.org -Category: common -*/ - -function python(hljs) { - const regex = hljs.regex; - const IDENT_RE = /[\p{XID_Start}_]\p{XID_Continue}*/u; - const RESERVED_WORDS = [ - 'and', - 'as', - 'assert', - 'async', - 'await', - 'break', - 'case', - 'class', - 'continue', - 'def', - 'del', - 'elif', - 'else', - 'except', - 'finally', - 'for', - 'from', - 'global', - 'if', - 'import', - 'in', - 'is', - 'lambda', - 'match', - 'nonlocal|10', - 'not', - 'or', - 'pass', - 'raise', - 'return', - 'try', - 'while', - 'with', - 'yield' - ]; - - const BUILT_INS = [ - '__import__', - 'abs', - 'all', - 'any', - 'ascii', - 'bin', - 'bool', - 'breakpoint', - 'bytearray', - 'bytes', - 'callable', - 'chr', - 'classmethod', - 'compile', - 'complex', - 'delattr', - 'dict', - 'dir', - 'divmod', - 'enumerate', - 'eval', - 'exec', - 'filter', - 'float', - 'format', - 'frozenset', - 'getattr', - 'globals', - 'hasattr', - 'hash', - 'help', - 'hex', - 'id', - 'input', - 'int', - 'isinstance', - 'issubclass', - 'iter', - 'len', - 'list', - 'locals', - 'map', - 'max', - 'memoryview', - 'min', - 'next', - 'object', - 'oct', - 'open', - 'ord', - 'pow', - 'print', - 'property', - 'range', - 'repr', - 'reversed', - 'round', - 'set', - 'setattr', - 'slice', - 'sorted', - 'staticmethod', - 'str', - 'sum', - 'super', - 'tuple', - 'type', - 'vars', - 'zip' - ]; - - const LITERALS = [ - '__debug__', - 'Ellipsis', - 'False', - 'None', - 'NotImplemented', - 'True' - ]; - - // https://docs.python.org/3/library/typing.html - // TODO: Could these be supplemented by a CamelCase matcher in certain - // contexts, leaving these remaining only for relevance hinting? - const TYPES = [ - "Any", - "Callable", - "Coroutine", - "Dict", - "List", - "Literal", - "Generic", - "Optional", - "Sequence", - "Set", - "Tuple", - "Type", - "Union" - ]; - - const KEYWORDS = { - $pattern: /[A-Za-z]\w+|__\w+__/, - keyword: RESERVED_WORDS, - built_in: BUILT_INS, - literal: LITERALS, - type: TYPES - }; - - const PROMPT = { - className: 'meta', - begin: /^(>>>|\.\.\.) / - }; - - const SUBST = { - className: 'subst', - begin: /\{/, - end: /\}/, - keywords: KEYWORDS, - illegal: /#/ - }; - - const LITERAL_BRACKET = { - begin: /\{\{/, - relevance: 0 - }; - - const STRING = { - className: 'string', - contains: [ hljs.BACKSLASH_ESCAPE ], - variants: [ - { - begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/, - end: /'''/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT - ], - relevance: 10 - }, - { - begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/, - end: /"""/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT - ], - relevance: 10 - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])'''/, - end: /'''/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT, - LITERAL_BRACKET, - SUBST - ] - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])"""/, - end: /"""/, - contains: [ - hljs.BACKSLASH_ESCAPE, - PROMPT, - LITERAL_BRACKET, - SUBST - ] - }, - { - begin: /([uU]|[rR])'/, - end: /'/, - relevance: 10 - }, - { - begin: /([uU]|[rR])"/, - end: /"/, - relevance: 10 - }, - { - begin: /([bB]|[bB][rR]|[rR][bB])'/, - end: /'/ - }, - { - begin: /([bB]|[bB][rR]|[rR][bB])"/, - end: /"/ - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])'/, - end: /'/, - contains: [ - hljs.BACKSLASH_ESCAPE, - LITERAL_BRACKET, - SUBST - ] - }, - { - begin: /([fF][rR]|[rR][fF]|[fF])"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - LITERAL_BRACKET, - SUBST - ] - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }; - - // https://docs.python.org/3.9/reference/lexical_analysis.html#numeric-literals - const digitpart = '[0-9](_?[0-9])*'; - const pointfloat = `(\\b(${digitpart}))?\\.(${digitpart})|\\b(${digitpart})\\.`; - // Whitespace after a number (or any lexical token) is needed only if its absence - // would change the tokenization - // https://docs.python.org/3.9/reference/lexical_analysis.html#whitespace-between-tokens - // We deviate slightly, requiring a word boundary or a keyword - // to avoid accidentally recognizing *prefixes* (e.g., `0` in `0x41` or `08` or `0__1`) - const lookahead = `\\b|${RESERVED_WORDS.join('|')}`; - const NUMBER = { - className: 'number', - relevance: 0, - variants: [ - // exponentfloat, pointfloat - // https://docs.python.org/3.9/reference/lexical_analysis.html#floating-point-literals - // optionally imaginary - // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals - // Note: no leading \b because floats can start with a decimal point - // and we don't want to mishandle e.g. `fn(.5)`, - // no trailing \b for pointfloat because it can end with a decimal point - // and we don't want to mishandle e.g. `0..hex()`; this should be safe - // because both MUST contain a decimal point and so cannot be confused with - // the interior part of an identifier - { - begin: `(\\b(${digitpart})|(${pointfloat}))[eE][+-]?(${digitpart})[jJ]?(?=${lookahead})` - }, - { - begin: `(${pointfloat})[jJ]?` - }, - - // decinteger, bininteger, octinteger, hexinteger - // https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals - // optionally "long" in Python 2 - // https://docs.python.org/2.7/reference/lexical_analysis.html#integer-and-long-integer-literals - // decinteger is optionally imaginary - // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals - { - begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${lookahead})` - }, - { - begin: `\\b0[bB](_?[01])+[lL]?(?=${lookahead})` - }, - { - begin: `\\b0[oO](_?[0-7])+[lL]?(?=${lookahead})` - }, - { - begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${lookahead})` - }, - - // imagnumber (digitpart-based) - // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals - { - begin: `\\b(${digitpart})[jJ](?=${lookahead})` - } - ] - }; - const COMMENT_TYPE = { - className: "comment", - begin: regex.lookahead(/# type:/), - end: /$/, - keywords: KEYWORDS, - contains: [ - { // prevent keywords from coloring `type` - begin: /# type:/ - }, - // comment within a datatype comment includes no keywords - { - begin: /#/, - end: /\b\B/, - endsWithParent: true - } - ] - }; - const PARAMS = { - className: 'params', - variants: [ - // Exclude params in functions without params - { - className: "", - begin: /\(\s*\)/, - skip: true - }, - { - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS, - contains: [ - 'self', - PROMPT, - NUMBER, - STRING, - hljs.HASH_COMMENT_MODE - ] - } - ] - }; - SUBST.contains = [ - STRING, - NUMBER, - PROMPT - ]; - - return { - name: 'Python', - aliases: [ - 'py', - 'gyp', - 'ipython' - ], - unicodeRegex: true, - keywords: KEYWORDS, - illegal: /(<\/|\?)|=>/, - contains: [ - PROMPT, - NUMBER, - { - // very common convention - scope: 'variable.language', - match: /\bself\b/ - }, - { - // eat "if" prior to string so that it won't accidentally be - // labeled as an f-string - beginKeywords: "if", - relevance: 0 - }, - { match: /\bor\b/, scope: "keyword" }, - STRING, - COMMENT_TYPE, - hljs.HASH_COMMENT_MODE, - { - match: [ - /\bdef/, /\s+/, - IDENT_RE, - ], - scope: { - 1: "keyword", - 3: "title.function" - }, - contains: [ PARAMS ] - }, - { - variants: [ - { - match: [ - /\bclass/, /\s+/, - IDENT_RE, /\s*/, - /\(\s*/, IDENT_RE,/\s*\)/ - ], - }, - { - match: [ - /\bclass/, /\s+/, - IDENT_RE - ], - } - ], - scope: { - 1: "keyword", - 3: "title.class", - 6: "title.class.inherited", - } - }, - { - className: 'meta', - begin: /^[\t ]*@/, - end: /(?=#)|$/, - contains: [ - NUMBER, - PARAMS, - STRING - ] - } - ] - }; -} - -export { python as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js.js deleted file mode 100644 index 25ffda5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/python" instead of "highlight.js/lib/languages/python.js"' - ); - } - } - emitWarning(); - import lang from './python.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/q.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/q.js deleted file mode 100644 index e79889d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/q.js +++ /dev/null @@ -1,38 +0,0 @@ -/* -Language: Q -Description: Q is a vector-based functional paradigm programming language built into the kdb+ database. - (K/Q/Kdb+ from Kx Systems) -Author: Sergey Vidyuk -Website: https://kx.com/connect-with-us/developers/ -Category: enterprise, functional, database -*/ - -function q(hljs) { - const KEYWORDS = { - $pattern: /(`?)[A-Za-z0-9_]+\b/, - keyword: - 'do while select delete by update from', - literal: - '0b 1b', - built_in: - 'neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum', - type: - '`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid' - }; - - return { - name: 'Q', - aliases: [ - 'k', - 'kdb' - ], - keywords: KEYWORDS, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE - ] - }; -} - -export { q as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/q.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/q.js.js deleted file mode 100644 index 7771a5c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/q.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/q" instead of "highlight.js/lib/languages/q.js"' - ); - } - } - emitWarning(); - import lang from './q.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/qml.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/qml.js deleted file mode 100644 index 1b9fa82..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/qml.js +++ /dev/null @@ -1,189 +0,0 @@ -/* -Language: QML -Requires: javascript.js, xml.js -Author: John Foster -Description: Syntax highlighting for the Qt Quick QML scripting language, based mostly off - the JavaScript parser. -Website: https://doc.qt.io/qt-5/qmlapplications.html -Category: scripting -*/ - -function qml(hljs) { - const regex = hljs.regex; - const KEYWORDS = { - keyword: - 'in of on if for while finally var new function do return void else break catch ' - + 'instanceof with throw case default try this switch continue typeof delete ' - + 'let yield const export super debugger as async await import', - literal: - 'true false null undefined NaN Infinity', - built_in: - 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' - + 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' - + 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' - + 'TypeError URIError Number Math Date String RegExp Array Float32Array ' - + 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' - + 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' - + 'module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect ' - + 'Behavior bool color coordinate date double enumeration font geocircle georectangle ' - + 'geoshape int list matrix4x4 parent point quaternion real rect ' - + 'size string url variant vector2d vector3d vector4d ' - + 'Promise' - }; - - const QML_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9\\._]*'; - - // Isolate property statements. Ends at a :, =, ;, ,, a comment or end of line. - // Use property class. - const PROPERTY = { - className: 'keyword', - begin: '\\bproperty\\b', - starts: { - className: 'string', - end: '(:|=|;|,|//|/\\*|$)', - returnEnd: true - } - }; - - // Isolate signal statements. Ends at a ) a comment or end of line. - // Use property class. - const SIGNAL = { - className: 'keyword', - begin: '\\bsignal\\b', - starts: { - className: 'string', - end: '(\\(|:|=|;|,|//|/\\*|$)', - returnEnd: true - } - }; - - // id: is special in QML. When we see id: we want to mark the id: as attribute and - // emphasize the token following. - const ID_ID = { - className: 'attribute', - begin: '\\bid\\s*:', - starts: { - className: 'string', - end: QML_IDENT_RE, - returnEnd: false - } - }; - - // Find QML object attribute. An attribute is a QML identifier followed by :. - // Unfortunately it's hard to know where it ends, as it may contain scalars, - // objects, object definitions, or javascript. The true end is either when the parent - // ends or the next attribute is detected. - const QML_ATTRIBUTE = { - begin: QML_IDENT_RE + '\\s*:', - returnBegin: true, - contains: [ - { - className: 'attribute', - begin: QML_IDENT_RE, - end: '\\s*:', - excludeEnd: true, - relevance: 0 - } - ], - relevance: 0 - }; - - // Find QML object. A QML object is a QML identifier followed by { and ends at the matching }. - // All we really care about is finding IDENT followed by { and just mark up the IDENT and ignore the {. - const QML_OBJECT = { - begin: regex.concat(QML_IDENT_RE, /\s*\{/), - end: /\{/, - returnBegin: true, - relevance: 0, - contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: QML_IDENT_RE }) ] - }; - - return { - name: 'QML', - aliases: [ 'qt' ], - case_insensitive: false, - keywords: KEYWORDS, - contains: [ - { - className: 'meta', - begin: /^\s*['"]use (strict|asm)['"]/ - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - { // template string - className: 'string', - begin: '`', - end: '`', - contains: [ - hljs.BACKSLASH_ESCAPE, - { - className: 'subst', - begin: '\\$\\{', - end: '\\}' - } - ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: 'number', - variants: [ - { begin: '\\b(0[bB][01]+)' }, - { begin: '\\b(0[oO][0-7]+)' }, - { begin: hljs.C_NUMBER_RE } - ], - relevance: 0 - }, - { // "value" container - begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', - keywords: 'return throw case', - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.REGEXP_MODE, - { // E4X / JSX - begin: /\s*[);\]]/, - relevance: 0, - subLanguage: 'xml' - } - ], - relevance: 0 - }, - SIGNAL, - PROPERTY, - { - className: 'function', - beginKeywords: 'function', - end: /\{/, - excludeEnd: true, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { begin: /[A-Za-z$_][0-9A-Za-z$_]*/ }), - { - className: 'params', - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - } - ], - illegal: /\[|%/ - }, - { - // hack: prevents detection of keywords after dots - begin: '\\.' + hljs.IDENT_RE, - relevance: 0 - }, - ID_ID, - QML_ATTRIBUTE, - QML_OBJECT - ], - illegal: /#/ - }; -} - -export { qml as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/qml.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/qml.js.js deleted file mode 100644 index 48c2425..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/qml.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/qml" instead of "highlight.js/lib/languages/qml.js"' - ); - } - } - emitWarning(); - import lang from './qml.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/r.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/r.js deleted file mode 100644 index d4a8469..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/r.js +++ /dev/null @@ -1,257 +0,0 @@ -/* -Language: R -Description: R is a free software environment for statistical computing and graphics. -Author: Joe Cheng -Contributors: Konrad Rudolph -Website: https://www.r-project.org -Category: common,scientific -*/ - -/** @type LanguageFn */ -function r(hljs) { - const regex = hljs.regex; - // Identifiers in R cannot start with `_`, but they can start with `.` if it - // is not immediately followed by a digit. - // R also supports quoted identifiers, which are near-arbitrary sequences - // delimited by backticks (`…`), which may contain escape sequences. These are - // handled in a separate mode. See `test/markup/r/names.txt` for examples. - // FIXME: Support Unicode identifiers. - const IDENT_RE = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/; - const NUMBER_TYPES_RE = regex.either( - // Special case: only hexadecimal binary powers can contain fractions - /0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, - // Hexadecimal numbers without fraction and optional binary power - /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, - // Decimal numbers - /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/ - ); - const OPERATORS_RE = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/; - const PUNCTUATION_RE = regex.either( - /[()]/, - /[{}]/, - /\[\[/, - /[[\]]/, - /\\/, - /,/ - ); - - return { - name: 'R', - - keywords: { - $pattern: IDENT_RE, - keyword: - 'function if in break next repeat else for while', - literal: - 'NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 ' - + 'NA_character_|10 NA_complex_|10', - built_in: - // Builtin constants - 'LETTERS letters month.abb month.name pi T F ' - // Primitive functions - // These are all the functions in `base` that are implemented as a - // `.Primitive`, minus those functions that are also keywords. - + 'abs acos acosh all any anyNA Arg as.call as.character ' - + 'as.complex as.double as.environment as.integer as.logical ' - + 'as.null.default as.numeric as.raw asin asinh atan atanh attr ' - + 'attributes baseenv browser c call ceiling class Conj cos cosh ' - + 'cospi cummax cummin cumprod cumsum digamma dim dimnames ' - + 'emptyenv exp expression floor forceAndCall gamma gc.time ' - + 'globalenv Im interactive invisible is.array is.atomic is.call ' - + 'is.character is.complex is.double is.environment is.expression ' - + 'is.finite is.function is.infinite is.integer is.language ' - + 'is.list is.logical is.matrix is.na is.name is.nan is.null ' - + 'is.numeric is.object is.pairlist is.raw is.recursive is.single ' - + 'is.symbol lazyLoadDBfetch length lgamma list log max min ' - + 'missing Mod names nargs nzchar oldClass on.exit pos.to.env ' - + 'proc.time prod quote range Re rep retracemem return round ' - + 'seq_along seq_len seq.int sign signif sin sinh sinpi sqrt ' - + 'standardGeneric substitute sum switch tan tanh tanpi tracemem ' - + 'trigamma trunc unclass untracemem UseMethod xtfrm', - }, - - contains: [ - // Roxygen comments - hljs.COMMENT( - /#'/, - /$/, - { contains: [ - { - // Handle `@examples` separately to cause all subsequent code - // until the next `@`-tag on its own line to be kept as-is, - // preventing highlighting. This code is example R code, so nested - // doctags shouldn’t be treated as such. See - // `test/markup/r/roxygen.txt` for an example. - scope: 'doctag', - match: /@examples/, - starts: { - end: regex.lookahead(regex.either( - // end if another doc comment - /\n^#'\s*(?=@[a-zA-Z]+)/, - // or a line with no comment - /\n^(?!#')/ - )), - endsParent: true - } - }, - { - // Handle `@param` to highlight the parameter name following - // after. - scope: 'doctag', - begin: '@param', - end: /$/, - contains: [ - { - scope: 'variable', - variants: [ - { match: IDENT_RE }, - { match: /`(?:\\.|[^`\\])+`/ } - ], - endsParent: true - } - ] - }, - { - scope: 'doctag', - match: /@[a-zA-Z]+/ - }, - { - scope: 'keyword', - match: /\\[a-zA-Z]+/ - } - ] } - ), - - hljs.HASH_COMMENT_MODE, - - { - scope: 'string', - contains: [ hljs.BACKSLASH_ESCAPE ], - variants: [ - hljs.END_SAME_AS_BEGIN({ - begin: /[rR]"(-*)\(/, - end: /\)(-*)"/ - }), - hljs.END_SAME_AS_BEGIN({ - begin: /[rR]"(-*)\{/, - end: /\}(-*)"/ - }), - hljs.END_SAME_AS_BEGIN({ - begin: /[rR]"(-*)\[/, - end: /\](-*)"/ - }), - hljs.END_SAME_AS_BEGIN({ - begin: /[rR]'(-*)\(/, - end: /\)(-*)'/ - }), - hljs.END_SAME_AS_BEGIN({ - begin: /[rR]'(-*)\{/, - end: /\}(-*)'/ - }), - hljs.END_SAME_AS_BEGIN({ - begin: /[rR]'(-*)\[/, - end: /\](-*)'/ - }), - { - begin: '"', - end: '"', - relevance: 0 - }, - { - begin: "'", - end: "'", - relevance: 0 - } - ], - }, - - // Matching numbers immediately following punctuation and operators is - // tricky since we need to look at the character ahead of a number to - // ensure the number is not part of an identifier, and we cannot use - // negative look-behind assertions. So instead we explicitly handle all - // possible combinations of (operator|punctuation), number. - // TODO: replace with negative look-behind when available - // { begin: /(? -Category: functional -*/ -function reasonml(hljs) { - const BUILT_IN_TYPES = [ - "array", - "bool", - "bytes", - "char", - "exn|5", - "float", - "int", - "int32", - "int64", - "list", - "lazy_t|5", - "nativeint|5", - "ref", - "string", - "unit", - ]; - return { - name: 'ReasonML', - aliases: [ 're' ], - keywords: { - $pattern: /[a-z_]\w*!?/, - keyword: [ - "and", - "as", - "asr", - "assert", - "begin", - "class", - "constraint", - "do", - "done", - "downto", - "else", - "end", - "esfun", - "exception", - "external", - "for", - "fun", - "function", - "functor", - "if", - "in", - "include", - "inherit", - "initializer", - "land", - "lazy", - "let", - "lor", - "lsl", - "lsr", - "lxor", - "mod", - "module", - "mutable", - "new", - "nonrec", - "object", - "of", - "open", - "or", - "pri", - "pub", - "rec", - "sig", - "struct", - "switch", - "then", - "to", - "try", - "type", - "val", - "virtual", - "when", - "while", - "with", - ], - built_in: BUILT_IN_TYPES, - literal: ["true", "false"], - }, - illegal: /(:-|:=|\$\{|\+=)/, - contains: [ - { - scope: 'literal', - match: /\[(\|\|)?\]|\(\)/, - relevance: 0 - }, - hljs.C_LINE_COMMENT_MODE, - hljs.COMMENT(/\/\*/, /\*\//, { illegal: /^(#,\/\/)/ }), - { /* type variable */ - scope: 'symbol', - match: /\'[A-Za-z_](?!\')[\w\']*/ - /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ - }, - { /* polymorphic variant */ - scope: 'type', - match: /`[A-Z][\w\']*/ - }, - { /* module or constructor */ - scope: 'type', - match: /\b[A-Z][\w\']*/, - relevance: 0 - }, - { /* don't color identifiers, but safely catch all identifiers with ' */ - match: /[a-z_]\w*\'[\w\']*/, - relevance: 0 - }, - { - scope: 'operator', - match: /\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/, - relevance: 0 - }, - hljs.inherit(hljs.APOS_STRING_MODE, { - scope: 'string', - relevance: 0 - }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), - { - scope: 'number', - variants: [ - { match: /\b0[xX][a-fA-F0-9_]+[Lln]?/ }, - { match: /\b0[oO][0-7_]+[Lln]?/ }, - { match: /\b0[bB][01_]+[Lln]?/ }, - { match: /\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/ }, - ], - relevance: 0 - }, - ] - }; -} - -export { reasonml as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/reasonml.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/reasonml.js.js deleted file mode 100644 index 3ea41f0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/reasonml.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/reasonml" instead of "highlight.js/lib/languages/reasonml.js"' - ); - } - } - emitWarning(); - import lang from './reasonml.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rib.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rib.js deleted file mode 100644 index aa64b78..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rib.js +++ /dev/null @@ -1,37 +0,0 @@ -/* -Language: RenderMan RIB -Author: Konstantin Evdokimenko -Contributors: Shuen-Huei Guan -Website: https://renderman.pixar.com/resources/RenderMan_20/ribBinding.html -Category: graphics -*/ - -function rib(hljs) { - return { - name: 'RenderMan RIB', - keywords: - 'ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis ' - + 'Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone ' - + 'CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail ' - + 'DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format ' - + 'FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry ' - + 'Hider Hyperboloid Identity Illuminate Imager Interior LightSource ' - + 'MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte ' - + 'MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option ' - + 'Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples ' - + 'PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection ' - + 'Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ' - + 'ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere ' - + 'SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd ' - + 'TransformPoints Translate TrimCurve WorldBegin WorldEnd', - illegal: ' -Description: Syntax highlighting for Roboconf's DSL -Website: http://roboconf.net -Category: config -*/ - -function roboconf(hljs) { - const IDENTIFIER = '[a-zA-Z-_][^\\n{]+\\{'; - - const PROPERTY = { - className: 'attribute', - begin: /[a-zA-Z-_]+/, - end: /\s*:/, - excludeEnd: true, - starts: { - end: ';', - relevance: 0, - contains: [ - { - className: 'variable', - begin: /\.[a-zA-Z-_]+/ - }, - { - className: 'keyword', - begin: /\(optional\)/ - } - ] - } - }; - - return { - name: 'Roboconf', - aliases: [ - 'graph', - 'instances' - ], - case_insensitive: true, - keywords: 'import', - contains: [ - // Facet sections - { - begin: '^facet ' + IDENTIFIER, - end: /\}/, - keywords: 'facet', - contains: [ - PROPERTY, - hljs.HASH_COMMENT_MODE - ] - }, - - // Instance sections - { - begin: '^\\s*instance of ' + IDENTIFIER, - end: /\}/, - keywords: 'name count channels instance-data instance-state instance of', - illegal: /\S/, - contains: [ - 'self', - PROPERTY, - hljs.HASH_COMMENT_MODE - ] - }, - - // Component sections - { - begin: '^' + IDENTIFIER, - end: /\}/, - contains: [ - PROPERTY, - hljs.HASH_COMMENT_MODE - ] - }, - - // Comments - hljs.HASH_COMMENT_MODE - ] - }; -} - -export { roboconf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/roboconf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/roboconf.js.js deleted file mode 100644 index 2f76c8a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/roboconf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/roboconf" instead of "highlight.js/lib/languages/roboconf.js"' - ); - } - } - emitWarning(); - import lang from './roboconf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/routeros.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/routeros.js deleted file mode 100644 index 64dcc3d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/routeros.js +++ /dev/null @@ -1,164 +0,0 @@ -/* -Language: MikroTik RouterOS script -Author: Ivan Dementev -Description: Scripting host provides a way to automate some router maintenance tasks by means of executing user-defined scripts bounded to some event occurrence -Website: https://wiki.mikrotik.com/wiki/Manual:Scripting -Category: scripting -*/ - -// Colors from RouterOS terminal: -// green - #0E9A00 -// teal - #0C9A9A -// purple - #99069A -// light-brown - #9A9900 - -function routeros(hljs) { - const STATEMENTS = 'foreach do while for if from to step else on-error and or not in'; - - // Global commands: Every global command should start with ":" token, otherwise it will be treated as variable. - const GLOBAL_COMMANDS = 'global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime'; - - // Common commands: Following commands available from most sub-menus: - const COMMON_COMMANDS = 'add remove enable disable set get print export edit find run debug error info warning'; - - const LITERALS = 'true false yes no nothing nil null'; - - const OBJECTS = 'traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw'; - - const VAR = { - className: 'variable', - variants: [ - { begin: /\$[\w\d#@][\w\d_]*/ }, - { begin: /\$\{(.*?)\}/ } - ] - }; - - const QUOTE_STRING = { - className: 'string', - begin: /"/, - end: /"/, - contains: [ - hljs.BACKSLASH_ESCAPE, - VAR, - { - className: 'variable', - begin: /\$\(/, - end: /\)/, - contains: [ hljs.BACKSLASH_ESCAPE ] - } - ] - }; - - const APOS_STRING = { - className: 'string', - begin: /'/, - end: /'/ - }; - - return { - name: 'MikroTik RouterOS script', - aliases: [ 'mikrotik' ], - case_insensitive: true, - keywords: { - $pattern: /:?[\w-]+/, - literal: LITERALS, - keyword: STATEMENTS + ' :' + STATEMENTS.split(' ').join(' :') + ' :' + GLOBAL_COMMANDS.split(' ').join(' :') - }, - contains: [ - { // illegal syntax - variants: [ - { // -- comment - begin: /\/\*/, - end: /\*\// - }, - { // Stan comment - begin: /\/\//, - end: /$/ - }, - { // HTML tags - begin: /<\//, - end: />/ - } - ], - illegal: /./ - }, - hljs.COMMENT('^#', '$'), - QUOTE_STRING, - APOS_STRING, - VAR, - // attribute=value - { - // > is to avoid matches with => in other grammars - begin: /[\w-]+=([^\s{}[\]()>]+)/, - relevance: 0, - returnBegin: true, - contains: [ - { - className: 'attribute', - begin: /[^=]+/ - }, - { - begin: /=/, - endsWithParent: true, - relevance: 0, - contains: [ - QUOTE_STRING, - APOS_STRING, - VAR, - { - className: 'literal', - begin: '\\b(' + LITERALS.split(' ').join('|') + ')\\b' - }, - { - // Do not format unclassified values. Needed to exclude highlighting of values as built_in. - begin: /("[^"]*"|[^\s{}[\]]+)/ } - /* - { - // IPv4 addresses and subnets - className: 'number', - variants: [ - {begin: IPADDR_wBITMASK+'(,'+IPADDR_wBITMASK+')*'}, //192.168.0.0/24,1.2.3.0/24 - {begin: IPADDR+'-'+IPADDR}, // 192.168.0.1-192.168.0.3 - {begin: IPADDR+'(,'+IPADDR+')*'}, // 192.168.0.1,192.168.0.34,192.168.24.1,192.168.0.1 - ] - }, - { - // MAC addresses and DHCP Client IDs - className: 'number', - begin: /\b(1:)?([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]){1,2}\b/, - }, - */ - ] - } - ] - }, - { - // HEX values - className: 'number', - begin: /\*[0-9a-fA-F]+/ - }, - { - begin: '\\b(' + COMMON_COMMANDS.split(' ').join('|') + ')([\\s[(\\]|])', - returnBegin: true, - contains: [ - { - className: 'built_in', // 'function', - begin: /\w+/ - } - ] - }, - { - className: 'built_in', - variants: [ - { begin: '(\\.\\./|/|\\s)((' + OBJECTS.split(' ').join('|') + ');?\\s)+' }, - { - begin: /\.\./, - relevance: 0 - } - ] - } - ] - }; -} - -export { routeros as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/routeros.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/routeros.js.js deleted file mode 100644 index 4d6c368..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/routeros.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/routeros" instead of "highlight.js/lib/languages/routeros.js"' - ); - } - } - emitWarning(); - import lang from './routeros.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rsl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rsl.js deleted file mode 100644 index c878fa7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rsl.js +++ /dev/null @@ -1,149 +0,0 @@ -/* -Language: RenderMan RSL -Author: Konstantin Evdokimenko -Contributors: Shuen-Huei Guan -Website: https://renderman.pixar.com/resources/RenderMan_20/shadingLanguage.html -Category: graphics -*/ - -function rsl(hljs) { - const BUILT_INS = [ - "abs", - "acos", - "ambient", - "area", - "asin", - "atan", - "atmosphere", - "attribute", - "calculatenormal", - "ceil", - "cellnoise", - "clamp", - "comp", - "concat", - "cos", - "degrees", - "depth", - "Deriv", - "diffuse", - "distance", - "Du", - "Dv", - "environment", - "exp", - "faceforward", - "filterstep", - "floor", - "format", - "fresnel", - "incident", - "length", - "lightsource", - "log", - "match", - "max", - "min", - "mod", - "noise", - "normalize", - "ntransform", - "opposite", - "option", - "phong", - "pnoise", - "pow", - "printf", - "ptlined", - "radians", - "random", - "reflect", - "refract", - "renderinfo", - "round", - "setcomp", - "setxcomp", - "setycomp", - "setzcomp", - "shadow", - "sign", - "sin", - "smoothstep", - "specular", - "specularbrdf", - "spline", - "sqrt", - "step", - "tan", - "texture", - "textureinfo", - "trace", - "transform", - "vtransform", - "xcomp", - "ycomp", - "zcomp" - ]; - - const TYPES = [ - "matrix", - "float", - "color", - "point", - "normal", - "vector" - ]; - - const KEYWORDS = [ - "while", - "for", - "if", - "do", - "return", - "else", - "break", - "extern", - "continue" - ]; - - const CLASS_DEFINITION = { - match: [ - /(surface|displacement|light|volume|imager)/, - /\s+/, - hljs.IDENT_RE, - ], - scope: { - 1: "keyword", - 3: "title.class", - } - }; - - return { - name: 'RenderMan RSL', - keywords: { - keyword: KEYWORDS, - built_in: BUILT_INS, - type: TYPES - }, - illegal: ' -Contributors: Peter Leonov , Vasily Polovnyov , Loren Segal , Pascal Hurni , Cedric Sohrauer -Category: common, scripting -*/ - -function ruby(hljs) { - const regex = hljs.regex; - const RUBY_METHOD_RE = '([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)'; - // TODO: move concepts like CAMEL_CASE into `modes.js` - const CLASS_NAME_RE = regex.either( - /\b([A-Z]+[a-z0-9]+)+/, - // ends in caps - /\b([A-Z]+[a-z0-9]+)+[A-Z]+/, - ) - ; - const CLASS_NAME_WITH_NAMESPACE_RE = regex.concat(CLASS_NAME_RE, /(::\w+)*/); - // very popular ruby built-ins that one might even assume - // are actual keywords (despite that not being the case) - const PSEUDO_KWS = [ - "include", - "extend", - "prepend", - "public", - "private", - "protected", - "raise", - "throw" - ]; - const RUBY_KEYWORDS = { - "variable.constant": [ - "__FILE__", - "__LINE__", - "__ENCODING__" - ], - "variable.language": [ - "self", - "super", - ], - keyword: [ - "alias", - "and", - "begin", - "BEGIN", - "break", - "case", - "class", - "defined", - "do", - "else", - "elsif", - "end", - "END", - "ensure", - "for", - "if", - "in", - "module", - "next", - "not", - "or", - "redo", - "require", - "rescue", - "retry", - "return", - "then", - "undef", - "unless", - "until", - "when", - "while", - "yield", - ...PSEUDO_KWS - ], - built_in: [ - "proc", - "lambda", - "attr_accessor", - "attr_reader", - "attr_writer", - "define_method", - "private_constant", - "module_function" - ], - literal: [ - "true", - "false", - "nil" - ] - }; - const YARDOCTAG = { - className: 'doctag', - begin: '@[A-Za-z]+' - }; - const IRB_OBJECT = { - begin: '#<', - end: '>' - }; - const COMMENT_MODES = [ - hljs.COMMENT( - '#', - '$', - { contains: [ YARDOCTAG ] } - ), - hljs.COMMENT( - '^=begin', - '^=end', - { - contains: [ YARDOCTAG ], - relevance: 10 - } - ), - hljs.COMMENT('^__END__', hljs.MATCH_NOTHING_RE) - ]; - const SUBST = { - className: 'subst', - begin: /#\{/, - end: /\}/, - keywords: RUBY_KEYWORDS - }; - const STRING = { - className: 'string', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - variants: [ - { - begin: /'/, - end: /'/ - }, - { - begin: /"/, - end: /"/ - }, - { - begin: /`/, - end: /`/ - }, - { - begin: /%[qQwWx]?\(/, - end: /\)/ - }, - { - begin: /%[qQwWx]?\[/, - end: /\]/ - }, - { - begin: /%[qQwWx]?\{/, - end: /\}/ - }, - { - begin: /%[qQwWx]?/ - }, - { - begin: /%[qQwWx]?\//, - end: /\// - }, - { - begin: /%[qQwWx]?%/, - end: /%/ - }, - { - begin: /%[qQwWx]?-/, - end: /-/ - }, - { - begin: /%[qQwWx]?\|/, - end: /\|/ - }, - // in the following expressions, \B in the beginning suppresses recognition of ?-sequences - // where ? is the last character of a preceding identifier, as in: `func?4` - { begin: /\B\?(\\\d{1,3})/ }, - { begin: /\B\?(\\x[A-Fa-f0-9]{1,2})/ }, - { begin: /\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/ }, - { begin: /\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/ }, - { begin: /\B\?\\(c|C-)[\x20-\x7e]/ }, - { begin: /\B\?\\?\S/ }, - // heredocs - { - // this guard makes sure that we have an entire heredoc and not a false - // positive (auto-detect, etc.) - begin: regex.concat( - /<<[-~]?'?/, - regex.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/) - ), - contains: [ - hljs.END_SAME_AS_BEGIN({ - begin: /(\w+)/, - end: /(\w+)/, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }) - ] - } - ] - }; - - // Ruby syntax is underdocumented, but this grammar seems to be accurate - // as of version 2.7.2 (confirmed with (irb and `Ripper.sexp(...)`) - // https://docs.ruby-lang.org/en/2.7.0/doc/syntax/literals_rdoc.html#label-Numbers - const decimal = '[1-9](_?[0-9])*|0'; - const digits = '[0-9](_?[0-9])*'; - const NUMBER = { - className: 'number', - relevance: 0, - variants: [ - // decimal integer/float, optionally exponential or rational, optionally imaginary - { begin: `\\b(${decimal})(\\.(${digits}))?([eE][+-]?(${digits})|r)?i?\\b` }, - - // explicit decimal/binary/octal/hexadecimal integer, - // optionally rational and/or imaginary - { begin: "\\b0[dD][0-9](_?[0-9])*r?i?\\b" }, - { begin: "\\b0[bB][0-1](_?[0-1])*r?i?\\b" }, - { begin: "\\b0[oO][0-7](_?[0-7])*r?i?\\b" }, - { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b" }, - - // 0-prefixed implicit octal integer, optionally rational and/or imaginary - { begin: "\\b0(_?[0-7])+r?i?\\b" } - ] - }; - - const PARAMS = { - variants: [ - { - match: /\(\)/, - }, - { - className: 'params', - begin: /\(/, - end: /(?=\))/, - excludeBegin: true, - endsParent: true, - keywords: RUBY_KEYWORDS, - } - ] - }; - - const INCLUDE_EXTEND = { - match: [ - /(include|extend)\s+/, - CLASS_NAME_WITH_NAMESPACE_RE - ], - scope: { - 2: "title.class" - }, - keywords: RUBY_KEYWORDS - }; - - const CLASS_DEFINITION = { - variants: [ - { - match: [ - /class\s+/, - CLASS_NAME_WITH_NAMESPACE_RE, - /\s+<\s+/, - CLASS_NAME_WITH_NAMESPACE_RE - ] - }, - { - match: [ - /\b(class|module)\s+/, - CLASS_NAME_WITH_NAMESPACE_RE - ] - } - ], - scope: { - 2: "title.class", - 4: "title.class.inherited" - }, - keywords: RUBY_KEYWORDS - }; - - const UPPER_CASE_CONSTANT = { - relevance: 0, - match: /\b[A-Z][A-Z_0-9]+\b/, - className: "variable.constant" - }; - - const METHOD_DEFINITION = { - match: [ - /def/, /\s+/, - RUBY_METHOD_RE - ], - scope: { - 1: "keyword", - 3: "title.function" - }, - contains: [ - PARAMS - ] - }; - - const OBJECT_CREATION = { - relevance: 0, - match: [ - CLASS_NAME_WITH_NAMESPACE_RE, - /\.new[. (]/ - ], - scope: { - 1: "title.class" - } - }; - - // CamelCase - const CLASS_REFERENCE = { - relevance: 0, - match: CLASS_NAME_RE, - scope: "title.class" - }; - - const RUBY_DEFAULT_CONTAINS = [ - STRING, - CLASS_DEFINITION, - INCLUDE_EXTEND, - OBJECT_CREATION, - UPPER_CASE_CONSTANT, - CLASS_REFERENCE, - METHOD_DEFINITION, - { - // swallow namespace qualifiers before symbols - begin: hljs.IDENT_RE + '::' }, - { - className: 'symbol', - begin: hljs.UNDERSCORE_IDENT_RE + '(!|\\?)?:', - relevance: 0 - }, - { - className: 'symbol', - begin: ':(?!\\s)', - contains: [ - STRING, - { begin: RUBY_METHOD_RE } - ], - relevance: 0 - }, - NUMBER, - { - // negative-look forward attempts to prevent false matches like: - // @ident@ or $ident$ that might indicate this is not ruby at all - className: "variable", - begin: '(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])' + `(?![A-Za-z])(?![@$?'])` - }, - { - className: 'params', - begin: /\|(?!=)/, - end: /\|/, - excludeBegin: true, - excludeEnd: true, - relevance: 0, // this could be a lot of things (in other languages) other than params - keywords: RUBY_KEYWORDS - }, - { // regexp container - begin: '(' + hljs.RE_STARTERS_RE + '|unless)\\s*', - keywords: 'unless', - contains: [ - { - className: 'regexp', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - illegal: /\n/, - variants: [ - { - begin: '/', - end: '/[a-z]*' - }, - { - begin: /%r\{/, - end: /\}[a-z]*/ - }, - { - begin: '%r\\(', - end: '\\)[a-z]*' - }, - { - begin: '%r!', - end: '![a-z]*' - }, - { - begin: '%r\\[', - end: '\\][a-z]*' - } - ] - } - ].concat(IRB_OBJECT, COMMENT_MODES), - relevance: 0 - } - ].concat(IRB_OBJECT, COMMENT_MODES); - - SUBST.contains = RUBY_DEFAULT_CONTAINS; - PARAMS.contains = RUBY_DEFAULT_CONTAINS; - - // >> - // ?> - const SIMPLE_PROMPT = "[>?]>"; - // irb(main):001:0> - const DEFAULT_PROMPT = "[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"; - const RVM_PROMPT = "(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"; - - const IRB_DEFAULT = [ - { - begin: /^\s*=>/, - starts: { - end: '$', - contains: RUBY_DEFAULT_CONTAINS - } - }, - { - className: 'meta.prompt', - begin: '^(' + SIMPLE_PROMPT + "|" + DEFAULT_PROMPT + '|' + RVM_PROMPT + ')(?=[ ])', - starts: { - end: '$', - keywords: RUBY_KEYWORDS, - contains: RUBY_DEFAULT_CONTAINS - } - } - ]; - - COMMENT_MODES.unshift(IRB_OBJECT); - - return { - name: 'Ruby', - aliases: [ - 'rb', - 'gemspec', - 'podspec', - 'thor', - 'irb' - ], - keywords: RUBY_KEYWORDS, - illegal: /\/\*/, - contains: [ hljs.SHEBANG({ binary: "ruby" }) ] - .concat(IRB_DEFAULT) - .concat(COMMENT_MODES) - .concat(RUBY_DEFAULT_CONTAINS) - }; -} - -export { ruby as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.js.js deleted file mode 100644 index 4756226..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ruby" instead of "highlight.js/lib/languages/ruby.js"' - ); - } - } - emitWarning(); - import lang from './ruby.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruleslanguage.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruleslanguage.js deleted file mode 100644 index 837d379..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruleslanguage.js +++ /dev/null @@ -1,76 +0,0 @@ -/* -Language: Oracle Rules Language -Author: Jason Jacobson -Description: The Oracle Utilities Rules Language is used to program the Oracle Utilities Applications acquired from LODESTAR Corporation. The products include Billing Component, LPSS, Pricing Component etc. through version 1.6.1. -Website: https://docs.oracle.com/cd/E17904_01/dev.1111/e10227/rlref.htm -Category: enterprise -*/ - -function ruleslanguage(hljs) { - return { - name: 'Oracle Rules Language', - keywords: { - keyword: - 'BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE ' - + 'INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 ' - + 'INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 ' - + 'INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 ' - + 'INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 ' - + 'INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 ' - + 'INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 ' - + 'INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 ' - + 'INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 ' - + 'INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 ' - + 'INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 ' - + 'INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 ' - + 'INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 ' - + 'INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 ' - + 'INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 ' - + 'MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER ' - + 'OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE ' - + 'NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH ' - + 'IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND ' - + 'UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ' - + 'ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE ' - + 'GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE ' - + 'SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING ' - + 'DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF ' - + 'MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY ' - + 'YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE ' - + 'COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR ' - + 'READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ' - + 'ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE ' - + 'EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE ' - + 'SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL ' - + 'COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN ' - + 'MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING ' - + 'FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM ' - + 'NUMDAYS READ_DATE STAGING', - built_in: - 'IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML ' - + 'DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT ' - + 'DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE ' - + 'DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT ' - + 'DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME' - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - { - className: 'literal', - variants: [ - { // looks like #-comment - begin: '#\\s+', - relevance: 0 - }, - { begin: '#[a-zA-Z .]+' } - ] - } - ] - }; -} - -export { ruleslanguage as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruleslanguage.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruleslanguage.js.js deleted file mode 100644 index be9e72e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruleslanguage.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ruleslanguage" instead of "highlight.js/lib/languages/ruleslanguage.js"' - ); - } - } - emitWarning(); - import lang from './ruleslanguage.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js deleted file mode 100644 index 6629887..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +++ /dev/null @@ -1,326 +0,0 @@ -/* -Language: Rust -Author: Andrey Vlasovskikh -Contributors: Roman Shmatov , Kasper Andersen -Website: https://www.rust-lang.org -Category: common, system -*/ - -/** @type LanguageFn */ - -function rust(hljs) { - const regex = hljs.regex; - // ============================================ - // Added to support the r# keyword, which is a raw identifier in Rust. - const RAW_IDENTIFIER = /(r#)?/; - const UNDERSCORE_IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.UNDERSCORE_IDENT_RE); - const IDENT_RE = regex.concat(RAW_IDENTIFIER, hljs.IDENT_RE); - // ============================================ - const FUNCTION_INVOKE = { - className: "title.function.invoke", - relevance: 0, - begin: regex.concat( - /\b/, - /(?!let|for|while|if|else|match\b)/, - IDENT_RE, - regex.lookahead(/\s*\(/)) - }; - const NUMBER_SUFFIX = '([ui](8|16|32|64|128|size)|f(32|64))\?'; - const KEYWORDS = [ - "abstract", - "as", - "async", - "await", - "become", - "box", - "break", - "const", - "continue", - "crate", - "do", - "dyn", - "else", - "enum", - "extern", - "false", - "final", - "fn", - "for", - "if", - "impl", - "in", - "let", - "loop", - "macro", - "match", - "mod", - "move", - "mut", - "override", - "priv", - "pub", - "ref", - "return", - "self", - "Self", - "static", - "struct", - "super", - "trait", - "true", - "try", - "type", - "typeof", - "union", - "unsafe", - "unsized", - "use", - "virtual", - "where", - "while", - "yield" - ]; - const LITERALS = [ - "true", - "false", - "Some", - "None", - "Ok", - "Err" - ]; - const BUILTINS = [ - // functions - 'drop ', - // traits - "Copy", - "Send", - "Sized", - "Sync", - "Drop", - "Fn", - "FnMut", - "FnOnce", - "ToOwned", - "Clone", - "Debug", - "PartialEq", - "PartialOrd", - "Eq", - "Ord", - "AsRef", - "AsMut", - "Into", - "From", - "Default", - "Iterator", - "Extend", - "IntoIterator", - "DoubleEndedIterator", - "ExactSizeIterator", - "SliceConcatExt", - "ToString", - // macros - "assert!", - "assert_eq!", - "bitflags!", - "bytes!", - "cfg!", - "col!", - "concat!", - "concat_idents!", - "debug_assert!", - "debug_assert_eq!", - "env!", - "eprintln!", - "panic!", - "file!", - "format!", - "format_args!", - "include_bytes!", - "include_str!", - "line!", - "local_data_key!", - "module_path!", - "option_env!", - "print!", - "println!", - "select!", - "stringify!", - "try!", - "unimplemented!", - "unreachable!", - "vec!", - "write!", - "writeln!", - "macro_rules!", - "assert_ne!", - "debug_assert_ne!" - ]; - const TYPES = [ - "i8", - "i16", - "i32", - "i64", - "i128", - "isize", - "u8", - "u16", - "u32", - "u64", - "u128", - "usize", - "f32", - "f64", - "str", - "char", - "bool", - "Box", - "Option", - "Result", - "String", - "Vec" - ]; - return { - name: 'Rust', - aliases: [ 'rs' ], - keywords: { - $pattern: hljs.IDENT_RE + '!?', - type: TYPES, - keyword: KEYWORDS, - literal: LITERALS, - built_in: BUILTINS - }, - illegal: '' - }, - FUNCTION_INVOKE - ] - }; -} - -export { rust as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js.js deleted file mode 100644 index 298f105..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/rust" instead of "highlight.js/lib/languages/rust.js"' - ); - } - } - emitWarning(); - import lang from './rust.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sas.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sas.js deleted file mode 100644 index c866fa6..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sas.js +++ /dev/null @@ -1,557 +0,0 @@ -/* -Language: SAS -Author: Mauricio Caceres -Description: Syntax Highlighting for SAS -Category: scientific -*/ - -/** @type LanguageFn */ -function sas(hljs) { - const regex = hljs.regex; - // Data step and PROC SQL statements - const SAS_KEYWORDS = [ - "do", - "if", - "then", - "else", - "end", - "until", - "while", - "abort", - "array", - "attrib", - "by", - "call", - "cards", - "cards4", - "catname", - "continue", - "datalines", - "datalines4", - "delete", - "delim", - "delimiter", - "display", - "dm", - "drop", - "endsas", - "error", - "file", - "filename", - "footnote", - "format", - "goto", - "in", - "infile", - "informat", - "input", - "keep", - "label", - "leave", - "length", - "libname", - "link", - "list", - "lostcard", - "merge", - "missing", - "modify", - "options", - "output", - "out", - "page", - "put", - "redirect", - "remove", - "rename", - "replace", - "retain", - "return", - "select", - "set", - "skip", - "startsas", - "stop", - "title", - "update", - "waitsas", - "where", - "window", - "x|0", - "systask", - "add", - "and", - "alter", - "as", - "cascade", - "check", - "create", - "delete", - "describe", - "distinct", - "drop", - "foreign", - "from", - "group", - "having", - "index", - "insert", - "into", - "in", - "key", - "like", - "message", - "modify", - "msgtype", - "not", - "null", - "on", - "or", - "order", - "primary", - "references", - "reset", - "restrict", - "select", - "set", - "table", - "unique", - "update", - "validate", - "view", - "where" - ]; - - // Built-in SAS functions - const FUNCTIONS = [ - "abs", - "addr", - "airy", - "arcos", - "arsin", - "atan", - "attrc", - "attrn", - "band", - "betainv", - "blshift", - "bnot", - "bor", - "brshift", - "bxor", - "byte", - "cdf", - "ceil", - "cexist", - "cinv", - "close", - "cnonct", - "collate", - "compbl", - "compound", - "compress", - "cos", - "cosh", - "css", - "curobs", - "cv", - "daccdb", - "daccdbsl", - "daccsl", - "daccsyd", - "dacctab", - "dairy", - "date", - "datejul", - "datepart", - "datetime", - "day", - "dclose", - "depdb", - "depdbsl", - "depdbsl", - "depsl", - "depsl", - "depsyd", - "depsyd", - "deptab", - "deptab", - "dequote", - "dhms", - "dif", - "digamma", - "dim", - "dinfo", - "dnum", - "dopen", - "doptname", - "doptnum", - "dread", - "dropnote", - "dsname", - "erf", - "erfc", - "exist", - "exp", - "fappend", - "fclose", - "fcol", - "fdelete", - "fetch", - "fetchobs", - "fexist", - "fget", - "fileexist", - "filename", - "fileref", - "finfo", - "finv", - "fipname", - "fipnamel", - "fipstate", - "floor", - "fnonct", - "fnote", - "fopen", - "foptname", - "foptnum", - "fpoint", - "fpos", - "fput", - "fread", - "frewind", - "frlen", - "fsep", - "fuzz", - "fwrite", - "gaminv", - "gamma", - "getoption", - "getvarc", - "getvarn", - "hbound", - "hms", - "hosthelp", - "hour", - "ibessel", - "index", - "indexc", - "indexw", - "input", - "inputc", - "inputn", - "int", - "intck", - "intnx", - "intrr", - "irr", - "jbessel", - "juldate", - "kurtosis", - "lag", - "lbound", - "left", - "length", - "lgamma", - "libname", - "libref", - "log", - "log10", - "log2", - "logpdf", - "logpmf", - "logsdf", - "lowcase", - "max", - "mdy", - "mean", - "min", - "minute", - "mod", - "month", - "mopen", - "mort", - "n", - "netpv", - "nmiss", - "normal", - "note", - "npv", - "open", - "ordinal", - "pathname", - "pdf", - "peek", - "peekc", - "pmf", - "point", - "poisson", - "poke", - "probbeta", - "probbnml", - "probchi", - "probf", - "probgam", - "probhypr", - "probit", - "probnegb", - "probnorm", - "probt", - "put", - "putc", - "putn", - "qtr", - "quote", - "ranbin", - "rancau", - "ranexp", - "rangam", - "range", - "rank", - "rannor", - "ranpoi", - "rantbl", - "rantri", - "ranuni", - "repeat", - "resolve", - "reverse", - "rewind", - "right", - "round", - "saving", - "scan", - "sdf", - "second", - "sign", - "sin", - "sinh", - "skewness", - "soundex", - "spedis", - "sqrt", - "std", - "stderr", - "stfips", - "stname", - "stnamel", - "substr", - "sum", - "symget", - "sysget", - "sysmsg", - "sysprod", - "sysrc", - "system", - "tan", - "tanh", - "time", - "timepart", - "tinv", - "tnonct", - "today", - "translate", - "tranwrd", - "trigamma", - "trim", - "trimn", - "trunc", - "uniform", - "upcase", - "uss", - "var", - "varfmt", - "varinfmt", - "varlabel", - "varlen", - "varname", - "varnum", - "varray", - "varrayx", - "vartype", - "verify", - "vformat", - "vformatd", - "vformatdx", - "vformatn", - "vformatnx", - "vformatw", - "vformatwx", - "vformatx", - "vinarray", - "vinarrayx", - "vinformat", - "vinformatd", - "vinformatdx", - "vinformatn", - "vinformatnx", - "vinformatw", - "vinformatwx", - "vinformatx", - "vlabel", - "vlabelx", - "vlength", - "vlengthx", - "vname", - "vnamex", - "vtype", - "vtypex", - "weekday", - "year", - "yyq", - "zipfips", - "zipname", - "zipnamel", - "zipstate" - ]; - - // Built-in macro functions - const MACRO_FUNCTIONS = [ - "bquote", - "nrbquote", - "cmpres", - "qcmpres", - "compstor", - "datatyp", - "display", - "do", - "else", - "end", - "eval", - "global", - "goto", - "if", - "index", - "input", - "keydef", - "label", - "left", - "length", - "let", - "local", - "lowcase", - "macro", - "mend", - "nrbquote", - "nrquote", - "nrstr", - "put", - "qcmpres", - "qleft", - "qlowcase", - "qscan", - "qsubstr", - "qsysfunc", - "qtrim", - "quote", - "qupcase", - "scan", - "str", - "substr", - "superq", - "syscall", - "sysevalf", - "sysexec", - "sysfunc", - "sysget", - "syslput", - "sysprod", - "sysrc", - "sysrput", - "then", - "to", - "trim", - "unquote", - "until", - "upcase", - "verify", - "while", - "window" - ]; - - const LITERALS = [ - "null", - "missing", - "_all_", - "_automatic_", - "_character_", - "_infile_", - "_n_", - "_name_", - "_null_", - "_numeric_", - "_user_", - "_webout_" - ]; - - return { - name: 'SAS', - case_insensitive: true, - keywords: { - literal: LITERALS, - keyword: SAS_KEYWORDS - }, - contains: [ - { - // Distinct highlight for proc , data, run, quit - className: 'keyword', - begin: /^\s*(proc [\w\d_]+|data|run|quit)[\s;]/ - }, - { - // Macro variables - className: 'variable', - begin: /&[a-zA-Z_&][a-zA-Z0-9_]*\.?/ - }, - { - begin: [ - /^\s*/, - /datalines;|cards;/, - /(?:.*\n)+/, - /^\s*;\s*$/ - ], - className: { - 2: "keyword", - 3: "string" - } - }, - { - begin: [ - /%mend|%macro/, - /\s+/, - /[a-zA-Z_&][a-zA-Z0-9_]*/ - ], - className: { - 1: "built_in", - 3: "title.function" - } - }, - { // Built-in macro variables - className: 'built_in', - begin: '%' + regex.either(...MACRO_FUNCTIONS) - }, - { - // User-defined macro functions - className: 'title.function', - begin: /%[a-zA-Z_][a-zA-Z_0-9]*/ - }, - { - // TODO: this is most likely an incorrect classification - // built_in may need more nuance - // https://github.com/highlightjs/highlight.js/issues/2521 - className: 'meta', - begin: regex.either(...FUNCTIONS) + '(?=\\()' - }, - { - className: 'string', - variants: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }, - hljs.COMMENT('\\*', ';'), - hljs.C_BLOCK_COMMENT_MODE - ] - }; -} - -export { sas as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sas.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sas.js.js deleted file mode 100644 index 04f9f69..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sas.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sas" instead of "highlight.js/lib/languages/sas.js"' - ); - } - } - emitWarning(); - import lang from './sas.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scala.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scala.js deleted file mode 100644 index 34ce556..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scala.js +++ /dev/null @@ -1,214 +0,0 @@ -/* -Language: Scala -Category: functional -Author: Jan Berkel -Contributors: Erik Osheim -Website: https://www.scala-lang.org -*/ - -function scala(hljs) { - const regex = hljs.regex; - const ANNOTATION = { - className: 'meta', - begin: '@[A-Za-z]+' - }; - - // used in strings for escaping/interpolation/substitution - const SUBST = { - className: 'subst', - variants: [ - { begin: '\\$[A-Za-z0-9_]+' }, - { - begin: /\$\{/, - end: /\}/ - } - ] - }; - - const STRING = { - className: 'string', - variants: [ - { - begin: '"""', - end: '"""' - }, - { - begin: '"', - end: '"', - illegal: '\\n', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - begin: '[a-z]+"', - end: '"', - illegal: '\\n', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }, - { - className: 'string', - begin: '[a-z]+"""', - end: '"""', - contains: [ SUBST ], - relevance: 10 - } - ] - - }; - - const TYPE = { - className: 'type', - begin: '\\b[A-Z][A-Za-z0-9_]*', - relevance: 0 - }; - - const NAME = { - className: 'title', - begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/, - relevance: 0 - }; - - const CLASS = { - className: 'class', - beginKeywords: 'class object trait type', - end: /[:={\[\n;]/, - excludeEnd: true, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - beginKeywords: 'extends with', - relevance: 10 - }, - { - begin: /\[/, - end: /\]/, - excludeBegin: true, - excludeEnd: true, - relevance: 0, - contains: [ - TYPE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - ] - }, - { - className: 'params', - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - relevance: 0, - contains: [ - TYPE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - ] - }, - NAME - ] - }; - - const METHOD = { - className: 'function', - beginKeywords: 'def', - end: regex.lookahead(/[:={\[(\n;]/), - contains: [ NAME ] - }; - - const EXTENSION = { - begin: [ - /^\s*/, // Is first token on the line - 'extension', - /\s+(?=[[(])/, // followed by at least one space and `[` or `(` - ], - beginScope: { 2: "keyword", } - }; - - const END = { - begin: [ - /^\s*/, // Is first token on the line - /end/, - /\s+/, - /(extension\b)?/, // `extension` is the only marker that follows an `end` that cannot be captured by another rule. - ], - beginScope: { - 2: "keyword", - 4: "keyword", - } - }; - - // TODO: use negative look-behind in future - // /(?', - /\s+/, - /using/, - /\s+/, - /\S+/ - ], - beginScope: { - 1: "comment", - 3: "keyword", - 5: "type" - }, - end: /$/, - contains: [ - DIRECTIVE_VALUE, - ] - }; - - return { - name: 'Scala', - keywords: { - literal: 'true false null', - keyword: 'type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent' - }, - contains: [ - USING_DIRECTIVE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - STRING, - TYPE, - METHOD, - CLASS, - hljs.C_NUMBER_MODE, - EXTENSION, - END, - ...INLINE_MODES, - USING_PARAM_CLAUSE, - ANNOTATION - ] - }; -} - -export { scala as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scala.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scala.js.js deleted file mode 100644 index bb1cefc..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scala.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scala" instead of "highlight.js/lib/languages/scala.js"' - ); - } - } - emitWarning(); - import lang from './scala.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scheme.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scheme.js deleted file mode 100644 index 1d6b34a..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scheme.js +++ /dev/null @@ -1,196 +0,0 @@ -/* -Language: Scheme -Description: Scheme is a programming language in the Lisp family. - (keywords based on http://community.schemewiki.org/?scheme-keywords) -Author: JP Verkamp -Contributors: Ivan Sagalaev -Origin: clojure.js -Website: http://community.schemewiki.org/?what-is-scheme -Category: lisp -*/ - -function scheme(hljs) { - const SCHEME_IDENT_RE = '[^\\(\\)\\[\\]\\{\\}",\'`;#|\\\\\\s]+'; - const SCHEME_SIMPLE_NUMBER_RE = '(-|\\+)?\\d+([./]\\d+)?'; - const SCHEME_COMPLEX_NUMBER_RE = SCHEME_SIMPLE_NUMBER_RE + '[+\\-]' + SCHEME_SIMPLE_NUMBER_RE + 'i'; - const KEYWORDS = { - $pattern: SCHEME_IDENT_RE, - built_in: - 'case-lambda call/cc class define-class exit-handler field import ' - + 'inherit init-field interface let*-values let-values let/ec mixin ' - + 'opt-lambda override protect provide public rename require ' - + 'require-for-syntax syntax syntax-case syntax-error unit/sig unless ' - + 'when with-syntax and begin call-with-current-continuation ' - + 'call-with-input-file call-with-output-file case cond define ' - + 'define-syntax delay do dynamic-wind else for-each if lambda let let* ' - + 'let-syntax letrec letrec-syntax map or syntax-rules \' * + , ,@ - ... / ' - + '; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan ' - + 'boolean? caar cadr call-with-input-file call-with-output-file ' - + 'call-with-values car cdddar cddddr cdr ceiling char->integer ' - + 'char-alphabetic? char-ci<=? char-ci=? char-ci>? ' - + 'char-downcase char-lower-case? char-numeric? char-ready? char-upcase ' - + 'char-upper-case? char-whitespace? char<=? char=? char>? ' - + 'char? close-input-port close-output-port complex? cons cos ' - + 'current-input-port current-output-port denominator display eof-object? ' - + 'eq? equal? eqv? eval even? exact->inexact exact? exp expt floor ' - + 'force gcd imag-part inexact->exact inexact? input-port? integer->char ' - + 'integer? interaction-environment lcm length list list->string ' - + 'list->vector list-ref list-tail list? load log magnitude make-polar ' - + 'make-rectangular make-string make-vector max member memq memv min ' - + 'modulo negative? newline not null-environment null? number->string ' - + 'number? numerator odd? open-input-file open-output-file output-port? ' - + 'pair? peek-char port? positive? procedure? quasiquote quote quotient ' - + 'rational? rationalize read read-char real-part real? remainder reverse ' - + 'round scheme-report-environment set! set-car! set-cdr! sin sqrt string ' - + 'string->list string->number string->symbol string-append string-ci<=? ' - + 'string-ci=? string-ci>? string-copy ' - + 'string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? ' - + 'tan transcript-off transcript-on truncate values vector ' - + 'vector->list vector-fill! vector-length vector-ref vector-set! ' - + 'with-input-from-file with-output-to-file write write-char zero?' - }; - - const LITERAL = { - className: 'literal', - begin: '(#t|#f|#\\\\' + SCHEME_IDENT_RE + '|#\\\\.)' - }; - - const NUMBER = { - className: 'number', - variants: [ - { - begin: SCHEME_SIMPLE_NUMBER_RE, - relevance: 0 - }, - { - begin: SCHEME_COMPLEX_NUMBER_RE, - relevance: 0 - }, - { begin: '#b[0-1]+(/[0-1]+)?' }, - { begin: '#o[0-7]+(/[0-7]+)?' }, - { begin: '#x[0-9a-f]+(/[0-9a-f]+)?' } - ] - }; - - const STRING = hljs.QUOTE_STRING_MODE; - - const COMMENT_MODES = [ - hljs.COMMENT( - ';', - '$', - { relevance: 0 } - ), - hljs.COMMENT('#\\|', '\\|#') - ]; - - const IDENT = { - begin: SCHEME_IDENT_RE, - relevance: 0 - }; - - const QUOTED_IDENT = { - className: 'symbol', - begin: '\'' + SCHEME_IDENT_RE - }; - - const BODY = { - endsWithParent: true, - relevance: 0 - }; - - const QUOTED_LIST = { - variants: [ - { begin: /'/ }, - { begin: '`' } - ], - contains: [ - { - begin: '\\(', - end: '\\)', - contains: [ - 'self', - LITERAL, - STRING, - NUMBER, - IDENT, - QUOTED_IDENT - ] - } - ] - }; - - const NAME = { - className: 'name', - relevance: 0, - begin: SCHEME_IDENT_RE, - keywords: KEYWORDS - }; - - const LAMBDA = { - begin: /lambda/, - endsWithParent: true, - returnBegin: true, - contains: [ - NAME, - { - endsParent: true, - variants: [ - { - begin: /\(/, - end: /\)/ - }, - { - begin: /\[/, - end: /\]/ - } - ], - contains: [ IDENT ] - } - ] - }; - - const LIST = { - variants: [ - { - begin: '\\(', - end: '\\)' - }, - { - begin: '\\[', - end: '\\]' - } - ], - contains: [ - LAMBDA, - NAME, - BODY - ] - }; - - BODY.contains = [ - LITERAL, - NUMBER, - STRING, - IDENT, - QUOTED_IDENT, - QUOTED_LIST, - LIST - ].concat(COMMENT_MODES); - - return { - name: 'Scheme', - aliases: ['scm'], - illegal: /\S/, - contains: [ - hljs.SHEBANG(), - NUMBER, - STRING, - QUOTED_IDENT, - QUOTED_LIST, - LIST - ].concat(COMMENT_MODES) - }; -} - -export { scheme as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scheme.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scheme.js.js deleted file mode 100644 index 98d340b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scheme.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scheme" instead of "highlight.js/lib/languages/scheme.js"' - ); - } - } - emitWarning(); - import lang from './scheme.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scilab.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scilab.js deleted file mode 100644 index 2f5ee09..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scilab.js +++ /dev/null @@ -1,73 +0,0 @@ -/* -Language: Scilab -Author: Sylvestre Ledru -Origin: matlab.js -Description: Scilab is a port from Matlab -Website: https://www.scilab.org -Category: scientific -*/ - -function scilab(hljs) { - const COMMON_CONTAINS = [ - hljs.C_NUMBER_MODE, - { - className: 'string', - begin: '\'|\"', - end: '\'|\"', - contains: [ - hljs.BACKSLASH_ESCAPE, - { begin: '\'\'' } - ] - } - ]; - - return { - name: 'Scilab', - aliases: [ 'sci' ], - keywords: { - $pattern: /%?\w+/, - keyword: 'abort break case clear catch continue do elseif else endfunction end for function ' - + 'global if pause return resume select try then while', - literal: - '%f %F %t %T %pi %eps %inf %nan %e %i %z %s', - built_in: // Scilab has more than 2000 functions. Just list the most commons - 'abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error ' - + 'exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty ' - + 'isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log ' - + 'max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real ' - + 'round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan ' - + 'type typename warning zeros matrix' - }, - illegal: '("|#|/\\*|\\s+/\\w+)', - contains: [ - { - className: 'function', - beginKeywords: 'function', - end: '$', - contains: [ - hljs.UNDERSCORE_TITLE_MODE, - { - className: 'params', - begin: '\\(', - end: '\\)' - } - ] - }, - // seems to be a guard against [ident]' or [ident]. - // perhaps to prevent attributes from flagging as keywords? - { - begin: '[a-zA-Z_][a-zA-Z_0-9]*[\\.\']+', - relevance: 0 - }, - { - begin: '\\[', - end: '\\][\\.\']*', - relevance: 0, - contains: COMMON_CONTAINS - }, - hljs.COMMENT('//', '$') - ].concat(COMMON_CONTAINS) - }; -} - -export { scilab as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scilab.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scilab.js.js deleted file mode 100644 index f618d43..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scilab.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scilab" instead of "highlight.js/lib/languages/scilab.js"' - ); - } - } - emitWarning(); - import lang from './scilab.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js deleted file mode 100644 index a379f39..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js +++ /dev/null @@ -1,939 +0,0 @@ -const MODES = (hljs) => { - return { - IMPORTANT: { - scope: 'meta', - begin: '!important' - }, - BLOCK_COMMENT: hljs.C_BLOCK_COMMENT_MODE, - HEXCOLOR: { - scope: 'number', - begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ - }, - FUNCTION_DISPATCH: { - className: "built_in", - begin: /[\w-]+(?=\()/ - }, - ATTRIBUTE_SELECTOR_MODE: { - scope: 'selector-attr', - begin: /\[/, - end: /\]/, - illegal: '$', - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }, - CSS_NUMBER_MODE: { - scope: 'number', - begin: hljs.NUMBER_RE + '(' + - '%|em|ex|ch|rem' + - '|vw|vh|vmin|vmax' + - '|cm|mm|in|pt|pc|px' + - '|deg|grad|rad|turn' + - '|s|ms' + - '|Hz|kHz' + - '|dpi|dpcm|dppx' + - ')?', - relevance: 0 - }, - CSS_VARIABLE: { - className: "attr", - begin: /--[A-Za-z_][A-Za-z0-9_-]*/ - } - }; -}; - -const HTML_TAGS = [ - 'a', - 'abbr', - 'address', - 'article', - 'aside', - 'audio', - 'b', - 'blockquote', - 'body', - 'button', - 'canvas', - 'caption', - 'cite', - 'code', - 'dd', - 'del', - 'details', - 'dfn', - 'div', - 'dl', - 'dt', - 'em', - 'fieldset', - 'figcaption', - 'figure', - 'footer', - 'form', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'header', - 'hgroup', - 'html', - 'i', - 'iframe', - 'img', - 'input', - 'ins', - 'kbd', - 'label', - 'legend', - 'li', - 'main', - 'mark', - 'menu', - 'nav', - 'object', - 'ol', - 'optgroup', - 'option', - 'p', - 'picture', - 'q', - 'quote', - 'samp', - 'section', - 'select', - 'source', - 'span', - 'strong', - 'summary', - 'sup', - 'table', - 'tbody', - 'td', - 'textarea', - 'tfoot', - 'th', - 'thead', - 'time', - 'tr', - 'ul', - 'var', - 'video' -]; - -const SVG_TAGS = [ - 'defs', - 'g', - 'marker', - 'mask', - 'pattern', - 'svg', - 'switch', - 'symbol', - 'feBlend', - 'feColorMatrix', - 'feComponentTransfer', - 'feComposite', - 'feConvolveMatrix', - 'feDiffuseLighting', - 'feDisplacementMap', - 'feFlood', - 'feGaussianBlur', - 'feImage', - 'feMerge', - 'feMorphology', - 'feOffset', - 'feSpecularLighting', - 'feTile', - 'feTurbulence', - 'linearGradient', - 'radialGradient', - 'stop', - 'circle', - 'ellipse', - 'image', - 'line', - 'path', - 'polygon', - 'polyline', - 'rect', - 'text', - 'use', - 'textPath', - 'tspan', - 'foreignObject', - 'clipPath' -]; - -const TAGS = [ - ...HTML_TAGS, - ...SVG_TAGS, -]; - -// Sorting, then reversing makes sure longer attributes/elements like -// `font-weight` are matched fully instead of getting false positives on say `font` - -const MEDIA_FEATURES = [ - 'any-hover', - 'any-pointer', - 'aspect-ratio', - 'color', - 'color-gamut', - 'color-index', - 'device-aspect-ratio', - 'device-height', - 'device-width', - 'display-mode', - 'forced-colors', - 'grid', - 'height', - 'hover', - 'inverted-colors', - 'monochrome', - 'orientation', - 'overflow-block', - 'overflow-inline', - 'pointer', - 'prefers-color-scheme', - 'prefers-contrast', - 'prefers-reduced-motion', - 'prefers-reduced-transparency', - 'resolution', - 'scan', - 'scripting', - 'update', - 'width', - // TODO: find a better solution? - 'min-width', - 'max-width', - 'min-height', - 'max-height' -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes -const PSEUDO_CLASSES = [ - 'active', - 'any-link', - 'blank', - 'checked', - 'current', - 'default', - 'defined', - 'dir', // dir() - 'disabled', - 'drop', - 'empty', - 'enabled', - 'first', - 'first-child', - 'first-of-type', - 'fullscreen', - 'future', - 'focus', - 'focus-visible', - 'focus-within', - 'has', // has() - 'host', // host or host() - 'host-context', // host-context() - 'hover', - 'indeterminate', - 'in-range', - 'invalid', - 'is', // is() - 'lang', // lang() - 'last-child', - 'last-of-type', - 'left', - 'link', - 'local-link', - 'not', // not() - 'nth-child', // nth-child() - 'nth-col', // nth-col() - 'nth-last-child', // nth-last-child() - 'nth-last-col', // nth-last-col() - 'nth-last-of-type', //nth-last-of-type() - 'nth-of-type', //nth-of-type() - 'only-child', - 'only-of-type', - 'optional', - 'out-of-range', - 'past', - 'placeholder-shown', - 'read-only', - 'read-write', - 'required', - 'right', - 'root', - 'scope', - 'target', - 'target-within', - 'user-invalid', - 'valid', - 'visited', - 'where' // where() -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements -const PSEUDO_ELEMENTS = [ - 'after', - 'backdrop', - 'before', - 'cue', - 'cue-region', - 'first-letter', - 'first-line', - 'grammar-error', - 'marker', - 'part', - 'placeholder', - 'selection', - 'slotted', - 'spelling-error' -].sort().reverse(); - -const ATTRIBUTES = [ - 'accent-color', - 'align-content', - 'align-items', - 'align-self', - 'alignment-baseline', - 'all', - 'anchor-name', - 'animation', - 'animation-composition', - 'animation-delay', - 'animation-direction', - 'animation-duration', - 'animation-fill-mode', - 'animation-iteration-count', - 'animation-name', - 'animation-play-state', - 'animation-range', - 'animation-range-end', - 'animation-range-start', - 'animation-timeline', - 'animation-timing-function', - 'appearance', - 'aspect-ratio', - 'backdrop-filter', - 'backface-visibility', - 'background', - 'background-attachment', - 'background-blend-mode', - 'background-clip', - 'background-color', - 'background-image', - 'background-origin', - 'background-position', - 'background-position-x', - 'background-position-y', - 'background-repeat', - 'background-size', - 'baseline-shift', - 'block-size', - 'border', - 'border-block', - 'border-block-color', - 'border-block-end', - 'border-block-end-color', - 'border-block-end-style', - 'border-block-end-width', - 'border-block-start', - 'border-block-start-color', - 'border-block-start-style', - 'border-block-start-width', - 'border-block-style', - 'border-block-width', - 'border-bottom', - 'border-bottom-color', - 'border-bottom-left-radius', - 'border-bottom-right-radius', - 'border-bottom-style', - 'border-bottom-width', - 'border-collapse', - 'border-color', - 'border-end-end-radius', - 'border-end-start-radius', - 'border-image', - 'border-image-outset', - 'border-image-repeat', - 'border-image-slice', - 'border-image-source', - 'border-image-width', - 'border-inline', - 'border-inline-color', - 'border-inline-end', - 'border-inline-end-color', - 'border-inline-end-style', - 'border-inline-end-width', - 'border-inline-start', - 'border-inline-start-color', - 'border-inline-start-style', - 'border-inline-start-width', - 'border-inline-style', - 'border-inline-width', - 'border-left', - 'border-left-color', - 'border-left-style', - 'border-left-width', - 'border-radius', - 'border-right', - 'border-right-color', - 'border-right-style', - 'border-right-width', - 'border-spacing', - 'border-start-end-radius', - 'border-start-start-radius', - 'border-style', - 'border-top', - 'border-top-color', - 'border-top-left-radius', - 'border-top-right-radius', - 'border-top-style', - 'border-top-width', - 'border-width', - 'bottom', - 'box-align', - 'box-decoration-break', - 'box-direction', - 'box-flex', - 'box-flex-group', - 'box-lines', - 'box-ordinal-group', - 'box-orient', - 'box-pack', - 'box-shadow', - 'box-sizing', - 'break-after', - 'break-before', - 'break-inside', - 'caption-side', - 'caret-color', - 'clear', - 'clip', - 'clip-path', - 'clip-rule', - 'color', - 'color-interpolation', - 'color-interpolation-filters', - 'color-profile', - 'color-rendering', - 'color-scheme', - 'column-count', - 'column-fill', - 'column-gap', - 'column-rule', - 'column-rule-color', - 'column-rule-style', - 'column-rule-width', - 'column-span', - 'column-width', - 'columns', - 'contain', - 'contain-intrinsic-block-size', - 'contain-intrinsic-height', - 'contain-intrinsic-inline-size', - 'contain-intrinsic-size', - 'contain-intrinsic-width', - 'container', - 'container-name', - 'container-type', - 'content', - 'content-visibility', - 'counter-increment', - 'counter-reset', - 'counter-set', - 'cue', - 'cue-after', - 'cue-before', - 'cursor', - 'cx', - 'cy', - 'direction', - 'display', - 'dominant-baseline', - 'empty-cells', - 'enable-background', - 'field-sizing', - 'fill', - 'fill-opacity', - 'fill-rule', - 'filter', - 'flex', - 'flex-basis', - 'flex-direction', - 'flex-flow', - 'flex-grow', - 'flex-shrink', - 'flex-wrap', - 'float', - 'flood-color', - 'flood-opacity', - 'flow', - 'font', - 'font-display', - 'font-family', - 'font-feature-settings', - 'font-kerning', - 'font-language-override', - 'font-optical-sizing', - 'font-palette', - 'font-size', - 'font-size-adjust', - 'font-smooth', - 'font-smoothing', - 'font-stretch', - 'font-style', - 'font-synthesis', - 'font-synthesis-position', - 'font-synthesis-small-caps', - 'font-synthesis-style', - 'font-synthesis-weight', - 'font-variant', - 'font-variant-alternates', - 'font-variant-caps', - 'font-variant-east-asian', - 'font-variant-emoji', - 'font-variant-ligatures', - 'font-variant-numeric', - 'font-variant-position', - 'font-variation-settings', - 'font-weight', - 'forced-color-adjust', - 'gap', - 'glyph-orientation-horizontal', - 'glyph-orientation-vertical', - 'grid', - 'grid-area', - 'grid-auto-columns', - 'grid-auto-flow', - 'grid-auto-rows', - 'grid-column', - 'grid-column-end', - 'grid-column-start', - 'grid-gap', - 'grid-row', - 'grid-row-end', - 'grid-row-start', - 'grid-template', - 'grid-template-areas', - 'grid-template-columns', - 'grid-template-rows', - 'hanging-punctuation', - 'height', - 'hyphenate-character', - 'hyphenate-limit-chars', - 'hyphens', - 'icon', - 'image-orientation', - 'image-rendering', - 'image-resolution', - 'ime-mode', - 'initial-letter', - 'initial-letter-align', - 'inline-size', - 'inset', - 'inset-area', - 'inset-block', - 'inset-block-end', - 'inset-block-start', - 'inset-inline', - 'inset-inline-end', - 'inset-inline-start', - 'isolation', - 'justify-content', - 'justify-items', - 'justify-self', - 'kerning', - 'left', - 'letter-spacing', - 'lighting-color', - 'line-break', - 'line-height', - 'line-height-step', - 'list-style', - 'list-style-image', - 'list-style-position', - 'list-style-type', - 'margin', - 'margin-block', - 'margin-block-end', - 'margin-block-start', - 'margin-bottom', - 'margin-inline', - 'margin-inline-end', - 'margin-inline-start', - 'margin-left', - 'margin-right', - 'margin-top', - 'margin-trim', - 'marker', - 'marker-end', - 'marker-mid', - 'marker-start', - 'marks', - 'mask', - 'mask-border', - 'mask-border-mode', - 'mask-border-outset', - 'mask-border-repeat', - 'mask-border-slice', - 'mask-border-source', - 'mask-border-width', - 'mask-clip', - 'mask-composite', - 'mask-image', - 'mask-mode', - 'mask-origin', - 'mask-position', - 'mask-repeat', - 'mask-size', - 'mask-type', - 'masonry-auto-flow', - 'math-depth', - 'math-shift', - 'math-style', - 'max-block-size', - 'max-height', - 'max-inline-size', - 'max-width', - 'min-block-size', - 'min-height', - 'min-inline-size', - 'min-width', - 'mix-blend-mode', - 'nav-down', - 'nav-index', - 'nav-left', - 'nav-right', - 'nav-up', - 'none', - 'normal', - 'object-fit', - 'object-position', - 'offset', - 'offset-anchor', - 'offset-distance', - 'offset-path', - 'offset-position', - 'offset-rotate', - 'opacity', - 'order', - 'orphans', - 'outline', - 'outline-color', - 'outline-offset', - 'outline-style', - 'outline-width', - 'overflow', - 'overflow-anchor', - 'overflow-block', - 'overflow-clip-margin', - 'overflow-inline', - 'overflow-wrap', - 'overflow-x', - 'overflow-y', - 'overlay', - 'overscroll-behavior', - 'overscroll-behavior-block', - 'overscroll-behavior-inline', - 'overscroll-behavior-x', - 'overscroll-behavior-y', - 'padding', - 'padding-block', - 'padding-block-end', - 'padding-block-start', - 'padding-bottom', - 'padding-inline', - 'padding-inline-end', - 'padding-inline-start', - 'padding-left', - 'padding-right', - 'padding-top', - 'page', - 'page-break-after', - 'page-break-before', - 'page-break-inside', - 'paint-order', - 'pause', - 'pause-after', - 'pause-before', - 'perspective', - 'perspective-origin', - 'place-content', - 'place-items', - 'place-self', - 'pointer-events', - 'position', - 'position-anchor', - 'position-visibility', - 'print-color-adjust', - 'quotes', - 'r', - 'resize', - 'rest', - 'rest-after', - 'rest-before', - 'right', - 'rotate', - 'row-gap', - 'ruby-align', - 'ruby-position', - 'scale', - 'scroll-behavior', - 'scroll-margin', - 'scroll-margin-block', - 'scroll-margin-block-end', - 'scroll-margin-block-start', - 'scroll-margin-bottom', - 'scroll-margin-inline', - 'scroll-margin-inline-end', - 'scroll-margin-inline-start', - 'scroll-margin-left', - 'scroll-margin-right', - 'scroll-margin-top', - 'scroll-padding', - 'scroll-padding-block', - 'scroll-padding-block-end', - 'scroll-padding-block-start', - 'scroll-padding-bottom', - 'scroll-padding-inline', - 'scroll-padding-inline-end', - 'scroll-padding-inline-start', - 'scroll-padding-left', - 'scroll-padding-right', - 'scroll-padding-top', - 'scroll-snap-align', - 'scroll-snap-stop', - 'scroll-snap-type', - 'scroll-timeline', - 'scroll-timeline-axis', - 'scroll-timeline-name', - 'scrollbar-color', - 'scrollbar-gutter', - 'scrollbar-width', - 'shape-image-threshold', - 'shape-margin', - 'shape-outside', - 'shape-rendering', - 'speak', - 'speak-as', - 'src', // @font-face - 'stop-color', - 'stop-opacity', - 'stroke', - 'stroke-dasharray', - 'stroke-dashoffset', - 'stroke-linecap', - 'stroke-linejoin', - 'stroke-miterlimit', - 'stroke-opacity', - 'stroke-width', - 'tab-size', - 'table-layout', - 'text-align', - 'text-align-all', - 'text-align-last', - 'text-anchor', - 'text-combine-upright', - 'text-decoration', - 'text-decoration-color', - 'text-decoration-line', - 'text-decoration-skip', - 'text-decoration-skip-ink', - 'text-decoration-style', - 'text-decoration-thickness', - 'text-emphasis', - 'text-emphasis-color', - 'text-emphasis-position', - 'text-emphasis-style', - 'text-indent', - 'text-justify', - 'text-orientation', - 'text-overflow', - 'text-rendering', - 'text-shadow', - 'text-size-adjust', - 'text-transform', - 'text-underline-offset', - 'text-underline-position', - 'text-wrap', - 'text-wrap-mode', - 'text-wrap-style', - 'timeline-scope', - 'top', - 'touch-action', - 'transform', - 'transform-box', - 'transform-origin', - 'transform-style', - 'transition', - 'transition-behavior', - 'transition-delay', - 'transition-duration', - 'transition-property', - 'transition-timing-function', - 'translate', - 'unicode-bidi', - 'user-modify', - 'user-select', - 'vector-effect', - 'vertical-align', - 'view-timeline', - 'view-timeline-axis', - 'view-timeline-inset', - 'view-timeline-name', - 'view-transition-name', - 'visibility', - 'voice-balance', - 'voice-duration', - 'voice-family', - 'voice-pitch', - 'voice-range', - 'voice-rate', - 'voice-stress', - 'voice-volume', - 'white-space', - 'white-space-collapse', - 'widows', - 'width', - 'will-change', - 'word-break', - 'word-spacing', - 'word-wrap', - 'writing-mode', - 'x', - 'y', - 'z-index', - 'zoom' -].sort().reverse(); - -/* -Language: SCSS -Description: Scss is an extension of the syntax of CSS. -Author: Kurt Emch -Website: https://sass-lang.com -Category: common, css, web -*/ - - -/** @type LanguageFn */ -function scss(hljs) { - const modes = MODES(hljs); - const PSEUDO_ELEMENTS$1 = PSEUDO_ELEMENTS; - const PSEUDO_CLASSES$1 = PSEUDO_CLASSES; - - const AT_IDENTIFIER = '@[a-z-]+'; // @font-face - const AT_MODIFIERS = "and or not only"; - const IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*'; - const VARIABLE = { - className: 'variable', - begin: '(\\$' + IDENT_RE + ')\\b', - relevance: 0 - }; - - return { - name: 'SCSS', - case_insensitive: true, - illegal: '[=/|\']', - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - // to recognize keyframe 40% etc which are outside the scope of our - // attribute value mode - modes.CSS_NUMBER_MODE, - { - className: 'selector-id', - begin: '#[A-Za-z0-9_-]+', - relevance: 0 - }, - { - className: 'selector-class', - begin: '\\.[A-Za-z0-9_-]+', - relevance: 0 - }, - modes.ATTRIBUTE_SELECTOR_MODE, - { - className: 'selector-tag', - begin: '\\b(' + TAGS.join('|') + ')\\b', - // was there, before, but why? - relevance: 0 - }, - { - className: 'selector-pseudo', - begin: ':(' + PSEUDO_CLASSES$1.join('|') + ')' - }, - { - className: 'selector-pseudo', - begin: ':(:)?(' + PSEUDO_ELEMENTS$1.join('|') + ')' - }, - VARIABLE, - { // pseudo-selector params - begin: /\(/, - end: /\)/, - contains: [ modes.CSS_NUMBER_MODE ] - }, - modes.CSS_VARIABLE, - { - className: 'attribute', - begin: '\\b(' + ATTRIBUTES.join('|') + ')\\b' - }, - { begin: '\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b' }, - { - begin: /:/, - end: /[;}{]/, - relevance: 0, - contains: [ - modes.BLOCK_COMMENT, - VARIABLE, - modes.HEXCOLOR, - modes.CSS_NUMBER_MODE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - modes.IMPORTANT, - modes.FUNCTION_DISPATCH - ] - }, - // matching these here allows us to treat them more like regular CSS - // rules so everything between the {} gets regular rule highlighting, - // which is what we want for page and font-face - { - begin: '@(page|font-face)', - keywords: { - $pattern: AT_IDENTIFIER, - keyword: '@page @font-face' - } - }, - { - begin: '@', - end: '[{;]', - returnBegin: true, - keywords: { - $pattern: /[a-z-]+/, - keyword: AT_MODIFIERS, - attribute: MEDIA_FEATURES.join(" ") - }, - contains: [ - { - begin: AT_IDENTIFIER, - className: "keyword" - }, - { - begin: /[a-z-]+(?=:)/, - className: "attribute" - }, - VARIABLE, - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - modes.HEXCOLOR, - modes.CSS_NUMBER_MODE - ] - }, - modes.FUNCTION_DISPATCH - ] - }; -} - -export { scss as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js.js deleted file mode 100644 index b01bc25..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/scss.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/scss" instead of "highlight.js/lib/languages/scss.js"' - ); - } - } - emitWarning(); - import lang from './scss.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js deleted file mode 100644 index de4831c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js +++ /dev/null @@ -1,33 +0,0 @@ -/* -Language: Shell Session -Requires: bash.js -Author: TSUYUSATO Kitsune -Category: common -Audit: 2020 -*/ - -/** @type LanguageFn */ -function shell(hljs) { - return { - name: 'Shell Session', - aliases: [ - 'console', - 'shellsession' - ], - contains: [ - { - className: 'meta.prompt', - // We cannot add \s (spaces) in the regular expression otherwise it will be too broad and produce unexpected result. - // For instance, in the following example, it would match "echo /path/to/home >" as a prompt: - // echo /path/to/home > t.exe - begin: /^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/, - starts: { - end: /[^\\](?=\s*$)/, - subLanguage: 'bash' - } - } - ] - }; -} - -export { shell as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js.js deleted file mode 100644 index 40bc7e4..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/shell.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/shell" instead of "highlight.js/lib/languages/shell.js"' - ); - } - } - emitWarning(); - import lang from './shell.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smali.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smali.js deleted file mode 100644 index db53572..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smali.js +++ /dev/null @@ -1,126 +0,0 @@ -/* -Language: Smali -Author: Dennis Titze -Description: Basic Smali highlighting -Website: https://github.com/JesusFreke/smali -Category: assembler -*/ - -function smali(hljs) { - const smali_instr_low_prio = [ - 'add', - 'and', - 'cmp', - 'cmpg', - 'cmpl', - 'const', - 'div', - 'double', - 'float', - 'goto', - 'if', - 'int', - 'long', - 'move', - 'mul', - 'neg', - 'new', - 'nop', - 'not', - 'or', - 'rem', - 'return', - 'shl', - 'shr', - 'sput', - 'sub', - 'throw', - 'ushr', - 'xor' - ]; - const smali_instr_high_prio = [ - 'aget', - 'aput', - 'array', - 'check', - 'execute', - 'fill', - 'filled', - 'goto/16', - 'goto/32', - 'iget', - 'instance', - 'invoke', - 'iput', - 'monitor', - 'packed', - 'sget', - 'sparse' - ]; - const smali_keywords = [ - 'transient', - 'constructor', - 'abstract', - 'final', - 'synthetic', - 'public', - 'private', - 'protected', - 'static', - 'bridge', - 'system' - ]; - return { - name: 'Smali', - contains: [ - { - className: 'string', - begin: '"', - end: '"', - relevance: 0 - }, - hljs.COMMENT( - '#', - '$', - { relevance: 0 } - ), - { - className: 'keyword', - variants: [ - { begin: '\\s*\\.end\\s[a-zA-Z0-9]*' }, - { - begin: '^[ ]*\\.[a-zA-Z]*', - relevance: 0 - }, - { - begin: '\\s:[a-zA-Z_0-9]*', - relevance: 0 - }, - { begin: '\\s(' + smali_keywords.join('|') + ')' } - ] - }, - { - className: 'built_in', - variants: [ - { begin: '\\s(' + smali_instr_low_prio.join('|') + ')\\s' }, - { - begin: '\\s(' + smali_instr_low_prio.join('|') + ')((-|/)[a-zA-Z0-9]+)+\\s', - relevance: 10 - }, - { - begin: '\\s(' + smali_instr_high_prio.join('|') + ')((-|/)[a-zA-Z0-9]+)*\\s', - relevance: 10 - } - ] - }, - { - className: 'class', - begin: 'L[^\(;:\n]*;', - relevance: 0 - }, - { begin: '[vp][0-9]+' } - ] - }; -} - -export { smali as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smali.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smali.js.js deleted file mode 100644 index 79784dd..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smali.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/smali" instead of "highlight.js/lib/languages/smali.js"' - ); - } - } - emitWarning(); - import lang from './smali.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smalltalk.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smalltalk.js deleted file mode 100644 index 0ff88c9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smalltalk.js +++ /dev/null @@ -1,69 +0,0 @@ -/* -Language: Smalltalk -Description: Smalltalk is an object-oriented, dynamically typed reflective programming language. -Author: Vladimir Gubarkov -Website: https://en.wikipedia.org/wiki/Smalltalk -Category: system -*/ - -function smalltalk(hljs) { - const VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*'; - const CHAR = { - className: 'string', - begin: '\\$.{1}' - }; - const SYMBOL = { - className: 'symbol', - begin: '#' + hljs.UNDERSCORE_IDENT_RE - }; - return { - name: 'Smalltalk', - aliases: [ 'st' ], - keywords: [ - "self", - "super", - "nil", - "true", - "false", - "thisContext" - ], - contains: [ - hljs.COMMENT('"', '"'), - hljs.APOS_STRING_MODE, - { - className: 'type', - begin: '\\b[A-Z][A-Za-z0-9_]*', - relevance: 0 - }, - { - begin: VAR_IDENT_RE + ':', - relevance: 0 - }, - hljs.C_NUMBER_MODE, - SYMBOL, - CHAR, - { - // This looks more complicated than needed to avoid combinatorial - // explosion under V8. It effectively means `| var1 var2 ... |` with - // whitespace adjacent to `|` being optional. - begin: '\\|[ ]*' + VAR_IDENT_RE + '([ ]+' + VAR_IDENT_RE + ')*[ ]*\\|', - returnBegin: true, - end: /\|/, - illegal: /\S/, - contains: [ { begin: '(\\|[ ]*)?' + VAR_IDENT_RE } ] - }, - { - begin: '#\\(', - end: '\\)', - contains: [ - hljs.APOS_STRING_MODE, - CHAR, - hljs.C_NUMBER_MODE, - SYMBOL - ] - } - ] - }; -} - -export { smalltalk as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smalltalk.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smalltalk.js.js deleted file mode 100644 index bed76b7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/smalltalk.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/smalltalk" instead of "highlight.js/lib/languages/smalltalk.js"' - ); - } - } - emitWarning(); - import lang from './smalltalk.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sml.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sml.js deleted file mode 100644 index e526d0d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sml.js +++ /dev/null @@ -1,75 +0,0 @@ -/* -Language: SML (Standard ML) -Author: Edwin Dalorzo -Description: SML language definition. -Website: https://www.smlnj.org -Origin: ocaml.js -Category: functional -*/ -function sml(hljs) { - return { - name: 'SML (Standard ML)', - aliases: [ 'ml' ], - keywords: { - $pattern: '[a-z_]\\w*!?', - keyword: - /* according to Definition of Standard ML 97 */ - 'abstype and andalso as case datatype do else end eqtype ' - + 'exception fn fun functor handle if in include infix infixr ' - + 'let local nonfix of op open orelse raise rec sharing sig ' - + 'signature struct structure then type val with withtype where while', - built_in: - /* built-in types according to basis library */ - 'array bool char exn int list option order real ref string substring vector unit word', - literal: - 'true false NONE SOME LESS EQUAL GREATER nil' - }, - illegal: /\/\/|>>/, - contains: [ - { - className: 'literal', - begin: /\[(\|\|)?\]|\(\)/, - relevance: 0 - }, - hljs.COMMENT( - '\\(\\*', - '\\*\\)', - { contains: [ 'self' ] } - ), - { /* type variable */ - className: 'symbol', - begin: '\'[A-Za-z_](?!\')[\\w\']*' - /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ - }, - { /* polymorphic variant */ - className: 'type', - begin: '`[A-Z][\\w\']*' - }, - { /* module or constructor */ - className: 'type', - begin: '\\b[A-Z][\\w\']*', - relevance: 0 - }, - { /* don't color identifiers, but safely catch all identifiers with ' */ - begin: '[a-z_]\\w*\'[\\w\']*' }, - hljs.inherit(hljs.APOS_STRING_MODE, { - className: 'string', - relevance: 0 - }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), - { - className: 'number', - begin: - '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' - + '0[oO][0-7_]+[Lln]?|' - + '0[bB][01_]+[Lln]?|' - + '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)', - relevance: 0 - }, - { begin: /[-=]>/ // relevance booster - } - ] - }; -} - -export { sml as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sml.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sml.js.js deleted file mode 100644 index 2dbf3c9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sml.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sml" instead of "highlight.js/lib/languages/sml.js"' - ); - } - } - emitWarning(); - import lang from './sml.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sqf.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sqf.js deleted file mode 100644 index b2d6aab..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sqf.js +++ /dev/null @@ -1,2662 +0,0 @@ -/* -Language: SQF -Author: Søren Enevoldsen -Contributors: Marvin Saignat , Dedmen Miller , Leopard20 -Description: Scripting language for the Arma game series -Website: https://community.bistudio.com/wiki/SQF_syntax -Category: scripting -Last update: 07.01.2023, Arma 3 v2.11 -*/ - -/* -//////////////////////////////////////////////////////////////////////////////////////////// - * Author: Leopard20 - - * Description: - This script can be used to dump all commands to the clipboard. - Make sure you're using the Diag EXE to dump all of the commands. - - * How to use: - Simply replace the _KEYWORDS and _LITERAL arrays with the one from this sqf.js file. - Execute the script from the debug console. - All commands will be copied to the clipboard. -//////////////////////////////////////////////////////////////////////////////////////////// -_KEYWORDS = ['if']; //Array of all KEYWORDS -_LITERALS = ['west']; //Array of all LITERALS -_allCommands = createHashMap; -{ - _type = _x select [0,1]; - if (_type != "t") then { - _command_lowercase = ((_x select [2]) splitString " ")#(((["n", "u", "b"] find _type) - 1) max 0); - _command_uppercase = supportInfo ("i:" + _command_lowercase) # 0 # 2; - _allCommands set [_command_lowercase, _command_uppercase]; - }; -} forEach supportInfo ""; -_allCommands = _allCommands toArray false; -_allCommands sort true; //sort by lowercase -_allCommands = ((_allCommands apply {_x#1}) -_KEYWORDS)-_LITERALS; //remove KEYWORDS and LITERALS -copyToClipboard (str (_allCommands select {_x regexMatch "\w+"}) regexReplace ["""", "'"] regexReplace [",", ",\n"]); -*/ - -function sqf(hljs) { - // In SQF, a local variable starts with _ - const VARIABLE = { - className: 'variable', - begin: /\b_+[a-zA-Z]\w*/ - }; - - // In SQF, a function should fit myTag_fnc_myFunction pattern - // https://community.bistudio.com/wiki/Functions_Library_(Arma_3)#Adding_a_Function - const FUNCTION = { - className: 'title', - begin: /[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/ - }; - - // In SQF strings, quotes matching the start are escaped by adding a consecutive. - // Example of single escaped quotes: " "" " and ' '' '. - const STRINGS = { - className: 'string', - variants: [ - { - begin: '"', - end: '"', - contains: [ - { - begin: '""', - relevance: 0 - } - ] - }, - { - begin: '\'', - end: '\'', - contains: [ - { - begin: '\'\'', - relevance: 0 - } - ] - } - ] - }; - - const KEYWORDS = [ - 'break', - 'breakWith', - 'breakOut', - 'breakTo', - 'case', - 'catch', - 'continue', - 'continueWith', - 'default', - 'do', - 'else', - 'exit', - 'exitWith', - 'for', - 'forEach', - 'from', - 'if', - 'local', - 'private', - 'switch', - 'step', - 'then', - 'throw', - 'to', - 'try', - 'waitUntil', - 'while', - 'with' - ]; - - const LITERAL = [ - 'blufor', - 'civilian', - 'configNull', - 'controlNull', - 'displayNull', - 'diaryRecordNull', - 'east', - 'endl', - 'false', - 'grpNull', - 'independent', - 'lineBreak', - 'locationNull', - 'nil', - 'objNull', - 'opfor', - 'pi', - 'resistance', - 'scriptNull', - 'sideAmbientLife', - 'sideEmpty', - 'sideEnemy', - 'sideFriendly', - 'sideLogic', - 'sideUnknown', - 'taskNull', - 'teamMemberNull', - 'true', - 'west' - ]; - - const BUILT_IN = [ - 'abs', - 'accTime', - 'acos', - 'action', - 'actionIDs', - 'actionKeys', - 'actionKeysEx', - 'actionKeysImages', - 'actionKeysNames', - 'actionKeysNamesArray', - 'actionName', - 'actionParams', - 'activateAddons', - 'activatedAddons', - 'activateKey', - 'activeTitleEffectParams', - 'add3DENConnection', - 'add3DENEventHandler', - 'add3DENLayer', - 'addAction', - 'addBackpack', - 'addBackpackCargo', - 'addBackpackCargoGlobal', - 'addBackpackGlobal', - 'addBinocularItem', - 'addCamShake', - 'addCuratorAddons', - 'addCuratorCameraArea', - 'addCuratorEditableObjects', - 'addCuratorEditingArea', - 'addCuratorPoints', - 'addEditorObject', - 'addEventHandler', - 'addForce', - 'addForceGeneratorRTD', - 'addGoggles', - 'addGroupIcon', - 'addHandgunItem', - 'addHeadgear', - 'addItem', - 'addItemCargo', - 'addItemCargoGlobal', - 'addItemPool', - 'addItemToBackpack', - 'addItemToUniform', - 'addItemToVest', - 'addLiveStats', - 'addMagazine', - 'addMagazineAmmoCargo', - 'addMagazineCargo', - 'addMagazineCargoGlobal', - 'addMagazineGlobal', - 'addMagazinePool', - 'addMagazines', - 'addMagazineTurret', - 'addMenu', - 'addMenuItem', - 'addMissionEventHandler', - 'addMPEventHandler', - 'addMusicEventHandler', - 'addonFiles', - 'addOwnedMine', - 'addPlayerScores', - 'addPrimaryWeaponItem', - 'addPublicVariableEventHandler', - 'addRating', - 'addResources', - 'addScore', - 'addScoreSide', - 'addSecondaryWeaponItem', - 'addSwitchableUnit', - 'addTeamMember', - 'addToRemainsCollector', - 'addTorque', - 'addUniform', - 'addUserActionEventHandler', - 'addVehicle', - 'addVest', - 'addWaypoint', - 'addWeapon', - 'addWeaponCargo', - 'addWeaponCargoGlobal', - 'addWeaponGlobal', - 'addWeaponItem', - 'addWeaponPool', - 'addWeaponTurret', - 'addWeaponWithAttachmentsCargo', - 'addWeaponWithAttachmentsCargoGlobal', - 'admin', - 'agent', - 'agents', - 'AGLToASL', - 'aimedAtTarget', - 'aimPos', - 'airDensityCurveRTD', - 'airDensityRTD', - 'airplaneThrottle', - 'airportSide', - 'AISFinishHeal', - 'alive', - 'all3DENEntities', - 'allActiveTitleEffects', - 'allAddonsInfo', - 'allAirports', - 'allControls', - 'allCurators', - 'allCutLayers', - 'allDead', - 'allDeadMen', - 'allDiaryRecords', - 'allDiarySubjects', - 'allDisplays', - 'allEnv3DSoundSources', - 'allGroups', - 'allLODs', - 'allMapMarkers', - 'allMines', - 'allMissionObjects', - 'allObjects', - 'allow3DMode', - 'allowCrewInImmobile', - 'allowCuratorLogicIgnoreAreas', - 'allowDamage', - 'allowDammage', - 'allowedService', - 'allowFileOperations', - 'allowFleeing', - 'allowGetIn', - 'allowService', - 'allowSprint', - 'allPlayers', - 'allSimpleObjects', - 'allSites', - 'allTurrets', - 'allUnits', - 'allUnitsUAV', - 'allUsers', - 'allVariables', - 'ambientTemperature', - 'ammo', - 'ammoOnPylon', - 'and', - 'animate', - 'animateBay', - 'animateDoor', - 'animatePylon', - 'animateSource', - 'animationNames', - 'animationPhase', - 'animationSourcePhase', - 'animationState', - 'apertureParams', - 'append', - 'apply', - 'armoryPoints', - 'arrayIntersect', - 'asin', - 'ASLToAGL', - 'ASLToATL', - 'assert', - 'assignAsCargo', - 'assignAsCargoIndex', - 'assignAsCommander', - 'assignAsDriver', - 'assignAsGunner', - 'assignAsTurret', - 'assignCurator', - 'assignedCargo', - 'assignedCommander', - 'assignedDriver', - 'assignedGroup', - 'assignedGunner', - 'assignedItems', - 'assignedTarget', - 'assignedTeam', - 'assignedVehicle', - 'assignedVehicleRole', - 'assignedVehicles', - 'assignItem', - 'assignTeam', - 'assignToAirport', - 'atan', - 'atan2', - 'atg', - 'ATLToASL', - 'attachedObject', - 'attachedObjects', - 'attachedTo', - 'attachObject', - 'attachTo', - 'attackEnabled', - 'awake', - 'backpack', - 'backpackCargo', - 'backpackContainer', - 'backpackItems', - 'backpackMagazines', - 'backpackSpaceFor', - 'behaviour', - 'benchmark', - 'bezierInterpolation', - 'binocular', - 'binocularItems', - 'binocularMagazine', - 'boundingBox', - 'boundingBoxReal', - 'boundingCenter', - 'brakesDisabled', - 'briefingName', - 'buildingExit', - 'buildingPos', - 'buldozer_EnableRoadDiag', - 'buldozer_IsEnabledRoadDiag', - 'buldozer_LoadNewRoads', - 'buldozer_reloadOperMap', - 'buttonAction', - 'buttonSetAction', - 'cadetMode', - 'calculatePath', - 'calculatePlayerVisibilityByFriendly', - 'call', - 'callExtension', - 'camCommand', - 'camCommit', - 'camCommitPrepared', - 'camCommitted', - 'camConstuctionSetParams', - 'camCreate', - 'camDestroy', - 'cameraEffect', - 'cameraEffectEnableHUD', - 'cameraInterest', - 'cameraOn', - 'cameraView', - 'campaignConfigFile', - 'camPreload', - 'camPreloaded', - 'camPrepareBank', - 'camPrepareDir', - 'camPrepareDive', - 'camPrepareFocus', - 'camPrepareFov', - 'camPrepareFovRange', - 'camPreparePos', - 'camPrepareRelPos', - 'camPrepareTarget', - 'camSetBank', - 'camSetDir', - 'camSetDive', - 'camSetFocus', - 'camSetFov', - 'camSetFovRange', - 'camSetPos', - 'camSetRelPos', - 'camSetTarget', - 'camTarget', - 'camUseNVG', - 'canAdd', - 'canAddItemToBackpack', - 'canAddItemToUniform', - 'canAddItemToVest', - 'cancelSimpleTaskDestination', - 'canDeployWeapon', - 'canFire', - 'canMove', - 'canSlingLoad', - 'canStand', - 'canSuspend', - 'canTriggerDynamicSimulation', - 'canUnloadInCombat', - 'canVehicleCargo', - 'captive', - 'captiveNum', - 'cbChecked', - 'cbSetChecked', - 'ceil', - 'channelEnabled', - 'cheatsEnabled', - 'checkAIFeature', - 'checkVisibility', - 'className', - 'clear3DENAttribute', - 'clear3DENInventory', - 'clearAllItemsFromBackpack', - 'clearBackpackCargo', - 'clearBackpackCargoGlobal', - 'clearForcesRTD', - 'clearGroupIcons', - 'clearItemCargo', - 'clearItemCargoGlobal', - 'clearItemPool', - 'clearMagazineCargo', - 'clearMagazineCargoGlobal', - 'clearMagazinePool', - 'clearOverlay', - 'clearRadio', - 'clearWeaponCargo', - 'clearWeaponCargoGlobal', - 'clearWeaponPool', - 'clientOwner', - 'closeDialog', - 'closeDisplay', - 'closeOverlay', - 'collapseObjectTree', - 'collect3DENHistory', - 'collectiveRTD', - 'collisionDisabledWith', - 'combatBehaviour', - 'combatMode', - 'commandArtilleryFire', - 'commandChat', - 'commander', - 'commandFire', - 'commandFollow', - 'commandFSM', - 'commandGetOut', - 'commandingMenu', - 'commandMove', - 'commandRadio', - 'commandStop', - 'commandSuppressiveFire', - 'commandTarget', - 'commandWatch', - 'comment', - 'commitOverlay', - 'compatibleItems', - 'compatibleMagazines', - 'compile', - 'compileFinal', - 'compileScript', - 'completedFSM', - 'composeText', - 'configClasses', - 'configFile', - 'configHierarchy', - 'configName', - 'configOf', - 'configProperties', - 'configSourceAddonList', - 'configSourceMod', - 'configSourceModList', - 'confirmSensorTarget', - 'connectTerminalToUAV', - 'connectToServer', - 'controlsGroupCtrl', - 'conversationDisabled', - 'copyFromClipboard', - 'copyToClipboard', - 'copyWaypoints', - 'cos', - 'count', - 'countEnemy', - 'countFriendly', - 'countSide', - 'countType', - 'countUnknown', - 'create3DENComposition', - 'create3DENEntity', - 'createAgent', - 'createCenter', - 'createDialog', - 'createDiaryLink', - 'createDiaryRecord', - 'createDiarySubject', - 'createDisplay', - 'createGearDialog', - 'createGroup', - 'createGuardedPoint', - 'createHashMap', - 'createHashMapFromArray', - 'createLocation', - 'createMarker', - 'createMarkerLocal', - 'createMenu', - 'createMine', - 'createMissionDisplay', - 'createMPCampaignDisplay', - 'createSimpleObject', - 'createSimpleTask', - 'createSite', - 'createSoundSource', - 'createTask', - 'createTeam', - 'createTrigger', - 'createUnit', - 'createVehicle', - 'createVehicleCrew', - 'createVehicleLocal', - 'crew', - 'ctAddHeader', - 'ctAddRow', - 'ctClear', - 'ctCurSel', - 'ctData', - 'ctFindHeaderRows', - 'ctFindRowHeader', - 'ctHeaderControls', - 'ctHeaderCount', - 'ctRemoveHeaders', - 'ctRemoveRows', - 'ctrlActivate', - 'ctrlAddEventHandler', - 'ctrlAngle', - 'ctrlAnimateModel', - 'ctrlAnimationPhaseModel', - 'ctrlAt', - 'ctrlAutoScrollDelay', - 'ctrlAutoScrollRewind', - 'ctrlAutoScrollSpeed', - 'ctrlBackgroundColor', - 'ctrlChecked', - 'ctrlClassName', - 'ctrlCommit', - 'ctrlCommitted', - 'ctrlCreate', - 'ctrlDelete', - 'ctrlEnable', - 'ctrlEnabled', - 'ctrlFade', - 'ctrlFontHeight', - 'ctrlForegroundColor', - 'ctrlHTMLLoaded', - 'ctrlIDC', - 'ctrlIDD', - 'ctrlMapAnimAdd', - 'ctrlMapAnimClear', - 'ctrlMapAnimCommit', - 'ctrlMapAnimDone', - 'ctrlMapCursor', - 'ctrlMapMouseOver', - 'ctrlMapPosition', - 'ctrlMapScale', - 'ctrlMapScreenToWorld', - 'ctrlMapSetPosition', - 'ctrlMapWorldToScreen', - 'ctrlModel', - 'ctrlModelDirAndUp', - 'ctrlModelScale', - 'ctrlMousePosition', - 'ctrlParent', - 'ctrlParentControlsGroup', - 'ctrlPosition', - 'ctrlRemoveAllEventHandlers', - 'ctrlRemoveEventHandler', - 'ctrlScale', - 'ctrlScrollValues', - 'ctrlSetActiveColor', - 'ctrlSetAngle', - 'ctrlSetAutoScrollDelay', - 'ctrlSetAutoScrollRewind', - 'ctrlSetAutoScrollSpeed', - 'ctrlSetBackgroundColor', - 'ctrlSetChecked', - 'ctrlSetDisabledColor', - 'ctrlSetEventHandler', - 'ctrlSetFade', - 'ctrlSetFocus', - 'ctrlSetFont', - 'ctrlSetFontH1', - 'ctrlSetFontH1B', - 'ctrlSetFontH2', - 'ctrlSetFontH2B', - 'ctrlSetFontH3', - 'ctrlSetFontH3B', - 'ctrlSetFontH4', - 'ctrlSetFontH4B', - 'ctrlSetFontH5', - 'ctrlSetFontH5B', - 'ctrlSetFontH6', - 'ctrlSetFontH6B', - 'ctrlSetFontHeight', - 'ctrlSetFontHeightH1', - 'ctrlSetFontHeightH2', - 'ctrlSetFontHeightH3', - 'ctrlSetFontHeightH4', - 'ctrlSetFontHeightH5', - 'ctrlSetFontHeightH6', - 'ctrlSetFontHeightSecondary', - 'ctrlSetFontP', - 'ctrlSetFontPB', - 'ctrlSetFontSecondary', - 'ctrlSetForegroundColor', - 'ctrlSetModel', - 'ctrlSetModelDirAndUp', - 'ctrlSetModelScale', - 'ctrlSetMousePosition', - 'ctrlSetPixelPrecision', - 'ctrlSetPosition', - 'ctrlSetPositionH', - 'ctrlSetPositionW', - 'ctrlSetPositionX', - 'ctrlSetPositionY', - 'ctrlSetScale', - 'ctrlSetScrollValues', - 'ctrlSetShadow', - 'ctrlSetStructuredText', - 'ctrlSetText', - 'ctrlSetTextColor', - 'ctrlSetTextColorSecondary', - 'ctrlSetTextSecondary', - 'ctrlSetTextSelection', - 'ctrlSetTooltip', - 'ctrlSetTooltipColorBox', - 'ctrlSetTooltipColorShade', - 'ctrlSetTooltipColorText', - 'ctrlSetTooltipMaxWidth', - 'ctrlSetURL', - 'ctrlSetURLOverlayMode', - 'ctrlShadow', - 'ctrlShow', - 'ctrlShown', - 'ctrlStyle', - 'ctrlText', - 'ctrlTextColor', - 'ctrlTextHeight', - 'ctrlTextSecondary', - 'ctrlTextSelection', - 'ctrlTextWidth', - 'ctrlTooltip', - 'ctrlType', - 'ctrlURL', - 'ctrlURLOverlayMode', - 'ctrlVisible', - 'ctRowControls', - 'ctRowCount', - 'ctSetCurSel', - 'ctSetData', - 'ctSetHeaderTemplate', - 'ctSetRowTemplate', - 'ctSetValue', - 'ctValue', - 'curatorAddons', - 'curatorCamera', - 'curatorCameraArea', - 'curatorCameraAreaCeiling', - 'curatorCoef', - 'curatorEditableObjects', - 'curatorEditingArea', - 'curatorEditingAreaType', - 'curatorMouseOver', - 'curatorPoints', - 'curatorRegisteredObjects', - 'curatorSelected', - 'curatorWaypointCost', - 'current3DENOperation', - 'currentChannel', - 'currentCommand', - 'currentMagazine', - 'currentMagazineDetail', - 'currentMagazineDetailTurret', - 'currentMagazineTurret', - 'currentMuzzle', - 'currentNamespace', - 'currentPilot', - 'currentTask', - 'currentTasks', - 'currentThrowable', - 'currentVisionMode', - 'currentWaypoint', - 'currentWeapon', - 'currentWeaponMode', - 'currentWeaponTurret', - 'currentZeroing', - 'cursorObject', - 'cursorTarget', - 'customChat', - 'customRadio', - 'customWaypointPosition', - 'cutFadeOut', - 'cutObj', - 'cutRsc', - 'cutText', - 'damage', - 'date', - 'dateToNumber', - 'dayTime', - 'deActivateKey', - 'debriefingText', - 'debugFSM', - 'debugLog', - 'decayGraphValues', - 'deg', - 'delete3DENEntities', - 'deleteAt', - 'deleteCenter', - 'deleteCollection', - 'deleteEditorObject', - 'deleteGroup', - 'deleteGroupWhenEmpty', - 'deleteIdentity', - 'deleteLocation', - 'deleteMarker', - 'deleteMarkerLocal', - 'deleteRange', - 'deleteResources', - 'deleteSite', - 'deleteStatus', - 'deleteTeam', - 'deleteVehicle', - 'deleteVehicleCrew', - 'deleteWaypoint', - 'detach', - 'detectedMines', - 'diag_activeMissionFSMs', - 'diag_activeScripts', - 'diag_activeSQFScripts', - 'diag_activeSQSScripts', - 'diag_allMissionEventHandlers', - 'diag_captureFrame', - 'diag_captureFrameToFile', - 'diag_captureSlowFrame', - 'diag_codePerformance', - 'diag_deltaTime', - 'diag_drawmode', - 'diag_dumpCalltraceToLog', - 'diag_dumpScriptAssembly', - 'diag_dumpTerrainSynth', - 'diag_dynamicSimulationEnd', - 'diag_enable', - 'diag_enabled', - 'diag_exportConfig', - 'diag_exportTerrainSVG', - 'diag_fps', - 'diag_fpsmin', - 'diag_frameno', - 'diag_getTerrainSegmentOffset', - 'diag_lightNewLoad', - 'diag_list', - 'diag_localized', - 'diag_log', - 'diag_logSlowFrame', - 'diag_mergeConfigFile', - 'diag_recordTurretLimits', - 'diag_resetFSM', - 'diag_resetshapes', - 'diag_scope', - 'diag_setLightNew', - 'diag_stacktrace', - 'diag_tickTime', - 'diag_toggle', - 'dialog', - 'diarySubjectExists', - 'didJIP', - 'didJIPOwner', - 'difficulty', - 'difficultyEnabled', - 'difficultyEnabledRTD', - 'difficultyOption', - 'direction', - 'directionStabilizationEnabled', - 'directSay', - 'disableAI', - 'disableBrakes', - 'disableCollisionWith', - 'disableConversation', - 'disableDebriefingStats', - 'disableMapIndicators', - 'disableNVGEquipment', - 'disableRemoteSensors', - 'disableSerialization', - 'disableTIEquipment', - 'disableUAVConnectability', - 'disableUserInput', - 'displayAddEventHandler', - 'displayChild', - 'displayCtrl', - 'displayParent', - 'displayRemoveAllEventHandlers', - 'displayRemoveEventHandler', - 'displaySetEventHandler', - 'displayUniqueName', - 'displayUpdate', - 'dissolveTeam', - 'distance', - 'distance2D', - 'distanceSqr', - 'distributionRegion', - 'do3DENAction', - 'doArtilleryFire', - 'doFire', - 'doFollow', - 'doFSM', - 'doGetOut', - 'doMove', - 'doorPhase', - 'doStop', - 'doSuppressiveFire', - 'doTarget', - 'doWatch', - 'drawArrow', - 'drawEllipse', - 'drawIcon', - 'drawIcon3D', - 'drawLaser', - 'drawLine', - 'drawLine3D', - 'drawLink', - 'drawLocation', - 'drawPolygon', - 'drawRectangle', - 'drawTriangle', - 'driver', - 'drop', - 'dynamicSimulationDistance', - 'dynamicSimulationDistanceCoef', - 'dynamicSimulationEnabled', - 'dynamicSimulationSystemEnabled', - 'echo', - 'edit3DENMissionAttributes', - 'editObject', - 'editorSetEventHandler', - 'effectiveCommander', - 'elevatePeriscope', - 'emptyPositions', - 'enableAI', - 'enableAIFeature', - 'enableAimPrecision', - 'enableAttack', - 'enableAudioFeature', - 'enableAutoStartUpRTD', - 'enableAutoTrimRTD', - 'enableCamShake', - 'enableCaustics', - 'enableChannel', - 'enableCollisionWith', - 'enableCopilot', - 'enableDebriefingStats', - 'enableDiagLegend', - 'enableDirectionStabilization', - 'enableDynamicSimulation', - 'enableDynamicSimulationSystem', - 'enableEndDialog', - 'enableEngineArtillery', - 'enableEnvironment', - 'enableFatigue', - 'enableGunLights', - 'enableInfoPanelComponent', - 'enableIRLasers', - 'enableMimics', - 'enablePersonTurret', - 'enableRadio', - 'enableReload', - 'enableRopeAttach', - 'enableSatNormalOnDetail', - 'enableSaving', - 'enableSentences', - 'enableSimulation', - 'enableSimulationGlobal', - 'enableStamina', - 'enableStressDamage', - 'enableTeamSwitch', - 'enableTraffic', - 'enableUAVConnectability', - 'enableUAVWaypoints', - 'enableVehicleCargo', - 'enableVehicleSensor', - 'enableWeaponDisassembly', - 'endLoadingScreen', - 'endMission', - 'engineOn', - 'enginesIsOnRTD', - 'enginesPowerRTD', - 'enginesRpmRTD', - 'enginesTorqueRTD', - 'entities', - 'environmentEnabled', - 'environmentVolume', - 'equipmentDisabled', - 'estimatedEndServerTime', - 'estimatedTimeLeft', - 'evalObjectArgument', - 'everyBackpack', - 'everyContainer', - 'exec', - 'execEditorScript', - 'execFSM', - 'execVM', - 'exp', - 'expectedDestination', - 'exportJIPMessages', - 'eyeDirection', - 'eyePos', - 'face', - 'faction', - 'fadeEnvironment', - 'fadeMusic', - 'fadeRadio', - 'fadeSound', - 'fadeSpeech', - 'failMission', - 'fileExists', - 'fillWeaponsFromPool', - 'find', - 'findAny', - 'findCover', - 'findDisplay', - 'findEditorObject', - 'findEmptyPosition', - 'findEmptyPositionReady', - 'findIf', - 'findNearestEnemy', - 'finishMissionInit', - 'finite', - 'fire', - 'fireAtTarget', - 'firstBackpack', - 'flag', - 'flagAnimationPhase', - 'flagOwner', - 'flagSide', - 'flagTexture', - 'flatten', - 'fleeing', - 'floor', - 'flyInHeight', - 'flyInHeightASL', - 'focusedCtrl', - 'fog', - 'fogForecast', - 'fogParams', - 'forceAddUniform', - 'forceAtPositionRTD', - 'forceCadetDifficulty', - 'forcedMap', - 'forceEnd', - 'forceFlagTexture', - 'forceFollowRoad', - 'forceGeneratorRTD', - 'forceMap', - 'forceRespawn', - 'forceSpeed', - 'forceUnicode', - 'forceWalk', - 'forceWeaponFire', - 'forceWeatherChange', - 'forEachMember', - 'forEachMemberAgent', - 'forEachMemberTeam', - 'forgetTarget', - 'format', - 'formation', - 'formationDirection', - 'formationLeader', - 'formationMembers', - 'formationPosition', - 'formationTask', - 'formatText', - 'formLeader', - 'freeExtension', - 'freeLook', - 'fromEditor', - 'fuel', - 'fullCrew', - 'gearIDCAmmoCount', - 'gearSlotAmmoCount', - 'gearSlotData', - 'gestureState', - 'get', - 'get3DENActionState', - 'get3DENAttribute', - 'get3DENCamera', - 'get3DENConnections', - 'get3DENEntity', - 'get3DENEntityID', - 'get3DENGrid', - 'get3DENIconsVisible', - 'get3DENLayerEntities', - 'get3DENLinesVisible', - 'get3DENMissionAttribute', - 'get3DENMouseOver', - 'get3DENSelected', - 'getAimingCoef', - 'getAllEnv3DSoundControllers', - 'getAllEnvSoundControllers', - 'getAllHitPointsDamage', - 'getAllOwnedMines', - 'getAllPylonsInfo', - 'getAllSoundControllers', - 'getAllUnitTraits', - 'getAmmoCargo', - 'getAnimAimPrecision', - 'getAnimSpeedCoef', - 'getArray', - 'getArtilleryAmmo', - 'getArtilleryComputerSettings', - 'getArtilleryETA', - 'getAssetDLCInfo', - 'getAssignedCuratorLogic', - 'getAssignedCuratorUnit', - 'getAttackTarget', - 'getAudioOptionVolumes', - 'getBackpackCargo', - 'getBleedingRemaining', - 'getBurningValue', - 'getCalculatePlayerVisibilityByFriendly', - 'getCameraViewDirection', - 'getCargoIndex', - 'getCenterOfMass', - 'getClientState', - 'getClientStateNumber', - 'getCompatiblePylonMagazines', - 'getConnectedUAV', - 'getConnectedUAVUnit', - 'getContainerMaxLoad', - 'getCorpse', - 'getCruiseControl', - 'getCursorObjectParams', - 'getCustomAimCoef', - 'getCustomSoundController', - 'getCustomSoundControllerCount', - 'getDammage', - 'getDebriefingText', - 'getDescription', - 'getDir', - 'getDirVisual', - 'getDiverState', - 'getDLCAssetsUsage', - 'getDLCAssetsUsageByName', - 'getDLCs', - 'getDLCUsageTime', - 'getEditorCamera', - 'getEditorMode', - 'getEditorObjectScope', - 'getElevationOffset', - 'getEngineTargetRPMRTD', - 'getEnv3DSoundController', - 'getEnvSoundController', - 'getEventHandlerInfo', - 'getFatigue', - 'getFieldManualStartPage', - 'getForcedFlagTexture', - 'getForcedSpeed', - 'getFriend', - 'getFSMVariable', - 'getFuelCargo', - 'getGraphValues', - 'getGroupIcon', - 'getGroupIconParams', - 'getGroupIcons', - 'getHideFrom', - 'getHit', - 'getHitIndex', - 'getHitPointDamage', - 'getItemCargo', - 'getLighting', - 'getLightingAt', - 'getLoadedModsInfo', - 'getMagazineCargo', - 'getMarkerColor', - 'getMarkerPos', - 'getMarkerSize', - 'getMarkerType', - 'getMass', - 'getMissionConfig', - 'getMissionConfigValue', - 'getMissionDLCs', - 'getMissionLayerEntities', - 'getMissionLayers', - 'getMissionPath', - 'getModelInfo', - 'getMousePosition', - 'getMusicPlayedTime', - 'getNumber', - 'getObjectArgument', - 'getObjectChildren', - 'getObjectDLC', - 'getObjectFOV', - 'getObjectID', - 'getObjectMaterials', - 'getObjectProxy', - 'getObjectScale', - 'getObjectTextures', - 'getObjectType', - 'getObjectViewDistance', - 'getOpticsMode', - 'getOrDefault', - 'getOrDefaultCall', - 'getOxygenRemaining', - 'getPersonUsedDLCs', - 'getPilotCameraDirection', - 'getPilotCameraPosition', - 'getPilotCameraRotation', - 'getPilotCameraTarget', - 'getPiPViewDistance', - 'getPlateNumber', - 'getPlayerChannel', - 'getPlayerID', - 'getPlayerScores', - 'getPlayerUID', - 'getPlayerVoNVolume', - 'getPos', - 'getPosASL', - 'getPosASLVisual', - 'getPosASLW', - 'getPosATL', - 'getPosATLVisual', - 'getPosVisual', - 'getPosWorld', - 'getPosWorldVisual', - 'getPylonMagazines', - 'getRelDir', - 'getRelPos', - 'getRemoteSensorsDisabled', - 'getRepairCargo', - 'getResolution', - 'getRoadInfo', - 'getRotorBrakeRTD', - 'getSensorTargets', - 'getSensorThreats', - 'getShadowDistance', - 'getShotParents', - 'getSlingLoad', - 'getSoundController', - 'getSoundControllerResult', - 'getSpeed', - 'getStamina', - 'getStatValue', - 'getSteamFriendsServers', - 'getSubtitleOptions', - 'getSuppression', - 'getTerrainGrid', - 'getTerrainHeight', - 'getTerrainHeightASL', - 'getTerrainInfo', - 'getText', - 'getTextRaw', - 'getTextureInfo', - 'getTextWidth', - 'getTiParameters', - 'getTotalDLCUsageTime', - 'getTrimOffsetRTD', - 'getTurretLimits', - 'getTurretOpticsMode', - 'getUnitFreefallInfo', - 'getUnitLoadout', - 'getUnitTrait', - 'getUnloadInCombat', - 'getUserInfo', - 'getUserMFDText', - 'getUserMFDValue', - 'getVariable', - 'getVehicleCargo', - 'getVehicleTiPars', - 'getWeaponCargo', - 'getWeaponSway', - 'getWingsOrientationRTD', - 'getWingsPositionRTD', - 'getWPPos', - 'glanceAt', - 'globalChat', - 'globalRadio', - 'goggles', - 'goto', - 'group', - 'groupChat', - 'groupFromNetId', - 'groupIconSelectable', - 'groupIconsVisible', - 'groupID', - 'groupOwner', - 'groupRadio', - 'groups', - 'groupSelectedUnits', - 'groupSelectUnit', - 'gunner', - 'gusts', - 'halt', - 'handgunItems', - 'handgunMagazine', - 'handgunWeapon', - 'handsHit', - 'hashValue', - 'hasInterface', - 'hasPilotCamera', - 'hasWeapon', - 'hcAllGroups', - 'hcGroupParams', - 'hcLeader', - 'hcRemoveAllGroups', - 'hcRemoveGroup', - 'hcSelected', - 'hcSelectGroup', - 'hcSetGroup', - 'hcShowBar', - 'hcShownBar', - 'headgear', - 'hideBody', - 'hideObject', - 'hideObjectGlobal', - 'hideSelection', - 'hint', - 'hintC', - 'hintCadet', - 'hintSilent', - 'hmd', - 'hostMission', - 'htmlLoad', - 'HUDMovementLevels', - 'humidity', - 'image', - 'importAllGroups', - 'importance', - 'in', - 'inArea', - 'inAreaArray', - 'incapacitatedState', - 'inflame', - 'inflamed', - 'infoPanel', - 'infoPanelComponentEnabled', - 'infoPanelComponents', - 'infoPanels', - 'inGameUISetEventHandler', - 'inheritsFrom', - 'initAmbientLife', - 'inPolygon', - 'inputAction', - 'inputController', - 'inputMouse', - 'inRangeOfArtillery', - 'insert', - 'insertEditorObject', - 'intersect', - 'is3DEN', - 'is3DENMultiplayer', - 'is3DENPreview', - 'isAbleToBreathe', - 'isActionMenuVisible', - 'isAgent', - 'isAimPrecisionEnabled', - 'isAllowedCrewInImmobile', - 'isArray', - 'isAutoHoverOn', - 'isAutonomous', - 'isAutoStartUpEnabledRTD', - 'isAutotest', - 'isAutoTrimOnRTD', - 'isAwake', - 'isBleeding', - 'isBurning', - 'isClass', - 'isCollisionLightOn', - 'isCopilotEnabled', - 'isDamageAllowed', - 'isDedicated', - 'isDLCAvailable', - 'isEngineOn', - 'isEqualRef', - 'isEqualTo', - 'isEqualType', - 'isEqualTypeAll', - 'isEqualTypeAny', - 'isEqualTypeArray', - 'isEqualTypeParams', - 'isFilePatchingEnabled', - 'isFinal', - 'isFlashlightOn', - 'isFlatEmpty', - 'isForcedWalk', - 'isFormationLeader', - 'isGameFocused', - 'isGamePaused', - 'isGroupDeletedWhenEmpty', - 'isHidden', - 'isInRemainsCollector', - 'isInstructorFigureEnabled', - 'isIRLaserOn', - 'isKeyActive', - 'isKindOf', - 'isLaserOn', - 'isLightOn', - 'isLocalized', - 'isManualFire', - 'isMarkedForCollection', - 'isMissionProfileNamespaceLoaded', - 'isMultiplayer', - 'isMultiplayerSolo', - 'isNil', - 'isNotEqualRef', - 'isNotEqualTo', - 'isNull', - 'isNumber', - 'isObjectHidden', - 'isObjectRTD', - 'isOnRoad', - 'isPiPEnabled', - 'isPlayer', - 'isRealTime', - 'isRemoteExecuted', - 'isRemoteExecutedJIP', - 'isSaving', - 'isSensorTargetConfirmed', - 'isServer', - 'isShowing3DIcons', - 'isSimpleObject', - 'isSprintAllowed', - 'isStaminaEnabled', - 'isSteamMission', - 'isSteamOverlayEnabled', - 'isStreamFriendlyUIEnabled', - 'isStressDamageEnabled', - 'isText', - 'isTouchingGround', - 'isTurnedOut', - 'isTutHintsEnabled', - 'isUAVConnectable', - 'isUAVConnected', - 'isUIContext', - 'isUniformAllowed', - 'isVehicleCargo', - 'isVehicleRadarOn', - 'isVehicleSensorEnabled', - 'isWalking', - 'isWeaponDeployed', - 'isWeaponRested', - 'itemCargo', - 'items', - 'itemsWithMagazines', - 'join', - 'joinAs', - 'joinAsSilent', - 'joinSilent', - 'joinString', - 'kbAddDatabase', - 'kbAddDatabaseTargets', - 'kbAddTopic', - 'kbHasTopic', - 'kbReact', - 'kbRemoveTopic', - 'kbTell', - 'kbWasSaid', - 'keyImage', - 'keyName', - 'keys', - 'knowsAbout', - 'land', - 'landAt', - 'landResult', - 'language', - 'laserTarget', - 'lbAdd', - 'lbClear', - 'lbColor', - 'lbColorRight', - 'lbCurSel', - 'lbData', - 'lbDelete', - 'lbIsSelected', - 'lbPicture', - 'lbPictureRight', - 'lbSelection', - 'lbSetColor', - 'lbSetColorRight', - 'lbSetCurSel', - 'lbSetData', - 'lbSetPicture', - 'lbSetPictureColor', - 'lbSetPictureColorDisabled', - 'lbSetPictureColorSelected', - 'lbSetPictureRight', - 'lbSetPictureRightColor', - 'lbSetPictureRightColorDisabled', - 'lbSetPictureRightColorSelected', - 'lbSetSelectColor', - 'lbSetSelectColorRight', - 'lbSetSelected', - 'lbSetText', - 'lbSetTextRight', - 'lbSetTooltip', - 'lbSetValue', - 'lbSize', - 'lbSort', - 'lbSortBy', - 'lbSortByValue', - 'lbText', - 'lbTextRight', - 'lbTooltip', - 'lbValue', - 'leader', - 'leaderboardDeInit', - 'leaderboardGetRows', - 'leaderboardInit', - 'leaderboardRequestRowsFriends', - 'leaderboardRequestRowsGlobal', - 'leaderboardRequestRowsGlobalAroundUser', - 'leaderboardsRequestUploadScore', - 'leaderboardsRequestUploadScoreKeepBest', - 'leaderboardState', - 'leaveVehicle', - 'libraryCredits', - 'libraryDisclaimers', - 'lifeState', - 'lightAttachObject', - 'lightDetachObject', - 'lightIsOn', - 'lightnings', - 'limitSpeed', - 'linearConversion', - 'lineIntersects', - 'lineIntersectsObjs', - 'lineIntersectsSurfaces', - 'lineIntersectsWith', - 'linkItem', - 'list', - 'listObjects', - 'listRemoteTargets', - 'listVehicleSensors', - 'ln', - 'lnbAddArray', - 'lnbAddColumn', - 'lnbAddRow', - 'lnbClear', - 'lnbColor', - 'lnbColorRight', - 'lnbCurSelRow', - 'lnbData', - 'lnbDeleteColumn', - 'lnbDeleteRow', - 'lnbGetColumnsPosition', - 'lnbPicture', - 'lnbPictureRight', - 'lnbSetColor', - 'lnbSetColorRight', - 'lnbSetColumnsPos', - 'lnbSetCurSelRow', - 'lnbSetData', - 'lnbSetPicture', - 'lnbSetPictureColor', - 'lnbSetPictureColorRight', - 'lnbSetPictureColorSelected', - 'lnbSetPictureColorSelectedRight', - 'lnbSetPictureRight', - 'lnbSetText', - 'lnbSetTextRight', - 'lnbSetTooltip', - 'lnbSetValue', - 'lnbSize', - 'lnbSort', - 'lnbSortBy', - 'lnbSortByValue', - 'lnbText', - 'lnbTextRight', - 'lnbValue', - 'load', - 'loadAbs', - 'loadBackpack', - 'loadConfig', - 'loadFile', - 'loadGame', - 'loadIdentity', - 'loadMagazine', - 'loadOverlay', - 'loadStatus', - 'loadUniform', - 'loadVest', - 'localize', - 'localNamespace', - 'locationPosition', - 'lock', - 'lockCameraTo', - 'lockCargo', - 'lockDriver', - 'locked', - 'lockedCameraTo', - 'lockedCargo', - 'lockedDriver', - 'lockedInventory', - 'lockedTurret', - 'lockIdentity', - 'lockInventory', - 'lockTurret', - 'lockWp', - 'log', - 'logEntities', - 'logNetwork', - 'logNetworkTerminate', - 'lookAt', - 'lookAtPos', - 'magazineCargo', - 'magazines', - 'magazinesAllTurrets', - 'magazinesAmmo', - 'magazinesAmmoCargo', - 'magazinesAmmoFull', - 'magazinesDetail', - 'magazinesDetailBackpack', - 'magazinesDetailUniform', - 'magazinesDetailVest', - 'magazinesTurret', - 'magazineTurretAmmo', - 'mapAnimAdd', - 'mapAnimClear', - 'mapAnimCommit', - 'mapAnimDone', - 'mapCenterOnCamera', - 'mapGridPosition', - 'markAsFinishedOnSteam', - 'markerAlpha', - 'markerBrush', - 'markerChannel', - 'markerColor', - 'markerDir', - 'markerPolyline', - 'markerPos', - 'markerShadow', - 'markerShape', - 'markerSize', - 'markerText', - 'markerType', - 'matrixMultiply', - 'matrixTranspose', - 'max', - 'maxLoad', - 'members', - 'menuAction', - 'menuAdd', - 'menuChecked', - 'menuClear', - 'menuCollapse', - 'menuData', - 'menuDelete', - 'menuEnable', - 'menuEnabled', - 'menuExpand', - 'menuHover', - 'menuPicture', - 'menuSetAction', - 'menuSetCheck', - 'menuSetData', - 'menuSetPicture', - 'menuSetShortcut', - 'menuSetText', - 'menuSetURL', - 'menuSetValue', - 'menuShortcut', - 'menuShortcutText', - 'menuSize', - 'menuSort', - 'menuText', - 'menuURL', - 'menuValue', - 'merge', - 'min', - 'mineActive', - 'mineDetectedBy', - 'missileTarget', - 'missileTargetPos', - 'missionConfigFile', - 'missionDifficulty', - 'missionEnd', - 'missionName', - 'missionNameSource', - 'missionNamespace', - 'missionProfileNamespace', - 'missionStart', - 'missionVersion', - 'mod', - 'modelToWorld', - 'modelToWorldVisual', - 'modelToWorldVisualWorld', - 'modelToWorldWorld', - 'modParams', - 'moonIntensity', - 'moonPhase', - 'morale', - 'move', - 'move3DENCamera', - 'moveInAny', - 'moveInCargo', - 'moveInCommander', - 'moveInDriver', - 'moveInGunner', - 'moveInTurret', - 'moveObjectToEnd', - 'moveOut', - 'moveTime', - 'moveTo', - 'moveToCompleted', - 'moveToFailed', - 'musicVolume', - 'name', - 'namedProperties', - 'nameSound', - 'nearEntities', - 'nearestBuilding', - 'nearestLocation', - 'nearestLocations', - 'nearestLocationWithDubbing', - 'nearestMines', - 'nearestObject', - 'nearestObjects', - 'nearestTerrainObjects', - 'nearObjects', - 'nearObjectsReady', - 'nearRoads', - 'nearSupplies', - 'nearTargets', - 'needReload', - 'needService', - 'netId', - 'netObjNull', - 'newOverlay', - 'nextMenuItemIndex', - 'nextWeatherChange', - 'nMenuItems', - 'not', - 'numberOfEnginesRTD', - 'numberToDate', - 'objectCurators', - 'objectFromNetId', - 'objectParent', - 'objStatus', - 'onBriefingGroup', - 'onBriefingNotes', - 'onBriefingPlan', - 'onBriefingTeamSwitch', - 'onCommandModeChanged', - 'onDoubleClick', - 'onEachFrame', - 'onGroupIconClick', - 'onGroupIconOverEnter', - 'onGroupIconOverLeave', - 'onHCGroupSelectionChanged', - 'onMapSingleClick', - 'onPlayerConnected', - 'onPlayerDisconnected', - 'onPreloadFinished', - 'onPreloadStarted', - 'onShowNewObject', - 'onTeamSwitch', - 'openCuratorInterface', - 'openDLCPage', - 'openGPS', - 'openMap', - 'openSteamApp', - 'openYoutubeVideo', - 'or', - 'orderGetIn', - 'overcast', - 'overcastForecast', - 'owner', - 'param', - 'params', - 'parseNumber', - 'parseSimpleArray', - 'parseText', - 'parsingNamespace', - 'particlesQuality', - 'periscopeElevation', - 'pickWeaponPool', - 'pitch', - 'pixelGrid', - 'pixelGridBase', - 'pixelGridNoUIScale', - 'pixelH', - 'pixelW', - 'playableSlotsNumber', - 'playableUnits', - 'playAction', - 'playActionNow', - 'player', - 'playerRespawnTime', - 'playerSide', - 'playersNumber', - 'playGesture', - 'playMission', - 'playMove', - 'playMoveNow', - 'playMusic', - 'playScriptedMission', - 'playSound', - 'playSound3D', - 'playSoundUI', - 'pose', - 'position', - 'positionCameraToWorld', - 'posScreenToWorld', - 'posWorldToScreen', - 'ppEffectAdjust', - 'ppEffectCommit', - 'ppEffectCommitted', - 'ppEffectCreate', - 'ppEffectDestroy', - 'ppEffectEnable', - 'ppEffectEnabled', - 'ppEffectForceInNVG', - 'precision', - 'preloadCamera', - 'preloadObject', - 'preloadSound', - 'preloadTitleObj', - 'preloadTitleRsc', - 'preprocessFile', - 'preprocessFileLineNumbers', - 'primaryWeapon', - 'primaryWeaponItems', - 'primaryWeaponMagazine', - 'priority', - 'processDiaryLink', - 'productVersion', - 'profileName', - 'profileNamespace', - 'profileNameSteam', - 'progressLoadingScreen', - 'progressPosition', - 'progressSetPosition', - 'publicVariable', - 'publicVariableClient', - 'publicVariableServer', - 'pushBack', - 'pushBackUnique', - 'putWeaponPool', - 'queryItemsPool', - 'queryMagazinePool', - 'queryWeaponPool', - 'rad', - 'radioChannelAdd', - 'radioChannelCreate', - 'radioChannelInfo', - 'radioChannelRemove', - 'radioChannelSetCallSign', - 'radioChannelSetLabel', - 'radioEnabled', - 'radioVolume', - 'rain', - 'rainbow', - 'rainParams', - 'random', - 'rank', - 'rankId', - 'rating', - 'rectangular', - 'regexFind', - 'regexMatch', - 'regexReplace', - 'registeredTasks', - 'registerTask', - 'reload', - 'reloadEnabled', - 'remoteControl', - 'remoteExec', - 'remoteExecCall', - 'remoteExecutedOwner', - 'remove3DENConnection', - 'remove3DENEventHandler', - 'remove3DENLayer', - 'removeAction', - 'removeAll3DENEventHandlers', - 'removeAllActions', - 'removeAllAssignedItems', - 'removeAllBinocularItems', - 'removeAllContainers', - 'removeAllCuratorAddons', - 'removeAllCuratorCameraAreas', - 'removeAllCuratorEditingAreas', - 'removeAllEventHandlers', - 'removeAllHandgunItems', - 'removeAllItems', - 'removeAllItemsWithMagazines', - 'removeAllMissionEventHandlers', - 'removeAllMPEventHandlers', - 'removeAllMusicEventHandlers', - 'removeAllOwnedMines', - 'removeAllPrimaryWeaponItems', - 'removeAllSecondaryWeaponItems', - 'removeAllUserActionEventHandlers', - 'removeAllWeapons', - 'removeBackpack', - 'removeBackpackGlobal', - 'removeBinocularItem', - 'removeCuratorAddons', - 'removeCuratorCameraArea', - 'removeCuratorEditableObjects', - 'removeCuratorEditingArea', - 'removeDiaryRecord', - 'removeDiarySubject', - 'removeDrawIcon', - 'removeDrawLinks', - 'removeEventHandler', - 'removeFromRemainsCollector', - 'removeGoggles', - 'removeGroupIcon', - 'removeHandgunItem', - 'removeHeadgear', - 'removeItem', - 'removeItemFromBackpack', - 'removeItemFromUniform', - 'removeItemFromVest', - 'removeItems', - 'removeMagazine', - 'removeMagazineGlobal', - 'removeMagazines', - 'removeMagazinesTurret', - 'removeMagazineTurret', - 'removeMenuItem', - 'removeMissionEventHandler', - 'removeMPEventHandler', - 'removeMusicEventHandler', - 'removeOwnedMine', - 'removePrimaryWeaponItem', - 'removeSecondaryWeaponItem', - 'removeSimpleTask', - 'removeSwitchableUnit', - 'removeTeamMember', - 'removeUniform', - 'removeUserActionEventHandler', - 'removeVest', - 'removeWeapon', - 'removeWeaponAttachmentCargo', - 'removeWeaponCargo', - 'removeWeaponGlobal', - 'removeWeaponTurret', - 'reportRemoteTarget', - 'requiredVersion', - 'resetCamShake', - 'resetSubgroupDirection', - 'resize', - 'resources', - 'respawnVehicle', - 'restartEditorCamera', - 'reveal', - 'revealMine', - 'reverse', - 'reversedMouseY', - 'roadAt', - 'roadsConnectedTo', - 'roleDescription', - 'ropeAttachedObjects', - 'ropeAttachedTo', - 'ropeAttachEnabled', - 'ropeAttachTo', - 'ropeCreate', - 'ropeCut', - 'ropeDestroy', - 'ropeDetach', - 'ropeEndPosition', - 'ropeLength', - 'ropes', - 'ropesAttachedTo', - 'ropeSegments', - 'ropeUnwind', - 'ropeUnwound', - 'rotorsForcesRTD', - 'rotorsRpmRTD', - 'round', - 'runInitScript', - 'safeZoneH', - 'safeZoneW', - 'safeZoneWAbs', - 'safeZoneX', - 'safeZoneXAbs', - 'safeZoneY', - 'save3DENInventory', - 'saveGame', - 'saveIdentity', - 'saveJoysticks', - 'saveMissionProfileNamespace', - 'saveOverlay', - 'saveProfileNamespace', - 'saveStatus', - 'saveVar', - 'savingEnabled', - 'say', - 'say2D', - 'say3D', - 'scopeName', - 'score', - 'scoreSide', - 'screenshot', - 'screenToWorld', - 'scriptDone', - 'scriptName', - 'scudState', - 'secondaryWeapon', - 'secondaryWeaponItems', - 'secondaryWeaponMagazine', - 'select', - 'selectBestPlaces', - 'selectDiarySubject', - 'selectedEditorObjects', - 'selectEditorObject', - 'selectionNames', - 'selectionPosition', - 'selectionVectorDirAndUp', - 'selectLeader', - 'selectMax', - 'selectMin', - 'selectNoPlayer', - 'selectPlayer', - 'selectRandom', - 'selectRandomWeighted', - 'selectWeapon', - 'selectWeaponTurret', - 'sendAUMessage', - 'sendSimpleCommand', - 'sendTask', - 'sendTaskResult', - 'sendUDPMessage', - 'sentencesEnabled', - 'serverCommand', - 'serverCommandAvailable', - 'serverCommandExecutable', - 'serverName', - 'serverNamespace', - 'serverTime', - 'set', - 'set3DENAttribute', - 'set3DENAttributes', - 'set3DENGrid', - 'set3DENIconsVisible', - 'set3DENLayer', - 'set3DENLinesVisible', - 'set3DENLogicType', - 'set3DENMissionAttribute', - 'set3DENMissionAttributes', - 'set3DENModelsVisible', - 'set3DENObjectType', - 'set3DENSelected', - 'setAccTime', - 'setActualCollectiveRTD', - 'setAirplaneThrottle', - 'setAirportSide', - 'setAmmo', - 'setAmmoCargo', - 'setAmmoOnPylon', - 'setAnimSpeedCoef', - 'setAperture', - 'setApertureNew', - 'setArmoryPoints', - 'setAttributes', - 'setAutonomous', - 'setBehaviour', - 'setBehaviourStrong', - 'setBleedingRemaining', - 'setBrakesRTD', - 'setCameraInterest', - 'setCamShakeDefParams', - 'setCamShakeParams', - 'setCamUseTi', - 'setCaptive', - 'setCenterOfMass', - 'setCollisionLight', - 'setCombatBehaviour', - 'setCombatMode', - 'setCompassOscillation', - 'setConvoySeparation', - 'setCruiseControl', - 'setCuratorCameraAreaCeiling', - 'setCuratorCoef', - 'setCuratorEditingAreaType', - 'setCuratorWaypointCost', - 'setCurrentChannel', - 'setCurrentTask', - 'setCurrentWaypoint', - 'setCustomAimCoef', - 'SetCustomMissionData', - 'setCustomSoundController', - 'setCustomWeightRTD', - 'setDamage', - 'setDammage', - 'setDate', - 'setDebriefingText', - 'setDefaultCamera', - 'setDestination', - 'setDetailMapBlendPars', - 'setDiaryRecordText', - 'setDiarySubjectPicture', - 'setDir', - 'setDirection', - 'setDrawIcon', - 'setDriveOnPath', - 'setDropInterval', - 'setDynamicSimulationDistance', - 'setDynamicSimulationDistanceCoef', - 'setEditorMode', - 'setEditorObjectScope', - 'setEffectCondition', - 'setEffectiveCommander', - 'setEngineRpmRTD', - 'setFace', - 'setFaceanimation', - 'setFatigue', - 'setFeatureType', - 'setFlagAnimationPhase', - 'setFlagOwner', - 'setFlagSide', - 'setFlagTexture', - 'setFog', - 'setForceGeneratorRTD', - 'setFormation', - 'setFormationTask', - 'setFormDir', - 'setFriend', - 'setFromEditor', - 'setFSMVariable', - 'setFuel', - 'setFuelCargo', - 'setGroupIcon', - 'setGroupIconParams', - 'setGroupIconsSelectable', - 'setGroupIconsVisible', - 'setGroupid', - 'setGroupIdGlobal', - 'setGroupOwner', - 'setGusts', - 'setHideBehind', - 'setHit', - 'setHitIndex', - 'setHitPointDamage', - 'setHorizonParallaxCoef', - 'setHUDMovementLevels', - 'setHumidity', - 'setIdentity', - 'setImportance', - 'setInfoPanel', - 'setLeader', - 'setLightAmbient', - 'setLightAttenuation', - 'setLightBrightness', - 'setLightColor', - 'setLightConePars', - 'setLightDayLight', - 'setLightFlareMaxDistance', - 'setLightFlareSize', - 'setLightIntensity', - 'setLightIR', - 'setLightnings', - 'setLightUseFlare', - 'setLightVolumeShape', - 'setLocalWindParams', - 'setMagazineTurretAmmo', - 'setMarkerAlpha', - 'setMarkerAlphaLocal', - 'setMarkerBrush', - 'setMarkerBrushLocal', - 'setMarkerColor', - 'setMarkerColorLocal', - 'setMarkerDir', - 'setMarkerDirLocal', - 'setMarkerPolyline', - 'setMarkerPolylineLocal', - 'setMarkerPos', - 'setMarkerPosLocal', - 'setMarkerShadow', - 'setMarkerShadowLocal', - 'setMarkerShape', - 'setMarkerShapeLocal', - 'setMarkerSize', - 'setMarkerSizeLocal', - 'setMarkerText', - 'setMarkerTextLocal', - 'setMarkerType', - 'setMarkerTypeLocal', - 'setMass', - 'setMaxLoad', - 'setMimic', - 'setMissileTarget', - 'setMissileTargetPos', - 'setMousePosition', - 'setMusicEffect', - 'setMusicEventHandler', - 'setName', - 'setNameSound', - 'setObjectArguments', - 'setObjectMaterial', - 'setObjectMaterialGlobal', - 'setObjectProxy', - 'setObjectScale', - 'setObjectTexture', - 'setObjectTextureGlobal', - 'setObjectViewDistance', - 'setOpticsMode', - 'setOvercast', - 'setOwner', - 'setOxygenRemaining', - 'setParticleCircle', - 'setParticleClass', - 'setParticleFire', - 'setParticleParams', - 'setParticleRandom', - 'setPilotCameraDirection', - 'setPilotCameraRotation', - 'setPilotCameraTarget', - 'setPilotLight', - 'setPiPEffect', - 'setPiPViewDistance', - 'setPitch', - 'setPlateNumber', - 'setPlayable', - 'setPlayerRespawnTime', - 'setPlayerVoNVolume', - 'setPos', - 'setPosASL', - 'setPosASL2', - 'setPosASLW', - 'setPosATL', - 'setPosition', - 'setPosWorld', - 'setPylonLoadout', - 'setPylonsPriority', - 'setRadioMsg', - 'setRain', - 'setRainbow', - 'setRandomLip', - 'setRank', - 'setRectangular', - 'setRepairCargo', - 'setRotorBrakeRTD', - 'setShadowDistance', - 'setShotParents', - 'setSide', - 'setSimpleTaskAlwaysVisible', - 'setSimpleTaskCustomData', - 'setSimpleTaskDescription', - 'setSimpleTaskDestination', - 'setSimpleTaskTarget', - 'setSimpleTaskType', - 'setSimulWeatherLayers', - 'setSize', - 'setSkill', - 'setSlingLoad', - 'setSoundEffect', - 'setSpeaker', - 'setSpeech', - 'setSpeedMode', - 'setStamina', - 'setStaminaScheme', - 'setStatValue', - 'setSuppression', - 'setSystemOfUnits', - 'setTargetAge', - 'setTaskMarkerOffset', - 'setTaskResult', - 'setTaskState', - 'setTerrainGrid', - 'setTerrainHeight', - 'setText', - 'setTimeMultiplier', - 'setTiParameter', - 'setTitleEffect', - 'setTowParent', - 'setTrafficDensity', - 'setTrafficDistance', - 'setTrafficGap', - 'setTrafficSpeed', - 'setTriggerActivation', - 'setTriggerArea', - 'setTriggerInterval', - 'setTriggerStatements', - 'setTriggerText', - 'setTriggerTimeout', - 'setTriggerType', - 'setTurretLimits', - 'setTurretOpticsMode', - 'setType', - 'setUnconscious', - 'setUnitAbility', - 'setUnitCombatMode', - 'setUnitFreefallHeight', - 'setUnitLoadout', - 'setUnitPos', - 'setUnitPosWeak', - 'setUnitRank', - 'setUnitRecoilCoefficient', - 'setUnitTrait', - 'setUnloadInCombat', - 'setUserActionText', - 'setUserMFDText', - 'setUserMFDValue', - 'setVariable', - 'setVectorDir', - 'setVectorDirAndUp', - 'setVectorUp', - 'setVehicleAmmo', - 'setVehicleAmmoDef', - 'setVehicleArmor', - 'setVehicleCargo', - 'setVehicleId', - 'setVehicleLock', - 'setVehiclePosition', - 'setVehicleRadar', - 'setVehicleReceiveRemoteTargets', - 'setVehicleReportOwnPosition', - 'setVehicleReportRemoteTargets', - 'setVehicleTiPars', - 'setVehicleVarName', - 'setVelocity', - 'setVelocityModelSpace', - 'setVelocityTransformation', - 'setViewDistance', - 'setVisibleIfTreeCollapsed', - 'setWantedRPMRTD', - 'setWaves', - 'setWaypointBehaviour', - 'setWaypointCombatMode', - 'setWaypointCompletionRadius', - 'setWaypointDescription', - 'setWaypointForceBehaviour', - 'setWaypointFormation', - 'setWaypointHousePosition', - 'setWaypointLoiterAltitude', - 'setWaypointLoiterRadius', - 'setWaypointLoiterType', - 'setWaypointName', - 'setWaypointPosition', - 'setWaypointScript', - 'setWaypointSpeed', - 'setWaypointStatements', - 'setWaypointTimeout', - 'setWaypointType', - 'setWaypointVisible', - 'setWeaponReloadingTime', - 'setWeaponZeroing', - 'setWind', - 'setWindDir', - 'setWindForce', - 'setWindStr', - 'setWingForceScaleRTD', - 'setWPPos', - 'show3DIcons', - 'showChat', - 'showCinemaBorder', - 'showCommandingMenu', - 'showCompass', - 'showCuratorCompass', - 'showGps', - 'showHUD', - 'showLegend', - 'showMap', - 'shownArtilleryComputer', - 'shownChat', - 'shownCompass', - 'shownCuratorCompass', - 'showNewEditorObject', - 'shownGps', - 'shownHUD', - 'shownMap', - 'shownPad', - 'shownRadio', - 'shownScoretable', - 'shownSubtitles', - 'shownUAVFeed', - 'shownWarrant', - 'shownWatch', - 'showPad', - 'showRadio', - 'showScoretable', - 'showSubtitles', - 'showUAVFeed', - 'showWarrant', - 'showWatch', - 'showWaypoint', - 'showWaypoints', - 'side', - 'sideChat', - 'sideRadio', - 'simpleTasks', - 'simulationEnabled', - 'simulCloudDensity', - 'simulCloudOcclusion', - 'simulInClouds', - 'simulWeatherSync', - 'sin', - 'size', - 'sizeOf', - 'skill', - 'skillFinal', - 'skipTime', - 'sleep', - 'sliderPosition', - 'sliderRange', - 'sliderSetPosition', - 'sliderSetRange', - 'sliderSetSpeed', - 'sliderSpeed', - 'slingLoadAssistantShown', - 'soldierMagazines', - 'someAmmo', - 'sort', - 'soundVolume', - 'spawn', - 'speaker', - 'speechVolume', - 'speed', - 'speedMode', - 'splitString', - 'sqrt', - 'squadParams', - 'stance', - 'startLoadingScreen', - 'stop', - 'stopEngineRTD', - 'stopped', - 'str', - 'sunOrMoon', - 'supportInfo', - 'suppressFor', - 'surfaceIsWater', - 'surfaceNormal', - 'surfaceTexture', - 'surfaceType', - 'swimInDepth', - 'switchableUnits', - 'switchAction', - 'switchCamera', - 'switchGesture', - 'switchLight', - 'switchMove', - 'synchronizedObjects', - 'synchronizedTriggers', - 'synchronizedWaypoints', - 'synchronizeObjectsAdd', - 'synchronizeObjectsRemove', - 'synchronizeTrigger', - 'synchronizeWaypoint', - 'systemChat', - 'systemOfUnits', - 'systemTime', - 'systemTimeUTC', - 'tan', - 'targetKnowledge', - 'targets', - 'targetsAggregate', - 'targetsQuery', - 'taskAlwaysVisible', - 'taskChildren', - 'taskCompleted', - 'taskCustomData', - 'taskDescription', - 'taskDestination', - 'taskHint', - 'taskMarkerOffset', - 'taskName', - 'taskParent', - 'taskResult', - 'taskState', - 'taskType', - 'teamMember', - 'teamName', - 'teams', - 'teamSwitch', - 'teamSwitchEnabled', - 'teamType', - 'terminate', - 'terrainIntersect', - 'terrainIntersectASL', - 'terrainIntersectAtASL', - 'text', - 'textLog', - 'textLogFormat', - 'tg', - 'time', - 'timeMultiplier', - 'titleCut', - 'titleFadeOut', - 'titleObj', - 'titleRsc', - 'titleText', - 'toArray', - 'toFixed', - 'toLower', - 'toLowerANSI', - 'toString', - 'toUpper', - 'toUpperANSI', - 'triggerActivated', - 'triggerActivation', - 'triggerAmmo', - 'triggerArea', - 'triggerAttachedVehicle', - 'triggerAttachObject', - 'triggerAttachVehicle', - 'triggerDynamicSimulation', - 'triggerInterval', - 'triggerStatements', - 'triggerText', - 'triggerTimeout', - 'triggerTimeoutCurrent', - 'triggerType', - 'trim', - 'turretLocal', - 'turretOwner', - 'turretUnit', - 'tvAdd', - 'tvClear', - 'tvCollapse', - 'tvCollapseAll', - 'tvCount', - 'tvCurSel', - 'tvData', - 'tvDelete', - 'tvExpand', - 'tvExpandAll', - 'tvIsSelected', - 'tvPicture', - 'tvPictureRight', - 'tvSelection', - 'tvSetColor', - 'tvSetCurSel', - 'tvSetData', - 'tvSetPicture', - 'tvSetPictureColor', - 'tvSetPictureColorDisabled', - 'tvSetPictureColorSelected', - 'tvSetPictureRight', - 'tvSetPictureRightColor', - 'tvSetPictureRightColorDisabled', - 'tvSetPictureRightColorSelected', - 'tvSetSelectColor', - 'tvSetSelected', - 'tvSetText', - 'tvSetTooltip', - 'tvSetValue', - 'tvSort', - 'tvSortAll', - 'tvSortByValue', - 'tvSortByValueAll', - 'tvText', - 'tvTooltip', - 'tvValue', - 'type', - 'typeName', - 'typeOf', - 'UAVControl', - 'uiNamespace', - 'uiSleep', - 'unassignCurator', - 'unassignItem', - 'unassignTeam', - 'unassignVehicle', - 'underwater', - 'uniform', - 'uniformContainer', - 'uniformItems', - 'uniformMagazines', - 'uniqueUnitItems', - 'unitAddons', - 'unitAimPosition', - 'unitAimPositionVisual', - 'unitBackpack', - 'unitCombatMode', - 'unitIsUAV', - 'unitPos', - 'unitReady', - 'unitRecoilCoefficient', - 'units', - 'unitsBelowHeight', - 'unitTurret', - 'unlinkItem', - 'unlockAchievement', - 'unregisterTask', - 'updateDrawIcon', - 'updateMenuItem', - 'updateObjectTree', - 'useAIOperMapObstructionTest', - 'useAISteeringComponent', - 'useAudioTimeForMoves', - 'userInputDisabled', - 'values', - 'vectorAdd', - 'vectorCos', - 'vectorCrossProduct', - 'vectorDiff', - 'vectorDir', - 'vectorDirVisual', - 'vectorDistance', - 'vectorDistanceSqr', - 'vectorDotProduct', - 'vectorFromTo', - 'vectorLinearConversion', - 'vectorMagnitude', - 'vectorMagnitudeSqr', - 'vectorModelToWorld', - 'vectorModelToWorldVisual', - 'vectorMultiply', - 'vectorNormalized', - 'vectorUp', - 'vectorUpVisual', - 'vectorWorldToModel', - 'vectorWorldToModelVisual', - 'vehicle', - 'vehicleCargoEnabled', - 'vehicleChat', - 'vehicleMoveInfo', - 'vehicleRadio', - 'vehicleReceiveRemoteTargets', - 'vehicleReportOwnPosition', - 'vehicleReportRemoteTargets', - 'vehicles', - 'vehicleVarName', - 'velocity', - 'velocityModelSpace', - 'verifySignature', - 'vest', - 'vestContainer', - 'vestItems', - 'vestMagazines', - 'viewDistance', - 'visibleCompass', - 'visibleGps', - 'visibleMap', - 'visiblePosition', - 'visiblePositionASL', - 'visibleScoretable', - 'visibleWatch', - 'waves', - 'waypointAttachedObject', - 'waypointAttachedVehicle', - 'waypointAttachObject', - 'waypointAttachVehicle', - 'waypointBehaviour', - 'waypointCombatMode', - 'waypointCompletionRadius', - 'waypointDescription', - 'waypointForceBehaviour', - 'waypointFormation', - 'waypointHousePosition', - 'waypointLoiterAltitude', - 'waypointLoiterRadius', - 'waypointLoiterType', - 'waypointName', - 'waypointPosition', - 'waypoints', - 'waypointScript', - 'waypointsEnabledUAV', - 'waypointShow', - 'waypointSpeed', - 'waypointStatements', - 'waypointTimeout', - 'waypointTimeoutCurrent', - 'waypointType', - 'waypointVisible', - 'weaponAccessories', - 'weaponAccessoriesCargo', - 'weaponCargo', - 'weaponDirection', - 'weaponInertia', - 'weaponLowered', - 'weaponReloadingTime', - 'weapons', - 'weaponsInfo', - 'weaponsItems', - 'weaponsItemsCargo', - 'weaponState', - 'weaponsTurret', - 'weightRTD', - 'WFSideText', - 'wind', - 'windDir', - 'windRTD', - 'windStr', - 'wingsForcesRTD', - 'worldName', - 'worldSize', - 'worldToModel', - 'worldToModelVisual', - 'worldToScreen' - ]; - - // list of keywords from: - // https://community.bistudio.com/wiki/PreProcessor_Commands - const PREPROCESSOR = { - className: 'meta', - begin: /#\s*[a-z]+\b/, - end: /$/, - keywords: 'define undef ifdef ifndef else endif include if', - contains: [ - { - begin: /\\\n/, - relevance: 0 - }, - hljs.inherit(STRINGS, { className: 'string' }), - { - begin: /<[^\n>]*>/, - end: /$/, - illegal: '\\n' - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; - - return { - name: 'SQF', - case_insensitive: true, - keywords: { - keyword: KEYWORDS, - built_in: BUILT_IN, - literal: LITERAL - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.NUMBER_MODE, - VARIABLE, - FUNCTION, - STRINGS, - PREPROCESSOR - ], - illegal: [ - //$ is only valid when used with Hex numbers (e.g. $FF) - /\$[^a-fA-F0-9]/, - /\w\$/, - /\?/, //There's no ? in SQF - /@/, //There's no @ in SQF - // Brute-force-fixing the build error. See https://github.com/highlightjs/highlight.js/pull/3193#issuecomment-843088729 - / \| /, - // . is only used in numbers - /[a-zA-Z_]\./, - /\:\=/, - /\[\:/ - ] - }; -} - -export { sqf as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sqf.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sqf.js.js deleted file mode 100644 index 46da754..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sqf.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sqf" instead of "highlight.js/lib/languages/sqf.js"' - ); - } - } - emitWarning(); - import lang from './sqf.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js deleted file mode 100644 index f38d839..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +++ /dev/null @@ -1,693 +0,0 @@ -/* - Language: SQL - Website: https://en.wikipedia.org/wiki/SQL - Category: common, database - */ - -/* - -Goals: - -SQL is intended to highlight basic/common SQL keywords and expressions - -- If pretty much every single SQL server includes supports, then it's a canidate. -- It is NOT intended to include tons of vendor specific keywords (Oracle, MySQL, - PostgreSQL) although the list of data types is purposely a bit more expansive. -- For more specific SQL grammars please see: - - PostgreSQL and PL/pgSQL - core - - T-SQL - https://github.com/highlightjs/highlightjs-tsql - - sql_more (core) - - */ - -function sql(hljs) { - const regex = hljs.regex; - const COMMENT_MODE = hljs.COMMENT('--', '$'); - const STRING = { - scope: 'string', - variants: [ - { - begin: /'/, - end: /'/, - contains: [ { match: /''/ } ] - } - ] - }; - const QUOTED_IDENTIFIER = { - begin: /"/, - end: /"/, - contains: [ { match: /""/ } ] - }; - - const LITERALS = [ - "true", - "false", - // Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way. - // "null", - "unknown" - ]; - - const MULTI_WORD_TYPES = [ - "double precision", - "large object", - "with timezone", - "without timezone" - ]; - - const TYPES = [ - 'bigint', - 'binary', - 'blob', - 'boolean', - 'char', - 'character', - 'clob', - 'date', - 'dec', - 'decfloat', - 'decimal', - 'float', - 'int', - 'integer', - 'interval', - 'nchar', - 'nclob', - 'national', - 'numeric', - 'real', - 'row', - 'smallint', - 'time', - 'timestamp', - 'varchar', - 'varying', // modifier (character varying) - 'varbinary' - ]; - - const NON_RESERVED_WORDS = [ - "add", - "asc", - "collation", - "desc", - "final", - "first", - "last", - "view" - ]; - - // https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#reserved-word - const RESERVED_WORDS = [ - "abs", - "acos", - "all", - "allocate", - "alter", - "and", - "any", - "are", - "array", - "array_agg", - "array_max_cardinality", - "as", - "asensitive", - "asin", - "asymmetric", - "at", - "atan", - "atomic", - "authorization", - "avg", - "begin", - "begin_frame", - "begin_partition", - "between", - "bigint", - "binary", - "blob", - "boolean", - "both", - "by", - "call", - "called", - "cardinality", - "cascaded", - "case", - "cast", - "ceil", - "ceiling", - "char", - "char_length", - "character", - "character_length", - "check", - "classifier", - "clob", - "close", - "coalesce", - "collate", - "collect", - "column", - "commit", - "condition", - "connect", - "constraint", - "contains", - "convert", - "copy", - "corr", - "corresponding", - "cos", - "cosh", - "count", - "covar_pop", - "covar_samp", - "create", - "cross", - "cube", - "cume_dist", - "current", - "current_catalog", - "current_date", - "current_default_transform_group", - "current_path", - "current_role", - "current_row", - "current_schema", - "current_time", - "current_timestamp", - "current_path", - "current_role", - "current_transform_group_for_type", - "current_user", - "cursor", - "cycle", - "date", - "day", - "deallocate", - "dec", - "decimal", - "decfloat", - "declare", - "default", - "define", - "delete", - "dense_rank", - "deref", - "describe", - "deterministic", - "disconnect", - "distinct", - "double", - "drop", - "dynamic", - "each", - "element", - "else", - "empty", - "end", - "end_frame", - "end_partition", - "end-exec", - "equals", - "escape", - "every", - "except", - "exec", - "execute", - "exists", - "exp", - "external", - "extract", - "false", - "fetch", - "filter", - "first_value", - "float", - "floor", - "for", - "foreign", - "frame_row", - "free", - "from", - "full", - "function", - "fusion", - "get", - "global", - "grant", - "group", - "grouping", - "groups", - "having", - "hold", - "hour", - "identity", - "in", - "indicator", - "initial", - "inner", - "inout", - "insensitive", - "insert", - "int", - "integer", - "intersect", - "intersection", - "interval", - "into", - "is", - "join", - "json_array", - "json_arrayagg", - "json_exists", - "json_object", - "json_objectagg", - "json_query", - "json_table", - "json_table_primitive", - "json_value", - "lag", - "language", - "large", - "last_value", - "lateral", - "lead", - "leading", - "left", - "like", - "like_regex", - "listagg", - "ln", - "local", - "localtime", - "localtimestamp", - "log", - "log10", - "lower", - "match", - "match_number", - "match_recognize", - "matches", - "max", - "member", - "merge", - "method", - "min", - "minute", - "mod", - "modifies", - "module", - "month", - "multiset", - "national", - "natural", - "nchar", - "nclob", - "new", - "no", - "none", - "normalize", - "not", - "nth_value", - "ntile", - "null", - "nullif", - "numeric", - "octet_length", - "occurrences_regex", - "of", - "offset", - "old", - "omit", - "on", - "one", - "only", - "open", - "or", - "order", - "out", - "outer", - "over", - "overlaps", - "overlay", - "parameter", - "partition", - "pattern", - "per", - "percent", - "percent_rank", - "percentile_cont", - "percentile_disc", - "period", - "portion", - "position", - "position_regex", - "power", - "precedes", - "precision", - "prepare", - "primary", - "procedure", - "ptf", - "range", - "rank", - "reads", - "real", - "recursive", - "ref", - "references", - "referencing", - "regr_avgx", - "regr_avgy", - "regr_count", - "regr_intercept", - "regr_r2", - "regr_slope", - "regr_sxx", - "regr_sxy", - "regr_syy", - "release", - "result", - "return", - "returns", - "revoke", - "right", - "rollback", - "rollup", - "row", - "row_number", - "rows", - "running", - "savepoint", - "scope", - "scroll", - "search", - "second", - "seek", - "select", - "sensitive", - "session_user", - "set", - "show", - "similar", - "sin", - "sinh", - "skip", - "smallint", - "some", - "specific", - "specifictype", - "sql", - "sqlexception", - "sqlstate", - "sqlwarning", - "sqrt", - "start", - "static", - "stddev_pop", - "stddev_samp", - "submultiset", - "subset", - "substring", - "substring_regex", - "succeeds", - "sum", - "symmetric", - "system", - "system_time", - "system_user", - "table", - "tablesample", - "tan", - "tanh", - "then", - "time", - "timestamp", - "timezone_hour", - "timezone_minute", - "to", - "trailing", - "translate", - "translate_regex", - "translation", - "treat", - "trigger", - "trim", - "trim_array", - "true", - "truncate", - "uescape", - "union", - "unique", - "unknown", - "unnest", - "update", - "upper", - "user", - "using", - "value", - "values", - "value_of", - "var_pop", - "var_samp", - "varbinary", - "varchar", - "varying", - "versioning", - "when", - "whenever", - "where", - "width_bucket", - "window", - "with", - "within", - "without", - "year", - ]; - - // these are reserved words we have identified to be functions - // and should only be highlighted in a dispatch-like context - // ie, array_agg(...), etc. - const RESERVED_FUNCTIONS = [ - "abs", - "acos", - "array_agg", - "asin", - "atan", - "avg", - "cast", - "ceil", - "ceiling", - "coalesce", - "corr", - "cos", - "cosh", - "count", - "covar_pop", - "covar_samp", - "cume_dist", - "dense_rank", - "deref", - "element", - "exp", - "extract", - "first_value", - "floor", - "json_array", - "json_arrayagg", - "json_exists", - "json_object", - "json_objectagg", - "json_query", - "json_table", - "json_table_primitive", - "json_value", - "lag", - "last_value", - "lead", - "listagg", - "ln", - "log", - "log10", - "lower", - "max", - "min", - "mod", - "nth_value", - "ntile", - "nullif", - "percent_rank", - "percentile_cont", - "percentile_disc", - "position", - "position_regex", - "power", - "rank", - "regr_avgx", - "regr_avgy", - "regr_count", - "regr_intercept", - "regr_r2", - "regr_slope", - "regr_sxx", - "regr_sxy", - "regr_syy", - "row_number", - "sin", - "sinh", - "sqrt", - "stddev_pop", - "stddev_samp", - "substring", - "substring_regex", - "sum", - "tan", - "tanh", - "translate", - "translate_regex", - "treat", - "trim", - "trim_array", - "unnest", - "upper", - "value_of", - "var_pop", - "var_samp", - "width_bucket", - ]; - - // these functions can - const POSSIBLE_WITHOUT_PARENS = [ - "current_catalog", - "current_date", - "current_default_transform_group", - "current_path", - "current_role", - "current_schema", - "current_transform_group_for_type", - "current_user", - "session_user", - "system_time", - "system_user", - "current_time", - "localtime", - "current_timestamp", - "localtimestamp" - ]; - - // those exist to boost relevance making these very - // "SQL like" keyword combos worth +1 extra relevance - const COMBOS = [ - "create table", - "insert into", - "primary key", - "foreign key", - "not null", - "alter table", - "add constraint", - "grouping sets", - "on overflow", - "character set", - "respect nulls", - "ignore nulls", - "nulls first", - "nulls last", - "depth first", - "breadth first" - ]; - - const FUNCTIONS = RESERVED_FUNCTIONS; - - const KEYWORDS = [ - ...RESERVED_WORDS, - ...NON_RESERVED_WORDS - ].filter((keyword) => { - return !RESERVED_FUNCTIONS.includes(keyword); - }); - - const VARIABLE = { - scope: "variable", - match: /@[a-z0-9][a-z0-9_]*/, - }; - - const OPERATOR = { - scope: "operator", - match: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/, - relevance: 0, - }; - - const FUNCTION_CALL = { - match: regex.concat(/\b/, regex.either(...FUNCTIONS), /\s*\(/), - relevance: 0, - keywords: { built_in: FUNCTIONS } - }; - - // turns a multi-word keyword combo into a regex that doesn't - // care about extra whitespace etc. - // input: "START QUERY" - // output: /\bSTART\s+QUERY\b/ - function kws_to_regex(list) { - return regex.concat( - /\b/, - regex.either(...list.map((kw) => { - return kw.replace(/\s+/, "\\s+") - })), - /\b/ - ) - } - - const MULTI_WORD_KEYWORDS = { - scope: "keyword", - match: kws_to_regex(COMBOS), - relevance: 0, - }; - - // keywords with less than 3 letters are reduced in relevancy - function reduceRelevancy(list, { - exceptions, when - } = {}) { - const qualifyFn = when; - exceptions = exceptions || []; - return list.map((item) => { - if (item.match(/\|\d+$/) || exceptions.includes(item)) { - return item; - } else if (qualifyFn(item)) { - return `${item}|0`; - } else { - return item; - } - }); - } - - return { - name: 'SQL', - case_insensitive: true, - // does not include {} or HTML tags ` x.length < 3 }), - literal: LITERALS, - type: TYPES, - built_in: POSSIBLE_WITHOUT_PARENS - }, - contains: [ - { - scope: "type", - match: kws_to_regex(MULTI_WORD_TYPES) - }, - MULTI_WORD_KEYWORDS, - FUNCTION_CALL, - VARIABLE, - STRING, - QUOTED_IDENTIFIER, - hljs.C_NUMBER_MODE, - hljs.C_BLOCK_COMMENT_MODE, - COMMENT_MODE, - OPERATOR - ] - }; -} - -export { sql as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js.js deleted file mode 100644 index 4ca6964..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/sql" instead of "highlight.js/lib/languages/sql.js"' - ); - } - } - emitWarning(); - import lang from './sql.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stan.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stan.js deleted file mode 100644 index e04d411..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stan.js +++ /dev/null @@ -1,521 +0,0 @@ -/* -Language: Stan -Description: The Stan probabilistic programming language -Author: Sean Pinkney -Website: http://mc-stan.org/ -Category: scientific -*/ - -function stan(hljs) { - const regex = hljs.regex; - // variable names cannot conflict with block identifiers - const BLOCKS = [ - 'functions', - 'model', - 'data', - 'parameters', - 'quantities', - 'transformed', - 'generated' - ]; - - const STATEMENTS = [ - 'for', - 'in', - 'if', - 'else', - 'while', - 'break', - 'continue', - 'return' - ]; - - const TYPES = [ - 'array', - 'tuple', - 'complex', - 'int', - 'real', - 'vector', - 'complex_vector', - 'ordered', - 'positive_ordered', - 'simplex', - 'unit_vector', - 'row_vector', - 'complex_row_vector', - 'matrix', - 'complex_matrix', - 'cholesky_factor_corr|10', - 'cholesky_factor_cov|10', - 'corr_matrix|10', - 'cov_matrix|10', - 'void' - ]; - - // to get the functions list - // clone the [stan-docs repo](https://github.com/stan-dev/docs) - // then cd into it and run this bash script https://gist.github.com/joshgoebel/dcd33f82d4059a907c986049893843cf - // - // the output files are - // distributions_quoted.txt - // functions_quoted.txt - - const FUNCTIONS = [ - 'abs', - 'acos', - 'acosh', - 'add_diag', - 'algebra_solver', - 'algebra_solver_newton', - 'append_array', - 'append_col', - 'append_row', - 'asin', - 'asinh', - 'atan', - 'atan2', - 'atanh', - 'bessel_first_kind', - 'bessel_second_kind', - 'binary_log_loss', - 'block', - 'cbrt', - 'ceil', - 'chol2inv', - 'cholesky_decompose', - 'choose', - 'col', - 'cols', - 'columns_dot_product', - 'columns_dot_self', - 'complex_schur_decompose', - 'complex_schur_decompose_t', - 'complex_schur_decompose_u', - 'conj', - 'cos', - 'cosh', - 'cov_exp_quad', - 'crossprod', - 'csr_extract', - 'csr_extract_u', - 'csr_extract_v', - 'csr_extract_w', - 'csr_matrix_times_vector', - 'csr_to_dense_matrix', - 'cumulative_sum', - 'dae', - 'dae_tol', - 'determinant', - 'diag_matrix', - 'diagonal', - 'diag_post_multiply', - 'diag_pre_multiply', - 'digamma', - 'dims', - 'distance', - 'dot_product', - 'dot_self', - 'eigendecompose', - 'eigendecompose_sym', - 'eigenvalues', - 'eigenvalues_sym', - 'eigenvectors', - 'eigenvectors_sym', - 'erf', - 'erfc', - 'exp', - 'exp2', - 'expm1', - 'falling_factorial', - 'fdim', - 'fft', - 'fft2', - 'floor', - 'fma', - 'fmax', - 'fmin', - 'fmod', - 'gamma_p', - 'gamma_q', - 'generalized_inverse', - 'get_imag', - 'get_real', - 'head', - 'hmm_hidden_state_prob', - 'hmm_marginal', - 'hypot', - 'identity_matrix', - 'inc_beta', - 'integrate_1d', - 'integrate_ode', - 'integrate_ode_adams', - 'integrate_ode_bdf', - 'integrate_ode_rk45', - 'int_step', - 'inv', - 'inv_cloglog', - 'inv_erfc', - 'inverse', - 'inverse_spd', - 'inv_fft', - 'inv_fft2', - 'inv_inc_beta', - 'inv_logit', - 'inv_Phi', - 'inv_sqrt', - 'inv_square', - 'is_inf', - 'is_nan', - 'lambert_w0', - 'lambert_wm1', - 'lbeta', - 'lchoose', - 'ldexp', - 'lgamma', - 'linspaced_array', - 'linspaced_int_array', - 'linspaced_row_vector', - 'linspaced_vector', - 'lmgamma', - 'lmultiply', - 'log', - 'log1m', - 'log1m_exp', - 'log1m_inv_logit', - 'log1p', - 'log1p_exp', - 'log_determinant', - 'log_diff_exp', - 'log_falling_factorial', - 'log_inv_logit', - 'log_inv_logit_diff', - 'logit', - 'log_mix', - 'log_modified_bessel_first_kind', - 'log_rising_factorial', - 'log_softmax', - 'log_sum_exp', - 'machine_precision', - 'map_rect', - 'matrix_exp', - 'matrix_exp_multiply', - 'matrix_power', - 'max', - 'mdivide_left_spd', - 'mdivide_left_tri_low', - 'mdivide_right_spd', - 'mdivide_right_tri_low', - 'mean', - 'min', - 'modified_bessel_first_kind', - 'modified_bessel_second_kind', - 'multiply_lower_tri_self_transpose', - 'negative_infinity', - 'norm', - 'norm1', - 'norm2', - 'not_a_number', - 'num_elements', - 'ode_adams', - 'ode_adams_tol', - 'ode_adjoint_tol_ctl', - 'ode_bdf', - 'ode_bdf_tol', - 'ode_ckrk', - 'ode_ckrk_tol', - 'ode_rk45', - 'ode_rk45_tol', - 'one_hot_array', - 'one_hot_int_array', - 'one_hot_row_vector', - 'one_hot_vector', - 'ones_array', - 'ones_int_array', - 'ones_row_vector', - 'ones_vector', - 'owens_t', - 'Phi', - 'Phi_approx', - 'polar', - 'positive_infinity', - 'pow', - 'print', - 'prod', - 'proj', - 'qr', - 'qr_Q', - 'qr_R', - 'qr_thin', - 'qr_thin_Q', - 'qr_thin_R', - 'quad_form', - 'quad_form_diag', - 'quad_form_sym', - 'quantile', - 'rank', - 'reduce_sum', - 'reject', - 'rep_array', - 'rep_matrix', - 'rep_row_vector', - 'rep_vector', - 'reverse', - 'rising_factorial', - 'round', - 'row', - 'rows', - 'rows_dot_product', - 'rows_dot_self', - 'scale_matrix_exp_multiply', - 'sd', - 'segment', - 'sin', - 'singular_values', - 'sinh', - 'size', - 'softmax', - 'sort_asc', - 'sort_desc', - 'sort_indices_asc', - 'sort_indices_desc', - 'sqrt', - 'square', - 'squared_distance', - 'step', - 'sub_col', - 'sub_row', - 'sum', - 'svd', - 'svd_U', - 'svd_V', - 'symmetrize_from_lower_tri', - 'tail', - 'tan', - 'tanh', - 'target', - 'tcrossprod', - 'tgamma', - 'to_array_1d', - 'to_array_2d', - 'to_complex', - 'to_int', - 'to_matrix', - 'to_row_vector', - 'to_vector', - 'trace', - 'trace_gen_quad_form', - 'trace_quad_form', - 'trigamma', - 'trunc', - 'uniform_simplex', - 'variance', - 'zeros_array', - 'zeros_int_array', - 'zeros_row_vector' - ]; - - const DISTRIBUTIONS = [ - 'bernoulli', - 'bernoulli_logit', - 'bernoulli_logit_glm', - 'beta', - 'beta_binomial', - 'beta_proportion', - 'binomial', - 'binomial_logit', - 'categorical', - 'categorical_logit', - 'categorical_logit_glm', - 'cauchy', - 'chi_square', - 'dirichlet', - 'discrete_range', - 'double_exponential', - 'exp_mod_normal', - 'exponential', - 'frechet', - 'gamma', - 'gaussian_dlm_obs', - 'gumbel', - 'hmm_latent', - 'hypergeometric', - 'inv_chi_square', - 'inv_gamma', - 'inv_wishart', - 'inv_wishart_cholesky', - 'lkj_corr', - 'lkj_corr_cholesky', - 'logistic', - 'loglogistic', - 'lognormal', - 'multi_gp', - 'multi_gp_cholesky', - 'multinomial', - 'multinomial_logit', - 'multi_normal', - 'multi_normal_cholesky', - 'multi_normal_prec', - 'multi_student_cholesky_t', - 'multi_student_t', - 'multi_student_t_cholesky', - 'neg_binomial', - 'neg_binomial_2', - 'neg_binomial_2_log', - 'neg_binomial_2_log_glm', - 'normal', - 'normal_id_glm', - 'ordered_logistic', - 'ordered_logistic_glm', - 'ordered_probit', - 'pareto', - 'pareto_type_2', - 'poisson', - 'poisson_log', - 'poisson_log_glm', - 'rayleigh', - 'scaled_inv_chi_square', - 'skew_double_exponential', - 'skew_normal', - 'std_normal', - 'std_normal_log', - 'student_t', - 'uniform', - 'von_mises', - 'weibull', - 'wiener', - 'wishart', - 'wishart_cholesky' - ]; - - const BLOCK_COMMENT = hljs.COMMENT( - /\/\*/, - /\*\//, - { - relevance: 0, - contains: [ - { - scope: 'doctag', - match: /@(return|param)/ - } - ] - } - ); - - const INCLUDE = { - scope: 'meta', - begin: /#include\b/, - end: /$/, - contains: [ - { - match: /[a-z][a-z-._]+/, - scope: 'string' - }, - hljs.C_LINE_COMMENT_MODE - ] - }; - - const RANGE_CONSTRAINTS = [ - "lower", - "upper", - "offset", - "multiplier" - ]; - - return { - name: 'Stan', - aliases: [ 'stanfuncs' ], - keywords: { - $pattern: hljs.IDENT_RE, - title: BLOCKS, - type: TYPES, - keyword: STATEMENTS, - built_in: FUNCTIONS - }, - contains: [ - hljs.C_LINE_COMMENT_MODE, - INCLUDE, - hljs.HASH_COMMENT_MODE, - BLOCK_COMMENT, - { - scope: 'built_in', - match: /\s(pi|e|sqrt2|log2|log10)(?=\()/, - relevance: 0 - }, - { - match: regex.concat(/[<,]\s*/, regex.either(...RANGE_CONSTRAINTS), /\s*=/), - keywords: RANGE_CONSTRAINTS - }, - { - scope: 'keyword', - match: /\btarget(?=\s*\+=)/, - }, - { - // highlights the 'T' in T[,] for only Stan language distributrions - match: [ - /~\s*/, - regex.either(...DISTRIBUTIONS), - /(?:\(\))/, - /\s*T(?=\s*\[)/ - ], - scope: { - 2: "built_in", - 4: "keyword" - } - }, - { - // highlights distributions that end with special endings - scope: 'built_in', - keywords: DISTRIBUTIONS, - begin: regex.concat(/\w*/, regex.either(...DISTRIBUTIONS), /(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/) - }, - { - // highlights distributions after ~ - begin: [ - /~/, - /\s*/, - regex.concat(regex.either(...DISTRIBUTIONS), /(?=\s*[\(.*\)])/) - ], - scope: { 3: "built_in" } - }, - { - // highlights user defined distributions after ~ - begin: [ - /~/, - /\s*\w+(?=\s*[\(.*\)])/, - '(?!.*/\b(' + regex.either(...DISTRIBUTIONS) + ')\b)' - ], - scope: { 2: "title.function" } - }, - { - // highlights user defined distributions with special endings - scope: 'title.function', - begin: /\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/ - }, - { - scope: 'number', - match: regex.concat( - // Comes from @RunDevelopment accessed 11/29/2021 at - // https://github.com/PrismJS/prism/blob/c53ad2e65b7193ab4f03a1797506a54bbb33d5a2/components/prism-stan.js#L56 - - // start of big noncapture group which - // 1. gets numbers that are by themselves - // 2. numbers that are separated by _ - // 3. numbers that are separted by . - /(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/, - // grabs scientific notation - // grabs complex numbers with i - /(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/ - ), - relevance: 0 - }, - { - scope: 'string', - begin: /"/, - end: /"/ - } - ] - }; -} - -export { stan as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stan.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stan.js.js deleted file mode 100644 index eba6eca..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stan.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/stan" instead of "highlight.js/lib/languages/stan.js"' - ); - } - } - emitWarning(); - import lang from './stan.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stata.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stata.js deleted file mode 100644 index 1bf06b3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stata.js +++ /dev/null @@ -1,53 +0,0 @@ -/* -Language: Stata -Author: Brian Quistorff -Contributors: Drew McDonald -Description: Stata is a general-purpose statistical software package created in 1985 by StataCorp. -Website: https://en.wikipedia.org/wiki/Stata -Category: scientific -*/ - -/* - This is a fork and modification of Drew McDonald's file (https://github.com/drewmcdonald/stata-highlighting). I have also included a list of builtin commands from https://bugs.kde.org/show_bug.cgi?id=135646. -*/ - -function stata(hljs) { - return { - name: 'Stata', - aliases: [ - 'do', - 'ado' - ], - case_insensitive: true, - keywords: 'if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5', - contains: [ - { - className: 'symbol', - begin: /`[a-zA-Z0-9_]+'/ - }, - { - className: 'variable', - begin: /\$\{?[a-zA-Z0-9_]+\}?/, - relevance: 0 - }, - { - className: 'string', - variants: [ - { begin: '`"[^\r\n]*?"\'' }, - { begin: '"[^\r\n"]*"' } - ] - }, - - { - className: 'built_in', - variants: [ { begin: '\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()' } ] - }, - - hljs.COMMENT('^[ \t]*\\*.*$', false), - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE - ] - }; -} - -export { stata as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stata.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stata.js.js deleted file mode 100644 index 6feb110..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stata.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/stata" instead of "highlight.js/lib/languages/stata.js"' - ); - } - } - emitWarning(); - import lang from './stata.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/step21.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/step21.js deleted file mode 100644 index ace2e93..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/step21.js +++ /dev/null @@ -1,67 +0,0 @@ -/* -Language: STEP Part 21 -Contributors: Adam Joseph Cook -Description: Syntax highlighter for STEP Part 21 files (ISO 10303-21). -Website: https://en.wikipedia.org/wiki/ISO_10303-21 -Category: syntax -*/ - -function step21(hljs) { - const STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*'; - const STEP21_KEYWORDS = { - $pattern: STEP21_IDENT_RE, - keyword: [ - "HEADER", - "ENDSEC", - "DATA" - ] - }; - const STEP21_START = { - className: 'meta', - begin: 'ISO-10303-21;', - relevance: 10 - }; - const STEP21_CLOSE = { - className: 'meta', - begin: 'END-ISO-10303-21;', - relevance: 10 - }; - - return { - name: 'STEP Part 21', - aliases: [ - 'p21', - 'step', - 'stp' - ], - case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized. - keywords: STEP21_KEYWORDS, - contains: [ - STEP21_START, - STEP21_CLOSE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - hljs.COMMENT('/\\*\\*!', '\\*/'), - hljs.C_NUMBER_MODE, - hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null }), - hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }), - { - className: 'string', - begin: "'", - end: "'" - }, - { - className: 'symbol', - variants: [ - { - begin: '#', - end: '\\d+', - illegal: '\\W' - } - ] - } - ] - }; -} - -export { step21 as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/step21.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/step21.js.js deleted file mode 100644 index c6cd327..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/step21.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/step21" instead of "highlight.js/lib/languages/step21.js"' - ); - } - } - emitWarning(); - import lang from './step21.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.js deleted file mode 100644 index bd3f799..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.js +++ /dev/null @@ -1,999 +0,0 @@ -const MODES = (hljs) => { - return { - IMPORTANT: { - scope: 'meta', - begin: '!important' - }, - BLOCK_COMMENT: hljs.C_BLOCK_COMMENT_MODE, - HEXCOLOR: { - scope: 'number', - begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/ - }, - FUNCTION_DISPATCH: { - className: "built_in", - begin: /[\w-]+(?=\()/ - }, - ATTRIBUTE_SELECTOR_MODE: { - scope: 'selector-attr', - begin: /\[/, - end: /\]/, - illegal: '$', - contains: [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE - ] - }, - CSS_NUMBER_MODE: { - scope: 'number', - begin: hljs.NUMBER_RE + '(' + - '%|em|ex|ch|rem' + - '|vw|vh|vmin|vmax' + - '|cm|mm|in|pt|pc|px' + - '|deg|grad|rad|turn' + - '|s|ms' + - '|Hz|kHz' + - '|dpi|dpcm|dppx' + - ')?', - relevance: 0 - }, - CSS_VARIABLE: { - className: "attr", - begin: /--[A-Za-z_][A-Za-z0-9_-]*/ - } - }; -}; - -const HTML_TAGS = [ - 'a', - 'abbr', - 'address', - 'article', - 'aside', - 'audio', - 'b', - 'blockquote', - 'body', - 'button', - 'canvas', - 'caption', - 'cite', - 'code', - 'dd', - 'del', - 'details', - 'dfn', - 'div', - 'dl', - 'dt', - 'em', - 'fieldset', - 'figcaption', - 'figure', - 'footer', - 'form', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'header', - 'hgroup', - 'html', - 'i', - 'iframe', - 'img', - 'input', - 'ins', - 'kbd', - 'label', - 'legend', - 'li', - 'main', - 'mark', - 'menu', - 'nav', - 'object', - 'ol', - 'optgroup', - 'option', - 'p', - 'picture', - 'q', - 'quote', - 'samp', - 'section', - 'select', - 'source', - 'span', - 'strong', - 'summary', - 'sup', - 'table', - 'tbody', - 'td', - 'textarea', - 'tfoot', - 'th', - 'thead', - 'time', - 'tr', - 'ul', - 'var', - 'video' -]; - -const SVG_TAGS = [ - 'defs', - 'g', - 'marker', - 'mask', - 'pattern', - 'svg', - 'switch', - 'symbol', - 'feBlend', - 'feColorMatrix', - 'feComponentTransfer', - 'feComposite', - 'feConvolveMatrix', - 'feDiffuseLighting', - 'feDisplacementMap', - 'feFlood', - 'feGaussianBlur', - 'feImage', - 'feMerge', - 'feMorphology', - 'feOffset', - 'feSpecularLighting', - 'feTile', - 'feTurbulence', - 'linearGradient', - 'radialGradient', - 'stop', - 'circle', - 'ellipse', - 'image', - 'line', - 'path', - 'polygon', - 'polyline', - 'rect', - 'text', - 'use', - 'textPath', - 'tspan', - 'foreignObject', - 'clipPath' -]; - -const TAGS = [ - ...HTML_TAGS, - ...SVG_TAGS, -]; - -// Sorting, then reversing makes sure longer attributes/elements like -// `font-weight` are matched fully instead of getting false positives on say `font` - -const MEDIA_FEATURES = [ - 'any-hover', - 'any-pointer', - 'aspect-ratio', - 'color', - 'color-gamut', - 'color-index', - 'device-aspect-ratio', - 'device-height', - 'device-width', - 'display-mode', - 'forced-colors', - 'grid', - 'height', - 'hover', - 'inverted-colors', - 'monochrome', - 'orientation', - 'overflow-block', - 'overflow-inline', - 'pointer', - 'prefers-color-scheme', - 'prefers-contrast', - 'prefers-reduced-motion', - 'prefers-reduced-transparency', - 'resolution', - 'scan', - 'scripting', - 'update', - 'width', - // TODO: find a better solution? - 'min-width', - 'max-width', - 'min-height', - 'max-height' -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes -const PSEUDO_CLASSES = [ - 'active', - 'any-link', - 'blank', - 'checked', - 'current', - 'default', - 'defined', - 'dir', // dir() - 'disabled', - 'drop', - 'empty', - 'enabled', - 'first', - 'first-child', - 'first-of-type', - 'fullscreen', - 'future', - 'focus', - 'focus-visible', - 'focus-within', - 'has', // has() - 'host', // host or host() - 'host-context', // host-context() - 'hover', - 'indeterminate', - 'in-range', - 'invalid', - 'is', // is() - 'lang', // lang() - 'last-child', - 'last-of-type', - 'left', - 'link', - 'local-link', - 'not', // not() - 'nth-child', // nth-child() - 'nth-col', // nth-col() - 'nth-last-child', // nth-last-child() - 'nth-last-col', // nth-last-col() - 'nth-last-of-type', //nth-last-of-type() - 'nth-of-type', //nth-of-type() - 'only-child', - 'only-of-type', - 'optional', - 'out-of-range', - 'past', - 'placeholder-shown', - 'read-only', - 'read-write', - 'required', - 'right', - 'root', - 'scope', - 'target', - 'target-within', - 'user-invalid', - 'valid', - 'visited', - 'where' // where() -].sort().reverse(); - -// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements -const PSEUDO_ELEMENTS = [ - 'after', - 'backdrop', - 'before', - 'cue', - 'cue-region', - 'first-letter', - 'first-line', - 'grammar-error', - 'marker', - 'part', - 'placeholder', - 'selection', - 'slotted', - 'spelling-error' -].sort().reverse(); - -const ATTRIBUTES = [ - 'accent-color', - 'align-content', - 'align-items', - 'align-self', - 'alignment-baseline', - 'all', - 'anchor-name', - 'animation', - 'animation-composition', - 'animation-delay', - 'animation-direction', - 'animation-duration', - 'animation-fill-mode', - 'animation-iteration-count', - 'animation-name', - 'animation-play-state', - 'animation-range', - 'animation-range-end', - 'animation-range-start', - 'animation-timeline', - 'animation-timing-function', - 'appearance', - 'aspect-ratio', - 'backdrop-filter', - 'backface-visibility', - 'background', - 'background-attachment', - 'background-blend-mode', - 'background-clip', - 'background-color', - 'background-image', - 'background-origin', - 'background-position', - 'background-position-x', - 'background-position-y', - 'background-repeat', - 'background-size', - 'baseline-shift', - 'block-size', - 'border', - 'border-block', - 'border-block-color', - 'border-block-end', - 'border-block-end-color', - 'border-block-end-style', - 'border-block-end-width', - 'border-block-start', - 'border-block-start-color', - 'border-block-start-style', - 'border-block-start-width', - 'border-block-style', - 'border-block-width', - 'border-bottom', - 'border-bottom-color', - 'border-bottom-left-radius', - 'border-bottom-right-radius', - 'border-bottom-style', - 'border-bottom-width', - 'border-collapse', - 'border-color', - 'border-end-end-radius', - 'border-end-start-radius', - 'border-image', - 'border-image-outset', - 'border-image-repeat', - 'border-image-slice', - 'border-image-source', - 'border-image-width', - 'border-inline', - 'border-inline-color', - 'border-inline-end', - 'border-inline-end-color', - 'border-inline-end-style', - 'border-inline-end-width', - 'border-inline-start', - 'border-inline-start-color', - 'border-inline-start-style', - 'border-inline-start-width', - 'border-inline-style', - 'border-inline-width', - 'border-left', - 'border-left-color', - 'border-left-style', - 'border-left-width', - 'border-radius', - 'border-right', - 'border-right-color', - 'border-right-style', - 'border-right-width', - 'border-spacing', - 'border-start-end-radius', - 'border-start-start-radius', - 'border-style', - 'border-top', - 'border-top-color', - 'border-top-left-radius', - 'border-top-right-radius', - 'border-top-style', - 'border-top-width', - 'border-width', - 'bottom', - 'box-align', - 'box-decoration-break', - 'box-direction', - 'box-flex', - 'box-flex-group', - 'box-lines', - 'box-ordinal-group', - 'box-orient', - 'box-pack', - 'box-shadow', - 'box-sizing', - 'break-after', - 'break-before', - 'break-inside', - 'caption-side', - 'caret-color', - 'clear', - 'clip', - 'clip-path', - 'clip-rule', - 'color', - 'color-interpolation', - 'color-interpolation-filters', - 'color-profile', - 'color-rendering', - 'color-scheme', - 'column-count', - 'column-fill', - 'column-gap', - 'column-rule', - 'column-rule-color', - 'column-rule-style', - 'column-rule-width', - 'column-span', - 'column-width', - 'columns', - 'contain', - 'contain-intrinsic-block-size', - 'contain-intrinsic-height', - 'contain-intrinsic-inline-size', - 'contain-intrinsic-size', - 'contain-intrinsic-width', - 'container', - 'container-name', - 'container-type', - 'content', - 'content-visibility', - 'counter-increment', - 'counter-reset', - 'counter-set', - 'cue', - 'cue-after', - 'cue-before', - 'cursor', - 'cx', - 'cy', - 'direction', - 'display', - 'dominant-baseline', - 'empty-cells', - 'enable-background', - 'field-sizing', - 'fill', - 'fill-opacity', - 'fill-rule', - 'filter', - 'flex', - 'flex-basis', - 'flex-direction', - 'flex-flow', - 'flex-grow', - 'flex-shrink', - 'flex-wrap', - 'float', - 'flood-color', - 'flood-opacity', - 'flow', - 'font', - 'font-display', - 'font-family', - 'font-feature-settings', - 'font-kerning', - 'font-language-override', - 'font-optical-sizing', - 'font-palette', - 'font-size', - 'font-size-adjust', - 'font-smooth', - 'font-smoothing', - 'font-stretch', - 'font-style', - 'font-synthesis', - 'font-synthesis-position', - 'font-synthesis-small-caps', - 'font-synthesis-style', - 'font-synthesis-weight', - 'font-variant', - 'font-variant-alternates', - 'font-variant-caps', - 'font-variant-east-asian', - 'font-variant-emoji', - 'font-variant-ligatures', - 'font-variant-numeric', - 'font-variant-position', - 'font-variation-settings', - 'font-weight', - 'forced-color-adjust', - 'gap', - 'glyph-orientation-horizontal', - 'glyph-orientation-vertical', - 'grid', - 'grid-area', - 'grid-auto-columns', - 'grid-auto-flow', - 'grid-auto-rows', - 'grid-column', - 'grid-column-end', - 'grid-column-start', - 'grid-gap', - 'grid-row', - 'grid-row-end', - 'grid-row-start', - 'grid-template', - 'grid-template-areas', - 'grid-template-columns', - 'grid-template-rows', - 'hanging-punctuation', - 'height', - 'hyphenate-character', - 'hyphenate-limit-chars', - 'hyphens', - 'icon', - 'image-orientation', - 'image-rendering', - 'image-resolution', - 'ime-mode', - 'initial-letter', - 'initial-letter-align', - 'inline-size', - 'inset', - 'inset-area', - 'inset-block', - 'inset-block-end', - 'inset-block-start', - 'inset-inline', - 'inset-inline-end', - 'inset-inline-start', - 'isolation', - 'justify-content', - 'justify-items', - 'justify-self', - 'kerning', - 'left', - 'letter-spacing', - 'lighting-color', - 'line-break', - 'line-height', - 'line-height-step', - 'list-style', - 'list-style-image', - 'list-style-position', - 'list-style-type', - 'margin', - 'margin-block', - 'margin-block-end', - 'margin-block-start', - 'margin-bottom', - 'margin-inline', - 'margin-inline-end', - 'margin-inline-start', - 'margin-left', - 'margin-right', - 'margin-top', - 'margin-trim', - 'marker', - 'marker-end', - 'marker-mid', - 'marker-start', - 'marks', - 'mask', - 'mask-border', - 'mask-border-mode', - 'mask-border-outset', - 'mask-border-repeat', - 'mask-border-slice', - 'mask-border-source', - 'mask-border-width', - 'mask-clip', - 'mask-composite', - 'mask-image', - 'mask-mode', - 'mask-origin', - 'mask-position', - 'mask-repeat', - 'mask-size', - 'mask-type', - 'masonry-auto-flow', - 'math-depth', - 'math-shift', - 'math-style', - 'max-block-size', - 'max-height', - 'max-inline-size', - 'max-width', - 'min-block-size', - 'min-height', - 'min-inline-size', - 'min-width', - 'mix-blend-mode', - 'nav-down', - 'nav-index', - 'nav-left', - 'nav-right', - 'nav-up', - 'none', - 'normal', - 'object-fit', - 'object-position', - 'offset', - 'offset-anchor', - 'offset-distance', - 'offset-path', - 'offset-position', - 'offset-rotate', - 'opacity', - 'order', - 'orphans', - 'outline', - 'outline-color', - 'outline-offset', - 'outline-style', - 'outline-width', - 'overflow', - 'overflow-anchor', - 'overflow-block', - 'overflow-clip-margin', - 'overflow-inline', - 'overflow-wrap', - 'overflow-x', - 'overflow-y', - 'overlay', - 'overscroll-behavior', - 'overscroll-behavior-block', - 'overscroll-behavior-inline', - 'overscroll-behavior-x', - 'overscroll-behavior-y', - 'padding', - 'padding-block', - 'padding-block-end', - 'padding-block-start', - 'padding-bottom', - 'padding-inline', - 'padding-inline-end', - 'padding-inline-start', - 'padding-left', - 'padding-right', - 'padding-top', - 'page', - 'page-break-after', - 'page-break-before', - 'page-break-inside', - 'paint-order', - 'pause', - 'pause-after', - 'pause-before', - 'perspective', - 'perspective-origin', - 'place-content', - 'place-items', - 'place-self', - 'pointer-events', - 'position', - 'position-anchor', - 'position-visibility', - 'print-color-adjust', - 'quotes', - 'r', - 'resize', - 'rest', - 'rest-after', - 'rest-before', - 'right', - 'rotate', - 'row-gap', - 'ruby-align', - 'ruby-position', - 'scale', - 'scroll-behavior', - 'scroll-margin', - 'scroll-margin-block', - 'scroll-margin-block-end', - 'scroll-margin-block-start', - 'scroll-margin-bottom', - 'scroll-margin-inline', - 'scroll-margin-inline-end', - 'scroll-margin-inline-start', - 'scroll-margin-left', - 'scroll-margin-right', - 'scroll-margin-top', - 'scroll-padding', - 'scroll-padding-block', - 'scroll-padding-block-end', - 'scroll-padding-block-start', - 'scroll-padding-bottom', - 'scroll-padding-inline', - 'scroll-padding-inline-end', - 'scroll-padding-inline-start', - 'scroll-padding-left', - 'scroll-padding-right', - 'scroll-padding-top', - 'scroll-snap-align', - 'scroll-snap-stop', - 'scroll-snap-type', - 'scroll-timeline', - 'scroll-timeline-axis', - 'scroll-timeline-name', - 'scrollbar-color', - 'scrollbar-gutter', - 'scrollbar-width', - 'shape-image-threshold', - 'shape-margin', - 'shape-outside', - 'shape-rendering', - 'speak', - 'speak-as', - 'src', // @font-face - 'stop-color', - 'stop-opacity', - 'stroke', - 'stroke-dasharray', - 'stroke-dashoffset', - 'stroke-linecap', - 'stroke-linejoin', - 'stroke-miterlimit', - 'stroke-opacity', - 'stroke-width', - 'tab-size', - 'table-layout', - 'text-align', - 'text-align-all', - 'text-align-last', - 'text-anchor', - 'text-combine-upright', - 'text-decoration', - 'text-decoration-color', - 'text-decoration-line', - 'text-decoration-skip', - 'text-decoration-skip-ink', - 'text-decoration-style', - 'text-decoration-thickness', - 'text-emphasis', - 'text-emphasis-color', - 'text-emphasis-position', - 'text-emphasis-style', - 'text-indent', - 'text-justify', - 'text-orientation', - 'text-overflow', - 'text-rendering', - 'text-shadow', - 'text-size-adjust', - 'text-transform', - 'text-underline-offset', - 'text-underline-position', - 'text-wrap', - 'text-wrap-mode', - 'text-wrap-style', - 'timeline-scope', - 'top', - 'touch-action', - 'transform', - 'transform-box', - 'transform-origin', - 'transform-style', - 'transition', - 'transition-behavior', - 'transition-delay', - 'transition-duration', - 'transition-property', - 'transition-timing-function', - 'translate', - 'unicode-bidi', - 'user-modify', - 'user-select', - 'vector-effect', - 'vertical-align', - 'view-timeline', - 'view-timeline-axis', - 'view-timeline-inset', - 'view-timeline-name', - 'view-transition-name', - 'visibility', - 'voice-balance', - 'voice-duration', - 'voice-family', - 'voice-pitch', - 'voice-range', - 'voice-rate', - 'voice-stress', - 'voice-volume', - 'white-space', - 'white-space-collapse', - 'widows', - 'width', - 'will-change', - 'word-break', - 'word-spacing', - 'word-wrap', - 'writing-mode', - 'x', - 'y', - 'z-index', - 'zoom' -].sort().reverse(); - -/* -Language: Stylus -Author: Bryant Williams -Description: Stylus is an expressive, robust, feature-rich CSS language built for nodejs. -Website: https://github.com/stylus/stylus -Category: css, web -*/ - - -/** @type LanguageFn */ -function stylus(hljs) { - const modes = MODES(hljs); - - const AT_MODIFIERS = "and or not only"; - const VARIABLE = { - className: 'variable', - begin: '\\$' + hljs.IDENT_RE - }; - - const AT_KEYWORDS = [ - 'charset', - 'css', - 'debug', - 'extend', - 'font-face', - 'for', - 'import', - 'include', - 'keyframes', - 'media', - 'mixin', - 'page', - 'warn', - 'while' - ]; - - const LOOKAHEAD_TAG_END = '(?=[.\\s\\n[:,(])'; - - // illegals - const ILLEGAL = [ - '\\?', - '(\\bReturn\\b)', // monkey - '(\\bEnd\\b)', // monkey - '(\\bend\\b)', // vbscript - '(\\bdef\\b)', // gradle - ';', // a whole lot of languages - '#\\s', // markdown - '\\*\\s', // markdown - '===\\s', // markdown - '\\|', - '%' // prolog - ]; - - return { - name: 'Stylus', - aliases: [ 'styl' ], - case_insensitive: false, - keywords: 'if else for in', - illegal: '(' + ILLEGAL.join('|') + ')', - contains: [ - - // strings - hljs.QUOTE_STRING_MODE, - hljs.APOS_STRING_MODE, - - // comments - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - - // hex colors - modes.HEXCOLOR, - - // class tag - { - begin: '\\.[a-zA-Z][a-zA-Z0-9_-]*' + LOOKAHEAD_TAG_END, - className: 'selector-class' - }, - - // id tag - { - begin: '#[a-zA-Z][a-zA-Z0-9_-]*' + LOOKAHEAD_TAG_END, - className: 'selector-id' - }, - - // tags - { - begin: '\\b(' + TAGS.join('|') + ')' + LOOKAHEAD_TAG_END, - className: 'selector-tag' - }, - - // psuedo selectors - { - className: 'selector-pseudo', - begin: '&?:(' + PSEUDO_CLASSES.join('|') + ')' + LOOKAHEAD_TAG_END - }, - { - className: 'selector-pseudo', - begin: '&?:(:)?(' + PSEUDO_ELEMENTS.join('|') + ')' + LOOKAHEAD_TAG_END - }, - - modes.ATTRIBUTE_SELECTOR_MODE, - - { - className: "keyword", - begin: /@media/, - starts: { - end: /[{;}]/, - keywords: { - $pattern: /[a-z-]+/, - keyword: AT_MODIFIERS, - attribute: MEDIA_FEATURES.join(" ") - }, - contains: [ modes.CSS_NUMBER_MODE ] - } - }, - - // @ keywords - { - className: 'keyword', - begin: '\@((-(o|moz|ms|webkit)-)?(' + AT_KEYWORDS.join('|') + '))\\b' - }, - - // variables - VARIABLE, - - // dimension - modes.CSS_NUMBER_MODE, - - // functions - // - only from beginning of line + whitespace - { - className: 'function', - begin: '^[a-zA-Z][a-zA-Z0-9_\-]*\\(.*\\)', - illegal: '[\\n]', - returnBegin: true, - contains: [ - { - className: 'title', - begin: '\\b[a-zA-Z][a-zA-Z0-9_\-]*' - }, - { - className: 'params', - begin: /\(/, - end: /\)/, - contains: [ - modes.HEXCOLOR, - VARIABLE, - hljs.APOS_STRING_MODE, - modes.CSS_NUMBER_MODE, - hljs.QUOTE_STRING_MODE - ] - } - ] - }, - - // css variables - modes.CSS_VARIABLE, - - // attributes - // - only from beginning of line + whitespace - // - must have whitespace after it - { - className: 'attribute', - begin: '\\b(' + ATTRIBUTES.join('|') + ')\\b', - starts: { - // value container - end: /;|$/, - contains: [ - modes.HEXCOLOR, - VARIABLE, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - modes.CSS_NUMBER_MODE, - hljs.C_BLOCK_COMMENT_MODE, - modes.IMPORTANT, - modes.FUNCTION_DISPATCH - ], - illegal: /\./, - relevance: 0 - } - }, - modes.FUNCTION_DISPATCH - ] - }; -} - -export { stylus as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.js.js deleted file mode 100644 index 7a087ed..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/stylus" instead of "highlight.js/lib/languages/stylus.js"' - ); - } - } - emitWarning(); - import lang from './stylus.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/subunit.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/subunit.js deleted file mode 100644 index eae9165..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/subunit.js +++ /dev/null @@ -1,44 +0,0 @@ -/* -Language: SubUnit -Author: Sergey Bronnikov -Website: https://pypi.org/project/python-subunit/ -Category: protocols -*/ - -function subunit(hljs) { - const DETAILS = { - className: 'string', - begin: '\\[\n(multipart)?', - end: '\\]\n' - }; - const TIME = { - className: 'string', - begin: '\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}\.\\d+Z' - }; - const PROGRESSVALUE = { - className: 'string', - begin: '(\\+|-)\\d+' - }; - const KEYWORDS = { - className: 'keyword', - relevance: 10, - variants: [ - { begin: '^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?' }, - { begin: '^progress(:?)(\\s+)?(pop|push)?' }, - { begin: '^tags:' }, - { begin: '^time:' } - ] - }; - return { - name: 'SubUnit', - case_insensitive: true, - contains: [ - DETAILS, - TIME, - PROGRESSVALUE, - KEYWORDS - ] - }; -} - -export { subunit as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/subunit.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/subunit.js.js deleted file mode 100644 index d9c15da..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/subunit.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/subunit" instead of "highlight.js/lib/languages/subunit.js"' - ); - } - } - emitWarning(); - import lang from './subunit.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js deleted file mode 100644 index c4120ac..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js +++ /dev/null @@ -1,972 +0,0 @@ -/** - * @param {string} value - * @returns {RegExp} - * */ - -/** - * @param {RegExp | string } re - * @returns {string} - */ -function source(re) { - if (!re) return null; - if (typeof re === "string") return re; - - return re.source; -} - -/** - * @param {RegExp | string } re - * @returns {string} - */ -function lookahead(re) { - return concat('(?=', re, ')'); -} - -/** - * @param {...(RegExp | string) } args - * @returns {string} - */ -function concat(...args) { - const joined = args.map((x) => source(x)).join(""); - return joined; -} - -/** - * @param { Array } args - * @returns {object} - */ -function stripOptionsFromArgs(args) { - const opts = args[args.length - 1]; - - if (typeof opts === 'object' && opts.constructor === Object) { - args.splice(args.length - 1, 1); - return opts; - } else { - return {}; - } -} - -/** @typedef { {capture?: boolean} } RegexEitherOptions */ - -/** - * Any of the passed expresssions may match - * - * Creates a huge this | this | that | that match - * @param {(RegExp | string)[] | [...(RegExp | string)[], RegexEitherOptions]} args - * @returns {string} - */ -function either(...args) { - /** @type { object & {capture?: boolean} } */ - const opts = stripOptionsFromArgs(args); - const joined = '(' - + (opts.capture ? "" : "?:") - + args.map((x) => source(x)).join("|") + ")"; - return joined; -} - -const keywordWrapper = keyword => concat( - /\b/, - keyword, - /\w$/.test(keyword) ? /\b/ : /\B/ -); - -// Keywords that require a leading dot. -const dotKeywords = [ - 'Protocol', // contextual - 'Type' // contextual -].map(keywordWrapper); - -// Keywords that may have a leading dot. -const optionalDotKeywords = [ - 'init', - 'self' -].map(keywordWrapper); - -// should register as keyword, not type -const keywordTypes = [ - 'Any', - 'Self' -]; - -// Regular keywords and literals. -const keywords = [ - // strings below will be fed into the regular `keywords` engine while regex - // will result in additional modes being created to scan for those keywords to - // avoid conflicts with other rules - 'actor', - 'any', // contextual - 'associatedtype', - 'async', - 'await', - /as\?/, // operator - /as!/, // operator - 'as', // operator - 'borrowing', // contextual - 'break', - 'case', - 'catch', - 'class', - 'consume', // contextual - 'consuming', // contextual - 'continue', - 'convenience', // contextual - 'copy', // contextual - 'default', - 'defer', - 'deinit', - 'didSet', // contextual - 'distributed', - 'do', - 'dynamic', // contextual - 'each', - 'else', - 'enum', - 'extension', - 'fallthrough', - /fileprivate\(set\)/, - 'fileprivate', - 'final', // contextual - 'for', - 'func', - 'get', // contextual - 'guard', - 'if', - 'import', - 'indirect', // contextual - 'infix', // contextual - /init\?/, - /init!/, - 'inout', - /internal\(set\)/, - 'internal', - 'in', - 'is', // operator - 'isolated', // contextual - 'nonisolated', // contextual - 'lazy', // contextual - 'let', - 'macro', - 'mutating', // contextual - 'nonmutating', // contextual - /open\(set\)/, // contextual - 'open', // contextual - 'operator', - 'optional', // contextual - 'override', // contextual - 'package', - 'postfix', // contextual - 'precedencegroup', - 'prefix', // contextual - /private\(set\)/, - 'private', - 'protocol', - /public\(set\)/, - 'public', - 'repeat', - 'required', // contextual - 'rethrows', - 'return', - 'set', // contextual - 'some', // contextual - 'static', - 'struct', - 'subscript', - 'super', - 'switch', - 'throws', - 'throw', - /try\?/, // operator - /try!/, // operator - 'try', // operator - 'typealias', - /unowned\(safe\)/, // contextual - /unowned\(unsafe\)/, // contextual - 'unowned', // contextual - 'var', - 'weak', // contextual - 'where', - 'while', - 'willSet' // contextual -]; - -// NOTE: Contextual keywords are reserved only in specific contexts. -// Ideally, these should be matched using modes to avoid false positives. - -// Literals. -const literals = [ - 'false', - 'nil', - 'true' -]; - -// Keywords used in precedence groups. -const precedencegroupKeywords = [ - 'assignment', - 'associativity', - 'higherThan', - 'left', - 'lowerThan', - 'none', - 'right' -]; - -// Keywords that start with a number sign (#). -// #(un)available is handled separately. -const numberSignKeywords = [ - '#colorLiteral', - '#column', - '#dsohandle', - '#else', - '#elseif', - '#endif', - '#error', - '#file', - '#fileID', - '#fileLiteral', - '#filePath', - '#function', - '#if', - '#imageLiteral', - '#keyPath', - '#line', - '#selector', - '#sourceLocation', - '#warning' -]; - -// Global functions in the Standard Library. -const builtIns = [ - 'abs', - 'all', - 'any', - 'assert', - 'assertionFailure', - 'debugPrint', - 'dump', - 'fatalError', - 'getVaList', - 'isKnownUniquelyReferenced', - 'max', - 'min', - 'numericCast', - 'pointwiseMax', - 'pointwiseMin', - 'precondition', - 'preconditionFailure', - 'print', - 'readLine', - 'repeatElement', - 'sequence', - 'stride', - 'swap', - 'swift_unboxFromSwiftValueWithType', - 'transcode', - 'type', - 'unsafeBitCast', - 'unsafeDowncast', - 'withExtendedLifetime', - 'withUnsafeMutablePointer', - 'withUnsafePointer', - 'withVaList', - 'withoutActuallyEscaping', - 'zip' -]; - -// Valid first characters for operators. -const operatorHead = either( - /[/=\-+!*%<>&|^~?]/, - /[\u00A1-\u00A7]/, - /[\u00A9\u00AB]/, - /[\u00AC\u00AE]/, - /[\u00B0\u00B1]/, - /[\u00B6\u00BB\u00BF\u00D7\u00F7]/, - /[\u2016-\u2017]/, - /[\u2020-\u2027]/, - /[\u2030-\u203E]/, - /[\u2041-\u2053]/, - /[\u2055-\u205E]/, - /[\u2190-\u23FF]/, - /[\u2500-\u2775]/, - /[\u2794-\u2BFF]/, - /[\u2E00-\u2E7F]/, - /[\u3001-\u3003]/, - /[\u3008-\u3020]/, - /[\u3030]/ -); - -// Valid characters for operators. -const operatorCharacter = either( - operatorHead, - /[\u0300-\u036F]/, - /[\u1DC0-\u1DFF]/, - /[\u20D0-\u20FF]/, - /[\uFE00-\uFE0F]/, - /[\uFE20-\uFE2F]/ - // TODO: The following characters are also allowed, but the regex isn't supported yet. - // /[\u{E0100}-\u{E01EF}]/u -); - -// Valid operator. -const operator = concat(operatorHead, operatorCharacter, '*'); - -// Valid first characters for identifiers. -const identifierHead = either( - /[a-zA-Z_]/, - /[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/, - /[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/, - /[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/, - /[\u1E00-\u1FFF]/, - /[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/, - /[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/, - /[\u2C00-\u2DFF\u2E80-\u2FFF]/, - /[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/, - /[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/, - /[\uFE47-\uFEFE\uFF00-\uFFFD]/ // Should be /[\uFE47-\uFFFD]/, but we have to exclude FEFF. - // The following characters are also allowed, but the regexes aren't supported yet. - // /[\u{10000}-\u{1FFFD}\u{20000-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}]/u, - // /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u, - // /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u, - // /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u -); - -// Valid characters for identifiers. -const identifierCharacter = either( - identifierHead, - /\d/, - /[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/ -); - -// Valid identifier. -const identifier = concat(identifierHead, identifierCharacter, '*'); - -// Valid type identifier. -const typeIdentifier = concat(/[A-Z]/, identifierCharacter, '*'); - -// Built-in attributes, which are highlighted as keywords. -// @available is handled separately. -// https://docs.swift.org/swift-book/documentation/the-swift-programming-language/attributes -const keywordAttributes = [ - 'attached', - 'autoclosure', - concat(/convention\(/, either('swift', 'block', 'c'), /\)/), - 'discardableResult', - 'dynamicCallable', - 'dynamicMemberLookup', - 'escaping', - 'freestanding', - 'frozen', - 'GKInspectable', - 'IBAction', - 'IBDesignable', - 'IBInspectable', - 'IBOutlet', - 'IBSegueAction', - 'inlinable', - 'main', - 'nonobjc', - 'NSApplicationMain', - 'NSCopying', - 'NSManaged', - concat(/objc\(/, identifier, /\)/), - 'objc', - 'objcMembers', - 'propertyWrapper', - 'requires_stored_property_inits', - 'resultBuilder', - 'Sendable', - 'testable', - 'UIApplicationMain', - 'unchecked', - 'unknown', - 'usableFromInline', - 'warn_unqualified_access' -]; - -// Contextual keywords used in @available and #(un)available. -const availabilityKeywords = [ - 'iOS', - 'iOSApplicationExtension', - 'macOS', - 'macOSApplicationExtension', - 'macCatalyst', - 'macCatalystApplicationExtension', - 'watchOS', - 'watchOSApplicationExtension', - 'tvOS', - 'tvOSApplicationExtension', - 'swift' -]; - -/* -Language: Swift -Description: Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. -Author: Steven Van Impe -Contributors: Chris Eidhof , Nate Cook , Alexander Lichter , Richard Gibson -Website: https://swift.org -Category: common, system -*/ - - -/** @type LanguageFn */ -function swift(hljs) { - const WHITESPACE = { - match: /\s+/, - relevance: 0 - }; - // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID411 - const BLOCK_COMMENT = hljs.COMMENT( - '/\\*', - '\\*/', - { contains: [ 'self' ] } - ); - const COMMENTS = [ - hljs.C_LINE_COMMENT_MODE, - BLOCK_COMMENT - ]; - - // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID413 - // https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html - const DOT_KEYWORD = { - match: [ - /\./, - either(...dotKeywords, ...optionalDotKeywords) - ], - className: { 2: "keyword" } - }; - const KEYWORD_GUARD = { - // Consume .keyword to prevent highlighting properties and methods as keywords. - match: concat(/\./, either(...keywords)), - relevance: 0 - }; - const PLAIN_KEYWORDS = keywords - .filter(kw => typeof kw === 'string') - .concat([ "_|0" ]); // seems common, so 0 relevance - const REGEX_KEYWORDS = keywords - .filter(kw => typeof kw !== 'string') // find regex - .concat(keywordTypes) - .map(keywordWrapper); - const KEYWORD = { variants: [ - { - className: 'keyword', - match: either(...REGEX_KEYWORDS, ...optionalDotKeywords) - } - ] }; - // find all the regular keywords - const KEYWORDS = { - $pattern: either( - /\b\w+/, // regular keywords - /#\w+/ // number keywords - ), - keyword: PLAIN_KEYWORDS - .concat(numberSignKeywords), - literal: literals - }; - const KEYWORD_MODES = [ - DOT_KEYWORD, - KEYWORD_GUARD, - KEYWORD - ]; - - // https://github.com/apple/swift/tree/main/stdlib/public/core - const BUILT_IN_GUARD = { - // Consume .built_in to prevent highlighting properties and methods. - match: concat(/\./, either(...builtIns)), - relevance: 0 - }; - const BUILT_IN = { - className: 'built_in', - match: concat(/\b/, either(...builtIns), /(?=\()/) - }; - const BUILT_INS = [ - BUILT_IN_GUARD, - BUILT_IN - ]; - - // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID418 - const OPERATOR_GUARD = { - // Prevent -> from being highlighting as an operator. - match: /->/, - relevance: 0 - }; - const OPERATOR = { - className: 'operator', - relevance: 0, - variants: [ - { match: operator }, - { - // dot-operator: only operators that start with a dot are allowed to use dots as - // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more - // characters that may also include dots. - match: `\\.(\\.|${operatorCharacter})+` } - ] - }; - const OPERATORS = [ - OPERATOR_GUARD, - OPERATOR - ]; - - // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_numeric-literal - // TODO: Update for leading `-` after lookbehind is supported everywhere - const decimalDigits = '([0-9]_*)+'; - const hexDigits = '([0-9a-fA-F]_*)+'; - const NUMBER = { - className: 'number', - relevance: 0, - variants: [ - // decimal floating-point-literal (subsumes decimal-literal) - { match: `\\b(${decimalDigits})(\\.(${decimalDigits}))?` + `([eE][+-]?(${decimalDigits}))?\\b` }, - // hexadecimal floating-point-literal (subsumes hexadecimal-literal) - { match: `\\b0x(${hexDigits})(\\.(${hexDigits}))?` + `([pP][+-]?(${decimalDigits}))?\\b` }, - // octal-literal - { match: /\b0o([0-7]_*)+\b/ }, - // binary-literal - { match: /\b0b([01]_*)+\b/ } - ] - }; - - // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_string-literal - const ESCAPED_CHARACTER = (rawDelimiter = "") => ({ - className: 'subst', - variants: [ - { match: concat(/\\/, rawDelimiter, /[0\\tnr"']/) }, - { match: concat(/\\/, rawDelimiter, /u\{[0-9a-fA-F]{1,8}\}/) } - ] - }); - const ESCAPED_NEWLINE = (rawDelimiter = "") => ({ - className: 'subst', - match: concat(/\\/, rawDelimiter, /[\t ]*(?:[\r\n]|\r\n)/) - }); - const INTERPOLATION = (rawDelimiter = "") => ({ - className: 'subst', - label: "interpol", - begin: concat(/\\/, rawDelimiter, /\(/), - end: /\)/ - }); - const MULTILINE_STRING = (rawDelimiter = "") => ({ - begin: concat(rawDelimiter, /"""/), - end: concat(/"""/, rawDelimiter), - contains: [ - ESCAPED_CHARACTER(rawDelimiter), - ESCAPED_NEWLINE(rawDelimiter), - INTERPOLATION(rawDelimiter) - ] - }); - const SINGLE_LINE_STRING = (rawDelimiter = "") => ({ - begin: concat(rawDelimiter, /"/), - end: concat(/"/, rawDelimiter), - contains: [ - ESCAPED_CHARACTER(rawDelimiter), - INTERPOLATION(rawDelimiter) - ] - }); - const STRING = { - className: 'string', - variants: [ - MULTILINE_STRING(), - MULTILINE_STRING("#"), - MULTILINE_STRING("##"), - MULTILINE_STRING("###"), - SINGLE_LINE_STRING(), - SINGLE_LINE_STRING("#"), - SINGLE_LINE_STRING("##"), - SINGLE_LINE_STRING("###") - ] - }; - - const REGEXP_CONTENTS = [ - hljs.BACKSLASH_ESCAPE, - { - begin: /\[/, - end: /\]/, - relevance: 0, - contains: [ hljs.BACKSLASH_ESCAPE ] - } - ]; - - const BARE_REGEXP_LITERAL = { - begin: /\/[^\s](?=[^/\n]*\/)/, - end: /\//, - contains: REGEXP_CONTENTS - }; - - const EXTENDED_REGEXP_LITERAL = (rawDelimiter) => { - const begin = concat(rawDelimiter, /\//); - const end = concat(/\//, rawDelimiter); - return { - begin, - end, - contains: [ - ...REGEXP_CONTENTS, - { - scope: "comment", - begin: `#(?!.*${end})`, - end: /$/, - }, - ], - }; - }; - - // https://docs.swift.org/swift-book/documentation/the-swift-programming-language/lexicalstructure/#Regular-Expression-Literals - const REGEXP = { - scope: "regexp", - variants: [ - EXTENDED_REGEXP_LITERAL('###'), - EXTENDED_REGEXP_LITERAL('##'), - EXTENDED_REGEXP_LITERAL('#'), - BARE_REGEXP_LITERAL - ] - }; - - // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID412 - const QUOTED_IDENTIFIER = { match: concat(/`/, identifier, /`/) }; - const IMPLICIT_PARAMETER = { - className: 'variable', - match: /\$\d+/ - }; - const PROPERTY_WRAPPER_PROJECTION = { - className: 'variable', - match: `\\$${identifierCharacter}+` - }; - const IDENTIFIERS = [ - QUOTED_IDENTIFIER, - IMPLICIT_PARAMETER, - PROPERTY_WRAPPER_PROJECTION - ]; - - // https://docs.swift.org/swift-book/ReferenceManual/Attributes.html - const AVAILABLE_ATTRIBUTE = { - match: /(@|#(un)?)available/, - scope: 'keyword', - starts: { contains: [ - { - begin: /\(/, - end: /\)/, - keywords: availabilityKeywords, - contains: [ - ...OPERATORS, - NUMBER, - STRING - ] - } - ] } - }; - - const KEYWORD_ATTRIBUTE = { - scope: 'keyword', - match: concat(/@/, either(...keywordAttributes), lookahead(either(/\(/, /\s+/))), - }; - - const USER_DEFINED_ATTRIBUTE = { - scope: 'meta', - match: concat(/@/, identifier) - }; - - const ATTRIBUTES = [ - AVAILABLE_ATTRIBUTE, - KEYWORD_ATTRIBUTE, - USER_DEFINED_ATTRIBUTE - ]; - - // https://docs.swift.org/swift-book/ReferenceManual/Types.html - const TYPE = { - match: lookahead(/\b[A-Z]/), - relevance: 0, - contains: [ - { // Common Apple frameworks, for relevance boost - className: 'type', - match: concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, identifierCharacter, '+') - }, - { // Type identifier - className: 'type', - match: typeIdentifier, - relevance: 0 - }, - { // Optional type - match: /[?!]+/, - relevance: 0 - }, - { // Variadic parameter - match: /\.\.\./, - relevance: 0 - }, - { // Protocol composition - match: concat(/\s+&\s+/, lookahead(typeIdentifier)), - relevance: 0 - } - ] - }; - const GENERIC_ARGUMENTS = { - begin: //, - keywords: KEYWORDS, - contains: [ - ...COMMENTS, - ...KEYWORD_MODES, - ...ATTRIBUTES, - OPERATOR_GUARD, - TYPE - ] - }; - TYPE.contains.push(GENERIC_ARGUMENTS); - - // https://docs.swift.org/swift-book/ReferenceManual/Expressions.html#ID552 - // Prevents element names from being highlighted as keywords. - const TUPLE_ELEMENT_NAME = { - match: concat(identifier, /\s*:/), - keywords: "_|0", - relevance: 0 - }; - // Matches tuples as well as the parameter list of a function type. - const TUPLE = { - begin: /\(/, - end: /\)/, - relevance: 0, - keywords: KEYWORDS, - contains: [ - 'self', - TUPLE_ELEMENT_NAME, - ...COMMENTS, - REGEXP, - ...KEYWORD_MODES, - ...BUILT_INS, - ...OPERATORS, - NUMBER, - STRING, - ...IDENTIFIERS, - ...ATTRIBUTES, - TYPE - ] - }; - - const GENERIC_PARAMETERS = { - begin: //, - keywords: 'repeat each', - contains: [ - ...COMMENTS, - TYPE - ] - }; - const FUNCTION_PARAMETER_NAME = { - begin: either( - lookahead(concat(identifier, /\s*:/)), - lookahead(concat(identifier, /\s+/, identifier, /\s*:/)) - ), - end: /:/, - relevance: 0, - contains: [ - { - className: 'keyword', - match: /\b_\b/ - }, - { - className: 'params', - match: identifier - } - ] - }; - const FUNCTION_PARAMETERS = { - begin: /\(/, - end: /\)/, - keywords: KEYWORDS, - contains: [ - FUNCTION_PARAMETER_NAME, - ...COMMENTS, - ...KEYWORD_MODES, - ...OPERATORS, - NUMBER, - STRING, - ...ATTRIBUTES, - TYPE, - TUPLE - ], - endsParent: true, - illegal: /["']/ - }; - // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID362 - // https://docs.swift.org/swift-book/documentation/the-swift-programming-language/declarations/#Macro-Declaration - const FUNCTION_OR_MACRO = { - match: [ - /(func|macro)/, - /\s+/, - either(QUOTED_IDENTIFIER.match, identifier, operator) - ], - className: { - 1: "keyword", - 3: "title.function" - }, - contains: [ - GENERIC_PARAMETERS, - FUNCTION_PARAMETERS, - WHITESPACE - ], - illegal: [ - /\[/, - /%/ - ] - }; - - // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID375 - // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID379 - const INIT_SUBSCRIPT = { - match: [ - /\b(?:subscript|init[?!]?)/, - /\s*(?=[<(])/, - ], - className: { 1: "keyword" }, - contains: [ - GENERIC_PARAMETERS, - FUNCTION_PARAMETERS, - WHITESPACE - ], - illegal: /\[|%/ - }; - // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID380 - const OPERATOR_DECLARATION = { - match: [ - /operator/, - /\s+/, - operator - ], - className: { - 1: "keyword", - 3: "title" - } - }; - - // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID550 - const PRECEDENCEGROUP = { - begin: [ - /precedencegroup/, - /\s+/, - typeIdentifier - ], - className: { - 1: "keyword", - 3: "title" - }, - contains: [ TYPE ], - keywords: [ - ...precedencegroupKeywords, - ...literals - ], - end: /}/ - }; - - const CLASS_FUNC_DECLARATION = { - match: [ - /class\b/, - /\s+/, - /func\b/, - /\s+/, - /\b[A-Za-z_][A-Za-z0-9_]*\b/ - ], - scope: { - 1: "keyword", - 3: "keyword", - 5: "title.function" - } - }; - - const CLASS_VAR_DECLARATION = { - match: [ - /class\b/, - /\s+/, - /var\b/, - ], - scope: { - 1: "keyword", - 3: "keyword" - } - }; - - const TYPE_DECLARATION = { - begin: [ - /(struct|protocol|class|extension|enum|actor)/, - /\s+/, - identifier, - /\s*/, - ], - beginScope: { - 1: "keyword", - 3: "title.class" - }, - keywords: KEYWORDS, - contains: [ - GENERIC_PARAMETERS, - ...KEYWORD_MODES, - { - begin: /:/, - end: /\{/, - keywords: KEYWORDS, - contains: [ - { - scope: "title.class.inherited", - match: typeIdentifier, - }, - ...KEYWORD_MODES, - ], - relevance: 0, - }, - ] - }; - - // Add supported submodes to string interpolation. - for (const variant of STRING.variants) { - const interpolation = variant.contains.find(mode => mode.label === "interpol"); - // TODO: Interpolation can contain any expression, so there's room for improvement here. - interpolation.keywords = KEYWORDS; - const submodes = [ - ...KEYWORD_MODES, - ...BUILT_INS, - ...OPERATORS, - NUMBER, - STRING, - ...IDENTIFIERS - ]; - interpolation.contains = [ - ...submodes, - { - begin: /\(/, - end: /\)/, - contains: [ - 'self', - ...submodes - ] - } - ]; - } - - return { - name: 'Swift', - keywords: KEYWORDS, - contains: [ - ...COMMENTS, - FUNCTION_OR_MACRO, - INIT_SUBSCRIPT, - CLASS_FUNC_DECLARATION, - CLASS_VAR_DECLARATION, - TYPE_DECLARATION, - OPERATOR_DECLARATION, - PRECEDENCEGROUP, - { - beginKeywords: 'import', - end: /$/, - contains: [ ...COMMENTS ], - relevance: 0 - }, - REGEXP, - ...KEYWORD_MODES, - ...BUILT_INS, - ...OPERATORS, - NUMBER, - STRING, - ...IDENTIFIERS, - ...ATTRIBUTES, - TYPE, - TUPLE - ] - }; -} - -export { swift as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js.js deleted file mode 100644 index d9bc549..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/swift" instead of "highlight.js/lib/languages/swift.js"' - ); - } - } - emitWarning(); - import lang from './swift.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/taggerscript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/taggerscript.js deleted file mode 100644 index 567aceb..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/taggerscript.js +++ /dev/null @@ -1,59 +0,0 @@ -/* -Language: Tagger Script -Author: Philipp Wolfer -Description: Syntax Highlighting for the Tagger Script as used by MusicBrainz Picard. -Website: https://picard.musicbrainz.org -Category: scripting - */ -function taggerscript(hljs) { - const NOOP = { - className: 'comment', - begin: /\$noop\(/, - end: /\)/, - contains: [ - { begin: /\\[()]/ }, - { - begin: /\(/, - end: /\)/, - contains: [ - { begin: /\\[()]/ }, - 'self' - ] - } - ], - relevance: 10 - }; - - const FUNCTION = { - className: 'keyword', - begin: /\$[_a-zA-Z0-9]+(?=\()/ - }; - - const VARIABLE = { - className: 'variable', - begin: /%[_a-zA-Z0-9:]+%/ - }; - - const ESCAPE_SEQUENCE_UNICODE = { - className: 'symbol', - begin: /\\u[a-fA-F0-9]{4}/ - }; - - const ESCAPE_SEQUENCE = { - className: 'symbol', - begin: /\\[\\nt$%,()]/ - }; - - return { - name: 'Tagger Script', - contains: [ - NOOP, - FUNCTION, - VARIABLE, - ESCAPE_SEQUENCE, - ESCAPE_SEQUENCE_UNICODE - ] - }; -} - -export { taggerscript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/taggerscript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/taggerscript.js.js deleted file mode 100644 index 75601e0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/taggerscript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/taggerscript" instead of "highlight.js/lib/languages/taggerscript.js"' - ); - } - } - emitWarning(); - import lang from './taggerscript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tap.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tap.js deleted file mode 100644 index 8cd8ba5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tap.js +++ /dev/null @@ -1,47 +0,0 @@ -/* -Language: Test Anything Protocol -Description: TAP, the Test Anything Protocol, is a simple text-based interface between testing modules in a test harness. -Requires: yaml.js -Author: Sergey Bronnikov -Website: https://testanything.org -*/ - -function tap(hljs) { - return { - name: 'Test Anything Protocol', - case_insensitive: true, - contains: [ - hljs.HASH_COMMENT_MODE, - // version of format and total amount of testcases - { - className: 'meta', - variants: [ - { begin: '^TAP version (\\d+)$' }, - { begin: '^1\\.\\.(\\d+)$' } - ] - }, - // YAML block - { - begin: /---$/, - end: '\\.\\.\\.$', - subLanguage: 'yaml', - relevance: 0 - }, - // testcase number - { - className: 'number', - begin: ' (\\d+) ' - }, - // testcase status and description - { - className: 'symbol', - variants: [ - { begin: '^ok' }, - { begin: '^not ok' } - ] - } - ] - }; -} - -export { tap as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tap.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tap.js.js deleted file mode 100644 index 32962e5..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tap.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/tap" instead of "highlight.js/lib/languages/tap.js"' - ); - } - } - emitWarning(); - import lang from './tap.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tcl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tcl.js deleted file mode 100644 index da59442..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tcl.js +++ /dev/null @@ -1,191 +0,0 @@ -/* -Language: Tcl -Description: Tcl is a very simple programming language. -Author: Radek Liska -Website: https://www.tcl.tk/about/language.html -Category: scripting -*/ - -function tcl(hljs) { - const regex = hljs.regex; - const TCL_IDENT = /[a-zA-Z_][a-zA-Z0-9_]*/; - - const NUMBER = { - className: 'number', - variants: [ - hljs.BINARY_NUMBER_MODE, - hljs.C_NUMBER_MODE - ] - }; - - const KEYWORDS = [ - "after", - "append", - "apply", - "array", - "auto_execok", - "auto_import", - "auto_load", - "auto_mkindex", - "auto_mkindex_old", - "auto_qualify", - "auto_reset", - "bgerror", - "binary", - "break", - "catch", - "cd", - "chan", - "clock", - "close", - "concat", - "continue", - "dde", - "dict", - "encoding", - "eof", - "error", - "eval", - "exec", - "exit", - "expr", - "fblocked", - "fconfigure", - "fcopy", - "file", - "fileevent", - "filename", - "flush", - "for", - "foreach", - "format", - "gets", - "glob", - "global", - "history", - "http", - "if", - "incr", - "info", - "interp", - "join", - "lappend|10", - "lassign|10", - "lindex|10", - "linsert|10", - "list", - "llength|10", - "load", - "lrange|10", - "lrepeat|10", - "lreplace|10", - "lreverse|10", - "lsearch|10", - "lset|10", - "lsort|10", - "mathfunc", - "mathop", - "memory", - "msgcat", - "namespace", - "open", - "package", - "parray", - "pid", - "pkg::create", - "pkg_mkIndex", - "platform", - "platform::shell", - "proc", - "puts", - "pwd", - "read", - "refchan", - "regexp", - "registry", - "regsub|10", - "rename", - "return", - "safe", - "scan", - "seek", - "set", - "socket", - "source", - "split", - "string", - "subst", - "switch", - "tcl_endOfWord", - "tcl_findLibrary", - "tcl_startOfNextWord", - "tcl_startOfPreviousWord", - "tcl_wordBreakAfter", - "tcl_wordBreakBefore", - "tcltest", - "tclvars", - "tell", - "time", - "tm", - "trace", - "unknown", - "unload", - "unset", - "update", - "uplevel", - "upvar", - "variable", - "vwait", - "while" - ]; - - return { - name: 'Tcl', - aliases: [ 'tk' ], - keywords: KEYWORDS, - contains: [ - hljs.COMMENT(';[ \\t]*#', '$'), - hljs.COMMENT('^[ \\t]*#', '$'), - { - beginKeywords: 'proc', - end: '[\\{]', - excludeEnd: true, - contains: [ - { - className: 'title', - begin: '[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*', - end: '[ \\t\\n\\r]', - endsWithParent: true, - excludeEnd: true - } - ] - }, - { - className: "variable", - variants: [ - { begin: regex.concat( - /\$/, - regex.optional(/::/), - TCL_IDENT, - '(::', - TCL_IDENT, - ')*' - ) }, - { - begin: '\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*', - end: '\\}', - contains: [ NUMBER ] - } - ] - }, - { - className: 'string', - contains: [ hljs.BACKSLASH_ESCAPE ], - variants: [ hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }) ] - }, - NUMBER - ] - }; -} - -export { tcl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tcl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tcl.js.js deleted file mode 100644 index 9e5a58f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tcl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/tcl" instead of "highlight.js/lib/languages/tcl.js"' - ); - } - } - emitWarning(); - import lang from './tcl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/thrift.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/thrift.js deleted file mode 100644 index 1287574..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/thrift.js +++ /dev/null @@ -1,77 +0,0 @@ -/* -Language: Thrift -Author: Oleg Efimov -Description: Thrift message definition format -Website: https://thrift.apache.org -Category: protocols -*/ - -function thrift(hljs) { - const TYPES = [ - "bool", - "byte", - "i16", - "i32", - "i64", - "double", - "string", - "binary" - ]; - const KEYWORDS = [ - "namespace", - "const", - "typedef", - "struct", - "enum", - "service", - "exception", - "void", - "oneway", - "set", - "list", - "map", - "required", - "optional" - ]; - return { - name: 'Thrift', - keywords: { - keyword: KEYWORDS, - type: TYPES, - literal: 'true false' - }, - contains: [ - hljs.QUOTE_STRING_MODE, - hljs.NUMBER_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: 'class', - beginKeywords: 'struct enum service exception', - end: /\{/, - illegal: /\n/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { - // hack: eating everything after the first title - starts: { - endsWithParent: true, - excludeEnd: true - } }) - ] - }, - { - begin: '\\b(set|list|map)\\s*<', - keywords: { type: [ - ...TYPES, - "set", - "list", - "map" - ] }, - end: '>', - contains: [ 'self' ] - } - ] - }; -} - -export { thrift as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/thrift.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/thrift.js.js deleted file mode 100644 index d214aa7..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/thrift.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/thrift" instead of "highlight.js/lib/languages/thrift.js"' - ); - } - } - emitWarning(); - import lang from './thrift.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tp.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tp.js deleted file mode 100644 index 94e69d3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tp.js +++ /dev/null @@ -1,172 +0,0 @@ -/* -Language: TP -Author: Jay Strybis -Description: FANUC TP programming language (TPP). -Category: hardware -*/ - -function tp(hljs) { - const TPID = { - className: 'number', - begin: '[1-9][0-9]*', /* no leading zeros */ - relevance: 0 - }; - const TPLABEL = { - className: 'symbol', - begin: ':[^\\]]+' - }; - const TPDATA = { - className: 'built_in', - begin: '(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|' - + 'TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[', - end: '\\]', - contains: [ - 'self', - TPID, - TPLABEL - ] - }; - const TPIO = { - className: 'built_in', - begin: '(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[', - end: '\\]', - contains: [ - 'self', - TPID, - hljs.QUOTE_STRING_MODE, /* for pos section at bottom */ - TPLABEL - ] - }; - - const KEYWORDS = [ - "ABORT", - "ACC", - "ADJUST", - "AND", - "AP_LD", - "BREAK", - "CALL", - "CNT", - "COL", - "CONDITION", - "CONFIG", - "DA", - "DB", - "DIV", - "DETECT", - "ELSE", - "END", - "ENDFOR", - "ERR_NUM", - "ERROR_PROG", - "FINE", - "FOR", - "GP", - "GUARD", - "INC", - "IF", - "JMP", - "LINEAR_MAX_SPEED", - "LOCK", - "MOD", - "MONITOR", - "OFFSET", - "Offset", - "OR", - "OVERRIDE", - "PAUSE", - "PREG", - "PTH", - "RT_LD", - "RUN", - "SELECT", - "SKIP", - "Skip", - "TA", - "TB", - "TO", - "TOOL_OFFSET", - "Tool_Offset", - "UF", - "UT", - "UFRAME_NUM", - "UTOOL_NUM", - "UNLOCK", - "WAIT", - "X", - "Y", - "Z", - "W", - "P", - "R", - "STRLEN", - "SUBSTR", - "FINDSTR", - "VOFFSET", - "PROG", - "ATTR", - "MN", - "POS" - ]; - const LITERALS = [ - "ON", - "OFF", - "max_speed", - "LPOS", - "JPOS", - "ENABLE", - "DISABLE", - "START", - "STOP", - "RESET" - ]; - - return { - name: 'TP', - keywords: { - keyword: KEYWORDS, - literal: LITERALS - }, - contains: [ - TPDATA, - TPIO, - { - className: 'keyword', - begin: '/(PROG|ATTR|MN|POS|END)\\b' - }, - { - /* this is for cases like ,CALL */ - className: 'keyword', - begin: '(CALL|RUN|POINT_LOGIC|LBL)\\b' - }, - { - /* this is for cases like CNT100 where the default lexemes do not - * separate the keyword and the number */ - className: 'keyword', - begin: '\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)' - }, - { - /* to catch numbers that do not have a word boundary on the left */ - className: 'number', - begin: '\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b', - relevance: 0 - }, - hljs.COMMENT('//', '[;$]'), - hljs.COMMENT('!', '[;$]'), - hljs.COMMENT('--eg:', '$'), - hljs.QUOTE_STRING_MODE, - { - className: 'string', - begin: '\'', - end: '\'' - }, - hljs.C_NUMBER_MODE, - { - className: 'variable', - begin: '\\$[A-Za-z0-9_]+' - } - ] - }; -} - -export { tp as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tp.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tp.js.js deleted file mode 100644 index c8cc883..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/tp.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/tp" instead of "highlight.js/lib/languages/tp.js"' - ); - } - } - emitWarning(); - import lang from './tp.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/twig.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/twig.js deleted file mode 100644 index f980340..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/twig.js +++ /dev/null @@ -1,260 +0,0 @@ -/* -Language: Twig -Requires: xml.js -Author: Luke Holder -Description: Twig is a templating language for PHP -Website: https://twig.symfony.com -Category: template -*/ - -function twig(hljs) { - const regex = hljs.regex; - const FUNCTION_NAMES = [ - "absolute_url", - "asset|0", - "asset_version", - "attribute", - "block", - "constant", - "controller|0", - "country_timezones", - "csrf_token", - "cycle", - "date", - "dump", - "expression", - "form|0", - "form_end", - "form_errors", - "form_help", - "form_label", - "form_rest", - "form_row", - "form_start", - "form_widget", - "html_classes", - "include", - "is_granted", - "logout_path", - "logout_url", - "max", - "min", - "parent", - "path|0", - "random", - "range", - "relative_path", - "render", - "render_esi", - "source", - "template_from_string", - "url|0" - ]; - - const FILTERS = [ - "abs", - "abbr_class", - "abbr_method", - "batch", - "capitalize", - "column", - "convert_encoding", - "country_name", - "currency_name", - "currency_symbol", - "data_uri", - "date", - "date_modify", - "default", - "escape", - "file_excerpt", - "file_link", - "file_relative", - "filter", - "first", - "format", - "format_args", - "format_args_as_text", - "format_currency", - "format_date", - "format_datetime", - "format_file", - "format_file_from_text", - "format_number", - "format_time", - "html_to_markdown", - "humanize", - "inky_to_html", - "inline_css", - "join", - "json_encode", - "keys", - "language_name", - "last", - "length", - "locale_name", - "lower", - "map", - "markdown", - "markdown_to_html", - "merge", - "nl2br", - "number_format", - "raw", - "reduce", - "replace", - "reverse", - "round", - "slice", - "slug", - "sort", - "spaceless", - "split", - "striptags", - "timezone_name", - "title", - "trans", - "transchoice", - "trim", - "u|0", - "upper", - "url_encode", - "yaml_dump", - "yaml_encode" - ]; - - let TAG_NAMES = [ - "apply", - "autoescape", - "block", - "cache", - "deprecated", - "do", - "embed", - "extends", - "filter", - "flush", - "for", - "form_theme", - "from", - "if", - "import", - "include", - "macro", - "sandbox", - "set", - "stopwatch", - "trans", - "trans_default_domain", - "transchoice", - "use", - "verbatim", - "with" - ]; - - TAG_NAMES = TAG_NAMES.concat(TAG_NAMES.map(t => `end${t}`)); - - const STRING = { - scope: 'string', - variants: [ - { - begin: /'/, - end: /'/ - }, - { - begin: /"/, - end: /"/ - }, - ] - }; - - const NUMBER = { - scope: "number", - match: /\d+/ - }; - - const PARAMS = { - begin: /\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - contains: [ - STRING, - NUMBER - ] - }; - - - const FUNCTIONS = { - beginKeywords: FUNCTION_NAMES.join(" "), - keywords: { name: FUNCTION_NAMES }, - relevance: 0, - contains: [ PARAMS ] - }; - - const FILTER = { - match: /\|(?=[A-Za-z_]+:?)/, - beginScope: "punctuation", - relevance: 0, - contains: [ - { - match: /[A-Za-z_]+:?/, - keywords: FILTERS - }, - ] - }; - - const tagNamed = (tagnames, { relevance }) => { - return { - beginScope: { - 1: 'template-tag', - 3: 'name' - }, - relevance: relevance || 2, - endScope: 'template-tag', - begin: [ - /\{%/, - /\s*/, - regex.either(...tagnames) - ], - end: /%\}/, - keywords: "in", - contains: [ - FILTER, - FUNCTIONS, - STRING, - NUMBER - ] - }; - }; - - const CUSTOM_TAG_RE = /[a-z_]+/; - const TAG = tagNamed(TAG_NAMES, { relevance: 2 }); - const CUSTOM_TAG = tagNamed([ CUSTOM_TAG_RE ], { relevance: 1 }); - - return { - name: 'Twig', - aliases: [ 'craftcms' ], - case_insensitive: true, - subLanguage: 'xml', - contains: [ - hljs.COMMENT(/\{#/, /#\}/), - TAG, - CUSTOM_TAG, - { - className: 'template-variable', - begin: /\{\{/, - end: /\}\}/, - contains: [ - 'self', - FILTER, - FUNCTIONS, - STRING, - NUMBER - ] - } - ] - }; -} - -export { twig as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/twig.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/twig.js.js deleted file mode 100644 index 62b5701..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/twig.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/twig" instead of "highlight.js/lib/languages/twig.js"' - ); - } - } - emitWarning(); - import lang from './twig.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js deleted file mode 100644 index 23169f8..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +++ /dev/null @@ -1,913 +0,0 @@ -const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*'; -const KEYWORDS = [ - "as", // for exports - "in", - "of", - "if", - "for", - "while", - "finally", - "var", - "new", - "function", - "do", - "return", - "void", - "else", - "break", - "catch", - "instanceof", - "with", - "throw", - "case", - "default", - "try", - "switch", - "continue", - "typeof", - "delete", - "let", - "yield", - "const", - "class", - // JS handles these with a special rule - // "get", - // "set", - "debugger", - "async", - "await", - "static", - "import", - "from", - "export", - "extends", - // It's reached stage 3, which is "recommended for implementation": - "using" -]; -const LITERALS = [ - "true", - "false", - "null", - "undefined", - "NaN", - "Infinity" -]; - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects -const TYPES = [ - // Fundamental objects - "Object", - "Function", - "Boolean", - "Symbol", - // numbers and dates - "Math", - "Date", - "Number", - "BigInt", - // text - "String", - "RegExp", - // Indexed collections - "Array", - "Float32Array", - "Float64Array", - "Int8Array", - "Uint8Array", - "Uint8ClampedArray", - "Int16Array", - "Int32Array", - "Uint16Array", - "Uint32Array", - "BigInt64Array", - "BigUint64Array", - // Keyed collections - "Set", - "Map", - "WeakSet", - "WeakMap", - // Structured data - "ArrayBuffer", - "SharedArrayBuffer", - "Atomics", - "DataView", - "JSON", - // Control abstraction objects - "Promise", - "Generator", - "GeneratorFunction", - "AsyncFunction", - // Reflection - "Reflect", - "Proxy", - // Internationalization - "Intl", - // WebAssembly - "WebAssembly" -]; - -const ERROR_TYPES = [ - "Error", - "EvalError", - "InternalError", - "RangeError", - "ReferenceError", - "SyntaxError", - "TypeError", - "URIError" -]; - -const BUILT_IN_GLOBALS = [ - "setInterval", - "setTimeout", - "clearInterval", - "clearTimeout", - - "require", - "exports", - - "eval", - "isFinite", - "isNaN", - "parseFloat", - "parseInt", - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "unescape" -]; - -const BUILT_IN_VARIABLES = [ - "arguments", - "this", - "super", - "console", - "window", - "document", - "localStorage", - "sessionStorage", - "module", - "global" // Node.js -]; - -const BUILT_INS = [].concat( - BUILT_IN_GLOBALS, - TYPES, - ERROR_TYPES -); - -/* -Language: JavaScript -Description: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. -Category: common, scripting, web -Website: https://developer.mozilla.org/en-US/docs/Web/JavaScript -*/ - - -/** @type LanguageFn */ -function javascript(hljs) { - const regex = hljs.regex; - /** - * Takes a string like " { - const tag = "', - end: '' - }; - // to avoid some special cases inside isTrulyOpeningTag - const XML_SELF_CLOSING = /<[A-Za-z0-9\\._:-]+\s*\/>/; - const XML_TAG = { - begin: /<[A-Za-z0-9\\._:-]+/, - end: /\/[A-Za-z0-9\\._:-]+>|\/>/, - /** - * @param {RegExpMatchArray} match - * @param {CallbackResponse} response - */ - isTrulyOpeningTag: (match, response) => { - const afterMatchIndex = match[0].length + match.index; - const nextChar = match.input[afterMatchIndex]; - if ( - // HTML should not include another raw `<` inside a tag - // nested type? - // `>`, etc. - nextChar === "<" || - // the , gives away that this is not HTML - // `` - nextChar === "," - ) { - response.ignoreMatch(); - return; - } - - // `` - // Quite possibly a tag, lets look for a matching closing tag... - if (nextChar === ">") { - // if we cannot find a matching closing tag, then we - // will ignore it - if (!hasClosingTag(match, { after: afterMatchIndex })) { - response.ignoreMatch(); - } - } - - // `` (self-closing) - // handled by simpleSelfClosing rule - - let m; - const afterMatch = match.input.substring(afterMatchIndex); - - // some more template typing stuff - // (key?: string) => Modify< - if ((m = afterMatch.match(/^\s*=/))) { - response.ignoreMatch(); - return; - } - - // `` - // technically this could be HTML, but it smells like a type - // NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276 - if ((m = afterMatch.match(/^\s+extends\s+/))) { - if (m.index === 0) { - response.ignoreMatch(); - // eslint-disable-next-line no-useless-return - return; - } - } - } - }; - const KEYWORDS$1 = { - $pattern: IDENT_RE, - keyword: KEYWORDS, - literal: LITERALS, - built_in: BUILT_INS, - "variable.language": BUILT_IN_VARIABLES - }; - - // https://tc39.es/ecma262/#sec-literals-numeric-literals - const decimalDigits = '[0-9](_?[0-9])*'; - const frac = `\\.(${decimalDigits})`; - // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral - // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals - const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`; - const NUMBER = { - className: 'number', - variants: [ - // DecimalLiteral - { begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))` + - `[eE][+-]?(${decimalDigits})\\b` }, - { begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` }, - - // DecimalBigIntegerLiteral - { begin: `\\b(0|[1-9](_?[0-9])*)n\\b` }, - - // NonDecimalIntegerLiteral - { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" }, - { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" }, - { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" }, - - // LegacyOctalIntegerLiteral (does not include underscore separators) - // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals - { begin: "\\b0[0-7]+n?\\b" }, - ], - relevance: 0 - }; - - const SUBST = { - className: 'subst', - begin: '\\$\\{', - end: '\\}', - keywords: KEYWORDS$1, - contains: [] // defined later - }; - const HTML_TEMPLATE = { - begin: '\.?html`', - end: '', - starts: { - end: '`', - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: 'xml' - } - }; - const CSS_TEMPLATE = { - begin: '\.?css`', - end: '', - starts: { - end: '`', - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: 'css' - } - }; - const GRAPHQL_TEMPLATE = { - begin: '\.?gql`', - end: '', - starts: { - end: '`', - returnEnd: false, - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ], - subLanguage: 'graphql' - } - }; - const TEMPLATE_STRING = { - className: 'string', - begin: '`', - end: '`', - contains: [ - hljs.BACKSLASH_ESCAPE, - SUBST - ] - }; - const JSDOC_COMMENT = hljs.COMMENT( - /\/\*\*(?!\/)/, - '\\*/', - { - relevance: 0, - contains: [ - { - begin: '(?=@[A-Za-z]+)', - relevance: 0, - contains: [ - { - className: 'doctag', - begin: '@[A-Za-z]+' - }, - { - className: 'type', - begin: '\\{', - end: '\\}', - excludeEnd: true, - excludeBegin: true, - relevance: 0 - }, - { - className: 'variable', - begin: IDENT_RE$1 + '(?=\\s*(-)|$)', - endsParent: true, - relevance: 0 - }, - // eat spaces (not newlines) so we can find - // types or variables - { - begin: /(?=[^\n])\s/, - relevance: 0 - } - ] - } - ] - } - ); - const COMMENT = { - className: "comment", - variants: [ - JSDOC_COMMENT, - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_LINE_COMMENT_MODE - ] - }; - const SUBST_INTERNALS = [ - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - GRAPHQL_TEMPLATE, - TEMPLATE_STRING, - // Skip numbers when they are part of a variable name - { match: /\$\d+/ }, - NUMBER, - // This is intentional: - // See https://github.com/highlightjs/highlight.js/issues/3288 - // hljs.REGEXP_MODE - ]; - SUBST.contains = SUBST_INTERNALS - .concat({ - // we need to pair up {} inside our subst to prevent - // it from ending too early by matching another } - begin: /\{/, - end: /\}/, - keywords: KEYWORDS$1, - contains: [ - "self" - ].concat(SUBST_INTERNALS) - }); - const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains); - const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([ - // eat recursive parens in sub expressions - { - begin: /(\s*)\(/, - end: /\)/, - keywords: KEYWORDS$1, - contains: ["self"].concat(SUBST_AND_COMMENTS) - } - ]); - const PARAMS = { - className: 'params', - // convert this to negative lookbehind in v12 - begin: /(\s*)\(/, // to match the parms with - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - }; - - // ES6 classes - const CLASS_OR_EXTENDS = { - variants: [ - // class Car extends vehicle - { - match: [ - /class/, - /\s+/, - IDENT_RE$1, - /\s+/, - /extends/, - /\s+/, - regex.concat(IDENT_RE$1, "(", regex.concat(/\./, IDENT_RE$1), ")*") - ], - scope: { - 1: "keyword", - 3: "title.class", - 5: "keyword", - 7: "title.class.inherited" - } - }, - // class Car - { - match: [ - /class/, - /\s+/, - IDENT_RE$1 - ], - scope: { - 1: "keyword", - 3: "title.class" - } - }, - - ] - }; - - const CLASS_REFERENCE = { - relevance: 0, - match: - regex.either( - // Hard coded exceptions - /\bJSON/, - // Float32Array, OutT - /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, - // CSSFactory, CSSFactoryT - /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, - // FPs, FPsT - /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/, - // P - // single letters are not highlighted - // BLAH - // this will be flagged as a UPPER_CASE_CONSTANT instead - ), - className: "title.class", - keywords: { - _: [ - // se we still get relevance credit for JS library classes - ...TYPES, - ...ERROR_TYPES - ] - } - }; - - const USE_STRICT = { - label: "use_strict", - className: 'meta', - relevance: 10, - begin: /^\s*['"]use (strict|asm)['"]/ - }; - - const FUNCTION_DEFINITION = { - variants: [ - { - match: [ - /function/, - /\s+/, - IDENT_RE$1, - /(?=\s*\()/ - ] - }, - // anonymous function - { - match: [ - /function/, - /\s*(?=\()/ - ] - } - ], - className: { - 1: "keyword", - 3: "title.function" - }, - label: "func.def", - contains: [ PARAMS ], - illegal: /%/ - }; - - const UPPER_CASE_CONSTANT = { - relevance: 0, - match: /\b[A-Z][A-Z_0-9]+\b/, - className: "variable.constant" - }; - - function noneOf(list) { - return regex.concat("(?!", list.join("|"), ")"); - } - - const FUNCTION_CALL = { - match: regex.concat( - /\b/, - noneOf([ - ...BUILT_IN_GLOBALS, - "super", - "import" - ].map(x => `${x}\\s*\\(`)), - IDENT_RE$1, regex.lookahead(/\s*\(/)), - className: "title.function", - relevance: 0 - }; - - const PROPERTY_ACCESS = { - begin: regex.concat(/\./, regex.lookahead( - regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/) - )), - end: IDENT_RE$1, - excludeBegin: true, - keywords: "prototype", - className: "property", - relevance: 0 - }; - - const GETTER_OR_SETTER = { - match: [ - /get|set/, - /\s+/, - IDENT_RE$1, - /(?=\()/ - ], - className: { - 1: "keyword", - 3: "title.function" - }, - contains: [ - { // eat to avoid empty params - begin: /\(\)/ - }, - PARAMS - ] - }; - - const FUNC_LEAD_IN_RE = '(\\(' + - '[^()]*(\\(' + - '[^()]*(\\(' + - '[^()]*' + - '\\)[^()]*)*' + - '\\)[^()]*)*' + - '\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\s*=>'; - - const FUNCTION_VARIABLE = { - match: [ - /const|var|let/, /\s+/, - IDENT_RE$1, /\s*/, - /=\s*/, - /(async\s*)?/, // async is optional - regex.lookahead(FUNC_LEAD_IN_RE) - ], - keywords: "async", - className: { - 1: "keyword", - 3: "title.function" - }, - contains: [ - PARAMS - ] - }; - - return { - name: 'JavaScript', - aliases: ['js', 'jsx', 'mjs', 'cjs'], - keywords: KEYWORDS$1, - // this will be extended by TypeScript - exports: { PARAMS_CONTAINS, CLASS_REFERENCE }, - illegal: /#(?![$_A-z])/, - contains: [ - hljs.SHEBANG({ - label: "shebang", - binary: "node", - relevance: 5 - }), - USE_STRICT, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - HTML_TEMPLATE, - CSS_TEMPLATE, - GRAPHQL_TEMPLATE, - TEMPLATE_STRING, - COMMENT, - // Skip numbers when they are part of a variable name - { match: /\$\d+/ }, - NUMBER, - CLASS_REFERENCE, - { - scope: 'attr', - match: IDENT_RE$1 + regex.lookahead(':'), - relevance: 0 - }, - FUNCTION_VARIABLE, - { // "value" container - begin: '(' + hljs.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*', - keywords: 'return throw case', - relevance: 0, - contains: [ - COMMENT, - hljs.REGEXP_MODE, - { - className: 'function', - // we have to count the parens to make sure we actually have the - // correct bounding ( ) before the =>. There could be any number of - // sub-expressions inside also surrounded by parens. - begin: FUNC_LEAD_IN_RE, - returnBegin: true, - end: '\\s*=>', - contains: [ - { - className: 'params', - variants: [ - { - begin: hljs.UNDERSCORE_IDENT_RE, - relevance: 0 - }, - { - className: null, - begin: /\(\s*\)/, - skip: true - }, - { - begin: /(\s*)\(/, - end: /\)/, - excludeBegin: true, - excludeEnd: true, - keywords: KEYWORDS$1, - contains: PARAMS_CONTAINS - } - ] - } - ] - }, - { // could be a comma delimited list of params to a function call - begin: /,/, - relevance: 0 - }, - { - match: /\s+/, - relevance: 0 - }, - { // JSX - variants: [ - { begin: FRAGMENT.begin, end: FRAGMENT.end }, - { match: XML_SELF_CLOSING }, - { - begin: XML_TAG.begin, - // we carefully check the opening tag to see if it truly - // is a tag and not a false positive - 'on:begin': XML_TAG.isTrulyOpeningTag, - end: XML_TAG.end - } - ], - subLanguage: 'xml', - contains: [ - { - begin: XML_TAG.begin, - end: XML_TAG.end, - skip: true, - contains: ['self'] - } - ] - } - ], - }, - FUNCTION_DEFINITION, - { - // prevent this from getting swallowed up by function - // since they appear "function like" - beginKeywords: "while if switch catch for" - }, - { - // we have to count the parens to make sure we actually have the correct - // bounding ( ). There could be any number of sub-expressions inside - // also surrounded by parens. - begin: '\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE + - '\\(' + // first parens - '[^()]*(\\(' + - '[^()]*(\\(' + - '[^()]*' + - '\\)[^()]*)*' + - '\\)[^()]*)*' + - '\\)\\s*\\{', // end parens - returnBegin:true, - label: "func.def", - contains: [ - PARAMS, - hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" }) - ] - }, - // catch ... so it won't trigger the property rule below - { - match: /\.\.\./, - relevance: 0 - }, - PROPERTY_ACCESS, - // hack: prevents detection of keywords in some circumstances - // .keyword() - // $keyword = x - { - match: '\\$' + IDENT_RE$1, - relevance: 0 - }, - { - match: [ /\bconstructor(?=\s*\()/ ], - className: { 1: "title.function" }, - contains: [ PARAMS ] - }, - FUNCTION_CALL, - UPPER_CASE_CONSTANT, - CLASS_OR_EXTENDS, - GETTER_OR_SETTER, - { - match: /\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something` - } - ] - }; -} - -/* -Language: TypeScript -Author: Panu Horsmalahti -Contributors: Ike Ku -Description: TypeScript is a strict superset of JavaScript -Website: https://www.typescriptlang.org -Category: common, scripting -*/ - - -/** @type LanguageFn */ -function typescript(hljs) { - const regex = hljs.regex; - const tsLanguage = javascript(hljs); - - const IDENT_RE$1 = IDENT_RE; - const TYPES = [ - "any", - "void", - "number", - "boolean", - "string", - "object", - "never", - "symbol", - "bigint", - "unknown" - ]; - const NAMESPACE = { - begin: [ - /namespace/, - /\s+/, - hljs.IDENT_RE - ], - beginScope: { - 1: "keyword", - 3: "title.class" - } - }; - const INTERFACE = { - beginKeywords: 'interface', - end: /\{/, - excludeEnd: true, - keywords: { - keyword: 'interface extends', - built_in: TYPES - }, - contains: [ tsLanguage.exports.CLASS_REFERENCE ] - }; - const USE_STRICT = { - className: 'meta', - relevance: 10, - begin: /^\s*['"]use strict['"]/ - }; - const TS_SPECIFIC_KEYWORDS = [ - "type", - // "namespace", - "interface", - "public", - "private", - "protected", - "implements", - "declare", - "abstract", - "readonly", - "enum", - "override", - "satisfies" - ]; - /* - namespace is a TS keyword but it's fine to use it as a variable name too. - const message = 'foo'; - const namespace = 'bar'; - */ - const KEYWORDS$1 = { - $pattern: IDENT_RE, - keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS), - literal: LITERALS, - built_in: BUILT_INS.concat(TYPES), - "variable.language": BUILT_IN_VARIABLES - }; - - const DECORATOR = { - className: 'meta', - begin: '@' + IDENT_RE$1, - }; - - const swapMode = (mode, label, replacement) => { - const indx = mode.contains.findIndex(m => m.label === label); - if (indx === -1) { throw new Error("can not find mode to replace"); } - - mode.contains.splice(indx, 1, replacement); - }; - - - // this should update anywhere keywords is used since - // it will be the same actual JS object - Object.assign(tsLanguage.keywords, KEYWORDS$1); - - tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR); - - // highlight the function params - const ATTRIBUTE_HIGHLIGHT = tsLanguage.contains.find(c => c.scope === "attr"); - - // take default attr rule and extend it to support optionals - const OPTIONAL_KEY_OR_ARGUMENT = Object.assign({}, - ATTRIBUTE_HIGHLIGHT, - { match: regex.concat(IDENT_RE$1, regex.lookahead(/\s*\?:/)) } - ); - tsLanguage.exports.PARAMS_CONTAINS.push([ - tsLanguage.exports.CLASS_REFERENCE, // class reference for highlighting the params types - ATTRIBUTE_HIGHLIGHT, // highlight the params key - OPTIONAL_KEY_OR_ARGUMENT, // Added for optional property assignment highlighting - ]); - - // Add the optional property assignment highlighting for objects or classes - tsLanguage.contains = tsLanguage.contains.concat([ - DECORATOR, - NAMESPACE, - INTERFACE, - OPTIONAL_KEY_OR_ARGUMENT, // Added for optional property assignment highlighting - ]); - - // TS gets a simpler shebang rule than JS - swapMode(tsLanguage, "shebang", hljs.SHEBANG()); - // JS use strict rule purposely excludes `asm` which makes no sense - swapMode(tsLanguage, "use_strict", USE_STRICT); - - const functionDeclaration = tsLanguage.contains.find(m => m.label === "func.def"); - functionDeclaration.relevance = 0; // () => {} is more typical in TypeScript - - Object.assign(tsLanguage, { - name: 'TypeScript', - aliases: [ - 'ts', - 'tsx', - 'mts', - 'cts' - ] - }); - - return tsLanguage; -} - -export { typescript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js.js deleted file mode 100644 index aefe18c..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/typescript" instead of "highlight.js/lib/languages/typescript.js"' - ); - } - } - emitWarning(); - import lang from './typescript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vala.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vala.js deleted file mode 100644 index 52c2796..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vala.js +++ /dev/null @@ -1,61 +0,0 @@ -/* -Language: Vala -Author: Antono Vasiljev -Description: Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C. -Website: https://wiki.gnome.org/Projects/Vala -Category: system -*/ - -function vala(hljs) { - return { - name: 'Vala', - keywords: { - keyword: - // Value types - 'char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 ' - + 'uint16 uint32 uint64 float double bool struct enum string void ' - // Reference types - + 'weak unowned owned ' - // Modifiers - + 'async signal static abstract interface override virtual delegate ' - // Control Structures - + 'if while do for foreach else switch case break default return try catch ' - // Visibility - + 'public private protected internal ' - // Other - + 'using new this get set const stdout stdin stderr var', - built_in: - 'DBus GLib CCode Gee Object Gtk Posix', - literal: - 'false true null' - }, - contains: [ - { - className: 'class', - beginKeywords: 'class interface namespace', - end: /\{/, - excludeEnd: true, - illegal: '[^,:\\n\\s\\.]', - contains: [ hljs.UNDERSCORE_TITLE_MODE ] - }, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - { - className: 'string', - begin: '"""', - end: '"""', - relevance: 5 - }, - hljs.APOS_STRING_MODE, - hljs.QUOTE_STRING_MODE, - hljs.C_NUMBER_MODE, - { - className: 'meta', - begin: '^#', - end: '$', - } - ] - }; -} - -export { vala as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vala.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vala.js.js deleted file mode 100644 index 754999e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vala.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vala" instead of "highlight.js/lib/languages/vala.js"' - ); - } - } - emitWarning(); - import lang from './vala.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js deleted file mode 100644 index ebd6dae..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js +++ /dev/null @@ -1,157 +0,0 @@ -/* -Language: Visual Basic .NET -Description: Visual Basic .NET (VB.NET) is a multi-paradigm, object-oriented programming language, implemented on the .NET Framework. -Authors: Poren Chiang , Jan Pilzer -Website: https://docs.microsoft.com/dotnet/visual-basic/getting-started -Category: common -*/ - -/** @type LanguageFn */ -function vbnet(hljs) { - const regex = hljs.regex; - /** - * Character Literal - * Either a single character ("a"C) or an escaped double quote (""""C). - */ - const CHARACTER = { - className: 'string', - begin: /"(""|[^/n])"C\b/ - }; - - const STRING = { - className: 'string', - begin: /"/, - end: /"/, - illegal: /\n/, - contains: [ - { - // double quote escape - begin: /""/ } - ] - }; - - /** Date Literals consist of a date, a time, or both separated by whitespace, surrounded by # */ - const MM_DD_YYYY = /\d{1,2}\/\d{1,2}\/\d{4}/; - const YYYY_MM_DD = /\d{4}-\d{1,2}-\d{1,2}/; - const TIME_12H = /(\d|1[012])(:\d+){0,2} *(AM|PM)/; - const TIME_24H = /\d{1,2}(:\d{1,2}){1,2}/; - const DATE = { - className: 'literal', - variants: [ - { - // #YYYY-MM-DD# (ISO-Date) or #M/D/YYYY# (US-Date) - begin: regex.concat(/# */, regex.either(YYYY_MM_DD, MM_DD_YYYY), / *#/) }, - { - // #H:mm[:ss]# (24h Time) - begin: regex.concat(/# */, TIME_24H, / *#/) }, - { - // #h[:mm[:ss]] A# (12h Time) - begin: regex.concat(/# */, TIME_12H, / *#/) }, - { - // date plus time - begin: regex.concat( - /# */, - regex.either(YYYY_MM_DD, MM_DD_YYYY), - / +/, - regex.either(TIME_12H, TIME_24H), - / *#/ - ) } - ] - }; - - const NUMBER = { - className: 'number', - relevance: 0, - variants: [ - { - // Float - begin: /\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/ }, - { - // Integer (base 10) - begin: /\b\d[\d_]*((U?[SIL])|[%&])?/ }, - { - // Integer (base 16) - begin: /&H[\dA-F_]+((U?[SIL])|[%&])?/ }, - { - // Integer (base 8) - begin: /&O[0-7_]+((U?[SIL])|[%&])?/ }, - { - // Integer (base 2) - begin: /&B[01_]+((U?[SIL])|[%&])?/ } - ] - }; - - const LABEL = { - className: 'label', - begin: /^\w+:/ - }; - - const DOC_COMMENT = hljs.COMMENT(/'''/, /$/, { contains: [ - { - className: 'doctag', - begin: /<\/?/, - end: />/ - } - ] }); - - const COMMENT = hljs.COMMENT(null, /$/, { variants: [ - { begin: /'/ }, - { - // TODO: Use multi-class for leading spaces - begin: /([\t ]|^)REM(?=\s)/ } - ] }); - - const DIRECTIVES = { - className: 'meta', - // TODO: Use multi-class for indentation once available - begin: /[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/, - end: /$/, - keywords: { keyword: - 'const disable else elseif enable end externalsource if region then' }, - contains: [ COMMENT ] - }; - - return { - name: 'Visual Basic .NET', - aliases: [ 'vb' ], - case_insensitive: true, - classNameAliases: { label: 'symbol' }, - keywords: { - keyword: - 'addhandler alias aggregate ansi as async assembly auto binary by byref byval ' /* a-b */ - + 'call case catch class compare const continue custom declare default delegate dim distinct do ' /* c-d */ - + 'each equals else elseif end enum erase error event exit explicit finally for friend from function ' /* e-f */ - + 'get global goto group handles if implements imports in inherits interface into iterator ' /* g-i */ - + 'join key let lib loop me mid module mustinherit mustoverride mybase myclass ' /* j-m */ - + 'namespace narrowing new next notinheritable notoverridable ' /* n */ - + 'of off on operator option optional order overloads overridable overrides ' /* o */ - + 'paramarray partial preserve private property protected public ' /* p */ - + 'raiseevent readonly redim removehandler resume return ' /* r */ - + 'select set shadows shared skip static step stop structure strict sub synclock ' /* s */ - + 'take text then throw to try unicode until using when where while widening with withevents writeonly yield' /* t-y */, - built_in: - // Operators https://docs.microsoft.com/dotnet/visual-basic/language-reference/operators - 'addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor ' - // Type Conversion Functions https://docs.microsoft.com/dotnet/visual-basic/language-reference/functions/type-conversion-functions - + 'cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort', - type: - // Data types https://docs.microsoft.com/dotnet/visual-basic/language-reference/data-types - 'boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort', - literal: 'true false nothing' - }, - illegal: - '//|\\{|\\}|endif|gosub|variant|wend|^\\$ ' /* reserved deprecated keywords */, - contains: [ - CHARACTER, - STRING, - DATE, - NUMBER, - LABEL, - DOC_COMMENT, - COMMENT, - DIRECTIVES - ] - }; -} - -export { vbnet as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js.js deleted file mode 100644 index e7a09c2..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbnet.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vbnet" instead of "highlight.js/lib/languages/vbnet.js"' - ); - } - } - emitWarning(); - import lang from './vbnet.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript-html.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript-html.js deleted file mode 100644 index 0c3c16e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript-html.js +++ /dev/null @@ -1,24 +0,0 @@ -/* -Language: VBScript in HTML -Requires: xml.js, vbscript.js -Author: Ivan Sagalaev -Description: "Bridge" language defining fragments of VBScript in HTML within <% .. %> -Website: https://en.wikipedia.org/wiki/VBScript -Category: scripting -*/ - -function vbscriptHtml(hljs) { - return { - name: 'VBScript in HTML', - subLanguage: 'xml', - contains: [ - { - begin: '<%', - end: '%>', - subLanguage: 'vbscript' - } - ] - }; -} - -export { vbscriptHtml as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript-html.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript-html.js.js deleted file mode 100644 index f13724b..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript-html.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vbscript-html" instead of "highlight.js/lib/languages/vbscript-html.js"' - ); - } - } - emitWarning(); - import lang from './vbscript-html.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript.js deleted file mode 100644 index 691637d..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript.js +++ /dev/null @@ -1,220 +0,0 @@ -/* -Language: VBScript -Description: VBScript ("Microsoft Visual Basic Scripting Edition") is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. -Author: Nikita Ledyaev -Contributors: Michal Gabrukiewicz -Website: https://en.wikipedia.org/wiki/VBScript -Category: scripting -*/ - -/** @type LanguageFn */ -function vbscript(hljs) { - const regex = hljs.regex; - const BUILT_IN_FUNCTIONS = [ - "lcase", - "month", - "vartype", - "instrrev", - "ubound", - "setlocale", - "getobject", - "rgb", - "getref", - "string", - "weekdayname", - "rnd", - "dateadd", - "monthname", - "now", - "day", - "minute", - "isarray", - "cbool", - "round", - "formatcurrency", - "conversions", - "csng", - "timevalue", - "second", - "year", - "space", - "abs", - "clng", - "timeserial", - "fixs", - "len", - "asc", - "isempty", - "maths", - "dateserial", - "atn", - "timer", - "isobject", - "filter", - "weekday", - "datevalue", - "ccur", - "isdate", - "instr", - "datediff", - "formatdatetime", - "replace", - "isnull", - "right", - "sgn", - "array", - "snumeric", - "log", - "cdbl", - "hex", - "chr", - "lbound", - "msgbox", - "ucase", - "getlocale", - "cos", - "cdate", - "cbyte", - "rtrim", - "join", - "hour", - "oct", - "typename", - "trim", - "strcomp", - "int", - "createobject", - "loadpicture", - "tan", - "formatnumber", - "mid", - "split", - "cint", - "sin", - "datepart", - "ltrim", - "sqr", - "time", - "derived", - "eval", - "date", - "formatpercent", - "exp", - "inputbox", - "left", - "ascw", - "chrw", - "regexp", - "cstr", - "err" - ]; - const BUILT_IN_OBJECTS = [ - "server", - "response", - "request", - // take no arguments so can be called without () - "scriptengine", - "scriptenginebuildversion", - "scriptengineminorversion", - "scriptenginemajorversion" - ]; - - const BUILT_IN_CALL = { - begin: regex.concat(regex.either(...BUILT_IN_FUNCTIONS), "\\s*\\("), - // relevance 0 because this is acting as a beginKeywords really - relevance: 0, - keywords: { built_in: BUILT_IN_FUNCTIONS } - }; - - const LITERALS = [ - "true", - "false", - "null", - "nothing", - "empty" - ]; - - const KEYWORDS = [ - "call", - "class", - "const", - "dim", - "do", - "loop", - "erase", - "execute", - "executeglobal", - "exit", - "for", - "each", - "next", - "function", - "if", - "then", - "else", - "on", - "error", - "option", - "explicit", - "new", - "private", - "property", - "let", - "get", - "public", - "randomize", - "redim", - "rem", - "select", - "case", - "set", - "stop", - "sub", - "while", - "wend", - "with", - "end", - "to", - "elseif", - "is", - "or", - "xor", - "and", - "not", - "class_initialize", - "class_terminate", - "default", - "preserve", - "in", - "me", - "byval", - "byref", - "step", - "resume", - "goto" - ]; - - return { - name: 'VBScript', - aliases: [ 'vbs' ], - case_insensitive: true, - keywords: { - keyword: KEYWORDS, - built_in: BUILT_IN_OBJECTS, - literal: LITERALS - }, - illegal: '//', - contains: [ - BUILT_IN_CALL, - hljs.inherit(hljs.QUOTE_STRING_MODE, { contains: [ { begin: '""' } ] }), - hljs.COMMENT( - /'/, - /$/, - { relevance: 0 } - ), - hljs.C_NUMBER_MODE - ] - }; -} - -export { vbscript as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript.js.js deleted file mode 100644 index e3df308..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vbscript.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vbscript" instead of "highlight.js/lib/languages/vbscript.js"' - ); - } - } - emitWarning(); - import lang from './vbscript.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/verilog.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/verilog.js deleted file mode 100644 index 3281813..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/verilog.js +++ /dev/null @@ -1,550 +0,0 @@ -/* -Language: Verilog -Author: Jon Evans -Contributors: Boone Severson -Description: Verilog is a hardware description language used in electronic design automation to describe digital and mixed-signal systems. This highlighter supports Verilog and SystemVerilog through IEEE 1800-2012. -Website: http://www.verilog.com -Category: hardware -*/ - -function verilog(hljs) { - const regex = hljs.regex; - const KEYWORDS = { - $pattern: /\$?[\w]+(\$[\w]+)*/, - keyword: [ - "accept_on", - "alias", - "always", - "always_comb", - "always_ff", - "always_latch", - "and", - "assert", - "assign", - "assume", - "automatic", - "before", - "begin", - "bind", - "bins", - "binsof", - "bit", - "break", - "buf|0", - "bufif0", - "bufif1", - "byte", - "case", - "casex", - "casez", - "cell", - "chandle", - "checker", - "class", - "clocking", - "cmos", - "config", - "const", - "constraint", - "context", - "continue", - "cover", - "covergroup", - "coverpoint", - "cross", - "deassign", - "default", - "defparam", - "design", - "disable", - "dist", - "do", - "edge", - "else", - "end", - "endcase", - "endchecker", - "endclass", - "endclocking", - "endconfig", - "endfunction", - "endgenerate", - "endgroup", - "endinterface", - "endmodule", - "endpackage", - "endprimitive", - "endprogram", - "endproperty", - "endspecify", - "endsequence", - "endtable", - "endtask", - "enum", - "event", - "eventually", - "expect", - "export", - "extends", - "extern", - "final", - "first_match", - "for", - "force", - "foreach", - "forever", - "fork", - "forkjoin", - "function", - "generate|5", - "genvar", - "global", - "highz0", - "highz1", - "if", - "iff", - "ifnone", - "ignore_bins", - "illegal_bins", - "implements", - "implies", - "import", - "incdir", - "include", - "initial", - "inout", - "input", - "inside", - "instance", - "int", - "integer", - "interconnect", - "interface", - "intersect", - "join", - "join_any", - "join_none", - "large", - "let", - "liblist", - "library", - "local", - "localparam", - "logic", - "longint", - "macromodule", - "matches", - "medium", - "modport", - "module", - "nand", - "negedge", - "nettype", - "new", - "nexttime", - "nmos", - "nor", - "noshowcancelled", - "not", - "notif0", - "notif1", - "or", - "output", - "package", - "packed", - "parameter", - "pmos", - "posedge", - "primitive", - "priority", - "program", - "property", - "protected", - "pull0", - "pull1", - "pulldown", - "pullup", - "pulsestyle_ondetect", - "pulsestyle_onevent", - "pure", - "rand", - "randc", - "randcase", - "randsequence", - "rcmos", - "real", - "realtime", - "ref", - "reg", - "reject_on", - "release", - "repeat", - "restrict", - "return", - "rnmos", - "rpmos", - "rtran", - "rtranif0", - "rtranif1", - "s_always", - "s_eventually", - "s_nexttime", - "s_until", - "s_until_with", - "scalared", - "sequence", - "shortint", - "shortreal", - "showcancelled", - "signed", - "small", - "soft", - "solve", - "specify", - "specparam", - "static", - "string", - "strong", - "strong0", - "strong1", - "struct", - "super", - "supply0", - "supply1", - "sync_accept_on", - "sync_reject_on", - "table", - "tagged", - "task", - "this", - "throughout", - "time", - "timeprecision", - "timeunit", - "tran", - "tranif0", - "tranif1", - "tri", - "tri0", - "tri1", - "triand", - "trior", - "trireg", - "type", - "typedef", - "union", - "unique", - "unique0", - "unsigned", - "until", - "until_with", - "untyped", - "use", - "uwire", - "var", - "vectored", - "virtual", - "void", - "wait", - "wait_order", - "wand", - "weak", - "weak0", - "weak1", - "while", - "wildcard", - "wire", - "with", - "within", - "wor", - "xnor", - "xor" - ], - literal: [ 'null' ], - built_in: [ - "$finish", - "$stop", - "$exit", - "$fatal", - "$error", - "$warning", - "$info", - "$realtime", - "$time", - "$printtimescale", - "$bitstoreal", - "$bitstoshortreal", - "$itor", - "$signed", - "$cast", - "$bits", - "$stime", - "$timeformat", - "$realtobits", - "$shortrealtobits", - "$rtoi", - "$unsigned", - "$asserton", - "$assertkill", - "$assertpasson", - "$assertfailon", - "$assertnonvacuouson", - "$assertoff", - "$assertcontrol", - "$assertpassoff", - "$assertfailoff", - "$assertvacuousoff", - "$isunbounded", - "$sampled", - "$fell", - "$changed", - "$past_gclk", - "$fell_gclk", - "$changed_gclk", - "$rising_gclk", - "$steady_gclk", - "$coverage_control", - "$coverage_get", - "$coverage_save", - "$set_coverage_db_name", - "$rose", - "$stable", - "$past", - "$rose_gclk", - "$stable_gclk", - "$future_gclk", - "$falling_gclk", - "$changing_gclk", - "$display", - "$coverage_get_max", - "$coverage_merge", - "$get_coverage", - "$load_coverage_db", - "$typename", - "$unpacked_dimensions", - "$left", - "$low", - "$increment", - "$clog2", - "$ln", - "$log10", - "$exp", - "$sqrt", - "$pow", - "$floor", - "$ceil", - "$sin", - "$cos", - "$tan", - "$countbits", - "$onehot", - "$isunknown", - "$fatal", - "$warning", - "$dimensions", - "$right", - "$high", - "$size", - "$asin", - "$acos", - "$atan", - "$atan2", - "$hypot", - "$sinh", - "$cosh", - "$tanh", - "$asinh", - "$acosh", - "$atanh", - "$countones", - "$onehot0", - "$error", - "$info", - "$random", - "$dist_chi_square", - "$dist_erlang", - "$dist_exponential", - "$dist_normal", - "$dist_poisson", - "$dist_t", - "$dist_uniform", - "$q_initialize", - "$q_remove", - "$q_exam", - "$async$and$array", - "$async$nand$array", - "$async$or$array", - "$async$nor$array", - "$sync$and$array", - "$sync$nand$array", - "$sync$or$array", - "$sync$nor$array", - "$q_add", - "$q_full", - "$psprintf", - "$async$and$plane", - "$async$nand$plane", - "$async$or$plane", - "$async$nor$plane", - "$sync$and$plane", - "$sync$nand$plane", - "$sync$or$plane", - "$sync$nor$plane", - "$system", - "$display", - "$displayb", - "$displayh", - "$displayo", - "$strobe", - "$strobeb", - "$strobeh", - "$strobeo", - "$write", - "$readmemb", - "$readmemh", - "$writememh", - "$value$plusargs", - "$dumpvars", - "$dumpon", - "$dumplimit", - "$dumpports", - "$dumpportson", - "$dumpportslimit", - "$writeb", - "$writeh", - "$writeo", - "$monitor", - "$monitorb", - "$monitorh", - "$monitoro", - "$writememb", - "$dumpfile", - "$dumpoff", - "$dumpall", - "$dumpflush", - "$dumpportsoff", - "$dumpportsall", - "$dumpportsflush", - "$fclose", - "$fdisplay", - "$fdisplayb", - "$fdisplayh", - "$fdisplayo", - "$fstrobe", - "$fstrobeb", - "$fstrobeh", - "$fstrobeo", - "$swrite", - "$swriteb", - "$swriteh", - "$swriteo", - "$fscanf", - "$fread", - "$fseek", - "$fflush", - "$feof", - "$fopen", - "$fwrite", - "$fwriteb", - "$fwriteh", - "$fwriteo", - "$fmonitor", - "$fmonitorb", - "$fmonitorh", - "$fmonitoro", - "$sformat", - "$sformatf", - "$fgetc", - "$ungetc", - "$fgets", - "$sscanf", - "$rewind", - "$ftell", - "$ferror" - ] - }; - const BUILT_IN_CONSTANTS = [ - "__FILE__", - "__LINE__" - ]; - const DIRECTIVES = [ - "begin_keywords", - "celldefine", - "default_nettype", - "default_decay_time", - "default_trireg_strength", - "define", - "delay_mode_distributed", - "delay_mode_path", - "delay_mode_unit", - "delay_mode_zero", - "else", - "elsif", - "end_keywords", - "endcelldefine", - "endif", - "ifdef", - "ifndef", - "include", - "line", - "nounconnected_drive", - "pragma", - "resetall", - "timescale", - "unconnected_drive", - "undef", - "undefineall" - ]; - - return { - name: 'Verilog', - aliases: [ - 'v', - 'sv', - 'svh' - ], - case_insensitive: false, - keywords: KEYWORDS, - contains: [ - hljs.C_BLOCK_COMMENT_MODE, - hljs.C_LINE_COMMENT_MODE, - hljs.QUOTE_STRING_MODE, - { - scope: 'number', - contains: [ hljs.BACKSLASH_ESCAPE ], - variants: [ - { begin: /\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ }, - { begin: /\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/ }, - { // decimal - begin: /\b[0-9][0-9_]*/, - relevance: 0 - } - ] - }, - /* parameters to instances */ - { - scope: 'variable', - variants: [ - { begin: '#\\((?!parameter).+\\)' }, - { - begin: '\\.\\w+', - relevance: 0 - } - ] - }, - { - scope: 'variable.constant', - match: regex.concat(/`/, regex.either(...BUILT_IN_CONSTANTS)), - }, - { - scope: 'meta', - begin: regex.concat(/`/, regex.either(...DIRECTIVES)), - end: /$|\/\/|\/\*/, - returnEnd: true, - keywords: DIRECTIVES - } - ] - }; -} - -export { verilog as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/verilog.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/verilog.js.js deleted file mode 100644 index 2dc028f..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/verilog.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/verilog" instead of "highlight.js/lib/languages/verilog.js"' - ); - } - } - emitWarning(); - import lang from './verilog.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js deleted file mode 100644 index 89e2047..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js +++ /dev/null @@ -1,216 +0,0 @@ -/* -Language: VHDL -Author: Igor Kalnitsky -Contributors: Daniel C.K. Kho , Guillaume Savaton -Description: VHDL is a hardware description language used in electronic design automation to describe digital and mixed-signal systems. -Website: https://en.wikipedia.org/wiki/VHDL -Category: hardware -*/ - -function vhdl(hljs) { - // Regular expression for VHDL numeric literals. - - // Decimal literal: - const INTEGER_RE = '\\d(_|\\d)*'; - const EXPONENT_RE = '[eE][-+]?' + INTEGER_RE; - const DECIMAL_LITERAL_RE = INTEGER_RE + '(\\.' + INTEGER_RE + ')?' + '(' + EXPONENT_RE + ')?'; - // Based literal: - const BASED_INTEGER_RE = '\\w+'; - const BASED_LITERAL_RE = INTEGER_RE + '#' + BASED_INTEGER_RE + '(\\.' + BASED_INTEGER_RE + ')?' + '#' + '(' + EXPONENT_RE + ')?'; - - const NUMBER_RE = '\\b(' + BASED_LITERAL_RE + '|' + DECIMAL_LITERAL_RE + ')'; - - const KEYWORDS = [ - "abs", - "access", - "after", - "alias", - "all", - "and", - "architecture", - "array", - "assert", - "assume", - "assume_guarantee", - "attribute", - "begin", - "block", - "body", - "buffer", - "bus", - "case", - "component", - "configuration", - "constant", - "context", - "cover", - "disconnect", - "downto", - "default", - "else", - "elsif", - "end", - "entity", - "exit", - "fairness", - "file", - "for", - "force", - "function", - "generate", - "generic", - "group", - "guarded", - "if", - "impure", - "in", - "inertial", - "inout", - "is", - "label", - "library", - "linkage", - "literal", - "loop", - "map", - "mod", - "nand", - "new", - "next", - "nor", - "not", - "null", - "of", - "on", - "open", - "or", - "others", - "out", - "package", - "parameter", - "port", - "postponed", - "procedure", - "process", - "property", - "protected", - "pure", - "range", - "record", - "register", - "reject", - "release", - "rem", - "report", - "restrict", - "restrict_guarantee", - "return", - "rol", - "ror", - "select", - "sequence", - "severity", - "shared", - "signal", - "sla", - "sll", - "sra", - "srl", - "strong", - "subtype", - "then", - "to", - "transport", - "type", - "unaffected", - "units", - "until", - "use", - "variable", - "view", - "vmode", - "vprop", - "vunit", - "wait", - "when", - "while", - "with", - "xnor", - "xor" - ]; - const BUILT_INS = [ - "boolean", - "bit", - "character", - "integer", - "time", - "delay_length", - "natural", - "positive", - "string", - "bit_vector", - "file_open_kind", - "file_open_status", - "std_logic", - "std_logic_vector", - "unsigned", - "signed", - "boolean_vector", - "integer_vector", - "std_ulogic", - "std_ulogic_vector", - "unresolved_unsigned", - "u_unsigned", - "unresolved_signed", - "u_signed", - "real_vector", - "time_vector" - ]; - const LITERALS = [ - // severity_level - "false", - "true", - "note", - "warning", - "error", - "failure", - // textio - "line", - "text", - "side", - "width" - ]; - - return { - name: 'VHDL', - case_insensitive: true, - keywords: { - keyword: KEYWORDS, - built_in: BUILT_INS, - literal: LITERALS - }, - illegal: /\{/, - contains: [ - hljs.C_BLOCK_COMMENT_MODE, // VHDL-2008 block commenting. - hljs.COMMENT('--', '$'), - hljs.QUOTE_STRING_MODE, - { - className: 'number', - begin: NUMBER_RE, - relevance: 0 - }, - { - className: 'string', - begin: '\'(U|X|0|1|Z|W|L|H|-)\'', - contains: [ hljs.BACKSLASH_ESCAPE ] - }, - { - className: 'symbol', - begin: '\'[A-Za-z](_?[A-Za-z0-9])*', - contains: [ hljs.BACKSLASH_ESCAPE ] - } - ] - }; -} - -export { vhdl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js.js deleted file mode 100644 index 237e2b3..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vhdl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vhdl" instead of "highlight.js/lib/languages/vhdl.js"' - ); - } - } - emitWarning(); - import lang from './vhdl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vim.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vim.js deleted file mode 100644 index bbc6ce0..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vim.js +++ /dev/null @@ -1,129 +0,0 @@ -/* -Language: Vim Script -Author: Jun Yang -Description: full keyword and built-in from http://vimdoc.sourceforge.net/htmldoc/ -Website: https://www.vim.org -Category: scripting -*/ - -function vim(hljs) { - return { - name: 'Vim Script', - keywords: { - $pattern: /[!#@\w]+/, - keyword: - // express version except: ! & * < = > !! # @ @@ - 'N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope ' - + 'cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ' - + 'ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 ' - + 'profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor ' - + 'so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew ' - + 'tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ ' - // full version - + 'Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload ' - + 'bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap ' - + 'cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor ' - + 'endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap ' - + 'imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview ' - + 'lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap ' - + 'nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ' - + 'ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding ' - + 'scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace ' - + 'startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious ' + 'trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew ' - + 'vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank', - built_in: // built in func - 'synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv ' - + 'complete_check add getwinposx getqflist getwinposy screencol ' - + 'clearmatches empty extend getcmdpos mzeval garbagecollect setreg ' - + 'ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable ' - + 'shiftwidth max sinh isdirectory synID system inputrestore winline ' - + 'atan visualmode inputlist tabpagewinnr round getregtype mapcheck ' - + 'hasmapto histdel argidx findfile sha256 exists toupper getcmdline ' - + 'taglist string getmatches bufnr strftime winwidth bufexists ' - + 'strtrans tabpagebuflist setcmdpos remote_read printf setloclist ' - + 'getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval ' - + 'resolve libcallnr foldclosedend reverse filter has_key bufname ' - + 'str2float strlen setline getcharmod setbufvar index searchpos ' - + 'shellescape undofile foldclosed setqflist buflisted strchars str2nr ' - + 'virtcol floor remove undotree remote_expr winheight gettabwinvar ' - + 'reltime cursor tabpagenr finddir localtime acos getloclist search ' - + 'tanh matchend rename gettabvar strdisplaywidth type abs py3eval ' - + 'setwinvar tolower wildmenumode log10 spellsuggest bufloaded ' - + 'synconcealed nextnonblank server2client complete settabwinvar ' - + 'executable input wincol setmatches getftype hlID inputsave ' - + 'searchpair or screenrow line settabvar histadd deepcopy strpart ' - + 'remote_peek and eval getftime submatch screenchar winsaveview ' - + 'matchadd mkdir screenattr getfontname libcall reltimestr getfsize ' - + 'winnr invert pow getbufline byte2line soundfold repeat fnameescape ' - + 'tagfiles sin strwidth spellbadword trunc maparg log lispindent ' - + 'hostname setpos globpath remote_foreground getchar synIDattr ' - + 'fnamemodify cscope_connection stridx winbufnr indent min ' - + 'complete_add nr2char searchpairpos inputdialog values matchlist ' - + 'items hlexists strridx browsedir expand fmod pathshorten line2byte ' - + 'argc count getwinvar glob foldtextresult getreg foreground cosh ' - + 'matchdelete has char2nr simplify histget searchdecl iconv ' - + 'winrestcmd pumvisible writefile foldlevel haslocaldir keys cos ' - + 'matchstr foldtext histnr tan tempname getcwd byteidx getbufvar ' - + 'islocked escape eventhandler remote_send serverlist winrestview ' - + 'synstack pyeval prevnonblank readfile cindent filereadable changenr ' - + 'exp' - }, - illegal: /;/, - contains: [ - hljs.NUMBER_MODE, - { - className: 'string', - begin: '\'', - end: '\'', - illegal: '\\n' - }, - - /* - A double quote can start either a string or a line comment. Strings are - ended before the end of a line by another double quote and can contain - escaped double-quotes and post-escaped line breaks. - - Also, any double quote at the beginning of a line is a comment but we - don't handle that properly at the moment: any double quote inside will - turn them into a string. Handling it properly will require a smarter - parser. - */ - { - className: 'string', - begin: /"(\\"|\n\\|[^"\n])*"/ - }, - hljs.COMMENT('"', '$'), - - { - className: 'variable', - begin: /[bwtglsav]:[\w\d_]+/ - }, - { - begin: [ - /\b(?:function|function!)/, - /\s+/, - hljs.IDENT_RE - ], - className: { - 1: "keyword", - 3: "title" - }, - end: '$', - relevance: 0, - contains: [ - { - className: 'params', - begin: '\\(', - end: '\\)' - } - ] - }, - { - className: 'symbol', - begin: /<[\w-]+>/ - } - ] - }; -} - -export { vim as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vim.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vim.js.js deleted file mode 100644 index e47c5c9..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/vim.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/vim" instead of "highlight.js/lib/languages/vim.js"' - ); - } - } - emitWarning(); - import lang from './vim.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js deleted file mode 100644 index 611f604..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js +++ /dev/null @@ -1,139 +0,0 @@ -/* -Language: WebAssembly -Website: https://webassembly.org -Description: Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications. -Category: web, common -Audit: 2020 -*/ - -/** @type LanguageFn */ -function wasm(hljs) { - hljs.regex; - const BLOCK_COMMENT = hljs.COMMENT(/\(;/, /;\)/); - BLOCK_COMMENT.contains.push("self"); - const LINE_COMMENT = hljs.COMMENT(/;;/, /$/); - - const KWS = [ - "anyfunc", - "block", - "br", - "br_if", - "br_table", - "call", - "call_indirect", - "data", - "drop", - "elem", - "else", - "end", - "export", - "func", - "global.get", - "global.set", - "local.get", - "local.set", - "local.tee", - "get_global", - "get_local", - "global", - "if", - "import", - "local", - "loop", - "memory", - "memory.grow", - "memory.size", - "module", - "mut", - "nop", - "offset", - "param", - "result", - "return", - "select", - "set_global", - "set_local", - "start", - "table", - "tee_local", - "then", - "type", - "unreachable" - ]; - - const FUNCTION_REFERENCE = { - begin: [ - /(?:func|call|call_indirect)/, - /\s+/, - /\$[^\s)]+/ - ], - className: { - 1: "keyword", - 3: "title.function" - } - }; - - const ARGUMENT = { - className: "variable", - begin: /\$[\w_]+/ - }; - - const PARENS = { - match: /(\((?!;)|\))+/, - className: "punctuation", - relevance: 0 - }; - - const NUMBER = { - className: "number", - relevance: 0, - // borrowed from Prism, TODO: split out into variants - match: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/ - }; - - const TYPE = { - // look-ahead prevents us from gobbling up opcodes - match: /(i32|i64|f32|f64)(?!\.)/, - className: "type" - }; - - const MATH_OPERATIONS = { - className: "keyword", - // borrowed from Prism, TODO: split out into variants - match: /\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/ - }; - - const OFFSET_ALIGN = { - match: [ - /(?:offset|align)/, - /\s*/, - /=/ - ], - className: { - 1: "keyword", - 3: "operator" - } - }; - - return { - name: 'WebAssembly', - keywords: { - $pattern: /[\w.]+/, - keyword: KWS - }, - contains: [ - LINE_COMMENT, - BLOCK_COMMENT, - OFFSET_ALIGN, - ARGUMENT, - PARENS, - FUNCTION_REFERENCE, - hljs.QUOTE_STRING_MODE, - TYPE, - MATH_OPERATIONS, - NUMBER - ] - }; -} - -export { wasm as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js.js deleted file mode 100644 index 2eb9cda..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wasm.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/wasm" instead of "highlight.js/lib/languages/wasm.js"' - ); - } - } - emitWarning(); - import lang from './wasm.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wren.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wren.js deleted file mode 100644 index 8970c9e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wren.js +++ /dev/null @@ -1,302 +0,0 @@ -/* -Language: Wren -Description: Think Smalltalk in a Lua-sized package with a dash of Erlang and wrapped up in a familiar, modern syntax. -Category: scripting -Author: @joshgoebel -Maintainer: @joshgoebel -Website: https://wren.io/ -*/ - -/** @type LanguageFn */ -function wren(hljs) { - const regex = hljs.regex; - const IDENT_RE = /[a-zA-Z]\w*/; - const KEYWORDS = [ - "as", - "break", - "class", - "construct", - "continue", - "else", - "for", - "foreign", - "if", - "import", - "in", - "is", - "return", - "static", - "var", - "while" - ]; - const LITERALS = [ - "true", - "false", - "null" - ]; - const LANGUAGE_VARS = [ - "this", - "super" - ]; - const CORE_CLASSES = [ - "Bool", - "Class", - "Fiber", - "Fn", - "List", - "Map", - "Null", - "Num", - "Object", - "Range", - "Sequence", - "String", - "System" - ]; - const OPERATORS = [ - "-", - "~", - /\*/, - "%", - /\.\.\./, - /\.\./, - /\+/, - "<<", - ">>", - ">=", - "<=", - "<", - ">", - /\^/, - /!=/, - /!/, - /\bis\b/, - "==", - "&&", - "&", - /\|\|/, - /\|/, - /\?:/, - "=" - ]; - const FUNCTION = { - relevance: 0, - match: regex.concat(/\b(?!(if|while|for|else|super)\b)/, IDENT_RE, /(?=\s*[({])/), - className: "title.function" - }; - const FUNCTION_DEFINITION = { - match: regex.concat( - regex.either( - regex.concat(/\b(?!(if|while|for|else|super)\b)/, IDENT_RE), - regex.either(...OPERATORS) - ), - /(?=\s*\([^)]+\)\s*\{)/), - className: "title.function", - starts: { contains: [ - { - begin: /\(/, - end: /\)/, - contains: [ - { - relevance: 0, - scope: "params", - match: IDENT_RE - } - ] - } - ] } - }; - const CLASS_DEFINITION = { - variants: [ - { match: [ - /class\s+/, - IDENT_RE, - /\s+is\s+/, - IDENT_RE - ] }, - { match: [ - /class\s+/, - IDENT_RE - ] } - ], - scope: { - 2: "title.class", - 4: "title.class.inherited" - }, - keywords: KEYWORDS - }; - - const OPERATOR = { - relevance: 0, - match: regex.either(...OPERATORS), - className: "operator" - }; - - const TRIPLE_STRING = { - className: "string", - begin: /"""/, - end: /"""/ - }; - - const PROPERTY = { - className: "property", - begin: regex.concat(/\./, regex.lookahead(IDENT_RE)), - end: IDENT_RE, - excludeBegin: true, - relevance: 0 - }; - - const FIELD = { - relevance: 0, - match: regex.concat(/\b_/, IDENT_RE), - scope: "variable" - }; - - // CamelCase - const CLASS_REFERENCE = { - relevance: 0, - match: /\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/, - scope: "title.class", - keywords: { _: CORE_CLASSES } - }; - - // TODO: add custom number modes - const NUMBER = hljs.C_NUMBER_MODE; - - const SETTER = { - match: [ - IDENT_RE, - /\s*/, - /=/, - /\s*/, - /\(/, - IDENT_RE, - /\)\s*\{/ - ], - scope: { - 1: "title.function", - 3: "operator", - 6: "params" - } - }; - - const COMMENT_DOCS = hljs.COMMENT( - /\/\*\*/, - /\*\//, - { contains: [ - { - match: /@[a-z]+/, - scope: "doctag" - }, - "self" - ] } - ); - const SUBST = { - scope: "subst", - begin: /%\(/, - end: /\)/, - contains: [ - NUMBER, - CLASS_REFERENCE, - FUNCTION, - FIELD, - OPERATOR - ] - }; - const STRING = { - scope: "string", - begin: /"/, - end: /"/, - contains: [ - SUBST, - { - scope: "char.escape", - variants: [ - { match: /\\\\|\\["0%abefnrtv]/ }, - { match: /\\x[0-9A-F]{2}/ }, - { match: /\\u[0-9A-F]{4}/ }, - { match: /\\U[0-9A-F]{8}/ } - ] - } - ] - }; - SUBST.contains.push(STRING); - - const ALL_KWS = [ - ...KEYWORDS, - ...LANGUAGE_VARS, - ...LITERALS - ]; - const VARIABLE = { - relevance: 0, - match: regex.concat( - "\\b(?!", - ALL_KWS.join("|"), - "\\b)", - /[a-zA-Z_]\w*(?:[?!]|\b)/ - ), - className: "variable" - }; - - // TODO: reconsider this in the future - const ATTRIBUTE = { - // scope: "meta", - scope: "comment", - variants: [ - { - begin: [ - /#!?/, - /[A-Za-z_]+(?=\()/ - ], - beginScope: { - // 2: "attr" - }, - keywords: { literal: LITERALS }, - contains: [ - // NUMBER, - // VARIABLE - ], - end: /\)/ - }, - { - begin: [ - /#!?/, - /[A-Za-z_]+/ - ], - beginScope: { - // 2: "attr" - }, - end: /$/ - } - ] - }; - - return { - name: "Wren", - keywords: { - keyword: KEYWORDS, - "variable.language": LANGUAGE_VARS, - literal: LITERALS - }, - contains: [ - ATTRIBUTE, - NUMBER, - STRING, - TRIPLE_STRING, - COMMENT_DOCS, - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - CLASS_REFERENCE, - CLASS_DEFINITION, - SETTER, - FUNCTION_DEFINITION, - FUNCTION, - OPERATOR, - FIELD, - PROPERTY, - VARIABLE - ] - }; -} - -export { wren as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wren.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wren.js.js deleted file mode 100644 index 68eb881..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/wren.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/wren" instead of "highlight.js/lib/languages/wren.js"' - ); - } - } - emitWarning(); - import lang from './wren.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/x86asm.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/x86asm.js deleted file mode 100644 index 5320933..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/x86asm.js +++ /dev/null @@ -1,153 +0,0 @@ -/* -Language: Intel x86 Assembly -Author: innocenat -Description: x86 assembly language using Intel's mnemonic and NASM syntax -Website: https://en.wikipedia.org/wiki/X86_assembly_language -Category: assembler -*/ - -function x86asm(hljs) { - return { - name: 'Intel x86 Assembly', - case_insensitive: true, - keywords: { - $pattern: '[.%]?' + hljs.IDENT_RE, - keyword: - 'lock rep repe repz repne repnz xaquire xrelease bnd nobnd ' - + 'aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63', - built_in: - // Instruction pointer - 'ip eip rip ' - // 8-bit registers - + 'al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ' - // 16-bit registers - + 'ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w ' - // 32-bit registers - + 'eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d ' - // 64-bit registers - + 'rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 ' - // Segment registers - + 'cs ds es fs gs ss ' - // Floating point stack registers - + 'st st0 st1 st2 st3 st4 st5 st6 st7 ' - // MMX Registers - + 'mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 ' - // SSE registers - + 'xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 ' - + 'xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ' - // AVX registers - + 'ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ' - + 'ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 ' - // AVX-512F registers - + 'zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 ' - + 'zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 ' - // AVX-512F mask registers - + 'k0 k1 k2 k3 k4 k5 k6 k7 ' - // Bound (MPX) register - + 'bnd0 bnd1 bnd2 bnd3 ' - // Special register - + 'cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 ' - // NASM altreg package - + 'r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b ' - + 'r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d ' - + 'r0h r1h r2h r3h ' - + 'r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l ' - - + 'db dw dd dq dt ddq do dy dz ' - + 'resb resw resd resq rest resdq reso resy resz ' - + 'incbin equ times ' - + 'byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr', - - meta: - '%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif ' - + '%if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep ' - + '%endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment ' - + '.nolist ' - + '__FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ ' - + '__UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend ' - + 'align alignb sectalign daz nodaz up down zero default option assume public ' - - + 'bits use16 use32 use64 default section segment absolute extern global common cpu float ' - + '__utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ ' - + '__float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ ' - + '__Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e ' - + 'float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__' - }, - contains: [ - hljs.COMMENT( - ';', - '$', - { relevance: 0 } - ), - { - className: 'number', - variants: [ - // Float number and x87 BCD - { - begin: '\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|' - + '(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b', - relevance: 0 - }, - - // Hex number in $ - { - begin: '\\$[0-9][0-9A-Fa-f]*', - relevance: 0 - }, - - // Number in H,D,T,Q,O,B,Y suffix - { begin: '\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b' }, - - // Number in X,D,T,Q,O,B,Y prefix - { begin: '\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b' } - ] - }, - // Double quote string - hljs.QUOTE_STRING_MODE, - { - className: 'string', - variants: [ - // Single-quoted string - { - begin: '\'', - end: '[^\\\\]\'' - }, - // Backquoted string - { - begin: '`', - end: '[^\\\\]`' - } - ], - relevance: 0 - }, - { - className: 'symbol', - variants: [ - // Global label and local label - { begin: '^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)' }, - // Macro-local label - { begin: '^\\s*%%[A-Za-z0-9_$#@~.?]*:' } - ], - relevance: 0 - }, - // Macro parameter - { - className: 'subst', - begin: '%[0-9]+', - relevance: 0 - }, - // Macro parameter - { - className: 'subst', - begin: '%!\S+', - relevance: 0 - }, - { - className: 'meta', - begin: /^\s*\.[\w_-]+/ - } - ] - }; -} - -export { x86asm as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/x86asm.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/x86asm.js.js deleted file mode 100644 index d52be08..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/x86asm.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/x86asm" instead of "highlight.js/lib/languages/x86asm.js"' - ); - } - } - emitWarning(); - import lang from './x86asm.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xl.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xl.js deleted file mode 100644 index b21085e..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xl.js +++ /dev/null @@ -1,205 +0,0 @@ -/* -Language: XL -Author: Christophe de Dinechin -Description: An extensible programming language, based on parse tree rewriting -Website: http://xlr.sf.net -*/ - -function xl(hljs) { - const KWS = [ - "if", - "then", - "else", - "do", - "while", - "until", - "for", - "loop", - "import", - "with", - "is", - "as", - "where", - "when", - "by", - "data", - "constant", - "integer", - "real", - "text", - "name", - "boolean", - "symbol", - "infix", - "prefix", - "postfix", - "block", - "tree" - ]; - const BUILT_INS = [ - "in", - "mod", - "rem", - "and", - "or", - "xor", - "not", - "abs", - "sign", - "floor", - "ceil", - "sqrt", - "sin", - "cos", - "tan", - "asin", - "acos", - "atan", - "exp", - "expm1", - "log", - "log2", - "log10", - "log1p", - "pi", - "at", - "text_length", - "text_range", - "text_find", - "text_replace", - "contains", - "page", - "slide", - "basic_slide", - "title_slide", - "title", - "subtitle", - "fade_in", - "fade_out", - "fade_at", - "clear_color", - "color", - "line_color", - "line_width", - "texture_wrap", - "texture_transform", - "texture", - "scale_?x", - "scale_?y", - "scale_?z?", - "translate_?x", - "translate_?y", - "translate_?z?", - "rotate_?x", - "rotate_?y", - "rotate_?z?", - "rectangle", - "circle", - "ellipse", - "sphere", - "path", - "line_to", - "move_to", - "quad_to", - "curve_to", - "theme", - "background", - "contents", - "locally", - "time", - "mouse_?x", - "mouse_?y", - "mouse_buttons" - ]; - const BUILTIN_MODULES = [ - "ObjectLoader", - "Animate", - "MovieCredits", - "Slides", - "Filters", - "Shading", - "Materials", - "LensFlare", - "Mapping", - "VLCAudioVideo", - "StereoDecoder", - "PointCloud", - "NetworkAccess", - "RemoteControl", - "RegExp", - "ChromaKey", - "Snowfall", - "NodeJS", - "Speech", - "Charts" - ]; - const LITERALS = [ - "true", - "false", - "nil" - ]; - const KEYWORDS = { - $pattern: /[a-zA-Z][a-zA-Z0-9_?]*/, - keyword: KWS, - literal: LITERALS, - built_in: BUILT_INS.concat(BUILTIN_MODULES) - }; - - const DOUBLE_QUOTE_TEXT = { - className: 'string', - begin: '"', - end: '"', - illegal: '\\n' - }; - const SINGLE_QUOTE_TEXT = { - className: 'string', - begin: '\'', - end: '\'', - illegal: '\\n' - }; - const LONG_TEXT = { - className: 'string', - begin: '<<', - end: '>>' - }; - const BASED_NUMBER = { - className: 'number', - begin: '[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?' - }; - const IMPORT = { - beginKeywords: 'import', - end: '$', - keywords: KEYWORDS, - contains: [ DOUBLE_QUOTE_TEXT ] - }; - const FUNCTION_DEFINITION = { - className: 'function', - begin: /[a-z][^\n]*->/, - returnBegin: true, - end: /->/, - contains: [ - hljs.inherit(hljs.TITLE_MODE, { starts: { - endsWithParent: true, - keywords: KEYWORDS - } }) - ] - }; - return { - name: 'XL', - aliases: [ 'tao' ], - keywords: KEYWORDS, - contains: [ - hljs.C_LINE_COMMENT_MODE, - hljs.C_BLOCK_COMMENT_MODE, - DOUBLE_QUOTE_TEXT, - SINGLE_QUOTE_TEXT, - LONG_TEXT, - FUNCTION_DEFINITION, - IMPORT, - BASED_NUMBER, - hljs.NUMBER_MODE - ] - }; -} - -export { xl as default }; diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xl.js.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xl.js.js deleted file mode 100644 index fa3d9dc..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xl.js.js +++ /dev/null @@ -1,11 +0,0 @@ -function emitWarning() { - if (!emitWarning.warned) { - emitWarning.warned = true; - console.log( - 'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/xl" instead of "highlight.js/lib/languages/xl.js"' - ); - } - } - emitWarning(); - import lang from './xl.js'; - export default lang; \ No newline at end of file diff --git a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js b/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js deleted file mode 100644 index 6df7c19..0000000 --- a/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +++ /dev/null @@ -1,241 +0,0 @@ -/* -Language: HTML, XML -Website: https://www.w3.org/XML/ -Category: common, web -Audit: 2020 -*/ - -/** @type LanguageFn */ -function xml(hljs) { - const regex = hljs.regex; - // XML names can have the following additional letters: https://www.w3.org/TR/xml/#NT-NameChar - // OTHER_NAME_CHARS = /[:\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]/; - // Element names start with NAME_START_CHAR followed by optional other Unicode letters, ASCII digits, hyphens, underscores, and periods - // const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/);; - // const XML_IDENT_RE = /[A-Z_a-z:\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]+/; - // const TAG_NAME_RE = regex.concat(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, regex.optional(/[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*:/), /[A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*/); - // however, to cater for performance and more Unicode support rely simply on the Unicode letter class - const TAG_NAME_RE = regex.concat(/[\p{L}_]/u, regex.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u); - const XML_IDENT_RE = /[\p{L}0-9._:-]+/u; - const XML_ENTITIES = { - className: 'symbol', - begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/ - }; - const XML_META_KEYWORDS = { - begin: /\s/, - contains: [ - { - className: 'keyword', - begin: /#?[a-z_][a-z1-9_-]+/, - illegal: /\n/ - } - ] - }; - const XML_META_PAR_KEYWORDS = hljs.inherit(XML_META_KEYWORDS, { - begin: /\(/, - end: /\)/ - }); - const APOS_META_STRING_MODE = hljs.inherit(hljs.APOS_STRING_MODE, { className: 'string' }); - const QUOTE_META_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { className: 'string' }); - const TAG_INTERNALS = { - endsWithParent: true, - illegal: /`]+/ } - ] - } - ] - } - ] - }; - return { - name: 'HTML, XML', - aliases: [ - 'html', - 'xhtml', - 'rss', - 'atom', - 'xjb', - 'xsd', - 'xsl', - 'plist', - 'wsf', - 'svg' - ], - case_insensitive: true, - unicodeRegex: true, - contains: [ - { - className: 'meta', - begin: //, - relevance: 10, - contains: [ - XML_META_KEYWORDS, - QUOTE_META_STRING_MODE, - APOS_META_STRING_MODE, - XML_META_PAR_KEYWORDS, - { - begin: /\[/, - end: /\]/, - contains: [ - { - className: 'meta', - begin: //, - contains: [ - XML_META_KEYWORDS, - XML_META_PAR_KEYWORDS, - QUOTE_META_STRING_MODE, - APOS_META_STRING_MODE - ] - } - ] - } - ] - }, - hljs.COMMENT( - //, - { relevance: 10 } - ), - { - begin: //, - relevance: 10 - }, - XML_ENTITIES, - // xml processing instructions - { - className: 'meta', - end: /\?>/, - variants: [ - { - begin: /<\?xml/, - relevance: 10, - contains: [ - QUOTE_META_STRING_MODE - ] - }, - { - begin: /<\?[a-z][a-z0-9]+/, - } - ] - - }, - { - className: 'tag', - /* - The lookahead pattern (?=...) ensures that 'begin' only matches - ')/, - end: />/, - keywords: { name: 'style' }, - contains: [ TAG_INTERNALS ], - starts: { - end: /<\/style>/, - returnEnd: true, - subLanguage: [ - 'css', - 'xml' - ] - } - }, - { - className: 'tag', - // See the comment in the ", - `` - ].join("") + result.join(""); - return { value: html2, size: html2.length }; - }); - return { html, pageId: snapshot.pageId, frameId: snapshot.frameId, index: this._index }; - } - resourceByUrl(url, method) { - const snapshot = this._snapshot; - let sameFrameResource; - let otherFrameResource; - for (const resource of this._resources) { - if (typeof resource._monotonicTime === "number" && resource._monotonicTime >= snapshot.timestamp) - break; - if (resource.response.status === 304) { - continue; - } - if (resource.request.url === url && resource.request.method === method) { - if (resource._frameref === snapshot.frameId) - sameFrameResource = resource; - else - otherFrameResource = resource; - } - } - let result = sameFrameResource ?? otherFrameResource; - if (result && method.toUpperCase() === "GET") { - let override = snapshot.resourceOverrides.find((o) => o.url === url); - if (override?.ref) { - const index = this._index - override.ref; - if (index >= 0 && index < this._snapshots.length) - override = this._snapshots[index].resourceOverrides.find((o) => o.url === url); - } - if (override?.sha1) { - result = { - ...result, - response: { - ...result.response, - content: { - ...result.response.content, - _sha1: override.sha1 - } - } - }; - } - } - return result; - } -} -const autoClosing = /* @__PURE__ */ new Set(["AREA", "BASE", "BR", "COL", "COMMAND", "EMBED", "HR", "IMG", "INPUT", "KEYGEN", "LINK", "MENUITEM", "META", "PARAM", "SOURCE", "TRACK", "WBR"]); -function snapshotNodes(snapshot) { - if (!snapshot._nodes) { - const nodes = []; - const visit = (n) => { - if (typeof n === "string") { - nodes.push(n); - } else if (isNodeNameAttributesChildNodesSnapshot(n)) { - const [, , ...children] = n; - for (const child of children) - visit(child); - nodes.push(n); - } - }; - visit(snapshot.html); - snapshot._nodes = nodes; - } - return snapshot._nodes; -} -function snapshotScript(viewport, ...targetIds) { - function applyPlaywrightAttributes(viewport2, ...targetIds2) { - const win = window; - const searchParams = new URLSearchParams(win.location.search); - const shouldPopulateCanvasFromScreenshot = searchParams.has("shouldPopulateCanvasFromScreenshot"); - const isUnderTest = searchParams.has("isUnderTest"); - const frameBoundingRectsInfo = { - viewport: viewport2, - frames: /* @__PURE__ */ new WeakMap() - }; - win["__playwright_frame_bounding_rects__"] = frameBoundingRectsInfo; - const kPointerWarningTitle = "Recorded click position in absolute coordinates did not match the center of the clicked element. This is likely due to a difference between the test runner and the trace viewer operating systems."; - const scrollTops = []; - const scrollLefts = []; - const targetElements = []; - const canvasElements = []; - let topSnapshotWindow = win; - while (topSnapshotWindow !== topSnapshotWindow.parent && !topSnapshotWindow.location.pathname.match(/\/page@[a-z0-9]+$/)) - topSnapshotWindow = topSnapshotWindow.parent; - const visit = (root) => { - for (const e of root.querySelectorAll(`[__playwright_scroll_top_]`)) - scrollTops.push(e); - for (const e of root.querySelectorAll(`[__playwright_scroll_left_]`)) - scrollLefts.push(e); - for (const element of root.querySelectorAll(`[__playwright_value_]`)) { - const inputElement = element; - if (inputElement.type !== "file") - inputElement.value = inputElement.getAttribute("__playwright_value_"); - element.removeAttribute("__playwright_value_"); - } - for (const element of root.querySelectorAll(`[__playwright_checked_]`)) { - element.checked = element.getAttribute("__playwright_checked_") === "true"; - element.removeAttribute("__playwright_checked_"); - } - for (const element of root.querySelectorAll(`[__playwright_selected_]`)) { - element.selected = element.getAttribute("__playwright_selected_") === "true"; - element.removeAttribute("__playwright_selected_"); - } - for (const element of root.querySelectorAll(`[__playwright_popover_open_]`)) { - try { - element.showPopover(); - } catch { - } - element.removeAttribute("__playwright_popover_open_"); - } - for (const element of root.querySelectorAll(`[__playwright_dialog_open_]`)) { - try { - if (element.getAttribute("__playwright_dialog_open_") === "modal") - element.showModal(); - else - element.show(); - } catch { - } - element.removeAttribute("__playwright_dialog_open_"); - } - for (const targetId of targetIds2) { - for (const target of root.querySelectorAll(`[__playwright_target__="${targetId}"]`)) { - const style = target.style; - style.outline = "2px solid #006ab1"; - style.backgroundColor = "#6fa8dc7f"; - targetElements.push(target); - } - } - for (const iframe of root.querySelectorAll("iframe, frame")) { - const boundingRectJson = iframe.getAttribute("__playwright_bounding_rect__"); - iframe.removeAttribute("__playwright_bounding_rect__"); - const boundingRect = boundingRectJson ? JSON.parse(boundingRectJson) : void 0; - if (boundingRect) - frameBoundingRectsInfo.frames.set(iframe, { boundingRect, scrollLeft: 0, scrollTop: 0 }); - const src = iframe.getAttribute("__playwright_src__"); - if (!src) { - iframe.setAttribute("src", 'data:text/html,'); - } else { - const url = new URL(win.location.href); - const index = url.pathname.lastIndexOf("/snapshot/"); - if (index !== -1) - url.pathname = url.pathname.substring(0, index + 1); - url.pathname += src.substring(1); - iframe.setAttribute("src", url.toString()); - } - } - { - const body = root.querySelector(`body[__playwright_custom_elements__]`); - if (body && win.customElements) { - const customElements = (body.getAttribute("__playwright_custom_elements__") || "").split(","); - for (const elementName of customElements) - win.customElements.define(elementName, class extends HTMLElement { - }); - } - } - for (const element of root.querySelectorAll(`template[__playwright_shadow_root_]`)) { - const template = element; - const shadowRoot = template.parentElement.attachShadow({ mode: "open" }); - shadowRoot.appendChild(template.content); - template.remove(); - visit(shadowRoot); - } - for (const element of root.querySelectorAll("a")) - element.addEventListener("click", (event) => { - event.preventDefault(); - }); - if ("adoptedStyleSheets" in root) { - const adoptedSheets = [...root.adoptedStyleSheets]; - for (const element of root.querySelectorAll(`template[__playwright_style_sheet_]`)) { - const template = element; - const sheet = new CSSStyleSheet(); - sheet.replaceSync(template.getAttribute("__playwright_style_sheet_")); - adoptedSheets.push(sheet); - } - root.adoptedStyleSheets = adoptedSheets; - } - canvasElements.push(...root.querySelectorAll("canvas")); - }; - const onLoad = () => { - win.removeEventListener("load", onLoad); - for (const element of scrollTops) { - element.scrollTop = +element.getAttribute("__playwright_scroll_top_"); - element.removeAttribute("__playwright_scroll_top_"); - if (frameBoundingRectsInfo.frames.has(element)) - frameBoundingRectsInfo.frames.get(element).scrollTop = element.scrollTop; - } - for (const element of scrollLefts) { - element.scrollLeft = +element.getAttribute("__playwright_scroll_left_"); - element.removeAttribute("__playwright_scroll_left_"); - if (frameBoundingRectsInfo.frames.has(element)) - frameBoundingRectsInfo.frames.get(element).scrollLeft = element.scrollLeft; - } - win.document.styleSheets[0].disabled = true; - const search = new URL(win.location.href).searchParams; - const isTopFrame = win === topSnapshotWindow; - if (search.get("pointX") && search.get("pointY")) { - const pointX = +search.get("pointX"); - const pointY = +search.get("pointY"); - const hasInputTarget = search.has("hasInputTarget"); - const hasTargetElements = targetElements.length > 0; - const roots = win.document.documentElement ? [win.document.documentElement] : []; - for (const target of hasTargetElements ? targetElements : roots) { - const pointElement = win.document.createElement("x-pw-pointer"); - pointElement.style.position = "fixed"; - pointElement.style.backgroundColor = "#f44336"; - pointElement.style.width = "20px"; - pointElement.style.height = "20px"; - pointElement.style.borderRadius = "10px"; - pointElement.style.margin = "-10px 0 0 -10px"; - pointElement.style.zIndex = "2147483646"; - pointElement.style.display = "flex"; - pointElement.style.alignItems = "center"; - pointElement.style.justifyContent = "center"; - if (hasTargetElements) { - const box = target.getBoundingClientRect(); - const centerX = box.left + box.width / 2; - const centerY = box.top + box.height / 2; - pointElement.style.left = centerX + "px"; - pointElement.style.top = centerY + "px"; - if (isTopFrame && (Math.abs(centerX - pointX) >= 10 || Math.abs(centerY - pointY) >= 10)) { - const warningElement = win.document.createElement("x-pw-pointer-warning"); - warningElement.textContent = "\u26A0"; - warningElement.style.fontSize = "19px"; - warningElement.style.color = "white"; - warningElement.style.marginTop = "-3.5px"; - warningElement.style.userSelect = "none"; - pointElement.appendChild(warningElement); - pointElement.setAttribute("title", kPointerWarningTitle); - } - win.document.documentElement.appendChild(pointElement); - } else if (isTopFrame && !hasInputTarget) { - pointElement.style.left = pointX + "px"; - pointElement.style.top = pointY + "px"; - win.document.documentElement.appendChild(pointElement); - } - } - } - if (canvasElements.length > 0) { - let drawCheckerboard2 = function(context, canvas) { - function createCheckerboardPattern() { - const pattern = win.document.createElement("canvas"); - pattern.width = pattern.width / Math.floor(pattern.width / 24); - pattern.height = pattern.height / Math.floor(pattern.height / 24); - const context2 = pattern.getContext("2d"); - context2.fillStyle = "lightgray"; - context2.fillRect(0, 0, pattern.width, pattern.height); - context2.fillStyle = "white"; - context2.fillRect(0, 0, pattern.width / 2, pattern.height / 2); - context2.fillRect(pattern.width / 2, pattern.height / 2, pattern.width, pattern.height); - return context2.createPattern(pattern, "repeat"); - } - context.fillStyle = createCheckerboardPattern(); - context.fillRect(0, 0, canvas.width, canvas.height); - }; - var drawCheckerboard = drawCheckerboard2; - const img = new Image(); - img.onload = () => { - for (const canvas of canvasElements) { - const context = canvas.getContext("2d"); - const boundingRectAttribute = canvas.getAttribute("__playwright_bounding_rect__"); - canvas.removeAttribute("__playwright_bounding_rect__"); - if (!boundingRectAttribute) - continue; - let boundingRect; - try { - boundingRect = JSON.parse(boundingRectAttribute); - } catch (e) { - continue; - } - let currWindow = win; - while (currWindow !== topSnapshotWindow) { - const iframe = currWindow.frameElement; - currWindow = currWindow.parent; - const iframeInfo = currWindow["__playwright_frame_bounding_rects__"]?.frames.get(iframe); - if (!iframeInfo?.boundingRect) - break; - const leftOffset = iframeInfo.boundingRect.left - iframeInfo.scrollLeft; - const topOffset = iframeInfo.boundingRect.top - iframeInfo.scrollTop; - boundingRect.left += leftOffset; - boundingRect.top += topOffset; - boundingRect.right += leftOffset; - boundingRect.bottom += topOffset; - } - const { width, height } = topSnapshotWindow["__playwright_frame_bounding_rects__"].viewport; - boundingRect.left = boundingRect.left / width; - boundingRect.top = boundingRect.top / height; - boundingRect.right = boundingRect.right / width; - boundingRect.bottom = boundingRect.bottom / height; - const partiallyUncaptured = boundingRect.right > 1 || boundingRect.bottom > 1; - const fullyUncaptured = boundingRect.left > 1 || boundingRect.top > 1; - if (fullyUncaptured) { - canvas.title = `Playwright couldn't capture canvas contents because it's located outside the viewport.`; - continue; - } - drawCheckerboard2(context, canvas); - if (shouldPopulateCanvasFromScreenshot) { - context.drawImage(img, boundingRect.left * img.width, boundingRect.top * img.height, (boundingRect.right - boundingRect.left) * img.width, (boundingRect.bottom - boundingRect.top) * img.height, 0, 0, canvas.width, canvas.height); - if (partiallyUncaptured) - canvas.title = `Playwright couldn't capture full canvas contents because it's located partially outside the viewport.`; - else - canvas.title = `Canvas contents are displayed on a best-effort basis based on viewport screenshots taken during test execution.`; - } else { - canvas.title = "Canvas content display is disabled."; - } - if (isUnderTest) - console.log(`canvas drawn:`, JSON.stringify([boundingRect.left, boundingRect.top, boundingRect.right - boundingRect.left, boundingRect.bottom - boundingRect.top].map((v) => Math.floor(v * 100)))); - } - }; - img.onerror = () => { - for (const canvas of canvasElements) { - const context = canvas.getContext("2d"); - drawCheckerboard2(context, canvas); - canvas.title = `Playwright couldn't show canvas contents because the screenshot failed to load.`; - } - }; - img.src = location.href.replace("/snapshot", "/closest-screenshot"); - } - }; - const onDOMContentLoaded = () => visit(win.document); - win.addEventListener("load", onLoad); - win.addEventListener("DOMContentLoaded", onDOMContentLoaded); - } - return ` -(${applyPlaywrightAttributes.toString()})(${JSON.stringify(viewport)}${targetIds.map((id) => `, "${id}"`).join("")})`; -} -const schemas = ["about:", "blob:", "data:", "file:", "ftp:", "http:", "https:", "mailto:", "sftp:", "ws:", "wss:"]; -const kLegacyBlobPrefix = "http://playwright.bloburl/#"; -function rewriteURLForCustomProtocol(href) { - if (href.startsWith(kLegacyBlobPrefix)) - href = href.substring(kLegacyBlobPrefix.length); - try { - const url = new URL(href); - if (url.protocol === "javascript:" || url.protocol === "vbscript:") - return "javascript:void(0)"; - const isBlob = url.protocol === "blob:"; - const isFile = url.protocol === "file:"; - if (!isBlob && !isFile && schemas.includes(url.protocol)) - return href; - const prefix = "pw-" + url.protocol.slice(0, url.protocol.length - 1); - if (!isFile) - url.protocol = "https:"; - url.hostname = url.hostname ? `${prefix}--${url.hostname}` : prefix; - if (isFile) { - url.protocol = "https:"; - } - return url.toString(); - } catch { - return href; - } -} -const urlInCSSRegex = /url\(['"]?([\w-]+:)\/\//ig; -function rewriteURLsInStyleSheetForCustomProtocol(text) { - return text.replace(urlInCSSRegex, (match, protocol) => { - const isBlob = protocol === "blob:"; - const isFile = protocol === "file:"; - if (!isBlob && !isFile && schemas.includes(protocol)) - return match; - return match.replace(protocol + "//", `https://pw-${protocol.slice(0, -1)}--`); - }); -} -const urlToEscapeRegex1 = /url\(\s*'([^']*)'\s*\)/ig; -const urlToEscapeRegex2 = /url\(\s*"([^"]*)"\s*\)/ig; -function escapeURLsInStyleSheet(text) { - const replacer = (match, url) => { - if (url.includes(" { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var snapshotServer_exports = {}; -__export(snapshotServer_exports, { - SnapshotServer: () => SnapshotServer -}); -module.exports = __toCommonJS(snapshotServer_exports); -class SnapshotServer { - constructor(snapshotStorage, resourceLoader) { - this._snapshotIds = /* @__PURE__ */ new Map(); - this._snapshotStorage = snapshotStorage; - this._resourceLoader = resourceLoader; - } - serveSnapshot(pageOrFrameId, searchParams, snapshotUrl) { - const snapshot = this._snapshot(pageOrFrameId, searchParams); - if (!snapshot) - return new Response(null, { status: 404 }); - const renderedSnapshot = snapshot.render(); - this._snapshotIds.set(snapshotUrl, snapshot); - return new Response(renderedSnapshot.html, { status: 200, headers: { "Content-Type": "text/html; charset=utf-8" } }); - } - async serveClosestScreenshot(pageOrFrameId, searchParams) { - const snapshot = this._snapshot(pageOrFrameId, searchParams); - const sha1 = snapshot?.closestScreenshot(); - if (!sha1) - return new Response(null, { status: 404 }); - return new Response(await this._resourceLoader(sha1)); - } - serveSnapshotInfo(pageOrFrameId, searchParams) { - const snapshot = this._snapshot(pageOrFrameId, searchParams); - return this._respondWithJson(snapshot ? { - viewport: snapshot.viewport(), - url: snapshot.snapshot().frameUrl, - timestamp: snapshot.snapshot().timestamp, - wallTime: snapshot.snapshot().wallTime - } : { - error: "No snapshot found" - }); - } - _snapshot(pageOrFrameId, params) { - const name = params.get("name"); - return this._snapshotStorage.snapshotByName(pageOrFrameId, name); - } - _respondWithJson(object) { - return new Response(JSON.stringify(object), { - status: 200, - headers: { - "Cache-Control": "public, max-age=31536000", - "Content-Type": "application/json" - } - }); - } - async serveResource(requestUrlAlternatives, method, snapshotUrl) { - let resource; - const snapshot = this._snapshotIds.get(snapshotUrl); - for (const requestUrl of requestUrlAlternatives) { - resource = snapshot?.resourceByUrl(removeHash(requestUrl), method); - if (resource) - break; - } - if (!resource) - return new Response(null, { status: 404 }); - const sha1 = resource.response.content._sha1; - const content = sha1 ? await this._resourceLoader(sha1) || new Blob([]) : new Blob([]); - let contentType = resource.response.content.mimeType; - const isTextEncoding = /^text\/|^application\/(javascript|json)/.test(contentType); - if (isTextEncoding && !contentType.includes("charset")) - contentType = `${contentType}; charset=utf-8`; - const headers = new Headers(); - if (contentType !== "x-unknown") - headers.set("Content-Type", contentType); - for (const { name, value } of resource.response.headers) - headers.set(name, value); - headers.delete("Content-Encoding"); - headers.delete("Access-Control-Allow-Origin"); - headers.set("Access-Control-Allow-Origin", "*"); - headers.delete("Content-Length"); - headers.set("Content-Length", String(content.size)); - if (this._snapshotStorage.hasResourceOverride(resource.request.url)) - headers.set("Cache-Control", "no-store, no-cache, max-age=0"); - else - headers.set("Cache-Control", "public, max-age=31536000"); - const { status } = resource.response; - const isNullBodyStatus = status === 101 || status === 204 || status === 205 || status === 304; - return new Response(isNullBodyStatus ? null : content, { - headers, - status: resource.response.status, - statusText: resource.response.statusText - }); - } -} -function removeHash(url) { - try { - const u = new URL(url); - u.hash = ""; - return u.toString(); - } catch (e) { - return url; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - SnapshotServer -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js deleted file mode 100644 index d251f31..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var snapshotStorage_exports = {}; -__export(snapshotStorage_exports, { - SnapshotStorage: () => SnapshotStorage -}); -module.exports = __toCommonJS(snapshotStorage_exports); -var import_snapshotRenderer = require("./snapshotRenderer"); -var import_lruCache = require("../lruCache"); -class SnapshotStorage { - constructor() { - this._frameSnapshots = /* @__PURE__ */ new Map(); - this._cache = new import_lruCache.LRUCache(1e8); - // 100MB per each trace - this._contextToResources = /* @__PURE__ */ new Map(); - this._resourceUrlsWithOverrides = /* @__PURE__ */ new Set(); - } - addResource(contextId, resource) { - resource.request.url = (0, import_snapshotRenderer.rewriteURLForCustomProtocol)(resource.request.url); - this._ensureResourcesForContext(contextId).push(resource); - } - addFrameSnapshot(contextId, snapshot, screencastFrames) { - for (const override of snapshot.resourceOverrides) - override.url = (0, import_snapshotRenderer.rewriteURLForCustomProtocol)(override.url); - let frameSnapshots = this._frameSnapshots.get(snapshot.frameId); - if (!frameSnapshots) { - frameSnapshots = { - raw: [], - renderers: [] - }; - this._frameSnapshots.set(snapshot.frameId, frameSnapshots); - if (snapshot.isMainFrame) - this._frameSnapshots.set(snapshot.pageId, frameSnapshots); - } - frameSnapshots.raw.push(snapshot); - const resources = this._ensureResourcesForContext(contextId); - const renderer = new import_snapshotRenderer.SnapshotRenderer(this._cache, resources, frameSnapshots.raw, screencastFrames, frameSnapshots.raw.length - 1); - frameSnapshots.renderers.push(renderer); - return renderer; - } - snapshotByName(pageOrFrameId, snapshotName) { - const snapshot = this._frameSnapshots.get(pageOrFrameId); - return snapshot?.renderers.find((r) => r.snapshotName === snapshotName); - } - snapshotsForTest() { - return [...this._frameSnapshots.keys()]; - } - finalize() { - for (const resources of this._contextToResources.values()) - resources.sort((a, b) => (a._monotonicTime || 0) - (b._monotonicTime || 0)); - for (const frameSnapshots of this._frameSnapshots.values()) { - for (const snapshot of frameSnapshots.raw) { - for (const override of snapshot.resourceOverrides) - this._resourceUrlsWithOverrides.add(override.url); - } - } - } - hasResourceOverride(url) { - return this._resourceUrlsWithOverrides.has(url); - } - _ensureResourcesForContext(contextId) { - let resources = this._contextToResources.get(contextId); - if (!resources) { - resources = []; - this._contextToResources.set(contextId, resources); - } - return resources; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - SnapshotStorage -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js deleted file mode 100644 index 7e39d2c..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceLoader_exports = {}; -__export(traceLoader_exports, { - TraceLoader: () => TraceLoader -}); -module.exports = __toCommonJS(traceLoader_exports); -var import_traceUtils = require("@isomorphic/traceUtils"); -var import_snapshotStorage = require("./snapshotStorage"); -var import_traceModernizer = require("./traceModernizer"); -class TraceLoader { - constructor() { - this.contextEntries = []; - this._resourceToContentType = /* @__PURE__ */ new Map(); - } - async load(backend, unzipProgress) { - this._backend = backend; - const ordinals = []; - let hasSource = false; - for (const entryName of await this._backend.entryNames()) { - const match = entryName.match(/(.+)\.trace$/); - if (match) - ordinals.push(match[1] || ""); - if (entryName.includes("src@")) - hasSource = true; - } - if (!ordinals.length) - throw new Error("Cannot find .trace file"); - this._snapshotStorage = new import_snapshotStorage.SnapshotStorage(); - const total = ordinals.length * 3; - let done = 0; - for (const ordinal of ordinals) { - const contextEntry = createEmptyContext(); - contextEntry.hasSource = hasSource; - const modernizer = new import_traceModernizer.TraceModernizer(contextEntry, this._snapshotStorage); - const trace = await this._backend.readText(ordinal + ".trace") || ""; - modernizer.appendTrace(trace); - unzipProgress(++done, total); - const network = await this._backend.readText(ordinal + ".network") || ""; - modernizer.appendTrace(network); - unzipProgress(++done, total); - contextEntry.actions = modernizer.actions().sort((a1, a2) => a1.startTime - a2.startTime); - if (!backend.isLive()) { - for (const action of contextEntry.actions.slice().reverse()) { - if (!action.endTime && !action.error) { - for (const a of contextEntry.actions) { - if (a.parentId === action.callId && action.endTime < a.endTime) - action.endTime = a.endTime; - } - } - } - } - const stacks = await this._backend.readText(ordinal + ".stacks"); - if (stacks) { - const callMetadata = (0, import_traceUtils.parseClientSideCallMetadata)(JSON.parse(stacks)); - for (const action of contextEntry.actions) - action.stack = action.stack || callMetadata.get(action.callId); - } - unzipProgress(++done, total); - for (const resource of contextEntry.resources) { - if (resource.request.postData?._sha1) - this._resourceToContentType.set(resource.request.postData._sha1, stripEncodingFromContentType(resource.request.postData.mimeType)); - if (resource.response.content?._sha1) - this._resourceToContentType.set(resource.response.content._sha1, stripEncodingFromContentType(resource.response.content.mimeType)); - } - this.contextEntries.push(contextEntry); - } - this._snapshotStorage.finalize(); - } - async hasEntry(filename) { - return this._backend.hasEntry(filename); - } - async resourceForSha1(sha1) { - const blob = await this._backend.readBlob("resources/" + sha1); - const contentType = this._resourceToContentType.get(sha1); - if (!blob || contentType === void 0 || contentType === "x-unknown") - return blob; - return new Blob([blob], { type: contentType }); - } - storage() { - return this._snapshotStorage; - } -} -function stripEncodingFromContentType(contentType) { - const charset = contentType.match(/^(.*);\s*charset=.*$/); - if (charset) - return charset[1]; - return contentType; -} -function createEmptyContext() { - return { - origin: "testRunner", - startTime: Number.MAX_SAFE_INTEGER, - wallTime: Number.MAX_SAFE_INTEGER, - endTime: 0, - browserName: "", - options: { - deviceScaleFactor: 1, - isMobile: false, - viewport: { width: 1280, height: 800 } - }, - pages: [], - resources: [], - actions: [], - events: [], - errors: [], - stdio: [], - hasSource: false, - contextId: "" - }; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - TraceLoader -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js deleted file mode 100644 index a507d6f..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +++ /dev/null @@ -1,365 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceModel_exports = {}; -__export(traceModel_exports, { - TraceModel: () => TraceModel, - buildActionTree: () => buildActionTree, - context: () => context, - eventsForAction: () => eventsForAction, - nextActionByStartTime: () => nextActionByStartTime, - previousActionByEndTime: () => previousActionByEndTime, - stats: () => stats -}); -module.exports = __toCommonJS(traceModel_exports); -var import_protocolFormatter = require("@isomorphic/protocolFormatter"); -const contextSymbol = Symbol("context"); -const nextInContextSymbol = Symbol("nextInContext"); -const prevByEndTimeSymbol = Symbol("prevByEndTime"); -const nextByStartTimeSymbol = Symbol("nextByStartTime"); -const eventsSymbol = Symbol("events"); -class TraceModel { - constructor(traceUri, contexts) { - contexts.forEach((contextEntry) => indexModel(contextEntry)); - const libraryContext = contexts.find((context2) => context2.origin === "library"); - this.traceUri = traceUri; - this.browserName = libraryContext?.browserName || ""; - this.sdkLanguage = libraryContext?.sdkLanguage; - this.channel = libraryContext?.channel; - this.testIdAttributeName = libraryContext?.testIdAttributeName; - this.platform = libraryContext?.platform || ""; - this.playwrightVersion = contexts.find((c) => c.playwrightVersion)?.playwrightVersion; - this.title = libraryContext?.title || ""; - this.options = libraryContext?.options || {}; - this.actions = mergeActionsAndUpdateTiming(contexts); - this.pages = [].concat(...contexts.map((c) => c.pages)); - this.wallTime = contexts.map((c) => c.wallTime).reduce((prev, cur) => Math.min(prev || Number.MAX_VALUE, cur), Number.MAX_VALUE); - this.startTime = contexts.map((c) => c.startTime).reduce((prev, cur) => Math.min(prev, cur), Number.MAX_VALUE); - this.endTime = contexts.map((c) => c.endTime).reduce((prev, cur) => Math.max(prev, cur), Number.MIN_VALUE); - this.events = [].concat(...contexts.map((c) => c.events)); - this.stdio = [].concat(...contexts.map((c) => c.stdio)); - this.errors = [].concat(...contexts.map((c) => c.errors)); - this.hasSource = contexts.some((c) => c.hasSource); - this.hasStepData = contexts.some((context2) => context2.origin === "testRunner"); - this.resources = [...contexts.map((c) => c.resources)].flat(); - this.attachments = this.actions.flatMap((action) => action.attachments?.map((attachment) => ({ ...attachment, callId: action.callId, traceUri })) ?? []); - this.visibleAttachments = this.attachments.filter((attachment) => !attachment.name.startsWith("_")); - this.events.sort((a1, a2) => a1.time - a2.time); - this.resources.sort((a1, a2) => a1._monotonicTime - a2._monotonicTime); - this.errorDescriptors = this.hasStepData ? this._errorDescriptorsFromTestRunner() : this._errorDescriptorsFromActions(); - this.sources = collectSources(this.actions, this.errorDescriptors); - this.actionCounters = /* @__PURE__ */ new Map(); - for (const action of this.actions) { - action.group = action.group ?? (0, import_protocolFormatter.getActionGroup)({ type: action.class, method: action.method }); - if (action.group) - this.actionCounters.set(action.group, 1 + (this.actionCounters.get(action.group) || 0)); - } - } - createRelativeUrl(path) { - const url = new URL("http://localhost/" + path); - url.searchParams.set("trace", this.traceUri); - return url.toString().substring("http://localhost/".length); - } - failedAction() { - return this.actions.findLast((a) => a.error); - } - filteredActions(actionsFilter) { - const filter = new Set(actionsFilter); - return this.actions.filter((action) => !action.group || filter.has(action.group)); - } - renderActionTree(filter) { - const actions = this.filteredActions(filter ?? []); - const { rootItem } = buildActionTree(actions); - const actionTree = []; - const visit = (actionItem, indent) => { - const title = (0, import_protocolFormatter.renderTitleForCall)({ ...actionItem.action, type: actionItem.action.class }); - actionTree.push(`${indent}${title || actionItem.id}`); - for (const child of actionItem.children) - visit(child, indent + " "); - }; - rootItem.children.forEach((a) => visit(a, "")); - return actionTree; - } - _errorDescriptorsFromActions() { - const errors = []; - for (const action of this.actions || []) { - if (!action.error?.message) - continue; - errors.push({ - action, - stack: action.stack, - message: action.error.message - }); - } - return errors; - } - _errorDescriptorsFromTestRunner() { - return this.errors.filter((e) => !!e.message).map((error, i) => ({ - stack: error.stack, - message: error.message - })); - } -} -function indexModel(context2) { - for (const page of context2.pages) - page[contextSymbol] = context2; - for (let i = 0; i < context2.actions.length; ++i) { - const action = context2.actions[i]; - action[contextSymbol] = context2; - } - let lastNonRouteAction = void 0; - for (let i = context2.actions.length - 1; i >= 0; i--) { - const action = context2.actions[i]; - action[nextInContextSymbol] = lastNonRouteAction; - if (action.class !== "Route") - lastNonRouteAction = action; - } - for (const event of context2.events) - event[contextSymbol] = context2; - for (const resource of context2.resources) - resource[contextSymbol] = context2; -} -function mergeActionsAndUpdateTiming(contexts) { - const result = []; - const actions = mergeActionsAndUpdateTimingSameTrace(contexts); - result.push(...actions); - result.sort((a1, a2) => { - if (a2.parentId === a1.callId) - return 1; - if (a1.parentId === a2.callId) - return -1; - return a1.endTime - a2.endTime; - }); - for (let i = 1; i < result.length; ++i) - result[i][prevByEndTimeSymbol] = result[i - 1]; - result.sort((a1, a2) => { - if (a2.parentId === a1.callId) - return -1; - if (a1.parentId === a2.callId) - return 1; - return a1.startTime - a2.startTime; - }); - for (let i = 0; i + 1 < result.length; ++i) - result[i][nextByStartTimeSymbol] = result[i + 1]; - return result; -} -let lastTmpStepId = 0; -function mergeActionsAndUpdateTimingSameTrace(contexts) { - const map = /* @__PURE__ */ new Map(); - const libraryContexts = contexts.filter((context2) => context2.origin === "library"); - const testRunnerContexts = contexts.filter((context2) => context2.origin === "testRunner"); - if (!testRunnerContexts.length || !libraryContexts.length) { - return contexts.map((context2) => { - return context2.actions.map((action) => ({ ...action, context: context2 })); - }).flat(); - } - for (const context2 of libraryContexts) { - for (const action of context2.actions) { - map.set(action.stepId || `tmp-step@${++lastTmpStepId}`, { ...action, context: context2 }); - } - } - const delta = monotonicTimeDeltaBetweenLibraryAndRunner(testRunnerContexts, map); - if (delta) - adjustMonotonicTime(libraryContexts, delta); - const nonPrimaryIdToPrimaryId = /* @__PURE__ */ new Map(); - for (const context2 of testRunnerContexts) { - for (const action of context2.actions) { - const existing = action.stepId && map.get(action.stepId); - if (existing) { - nonPrimaryIdToPrimaryId.set(action.callId, existing.callId); - if (action.error) - existing.error = action.error; - if (action.attachments) - existing.attachments = action.attachments; - if (action.annotations) - existing.annotations = action.annotations; - if (action.parentId) - existing.parentId = nonPrimaryIdToPrimaryId.get(action.parentId) ?? action.parentId; - if (action.group) - existing.group = action.group; - existing.startTime = action.startTime; - existing.endTime = action.endTime; - continue; - } - if (action.parentId) - action.parentId = nonPrimaryIdToPrimaryId.get(action.parentId) ?? action.parentId; - map.set(action.stepId || `tmp-step@${++lastTmpStepId}`, { ...action, context: context2 }); - } - } - return [...map.values()]; -} -function adjustMonotonicTime(contexts, monotonicTimeDelta) { - for (const context2 of contexts) { - context2.startTime += monotonicTimeDelta; - context2.endTime += monotonicTimeDelta; - for (const action of context2.actions) { - if (action.startTime) - action.startTime += monotonicTimeDelta; - if (action.endTime) - action.endTime += monotonicTimeDelta; - } - for (const event of context2.events) - event.time += monotonicTimeDelta; - for (const event of context2.stdio) - event.timestamp += monotonicTimeDelta; - for (const page of context2.pages) { - for (const frame of page.screencastFrames) - frame.timestamp += monotonicTimeDelta; - } - for (const resource of context2.resources) { - if (resource._monotonicTime) - resource._monotonicTime += monotonicTimeDelta; - } - } -} -function monotonicTimeDeltaBetweenLibraryAndRunner(nonPrimaryContexts, libraryActions) { - for (const context2 of nonPrimaryContexts) { - for (const action of context2.actions) { - if (!action.startTime) - continue; - const libraryAction = action.stepId ? libraryActions.get(action.stepId) : void 0; - if (libraryAction) - return action.startTime - libraryAction.startTime; - } - } - return 0; -} -function buildActionTree(actions) { - const itemMap = /* @__PURE__ */ new Map(); - for (const action of actions) { - itemMap.set(action.callId, { - id: action.callId, - parent: void 0, - children: [], - action - }); - } - const rootItem = { action: { ...kFakeRootAction }, id: "", parent: void 0, children: [] }; - for (const item of itemMap.values()) { - rootItem.action.startTime = Math.min(rootItem.action.startTime, item.action.startTime); - rootItem.action.endTime = Math.max(rootItem.action.endTime, item.action.endTime); - const parent = item.action.parentId ? itemMap.get(item.action.parentId) || rootItem : rootItem; - parent.children.push(item); - item.parent = parent; - } - const inheritStack = (item) => { - for (const child of item.children) { - child.action.stack = child.action.stack ?? item.action.stack; - inheritStack(child); - } - }; - inheritStack(rootItem); - return { rootItem, itemMap }; -} -function context(action) { - return action[contextSymbol]; -} -function nextInContext(action) { - return action[nextInContextSymbol]; -} -function previousActionByEndTime(action) { - return action[prevByEndTimeSymbol]; -} -function nextActionByStartTime(action) { - return action[nextByStartTimeSymbol]; -} -function stats(action) { - let errors = 0; - let warnings = 0; - for (const event of eventsForAction(action)) { - if (event.type === "console") { - const type = event.messageType; - if (type === "warning") - ++warnings; - else if (type === "error") - ++errors; - } - if (event.type === "event" && event.method === "pageError") - ++errors; - } - return { errors, warnings }; -} -function eventsForAction(action) { - let result = action[eventsSymbol]; - if (result) - return result; - const nextAction = nextInContext(action); - result = context(action).events.filter((event) => { - return event.time >= action.startTime && (!nextAction || event.time < nextAction.startTime); - }); - action[eventsSymbol] = result; - return result; -} -function collectSources(actions, errorDescriptors) { - const result = /* @__PURE__ */ new Map(); - for (const action of actions) { - for (const frame of action.stack || []) { - let source = result.get(frame.file); - if (!source) { - source = { errors: [], content: void 0 }; - result.set(frame.file, source); - } - } - } - for (const error of errorDescriptors) { - const { action, stack, message } = error; - if (!action || !stack) - continue; - result.get(stack[0].file)?.errors.push({ - line: stack[0].line || 0, - message - }); - } - return result; -} -const kFakeRootAction = { - type: "action", - callId: "", - startTime: 0, - endTime: 0, - class: "", - method: "", - params: {}, - log: [], - context: { - origin: "library", - startTime: 0, - endTime: 0, - browserName: "", - wallTime: 0, - options: {}, - pages: [], - resources: [], - actions: [], - events: [], - stdio: [], - errors: [], - hasSource: false, - contextId: "" - } -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - TraceModel, - buildActionTree, - context, - eventsForAction, - nextActionByStartTime, - previousActionByEndTime, - stats -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js deleted file mode 100644 index 77b8f89..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +++ /dev/null @@ -1,400 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceModernizer_exports = {}; -__export(traceModernizer_exports, { - TraceModernizer: () => TraceModernizer, - TraceVersionError: () => TraceVersionError -}); -module.exports = __toCommonJS(traceModernizer_exports); -class TraceVersionError extends Error { - constructor(message) { - super(message); - this.name = "TraceVersionError"; - } -} -const latestVersion = 8; -class TraceModernizer { - constructor(contextEntry, snapshotStorage) { - this._actionMap = /* @__PURE__ */ new Map(); - this._pageEntries = /* @__PURE__ */ new Map(); - this._jsHandles = /* @__PURE__ */ new Map(); - this._consoleObjects = /* @__PURE__ */ new Map(); - this._contextEntry = contextEntry; - this._snapshotStorage = snapshotStorage; - } - appendTrace(trace) { - for (const line of trace.split("\n")) - this._appendEvent(line); - } - actions() { - return [...this._actionMap.values()]; - } - _pageEntry(pageId) { - let pageEntry = this._pageEntries.get(pageId); - if (!pageEntry) { - pageEntry = { - pageId, - screencastFrames: [] - }; - this._pageEntries.set(pageId, pageEntry); - this._contextEntry.pages.push(pageEntry); - } - return pageEntry; - } - _appendEvent(line) { - if (!line) - return; - const events = this._modernize(JSON.parse(line)); - for (const event of events) - this._innerAppendEvent(event); - } - _innerAppendEvent(event) { - const contextEntry = this._contextEntry; - switch (event.type) { - case "context-options": { - if (event.version > latestVersion) - throw new TraceVersionError("The trace was created by a newer version of Playwright and is not supported by this version of the viewer. Please use latest Playwright to open the trace."); - this._version = event.version; - contextEntry.origin = event.origin; - contextEntry.browserName = event.browserName; - contextEntry.channel = event.channel; - contextEntry.title = event.title; - contextEntry.platform = event.platform; - contextEntry.playwrightVersion = event.playwrightVersion; - contextEntry.wallTime = event.wallTime; - contextEntry.startTime = event.monotonicTime; - contextEntry.sdkLanguage = event.sdkLanguage; - contextEntry.options = event.options; - contextEntry.testIdAttributeName = event.testIdAttributeName; - contextEntry.contextId = event.contextId ?? ""; - break; - } - case "screencast-frame": { - this._pageEntry(event.pageId).screencastFrames.push(event); - break; - } - case "before": { - this._actionMap.set(event.callId, { ...event, type: "action", endTime: 0, log: [] }); - break; - } - case "input": { - const existing = this._actionMap.get(event.callId); - existing.inputSnapshot = event.inputSnapshot; - existing.point = event.point; - break; - } - case "log": { - const existing = this._actionMap.get(event.callId); - if (!existing) - return; - existing.log.push({ - time: event.time, - message: event.message - }); - break; - } - case "after": { - const existing = this._actionMap.get(event.callId); - existing.afterSnapshot = event.afterSnapshot; - existing.endTime = event.endTime; - existing.result = event.result; - existing.error = event.error; - existing.attachments = event.attachments; - existing.annotations = event.annotations; - if (event.point) - existing.point = event.point; - break; - } - case "action": { - this._actionMap.set(event.callId, { ...event, log: [] }); - break; - } - case "event": { - contextEntry.events.push(event); - break; - } - case "stdout": { - contextEntry.stdio.push(event); - break; - } - case "stderr": { - contextEntry.stdio.push(event); - break; - } - case "error": { - contextEntry.errors.push(event); - break; - } - case "console": { - contextEntry.events.push(event); - break; - } - case "resource-snapshot": - this._snapshotStorage.addResource(this._contextEntry.contextId, event.snapshot); - contextEntry.resources.push(event.snapshot); - break; - case "frame-snapshot": - this._snapshotStorage.addFrameSnapshot(this._contextEntry.contextId, event.snapshot, this._pageEntry(event.snapshot.pageId).screencastFrames); - break; - } - if ("pageId" in event && event.pageId) - this._pageEntry(event.pageId); - if (event.type === "action" || event.type === "before") - contextEntry.startTime = Math.min(contextEntry.startTime, event.startTime); - if (event.type === "action" || event.type === "after") - contextEntry.endTime = Math.max(contextEntry.endTime, event.endTime); - if (event.type === "event") { - contextEntry.startTime = Math.min(contextEntry.startTime, event.time); - contextEntry.endTime = Math.max(contextEntry.endTime, event.time); - } - if (event.type === "screencast-frame") { - contextEntry.startTime = Math.min(contextEntry.startTime, event.timestamp); - contextEntry.endTime = Math.max(contextEntry.endTime, event.timestamp); - } - } - _processedContextCreatedEvent() { - return this._version !== void 0; - } - _modernize(event) { - let version = this._version ?? event.version ?? 6; - let events = [event]; - for (; version < latestVersion; ++version) - events = this[`_modernize_${version}_to_${version + 1}`].call(this, events); - return events; - } - _modernize_0_to_1(events) { - for (const event of events) { - if (event.type !== "action") - continue; - if (typeof event.metadata.error === "string") - event.metadata.error = { error: { name: "Error", message: event.metadata.error } }; - } - return events; - } - _modernize_1_to_2(events) { - for (const event of events) { - if (event.type !== "frame-snapshot" || !event.snapshot.isMainFrame) - continue; - event.snapshot.viewport = this._contextEntry.options?.viewport || { width: 1280, height: 720 }; - } - return events; - } - _modernize_2_to_3(events) { - for (const event of events) { - if (event.type !== "resource-snapshot" || event.snapshot.request) - continue; - const resource = event.snapshot; - event.snapshot = { - _frameref: resource.frameId, - request: { - url: resource.url, - method: resource.method, - headers: resource.requestHeaders, - postData: resource.requestSha1 ? { _sha1: resource.requestSha1 } : void 0 - }, - response: { - status: resource.status, - headers: resource.responseHeaders, - content: { - mimeType: resource.contentType, - _sha1: resource.responseSha1 - } - }, - _monotonicTime: resource.timestamp - }; - } - return events; - } - _modernize_3_to_4(events) { - const result = []; - for (const event of events) { - const e = this._modernize_event_3_to_4(event); - if (e) - result.push(e); - } - return result; - } - _modernize_event_3_to_4(event) { - if (event.type !== "action" && event.type !== "event") { - return event; - } - const metadata = event.metadata; - if (metadata.internal || metadata.method.startsWith("tracing")) - return null; - if (event.type === "event") { - if (metadata.method === "__create__" && metadata.type === "ConsoleMessage") { - return { - type: "object", - class: metadata.type, - guid: metadata.params.guid, - initializer: metadata.params.initializer - }; - } - return { - type: "event", - time: metadata.startTime, - class: metadata.type, - method: metadata.method, - params: metadata.params, - pageId: metadata.pageId - }; - } - return { - type: "action", - callId: metadata.id, - startTime: metadata.startTime, - endTime: metadata.endTime, - apiName: metadata.apiName || metadata.type + "." + metadata.method, - class: metadata.type, - method: metadata.method, - params: metadata.params, - // eslint-disable-next-line no-restricted-globals - wallTime: metadata.wallTime || Date.now(), - log: metadata.log, - beforeSnapshot: metadata.snapshots.find((s) => s.title === "before")?.snapshotName, - inputSnapshot: metadata.snapshots.find((s) => s.title === "input")?.snapshotName, - afterSnapshot: metadata.snapshots.find((s) => s.title === "after")?.snapshotName, - error: metadata.error?.error, - result: metadata.result, - point: metadata.point, - pageId: metadata.pageId - }; - } - _modernize_4_to_5(events) { - const result = []; - for (const event of events) { - const e = this._modernize_event_4_to_5(event); - if (e) - result.push(e); - } - return result; - } - _modernize_event_4_to_5(event) { - if (event.type === "event" && event.method === "__create__" && event.class === "JSHandle") - this._jsHandles.set(event.params.guid, event.params.initializer); - if (event.type === "object") { - if (event.class !== "ConsoleMessage") - return null; - const args = event.initializer.args?.map((arg) => { - if (arg.guid) { - const handle = this._jsHandles.get(arg.guid); - return { preview: handle?.preview || "", value: "" }; - } - return { preview: arg.preview || "", value: arg.value || "" }; - }); - this._consoleObjects.set(event.guid, { - type: event.initializer.type, - text: event.initializer.text, - location: event.initializer.location, - args - }); - return null; - } - if (event.type === "event" && event.method === "console") { - const consoleMessage = this._consoleObjects.get(event.params.message?.guid || ""); - if (!consoleMessage) - return null; - return { - type: "console", - time: event.time, - pageId: event.pageId, - messageType: consoleMessage.type, - text: consoleMessage.text, - args: consoleMessage.args, - location: consoleMessage.location - }; - } - return event; - } - _modernize_5_to_6(events) { - const result = []; - for (const event of events) { - result.push(event); - if (event.type !== "after" || !event.log.length) - continue; - for (const log of event.log) { - result.push({ - type: "log", - callId: event.callId, - message: log, - time: -1 - }); - } - } - return result; - } - _modernize_6_to_7(events) { - const result = []; - if (!this._processedContextCreatedEvent() && events[0].type !== "context-options") { - const event = { - type: "context-options", - origin: "testRunner", - version: 6, - browserName: "", - options: {}, - platform: "unknown", - wallTime: 0, - monotonicTime: 0, - sdkLanguage: "javascript", - contextId: "" - }; - result.push(event); - } - for (const event of events) { - if (event.type === "context-options") { - result.push({ ...event, monotonicTime: 0, origin: "library", contextId: "" }); - continue; - } - if (event.type === "before" || event.type === "action") { - if (!this._contextEntry.wallTime) - this._contextEntry.wallTime = event.wallTime; - const eventAsV6 = event; - const eventAsV7 = event; - eventAsV7.stepId = `${eventAsV6.apiName}@${eventAsV6.wallTime}`; - result.push(eventAsV7); - } else { - result.push(event); - } - } - return result; - } - _modernize_7_to_8(events) { - const result = []; - for (const event of events) { - if (event.type === "before" || event.type === "action") { - const eventAsV7 = event; - const eventAsV8 = event; - if (eventAsV7.apiName) { - eventAsV8.title = eventAsV7.apiName; - delete eventAsV8.apiName; - } - eventAsV8.stepId = eventAsV7.stepId ?? eventAsV7.callId; - result.push(eventAsV8); - } else { - result.push(event); - } - } - return result; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - TraceModernizer, - TraceVersionError -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js deleted file mode 100644 index cd2c1a2..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceV3_exports = {}; -module.exports = __toCommonJS(traceV3_exports); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js deleted file mode 100644 index 6249aa7..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceV4_exports = {}; -module.exports = __toCommonJS(traceV4_exports); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js deleted file mode 100644 index d7f3bca..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceV5_exports = {}; -module.exports = __toCommonJS(traceV5_exports); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js deleted file mode 100644 index 639bf55..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceV6_exports = {}; -module.exports = __toCommonJS(traceV6_exports); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js deleted file mode 100644 index 5c3159a..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceV7_exports = {}; -module.exports = __toCommonJS(traceV7_exports); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js deleted file mode 100644 index 04ce41e..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceV8_exports = {}; -module.exports = __toCommonJS(traceV8_exports); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js deleted file mode 100644 index 16fa2c1..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var traceUtils_exports = {}; -__export(traceUtils_exports, { - parseClientSideCallMetadata: () => parseClientSideCallMetadata, - serializeClientSideCallMetadata: () => serializeClientSideCallMetadata -}); -module.exports = __toCommonJS(traceUtils_exports); -function parseClientSideCallMetadata(data) { - const result = /* @__PURE__ */ new Map(); - const { files, stacks } = data; - for (const s of stacks) { - const [id, ff] = s; - result.set(`call@${id}`, ff.map((f) => ({ file: files[f[0]], line: f[1], column: f[2], function: f[3] }))); - } - return result; -} -function serializeClientSideCallMetadata(metadatas) { - const fileNames = /* @__PURE__ */ new Map(); - const stacks = []; - for (const m of metadatas) { - if (!m.stack || !m.stack.length) - continue; - const stack = []; - for (const frame of m.stack) { - let ordinal = fileNames.get(frame.file); - if (typeof ordinal !== "number") { - ordinal = fileNames.size; - fileNames.set(frame.file, ordinal); - } - const stackFrame = [ordinal, frame.line || 0, frame.column || 0, frame.function || ""]; - stack.push(stackFrame); - } - stacks.push([m.id, stack]); - } - return { files: [...fileNames.keys()], stacks }; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - parseClientSideCallMetadata, - serializeClientSideCallMetadata -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/types.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/types.js deleted file mode 100644 index 43ae536..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/types.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var types_exports = {}; -module.exports = __toCommonJS(types_exports); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js deleted file mode 100644 index cf86b5d..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +++ /dev/null @@ -1,190 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var urlMatch_exports = {}; -__export(urlMatch_exports, { - constructURLBasedOnBaseURL: () => constructURLBasedOnBaseURL, - globToRegexPattern: () => globToRegexPattern, - resolveGlobToRegexPattern: () => resolveGlobToRegexPattern, - urlMatches: () => urlMatches, - urlMatchesEqual: () => urlMatchesEqual -}); -module.exports = __toCommonJS(urlMatch_exports); -var import_stringUtils = require("./stringUtils"); -const escapedChars = /* @__PURE__ */ new Set(["$", "^", "+", ".", "*", "(", ")", "|", "\\", "?", "{", "}", "[", "]"]); -function globToRegexPattern(glob) { - const tokens = ["^"]; - let inGroup = false; - for (let i = 0; i < glob.length; ++i) { - const c = glob[i]; - if (c === "\\" && i + 1 < glob.length) { - const char = glob[++i]; - tokens.push(escapedChars.has(char) ? "\\" + char : char); - continue; - } - if (c === "*") { - const charBefore = glob[i - 1]; - let starCount = 1; - while (glob[i + 1] === "*") { - starCount++; - i++; - } - if (starCount > 1) { - const charAfter = glob[i + 1]; - if (charAfter === "/") { - if (charBefore === "/") - tokens.push("((.+/)|)"); - else - tokens.push("(.*/)"); - ++i; - } else { - tokens.push("(.*)"); - } - } else { - tokens.push("([^/]*)"); - } - continue; - } - switch (c) { - case "{": - inGroup = true; - tokens.push("("); - break; - case "}": - inGroup = false; - tokens.push(")"); - break; - case ",": - if (inGroup) { - tokens.push("|"); - break; - } - tokens.push("\\" + c); - break; - default: - tokens.push(escapedChars.has(c) ? "\\" + c : c); - } - } - tokens.push("$"); - return tokens.join(""); -} -function isRegExp(obj) { - return obj instanceof RegExp || Object.prototype.toString.call(obj) === "[object RegExp]"; -} -function urlMatchesEqual(match1, match2) { - if (isRegExp(match1) && isRegExp(match2)) - return match1.source === match2.source && match1.flags === match2.flags; - return match1 === match2; -} -function urlMatches(baseURL, urlString, match, webSocketUrl) { - if (match === void 0 || match === "") - return true; - if ((0, import_stringUtils.isString)(match)) - match = new RegExp(resolveGlobToRegexPattern(baseURL, match, webSocketUrl)); - if (isRegExp(match)) { - const r = match.test(urlString); - return r; - } - const url = parseURL(urlString); - if (!url) - return false; - if (typeof match !== "function") - throw new Error("url parameter should be string, RegExp or function"); - return match(url); -} -function resolveGlobToRegexPattern(baseURL, glob, webSocketUrl) { - if (webSocketUrl) - baseURL = toWebSocketBaseUrl(baseURL); - glob = resolveGlobBase(baseURL, glob); - return globToRegexPattern(glob); -} -function toWebSocketBaseUrl(baseURL) { - if (baseURL && /^https?:\/\//.test(baseURL)) - baseURL = baseURL.replace(/^http/, "ws"); - return baseURL; -} -function resolveGlobBase(baseURL, match) { - if (!match.startsWith("*")) { - let mapToken2 = function(original, replacement) { - if (original.length === 0) - return ""; - tokenMap.set(replacement, original); - return replacement; - }; - var mapToken = mapToken2; - const tokenMap = /* @__PURE__ */ new Map(); - match = match.replaceAll(/\\\\\?/g, "?"); - if (match.startsWith("about:") || match.startsWith("data:") || match.startsWith("chrome:") || match.startsWith("edge:") || match.startsWith("file:")) - return match; - const relativePath = match.split("/").map((token, index) => { - if (token === "." || token === ".." || token === "") - return token; - if (index === 0 && token.endsWith(":")) { - if (token.indexOf("*") !== -1 || token.indexOf("{") !== -1) - return mapToken2(token, "http:"); - return token; - } - const questionIndex = token.indexOf("?"); - if (questionIndex === -1) - return mapToken2(token, `$_${index}_$`); - const newPrefix = mapToken2(token.substring(0, questionIndex), `$_${index}_$`); - const newSuffix = mapToken2(token.substring(questionIndex), `?$_${index}_$`); - return newPrefix + newSuffix; - }).join("/"); - const result = resolveBaseURL(baseURL, relativePath); - let resolved = result.resolved; - for (const [token, original] of tokenMap) { - const normalize = result.caseInsensitivePart?.includes(token); - resolved = resolved.replace(token, normalize ? original.toLowerCase() : original); - } - match = resolved; - } - return match; -} -function parseURL(url) { - try { - return new URL(url); - } catch (e) { - return null; - } -} -function constructURLBasedOnBaseURL(baseURL, givenURL) { - try { - return resolveBaseURL(baseURL, givenURL).resolved; - } catch (e) { - return givenURL; - } -} -function resolveBaseURL(baseURL, givenURL) { - try { - const url = new URL(givenURL, baseURL); - const resolved = url.toString(); - const caseInsensitivePrefix = url.origin; - return { resolved, caseInsensitivePart: caseInsensitivePrefix }; - } catch (e) { - return { resolved: givenURL }; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - constructURLBasedOnBaseURL, - globToRegexPattern, - resolveGlobToRegexPattern, - urlMatches, - urlMatchesEqual -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js deleted file mode 100644 index e6f089c..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +++ /dev/null @@ -1,251 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utilityScriptSerializers_exports = {}; -__export(utilityScriptSerializers_exports, { - parseEvaluationResultValue: () => parseEvaluationResultValue, - serializeAsCallArgument: () => serializeAsCallArgument -}); -module.exports = __toCommonJS(utilityScriptSerializers_exports); -function isRegExp(obj) { - try { - return obj instanceof RegExp || Object.prototype.toString.call(obj) === "[object RegExp]"; - } catch (error) { - return false; - } -} -function isDate(obj) { - try { - return obj instanceof Date || Object.prototype.toString.call(obj) === "[object Date]"; - } catch (error) { - return false; - } -} -function isURL(obj) { - try { - return obj instanceof URL || Object.prototype.toString.call(obj) === "[object URL]"; - } catch (error) { - return false; - } -} -function isError(obj) { - try { - return obj instanceof Error || obj && Object.getPrototypeOf(obj)?.name === "Error"; - } catch (error) { - return false; - } -} -function isTypedArray(obj, constructor) { - try { - return obj instanceof constructor || Object.prototype.toString.call(obj) === `[object ${constructor.name}]`; - } catch (error) { - return false; - } -} -const typedArrayConstructors = { - i8: Int8Array, - ui8: Uint8Array, - ui8c: Uint8ClampedArray, - i16: Int16Array, - ui16: Uint16Array, - i32: Int32Array, - ui32: Uint32Array, - // TODO: add Float16Array once it's in baseline - f32: Float32Array, - f64: Float64Array, - bi64: BigInt64Array, - bui64: BigUint64Array -}; -function typedArrayToBase64(array) { - if ("toBase64" in array) - return array.toBase64(); - const binary = Array.from(new Uint8Array(array.buffer, array.byteOffset, array.byteLength)).map((b) => String.fromCharCode(b)).join(""); - return btoa(binary); -} -function base64ToTypedArray(base64, TypedArrayConstructor) { - const binary = atob(base64); - const bytes = new Uint8Array(binary.length); - for (let i = 0; i < binary.length; i++) - bytes[i] = binary.charCodeAt(i); - return new TypedArrayConstructor(bytes.buffer); -} -function parseEvaluationResultValue(value, handles = [], refs = /* @__PURE__ */ new Map()) { - if (Object.is(value, void 0)) - return void 0; - if (typeof value === "object" && value) { - if ("ref" in value) - return refs.get(value.ref); - if ("v" in value) { - if (value.v === "undefined") - return void 0; - if (value.v === "null") - return null; - if (value.v === "NaN") - return NaN; - if (value.v === "Infinity") - return Infinity; - if (value.v === "-Infinity") - return -Infinity; - if (value.v === "-0") - return -0; - return void 0; - } - if ("d" in value) { - return new Date(value.d); - } - if ("u" in value) - return new URL(value.u); - if ("bi" in value) - return BigInt(value.bi); - if ("e" in value) { - const error = new Error(value.e.m); - error.name = value.e.n; - error.stack = value.e.s; - return error; - } - if ("r" in value) - return new RegExp(value.r.p, value.r.f); - if ("a" in value) { - const result = []; - refs.set(value.id, result); - for (const a of value.a) - result.push(parseEvaluationResultValue(a, handles, refs)); - return result; - } - if ("o" in value) { - const result = {}; - refs.set(value.id, result); - for (const { k, v } of value.o) { - if (k === "__proto__") - continue; - result[k] = parseEvaluationResultValue(v, handles, refs); - } - return result; - } - if ("h" in value) - return handles[value.h]; - if ("ta" in value) - return base64ToTypedArray(value.ta.b, typedArrayConstructors[value.ta.k]); - } - return value; -} -function serializeAsCallArgument(value, handleSerializer) { - return serialize(value, handleSerializer, { visited: /* @__PURE__ */ new Map(), lastId: 0 }); -} -function serialize(value, handleSerializer, visitorInfo) { - if (value && typeof value === "object") { - if (typeof globalThis.Window === "function" && value instanceof globalThis.Window) - return "ref: "; - if (typeof globalThis.Document === "function" && value instanceof globalThis.Document) - return "ref: "; - if (typeof globalThis.Node === "function" && value instanceof globalThis.Node) - return "ref: "; - } - return innerSerialize(value, handleSerializer, visitorInfo); -} -function innerSerialize(value, handleSerializer, visitorInfo) { - const result = handleSerializer(value); - if ("fallThrough" in result) - value = result.fallThrough; - else - return result; - if (typeof value === "symbol") - return { v: "undefined" }; - if (Object.is(value, void 0)) - return { v: "undefined" }; - if (Object.is(value, null)) - return { v: "null" }; - if (Object.is(value, NaN)) - return { v: "NaN" }; - if (Object.is(value, Infinity)) - return { v: "Infinity" }; - if (Object.is(value, -Infinity)) - return { v: "-Infinity" }; - if (Object.is(value, -0)) - return { v: "-0" }; - if (typeof value === "boolean") - return value; - if (typeof value === "number") - return value; - if (typeof value === "string") - return value; - if (typeof value === "bigint") - return { bi: value.toString() }; - if (isError(value)) { - let stack; - if (value.stack?.startsWith(value.name + ": " + value.message)) { - stack = value.stack; - } else { - stack = `${value.name}: ${value.message} -${value.stack}`; - } - return { e: { n: value.name, m: value.message, s: stack } }; - } - if (isDate(value)) - return { d: value.toJSON() }; - if (isURL(value)) - return { u: value.toJSON() }; - if (isRegExp(value)) - return { r: { p: value.source, f: value.flags } }; - for (const [k, ctor] of Object.entries(typedArrayConstructors)) { - if (isTypedArray(value, ctor)) - return { ta: { b: typedArrayToBase64(value), k } }; - } - const id = visitorInfo.visited.get(value); - if (id) - return { ref: id }; - if (Array.isArray(value)) { - const a = []; - const id2 = ++visitorInfo.lastId; - visitorInfo.visited.set(value, id2); - for (let i = 0; i < value.length; ++i) - a.push(serialize(value[i], handleSerializer, visitorInfo)); - return { a, id: id2 }; - } - if (typeof value === "object") { - const o = []; - const id2 = ++visitorInfo.lastId; - visitorInfo.visited.set(value, id2); - for (const name of Object.keys(value)) { - let item; - try { - item = value[name]; - } catch (e) { - continue; - } - if (name === "toJSON" && typeof item === "function") - o.push({ k: name, v: { o: [], id: 0 } }); - else - o.push({ k: name, v: serialize(item, handleSerializer, visitorInfo) }); - } - let jsonWrapper; - try { - if (o.length === 0 && value.toJSON && typeof value.toJSON === "function") - jsonWrapper = { value: value.toJSON() }; - } catch (e) { - } - if (jsonWrapper) - return innerSerialize(jsonWrapper.value, handleSerializer, visitorInfo); - return { o, id: id2 }; - } -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - parseEvaluationResultValue, - serializeAsCallArgument -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/yaml.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/yaml.js deleted file mode 100644 index f4d002e..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var yaml_exports = {}; -__export(yaml_exports, { - yamlEscapeKeyIfNeeded: () => yamlEscapeKeyIfNeeded, - yamlEscapeValueIfNeeded: () => yamlEscapeValueIfNeeded -}); -module.exports = __toCommonJS(yaml_exports); -function yamlEscapeKeyIfNeeded(str) { - if (!yamlStringNeedsQuotes(str)) - return str; - return `'` + str.replace(/'/g, `''`) + `'`; -} -function yamlEscapeValueIfNeeded(str) { - if (!yamlStringNeedsQuotes(str)) - return str; - return '"' + str.replace(/[\\"\x00-\x1f\x7f-\x9f]/g, (c) => { - switch (c) { - case "\\": - return "\\\\"; - case '"': - return '\\"'; - case "\b": - return "\\b"; - case "\f": - return "\\f"; - case "\n": - return "\\n"; - case "\r": - return "\\r"; - case " ": - return "\\t"; - default: - const code = c.charCodeAt(0); - return "\\x" + code.toString(16).padStart(2, "0"); - } - }) + '"'; -} -function yamlStringNeedsQuotes(str) { - if (str.length === 0) - return true; - if (/^\s|\s$/.test(str)) - return true; - if (/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(str)) - return true; - if (/^-/.test(str)) - return true; - if (/[\n:](\s|$)/.test(str)) - return true; - if (/\s#/.test(str)) - return true; - if (/[\n\r]/.test(str)) - return true; - if (/^[&*\],?!>|@"'#%]/.test(str)) - return true; - if (/[{}`]/.test(str)) - return true; - if (/^\[/.test(str)) - return true; - if (!isNaN(Number(str)) || ["y", "n", "yes", "no", "true", "false", "on", "off", "null"].includes(str.toLowerCase())) - return true; - return false; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - yamlEscapeKeyIfNeeded, - yamlEscapeValueIfNeeded -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundle.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundle.js deleted file mode 100644 index 188aa33..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundle.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var utilsBundle_exports = {}; -__export(utilsBundle_exports, { - HttpsProxyAgent: () => HttpsProxyAgent, - PNG: () => PNG, - ProgramOption: () => ProgramOption, - SocksProxyAgent: () => SocksProxyAgent, - colors: () => colors, - debug: () => debug, - diff: () => diff, - dotenv: () => dotenv, - getProxyForUrl: () => getProxyForUrl, - jpegjs: () => jpegjs, - lockfile: () => lockfile, - mime: () => mime, - minimatch: () => minimatch, - ms: () => ms, - open: () => open, - program: () => program, - progress: () => progress, - ws: () => ws, - wsReceiver: () => wsReceiver, - wsSender: () => wsSender, - wsServer: () => wsServer, - yaml: () => yaml -}); -module.exports = __toCommonJS(utilsBundle_exports); -const colors = require("./utilsBundleImpl").colors; -const debug = require("./utilsBundleImpl").debug; -const diff = require("./utilsBundleImpl").diff; -const dotenv = require("./utilsBundleImpl").dotenv; -const getProxyForUrl = require("./utilsBundleImpl").getProxyForUrl; -const HttpsProxyAgent = require("./utilsBundleImpl").HttpsProxyAgent; -const jpegjs = require("./utilsBundleImpl").jpegjs; -const lockfile = require("./utilsBundleImpl").lockfile; -const mime = require("./utilsBundleImpl").mime; -const minimatch = require("./utilsBundleImpl").minimatch; -const open = require("./utilsBundleImpl").open; -const PNG = require("./utilsBundleImpl").PNG; -const program = require("./utilsBundleImpl").program; -const ProgramOption = require("./utilsBundleImpl").ProgramOption; -const progress = require("./utilsBundleImpl").progress; -const SocksProxyAgent = require("./utilsBundleImpl").SocksProxyAgent; -const ws = require("./utilsBundleImpl").ws; -const wsServer = require("./utilsBundleImpl").wsServer; -const wsReceiver = require("./utilsBundleImpl").wsReceiver; -const wsSender = require("./utilsBundleImpl").wsSender; -const yaml = require("./utilsBundleImpl").yaml; -function ms(ms2) { - if (!isFinite(ms2)) - return "-"; - if (ms2 === 0) - return "0ms"; - if (ms2 < 1e3) - return ms2.toFixed(0) + "ms"; - const seconds = ms2 / 1e3; - if (seconds < 60) - return seconds.toFixed(1) + "s"; - const minutes = seconds / 60; - if (minutes < 60) - return minutes.toFixed(1) + "m"; - const hours = minutes / 60; - if (hours < 24) - return hours.toFixed(1) + "h"; - const days = hours / 24; - return days.toFixed(1) + "d"; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - HttpsProxyAgent, - PNG, - ProgramOption, - SocksProxyAgent, - colors, - debug, - diff, - dotenv, - getProxyForUrl, - jpegjs, - lockfile, - mime, - minimatch, - ms, - open, - program, - progress, - ws, - wsReceiver, - wsSender, - wsServer, - yaml -}); diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundleImpl/index.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundleImpl/index.js deleted file mode 100644 index 4a9bc8e..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundleImpl/index.js +++ /dev/null @@ -1,218 +0,0 @@ -"use strict";var Fb=Object.create;var ms=Object.defineProperty;var Db=Object.getOwnPropertyDescriptor;var jb=Object.getOwnPropertyNames;var Ub=Object.getPrototypeOf,$b=Object.prototype.hasOwnProperty;var x=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),wf=(i,e)=>{for(var t in e)ms(i,t,{get:e[t],enumerable:!0})},xf=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jb(e))!$b.call(i,n)&&n!==t&&ms(i,n,{get:()=>e[n],enumerable:!(r=Db(e,n))||r.enumerable});return i};var $e=(i,e,t)=>(t=i!=null?Fb(Ub(i)):{},xf(e||!i||!i.__esModule?ms(t,"default",{value:i,enumerable:!0}):t,i)),Vb=i=>xf(ms({},"__esModule",{value:!0}),i);var kf=x((bI,Of)=>{var Ef={};Of.exports=Ef;var Sf={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(Sf).forEach(function(i){var e=Sf[i],t=Ef[i]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Tf=x((_I,Cf)=>{"use strict";Cf.exports=function(i,e){e=e||process.argv;var t=e.indexOf("--"),r=/^-{1,2}/.test(i)?"":"--",n=e.indexOf(r+i);return n!==-1&&(t===-1?!0:n{"use strict";var Hb=require("os"),$t=Tf(),at=process.env,yr=void 0;$t("no-color")||$t("no-colors")||$t("color=false")?yr=!1:($t("color")||$t("colors")||$t("color=true")||$t("color=always"))&&(yr=!0);"FORCE_COLOR"in at&&(yr=at.FORCE_COLOR.length===0||parseInt(at.FORCE_COLOR,10)!==0);function Gb(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function Wb(i){if(yr===!1)return 0;if($t("color=16m")||$t("color=full")||$t("color=truecolor"))return 3;if($t("color=256"))return 2;if(i&&!i.isTTY&&yr!==!0)return 0;var e=yr?1:0;if(process.platform==="win32"){var t=Hb.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in at)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(n){return n in at})||at.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in at)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(at.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in at){var r=parseInt((at.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(at.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(at.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(at.TERM)||"COLORTERM"in at?1:(at.TERM==="dumb",e)}function ka(i){var e=Wb(i);return Gb(e)}Af.exports={supportsColor:ka,stdout:ka(process.stdout),stderr:ka(process.stderr)}});var Bf=x((xI,Nf)=>{Nf.exports=function(e,t){var r="";e=e||"Run the trap, drop the bass",e=e.split("");var n={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(s){s=s.toLowerCase();var o=n[s]||[" "],a=Math.floor(Math.random()*o.length);typeof n[s]!="undefined"?r+=n[s][a]:r+=s}),r}});var Rf=x((SI,Lf)=>{Lf.exports=function(e,t){e=e||" he is here ";var r={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},n=[].concat(r.up,r.down,r.mid);function s(l){var c=Math.floor(Math.random()*l);return c}function o(l){var c=!1;return n.filter(function(u){c=u===l}),c}function a(l,c){var u="",f,d;c=c||{},c.up=typeof c.up!="undefined"?c.up:!0,c.mid=typeof c.mid!="undefined"?c.mid:!0,c.down=typeof c.down!="undefined"?c.down:!0,c.size=typeof c.size!="undefined"?c.size:"maxi",l=l.split("");for(d in l)if(!o(d)){switch(u=u+l[d],f={up:0,down:0,mid:0},c.size){case"mini":f.up=s(8),f.mid=s(2),f.down=s(8);break;case"maxi":f.up=s(16)+3,f.mid=s(4)+1,f.down=s(64)+3;break;default:f.up=s(8)+1,f.mid=s(6)/2,f.down=s(8)+1;break}var m=["up","mid","down"];for(var g in m)for(var y=m[g],b=0;b<=f[y];b++)c[y]&&(u=u+r[y][s(r[y].length)])}return u}return a(e,t)}});var Mf=x((EI,Pf)=>{Pf.exports=function(i){return function(e,t,r){if(e===" ")return e;switch(t%3){case 0:return i.red(e);case 1:return i.white(e);case 2:return i.blue(e)}}}});var Ff=x((OI,qf)=>{qf.exports=function(i){return function(e,t,r){return t%2===0?e:i.inverse(e)}}});var jf=x((kI,Df)=>{Df.exports=function(i){var e=["red","yellow","green","blue","magenta"];return function(t,r,n){return t===" "?t:i[e[r++%e.length]](t)}}});var $f=x((CI,Uf)=>{Uf.exports=function(i){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(t,r,n){return t===" "?t:i[e[Math.round(Math.random()*(e.length-2))]](t)}}});var Kf=x((AI,Yf)=>{var ye={};Yf.exports=ye;ye.themes={};var Yb=require("util"),Wi=ye.styles=kf(),Hf=Object.defineProperties,Kb=new RegExp(/[\r\n]+/g);ye.supportsColor=If().supportsColor;typeof ye.enabled=="undefined"&&(ye.enabled=ye.supportsColor()!==!1);ye.enable=function(){ye.enabled=!0};ye.disable=function(){ye.enabled=!1};ye.stripColors=ye.strip=function(i){return(""+i).replace(/\x1B\[\d+m/g,"")};var TI=ye.stylize=function(e,t){if(!ye.enabled)return e+"";var r=Wi[t];return!r&&t in ye?ye[t](e):r.open+e+r.close},zb=/[|\\{}()[\]^$+*?.]/g,Jb=function(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(zb,"\\$&")};function Gf(i){var e=function t(){return Qb.apply(t,arguments)};return e._styles=i,e.__proto__=Zb,e}var Wf=(function(){var i={};return Wi.grey=Wi.gray,Object.keys(Wi).forEach(function(e){Wi[e].closeRe=new RegExp(Jb(Wi[e].close),"g"),i[e]={get:function(){return Gf(this._styles.concat(e))}}}),i})(),Zb=Hf(function(){},Wf);function Qb(){var i=Array.prototype.slice.call(arguments),e=i.map(function(o){return o!=null&&o.constructor===String?o:Yb.inspect(o)}).join(" ");if(!ye.enabled||!e)return e;for(var t=e.indexOf(` -`)!=-1,r=this._styles,n=r.length;n--;){var s=Wi[r[n]];e=s.open+e.replace(s.closeRe,s.open)+s.close,t&&(e=e.replace(Kb,function(o){return s.close+o+s.open}))}return e}ye.setTheme=function(i){if(typeof i=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in i)(function(t){ye[t]=function(r){if(typeof i[t]=="object"){var n=r;for(var s in i[t])n=ye[i[t][s]](n);return n}return ye[i[t]](r)}})(e)};function Xb(){var i={};return Object.keys(Wf).forEach(function(e){i[e]={get:function(){return Gf([e])}}}),i}var e_=function(e,t){var r=t.split("");return r=r.map(e),r.join("")};ye.trap=Bf();ye.zalgo=Rf();ye.maps={};ye.maps.america=Mf()(ye);ye.maps.zebra=Ff()(ye);ye.maps.rainbow=jf()(ye);ye.maps.random=$f()(ye);for(Vf in ye.maps)(function(i){ye[i]=function(e){return e_(ye.maps[i],e)}})(Vf);var Vf;Hf(ye,Xb())});var Jf=x((II,zf)=>{var t_=Kf();zf.exports=t_});var Qf=x((NI,Zf)=>{var br=1e3,_r=br*60,wr=_r*60,Yi=wr*24,i_=Yi*7,r_=Yi*365.25;Zf.exports=function(i,e){e=e||{};var t=typeof i;if(t==="string"&&i.length>0)return n_(i);if(t==="number"&&isFinite(i))return e.long?o_(i):s_(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function n_(i){if(i=String(i),!(i.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(e){var t=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return t*r_;case"weeks":case"week":case"w":return t*i_;case"days":case"day":case"d":return t*Yi;case"hours":case"hour":case"hrs":case"hr":case"h":return t*wr;case"minutes":case"minute":case"mins":case"min":case"m":return t*_r;case"seconds":case"second":case"secs":case"sec":case"s":return t*br;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function s_(i){var e=Math.abs(i);return e>=Yi?Math.round(i/Yi)+"d":e>=wr?Math.round(i/wr)+"h":e>=_r?Math.round(i/_r)+"m":e>=br?Math.round(i/br)+"s":i+"ms"}function o_(i){var e=Math.abs(i);return e>=Yi?gs(i,e,Yi,"day"):e>=wr?gs(i,e,wr,"hour"):e>=_r?gs(i,e,_r,"minute"):e>=br?gs(i,e,br,"second"):i+" ms"}function gs(i,e,t,r){var n=e>=t*1.5;return Math.round(i/t)+" "+r+(n?"s":"")}});var Ca=x((BI,Xf)=>{function a_(i){t.debug=t,t.default=t,t.coerce=l,t.disable=s,t.enable=n,t.enabled=o,t.humanize=Qf(),t.destroy=c,Object.keys(i).forEach(u=>{t[u]=i[u]}),t.names=[],t.skips=[],t.formatters={};function e(u){let f=0;for(let d=0;d{if(R==="%%")return"%";O++;let A=t.formatters[T];if(typeof A=="function"){let C=b[O];R=A.call(w,C),b.splice(O,1),O--}return R}),t.formatArgs.call(w,b),(w.log||t.log).apply(w,b)}return y.namespace=u,y.useColors=t.useColors(),y.color=t.selectColor(u),y.extend=r,y.destroy=t.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==t.namespaces&&(m=t.namespaces,g=t.enabled(u)),g),set:b=>{d=b}}),typeof t.init=="function"&&t.init(y),y}function r(u,f){let d=t(this.namespace+(typeof f=="undefined"?":":f)+u);return d.log=this.log,d}function n(u){t.save(u),t.namespaces=u,t.names=[],t.skips=[];let f,d=(typeof u=="string"?u:"").split(/[\s,]+/),m=d.length;for(f=0;f"-"+f)].join(",");return t.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let f,d;for(f=0,d=t.skips.length;f{xt.formatArgs=c_;xt.save=u_;xt.load=f_;xt.useColors=l_;xt.storage=h_();xt.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();xt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function l_(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function c_(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+vs.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;i.splice(1,0,e,"color: inherit");let t=0,r=0;i[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(t++,n==="%c"&&(r=t))}),i.splice(r,0,e)}xt.log=console.debug||console.log||(()=>{});function u_(i){try{i?xt.storage.setItem("debug",i):xt.storage.removeItem("debug")}catch{}}function f_(){let i;try{i=xt.storage.getItem("debug")}catch{}return!i&&typeof process!="undefined"&&"env"in process&&(i=process.env.DEBUG),i}function h_(){try{return localStorage}catch{}}vs.exports=Ca()(xt);var{formatters:p_}=vs.exports;p_.j=function(i){try{return JSON.stringify(i)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ih=x((LI,th)=>{"use strict";th.exports=(i,e=process.argv)=>{let t=i.startsWith("-")?"":i.length===1?"-":"--",r=e.indexOf(t+i),n=e.indexOf("--");return r!==-1&&(n===-1||r{"use strict";var d_=require("os"),rh=require("tty"),At=ih(),{env:Ke}=process,ys;At("no-color")||At("no-colors")||At("color=false")||At("color=never")?ys=0:(At("color")||At("colors")||At("color=true")||At("color=always"))&&(ys=1);function m_(){if("FORCE_COLOR"in Ke)return Ke.FORCE_COLOR==="true"?1:Ke.FORCE_COLOR==="false"?0:Ke.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Ke.FORCE_COLOR,10),3)}function g_(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function v_(i,{streamIsTTY:e,sniffFlags:t=!0}={}){let r=m_();r!==void 0&&(ys=r);let n=t?ys:r;if(n===0)return 0;if(t){if(At("color=16m")||At("color=full")||At("color=truecolor"))return 3;if(At("color=256"))return 2}if(i&&!e&&n===void 0)return 0;let s=n||0;if(Ke.TERM==="dumb")return s;if(process.platform==="win32"){let o=d_.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Ke)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Ke)||Ke.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Ke)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ke.TEAMCITY_VERSION)?1:0;if(Ke.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ke){let o=Number.parseInt((Ke.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ke.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ke.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ke.TERM)||"COLORTERM"in Ke?1:s}function Ta(i,e={}){let t=v_(i,{streamIsTTY:i&&i.isTTY,...e});return g_(t)}nh.exports={supportsColor:Ta,stdout:Ta({isTTY:rh.isatty(1)}),stderr:Ta({isTTY:rh.isatty(2)})}});var ah=x((Xe,_s)=>{var y_=require("tty"),bs=require("util");Xe.init=O_;Xe.log=x_;Xe.formatArgs=__;Xe.save=S_;Xe.load=E_;Xe.useColors=b_;Xe.destroy=bs.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Xe.colors=[6,2,3,4,5,1];try{let i=sh();i&&(i.stderr||i).level>=2&&(Xe.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Xe.inspectOpts=Object.keys(process.env).filter(i=>/^debug_/i.test(i)).reduce((i,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,s)=>s.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),i[t]=r,i},{});function b_(){return"colors"in Xe.inspectOpts?!!Xe.inspectOpts.colors:y_.isatty(process.stderr.fd)}function __(i){let{namespace:e,useColors:t}=this;if(t){let r=this.color,n="\x1B[3"+(r<8?r:"8;5;"+r),s=` ${n};1m${e} \x1B[0m`;i[0]=s+i[0].split(` -`).join(` -`+s),i.push(n+"m+"+_s.exports.humanize(this.diff)+"\x1B[0m")}else i[0]=w_()+e+" "+i[0]}function w_(){return Xe.inspectOpts.hideDate?"":new Date().toISOString()+" "}function x_(...i){return process.stderr.write(bs.format(...i)+` -`)}function S_(i){i?process.env.DEBUG=i:delete process.env.DEBUG}function E_(){return process.env.DEBUG}function O_(i){i.inspectOpts={};let e=Object.keys(Xe.inspectOpts);for(let t=0;te.trim()).join(" ")};oh.O=function(i){return this.inspectOpts.colors=this.useColors,bs.inspect(i,this.inspectOpts)}});var rn=x((PI,Aa)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Aa.exports=eh():Aa.exports=ah()});var Bh=x((MI,aw)=>{aw.exports={name:"dotenv",version:"16.4.5",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var Mh=x((qI,li)=>{var Da=require("fs"),ja=require("path"),lw=require("os"),cw=require("crypto"),uw=Bh(),Ua=uw.version,fw=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function hw(i){let e={},t=i.toString();t=t.replace(/\r\n?/mg,` -`);let r;for(;(r=fw.exec(t))!=null;){let n=r[1],s=r[2]||"";s=s.trim();let o=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(s=s.replace(/\\n/g,` -`),s=s.replace(/\\r/g,"\r")),e[n]=s}return e}function pw(i){let e=Ph(i),t=Ve.configDotenv({path:e});if(!t.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${e} for an unknown reason`);throw o.code="MISSING_DATA",o}let r=Rh(i).split(","),n=r.length,s;for(let o=0;o=n)throw a}return Ve.parse(s)}function dw(i){console.log(`[dotenv@${Ua}][INFO] ${i}`)}function mw(i){console.log(`[dotenv@${Ua}][WARN] ${i}`)}function As(i){console.log(`[dotenv@${Ua}][DEBUG] ${i}`)}function Rh(i){return i&&i.DOTENV_KEY&&i.DOTENV_KEY.length>0?i.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function gw(i,e){let t;try{t=new URL(e)}catch(a){if(a.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw a}let r=t.password;if(!r){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let n=t.searchParams.get("environment");if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let s=`DOTENV_VAULT_${n.toUpperCase()}`,o=i.parsed[s];if(!o){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:o,key:r}}function Ph(i){let e=null;if(i&&i.path&&i.path.length>0)if(Array.isArray(i.path))for(let t of i.path)Da.existsSync(t)&&(e=t.endsWith(".vault")?t:`${t}.vault`);else e=i.path.endsWith(".vault")?i.path:`${i.path}.vault`;else e=ja.resolve(process.cwd(),".env.vault");return Da.existsSync(e)?e:null}function Lh(i){return i[0]==="~"?ja.join(lw.homedir(),i.slice(1)):i}function vw(i){dw("Loading env from encrypted .env.vault");let e=Ve._parseVault(i),t=process.env;return i&&i.processEnv!=null&&(t=i.processEnv),Ve.populate(t,e,i),{parsed:e}}function yw(i){let e=ja.resolve(process.cwd(),".env"),t="utf8",r=!!(i&&i.debug);i&&i.encoding?t=i.encoding:r&&As("No encoding is specified. UTF-8 is used by default");let n=[e];if(i&&i.path)if(!Array.isArray(i.path))n=[Lh(i.path)];else{n=[];for(let l of i.path)n.push(Lh(l))}let s,o={};for(let l of n)try{let c=Ve.parse(Da.readFileSync(l,{encoding:t}));Ve.populate(o,c,i)}catch(c){r&&As(`Failed to load ${l} ${c.message}`),s=c}let a=process.env;return i&&i.processEnv!=null&&(a=i.processEnv),Ve.populate(a,o,i),s?{parsed:o,error:s}:{parsed:o}}function bw(i){if(Rh(i).length===0)return Ve.configDotenv(i);let e=Ph(i);return e?Ve._configVault(i):(mw(`You set DOTENV_KEY but you are missing a .env.vault file at ${e}. Did you forget to build it?`),Ve.configDotenv(i))}function _w(i,e){let t=Buffer.from(e.slice(-64),"hex"),r=Buffer.from(i,"base64"),n=r.subarray(0,12),s=r.subarray(-16);r=r.subarray(12,-16);try{let o=cw.createDecipheriv("aes-256-gcm",t,n);return o.setAuthTag(s),`${o.update(r)}${o.final()}`}catch(o){let a=o instanceof RangeError,l=o.message==="Invalid key length",c=o.message==="Unsupported state or unable to authenticate data";if(a||l){let u=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw u.code="INVALID_DOTENV_KEY",u}else if(c){let u=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw u.code="DECRYPTION_FAILED",u}else throw o}}function ww(i,e,t={}){let r=!!(t&&t.debug),n=!!(t&&t.override);if(typeof e!="object"){let s=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw s.code="OBJECT_REQUIRED",s}for(let s of Object.keys(e))Object.prototype.hasOwnProperty.call(i,s)?(n===!0&&(i[s]=e[s]),r&&As(n===!0?`"${s}" is already defined and WAS overwritten`:`"${s}" is already defined and was NOT overwritten`)):i[s]=e[s]}var Ve={configDotenv:yw,_configVault:vw,_parseVault:pw,config:bw,decrypt:_w,parse:hw,populate:ww};li.exports.configDotenv=Ve.configDotenv;li.exports._configVault=Ve._configVault;li.exports._parseVault=Ve._parseVault;li.exports.config=Ve.config;li.exports.decrypt=Ve.decrypt;li.exports.parse=Ve.parse;li.exports.populate=Ve.populate;li.exports=Ve});var Fh=x(qh=>{"use strict";var xw=require("url").parse,Sw={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Ew=String.prototype.endsWith||function(i){return i.length<=this.length&&this.indexOf(i,this.length-i.length)!==-1};function Ow(i){var e=typeof i=="string"?xw(i):i||{},t=e.protocol,r=e.host,n=e.port;if(typeof r!="string"||!r||typeof t!="string"||(t=t.split(":",1)[0],r=r.replace(/:\d*$/,""),n=parseInt(n)||Sw[t]||0,!kw(r,n)))return"";var s=Sr("npm_config_"+t+"_proxy")||Sr(t+"_proxy")||Sr("npm_config_proxy")||Sr("all_proxy");return s&&s.indexOf("://")===-1&&(s=t+"://"+s),s}function kw(i,e){var t=(Sr("npm_config_no_proxy")||Sr("no_proxy")).toLowerCase();return t?t==="*"?!1:t.split(/[,\s]/).every(function(r){if(!r)return!0;var n=r.match(/^(.+):(\d+)$/),s=n?n[1]:r,o=n?parseInt(n[2]):0;return o&&o!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!Ew.call(i,s)):i!==s}):!0}function Sr(i){return process.env[i.toLowerCase()]||process.env[i.toUpperCase()]||""}qh.getProxyForUrl=Ow});var Uh=x(mt=>{"use strict";var Cw=mt&&mt.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Tw=mt&&mt.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Dh=mt&&mt.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&Cw(e,i,t);return Tw(e,i),e};Object.defineProperty(mt,"__esModule",{value:!0});mt.req=mt.json=mt.toBuffer=void 0;var Aw=Dh(require("http")),Iw=Dh(require("https"));async function jh(i){let e=0,t=[];for await(let r of i)e+=r.length,t.push(r);return Buffer.concat(t,e)}mt.toBuffer=jh;async function Nw(i){let t=(await jh(i)).toString("utf8");try{return JSON.parse(t)}catch(r){let n=r;throw n.message+=` (input: ${t})`,n}}mt.json=Nw;function Bw(i,e={}){let r=((typeof i=="string"?i:i.href).startsWith("https:")?Iw:Aw).request(i,e),n=new Promise((s,o)=>{r.once("response",s).once("error",o).end()});return r.then=n.then.bind(n),r}mt.req=Bw});var Va=x(St=>{"use strict";var Vh=St&&St.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Lw=St&&St.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Hh=St&&St.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&Vh(e,i,t);return Lw(e,i),e},Rw=St&&St.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Vh(e,i,t)};Object.defineProperty(St,"__esModule",{value:!0});St.Agent=void 0;var Pw=Hh(require("net")),$h=Hh(require("http")),Mw=require("https");Rw(Uh(),St);var Kt=Symbol("AgentBaseInternalState"),$a=class extends $h.Agent{constructor(e){super(e),this[Kt]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:t}=new Error;return typeof t!="string"?!1:t.split(` -`).some(r=>r.indexOf("(https.js:")!==-1||r.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new Pw.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let r=this.sockets[e],n=r.indexOf(t);n!==-1&&(r.splice(n,1),this.totalSocketCount--,r.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Mw.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,r){let n={...t,secureEndpoint:this.isSecureEndpoint(t)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof $h.Agent)try{return a.addRequest(e,n)}catch(l){return r(l)}this[Kt].currentSocket=a,super.createSocket(e,t,r)},a=>{this.decrementSockets(s,o),r(a)})}createConnection(){let e=this[Kt].currentSocket;if(this[Kt].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){var e;return(e=this[Kt].defaultPort)!=null?e:this.protocol==="https:"?443:80}set defaultPort(e){this[Kt]&&(this[Kt].defaultPort=e)}get protocol(){var e;return(e=this[Kt].protocol)!=null?e:this.isSecureEndpoint()?"https:":"http:"}set protocol(e){this[Kt]&&(this[Kt].protocol=e)}};St.Agent=$a});var Gh=x(Er=>{"use strict";var qw=Er&&Er.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Er,"__esModule",{value:!0});Er.parseProxyResponse=void 0;var Fw=qw(rn()),Is=(0,Fw.default)("https-proxy-agent:parse-proxy-response");function Dw(i){return new Promise((e,t)=>{let r=0,n=[];function s(){let u=i.read();u?c(u):i.once("readable",s)}function o(){i.removeListener("end",a),i.removeListener("error",l),i.removeListener("readable",s)}function a(){o(),Is("onend"),t(new Error("Proxy connection ended before receiving CONNECT response"))}function l(u){o(),Is("onerror %o",u),t(u)}function c(u){n.push(u),r+=u.length;let f=Buffer.concat(n,r),d=f.indexOf(`\r -\r -`);if(d===-1){Is("have not received end of HTTP headers yet..."),s();return}let m=f.slice(0,d).toString("ascii").split(`\r -`),g=m.shift();if(!g)return i.destroy(),t(new Error("No header received from proxy CONNECT response"));let y=g.split(" "),b=+y[1],w=y.slice(2).join(" "),S={};for(let k of m){if(!k)continue;let O=k.indexOf(":");if(O===-1)return i.destroy(),t(new Error(`Invalid header from proxy CONNECT response: "${k}"`));let E=k.slice(0,O).toLowerCase(),R=k.slice(O+1).trimStart(),T=S[E];typeof T=="string"?S[E]=[T,R]:Array.isArray(T)?T.push(R):S[E]=R}Is("got proxy server response: %o %o",g,S),o(),e({connect:{statusCode:b,statusText:w,headers:S},buffered:f})}i.on("error",l),i.on("end",a),s()})}Er.parseProxyResponse=Dw});var Zh=x(Nt=>{"use strict";var jw=Nt&&Nt.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),Uw=Nt&&Nt.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),zh=Nt&&Nt.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&jw(e,i,t);return Uw(e,i),e},Jh=Nt&&Nt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.HttpsProxyAgent=void 0;var Ns=zh(require("net")),Wh=zh(require("tls")),$w=Jh(require("assert")),Vw=Jh(rn()),Hw=Va(),Gw=require("url"),Ww=Gh(),an=(0,Vw.default)("https-proxy-agent"),Yh=i=>i.servername===void 0&&i.host&&!Ns.isIP(i.host)?{...i,servername:i.host}:i,Bs=class extends Hw.Agent{constructor(e,t){var s;super(t),this.options={path:void 0},this.proxy=typeof e=="string"?new Gw.URL(e):e,this.proxyHeaders=(s=t==null?void 0:t.headers)!=null?s:{},an("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let r=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?Kh(t,"headers"):null,host:r,port:n}}async connect(e,t){let{proxy:r}=this;if(!t.host)throw new TypeError('No "host" provided');let n;r.protocol==="https:"?(an("Creating `tls.Socket`: %o",this.connectOpts),n=Wh.connect(Yh(this.connectOpts))):(an("Creating `net.Socket`: %o",this.connectOpts),n=Ns.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Ns.isIPv6(t.host)?`[${t.host}]`:t.host,a=`CONNECT ${o}:${t.port} HTTP/1.1\r -`;if(r.username||r.password){let d=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}s.Host=`${o}:${t.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(s))a+=`${d}: ${s[d]}\r -`;let l=(0,Ww.parseProxyResponse)(n);n.write(`${a}\r -`);let{connect:c,buffered:u}=await l;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Yw),t.secureEndpoint?(an("Upgrading socket connection to TLS"),Wh.connect({...Kh(Yh(t),"host","path","port"),socket:n})):n;n.destroy();let f=new Ns.Socket({writable:!1});return f.readable=!0,e.once("socket",d=>{an("Replaying proxy buffer for failed request"),(0,$w.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),f}};Bs.protocols=["http","https"];Nt.HttpsProxyAgent=Bs;function Yw(i){i.resume()}function Kh(i,...e){let t={},r;for(r in i)e.includes(r)||(t[r]=i[r]);return t}});var ep=x((VI,Ls)=>{var Xh=Xh||function(i){return Buffer.from(i).toString("base64")};function Kw(i){var e=this,t=Math.round,r=Math.floor,n=new Array(64),s=new Array(64),o=new Array(64),a=new Array(64),l,c,u,f,d=new Array(65535),m=new Array(65535),g=new Array(64),y=new Array(64),b=[],w=0,S=7,k=new Array(64),O=new Array(64),E=new Array(64),R=new Array(256),T=new Array(2048),A,C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],B=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],H=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Y=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Q(I){for(var Z=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],te=0;te<64;te++){var ee=r((Z[te]*I+50)/100);ee<1?ee=1:ee>255&&(ee=255),n[C[te]]=ee}for(var le=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ce=0;ce<64;ce++){var _e=r((le[ce]*I+50)/100);_e<1?_e=1:_e>255&&(_e=255),s[C[ce]]=_e}for(var we=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Re=0,Ae=0;Ae<8;Ae++)for(var D=0;D<8;D++)o[Re]=1/(n[C[Re]]*we[Ae]*we[D]*8),a[Re]=1/(s[C[Re]]*we[Ae]*we[D]*8),Re++}function W(I,Z){for(var te=0,ee=0,le=new Array,ce=1;ce<=16;ce++){for(var _e=1;_e<=I[ce];_e++)le[Z[ee]]=[],le[Z[ee]][0]=te,le[Z[ee]][1]=ce,ee++,te++;te*=2}return le}function de(){l=W(B,P),c=W(H,j),u=W(U,F),f=W(V,Y)}function ae(){for(var I=1,Z=2,te=1;te<=15;te++){for(var ee=I;ee>0]=38470*I,T[I+512>>0]=7471*I+32768,T[I+768>>0]=-11059*I,T[I+1024>>0]=-21709*I,T[I+1280>>0]=32768*I+8421375,T[I+1536>>0]=-27439*I,T[I+1792>>0]=-5329*I}function ue(I){for(var Z=I[0],te=I[1]-1;te>=0;)Z&1<>8&255),N(I&255)}function ke(I,Z){var te,ee,le,ce,_e,we,Re,Ae,D=0,J,se=8,Ne=64;for(J=0;J0?vr+.5|0:vr-.5|0;return g}function be(){X(65504),X(16),N(74),N(70),N(73),N(70),N(0),N(1),N(1),N(0),X(1),X(1),N(0),N(0)}function ge(I){if(I){X(65505),I[0]===69&&I[1]===120&&I[2]===105&&I[3]===102?X(I.length+2):(X(I.length+5+2),N(69),N(120),N(105),N(102),N(0));for(var Z=0;Z{if(typeof Z=="string"){X(65534);var te=Z.length;X(te+2);var ee;for(ee=0;ee0&&y[oe]==0;oe--);if(oe==0)return ue(ce),te;for(var me=1,Ee;me<=oe;){for(var ie=me;y[me]==0&&me<=oe;++me);var xe=me-ie;if(xe>=Re){Ee=xe>>4;for(var Ue=1;Ue<=Ee;++Ue)ue(_e);xe=xe&15}we=32767+y[me],ue(le[(xe<<4)+m[we]]),ue(d[we]),me++}return oe!=Ae&&ue(ce),te}function he(){for(var I=String.fromCharCode,Z=0;Z<256;Z++)R[Z]=I(Z)}this.encode=function(I,Z){var te=new Date().getTime();Z&&ht(Z),b=new Array,w=0,S=7,X(65496),be(),$(I.comments),ge(I.exifBuffer),fe(),ve(I.width,I.height),z(),Te();var ee=0,le=0,ce=0;w=0,S=7,this.encode.displayName="_encode_";for(var _e=I.data,we=I.width,Re=I.height,Ae=we*4,D=we*3,J,se=0,Ne,oe,me,Ee,ie,xe,Ue,Ie;se>3,xe=(Ie&7)*4,ie=Ee+Ue*Ae+xe,se+Ue>=Re&&(ie-=Ae*(se+1+Ue-Re)),J+xe>=Ae&&(ie-=J+xe-Ae+4),Ne=_e[ie++],oe=_e[ie++],me=_e[ie++],k[Ie]=(T[Ne]+T[oe+256>>0]+T[me+512>>0]>>16)-128,O[Ie]=(T[Ne+768>>0]+T[oe+1024>>0]+T[me+1280>>0]>>16)-128,E[Ie]=(T[Ne+1280>>0]+T[oe+1536>>0]+T[me+1792>>0]>>16)-128;ee=re(k,o,ee,l,u),le=re(O,a,le,c,f),ce=re(E,a,ce,c,f),J+=32}se+=8}if(S>=0){var pt=[];pt[1]=S+1,pt[0]=(1<100&&(I=100),A!=I){var Z=0;I<50?Z=Math.floor(5e3/I):Z=Math.floor(200-I*2),Q(Z),A=I}}function bt(){var I=new Date().getTime();i||(i=50),he(),de(),ae(),ne(),ht(i);var Z=new Date().getTime()-I}bt()}typeof Ls!="undefined"?Ls.exports=Qh:typeof window!="undefined"&&(window["jpeg-js"]=window["jpeg-js"]||{},window["jpeg-js"].encode=Qh);function Qh(i,e){typeof e=="undefined"&&(e=50);var t=new Kw(e),r=t.encode(i,e);return{data:r,width:i.width,height:i.height}}});var ip=x((HI,Ga)=>{var Ha=(function(){"use strict";var e=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),t=4017,r=799,n=3406,s=2276,o=1567,a=3784,l=5793,c=2896;function u(){}function f(S,k){for(var O=0,E=[],R,T,A=16;A>0&&!S[A-1];)A--;E.push({children:[],index:0});var C=E[0],B;for(R=0;R0;){if(E.length===0)throw new Error("Could not recreate Huffman Table");C=E.pop()}for(C.index++,E.push(C);E.length<=R;)E.push(B={children:[],index:0}),C.children[C.index]=B.children,C=B;O++}R+10)return ae--,de>>ae&1;if(de=S[k++],de==255){var D=S[k++];if(D)throw new Error("unexpected marker: "+(de<<8|D).toString(16))}return ae=7,de>>>7}function ue(D){for(var J=D,se;(se=ne())!==null;){if(J=J[se],typeof J=="number")return J;if(typeof J!="object")throw new Error("invalid huffman sequence")}return null}function N(D){for(var J=0;D>0;){var se=ne();if(se===null)return;J=J<<1|se,D--}return J}function X(D){var J=N(D);return J>=1<>4;if(Ee===0){if(ie<15)break;oe+=16;continue}oe+=ie;var xe=e[oe];J[xe]=X(Ee),oe++}}function be(D,J){var se=ue(D.huffmanTableDC),Ne=se===0?0:X(se)<0){ve--;return}for(var se=T,Ne=A;se<=Ne;){var oe=ue(D.huffmanTableAC),me=oe&15,Ee=oe>>4;if(me===0){if(Ee<15){ve=N(Ee)+(1<>4;if(xe===0)oe<15?(ve=N(oe)+(1<=65488&&_e<=65495)k+=2;else break}return k-W}function m(S,k){var O=[],E=k.blocksPerLine,R=k.blocksPerColumn,T=E<<3,A=new Int32Array(64),C=new Uint8Array(64);function B(W,de,ae){var ne=k.quantizationTable,ue,N,X,ke,be,ge,ve,fe,z,$=ae,Te;for(Te=0;Te<64;Te++)$[Te]=W[Te]*ne[Te];for(Te=0;Te<8;++Te){var re=8*Te;if($[1+re]==0&&$[2+re]==0&&$[3+re]==0&&$[4+re]==0&&$[5+re]==0&&$[6+re]==0&&$[7+re]==0){z=l*$[0+re]+512>>10,$[0+re]=z,$[1+re]=z,$[2+re]=z,$[3+re]=z,$[4+re]=z,$[5+re]=z,$[6+re]=z,$[7+re]=z;continue}ue=l*$[0+re]+128>>8,N=l*$[4+re]+128>>8,X=$[2+re],ke=$[6+re],be=c*($[1+re]-$[7+re])+128>>8,fe=c*($[1+re]+$[7+re])+128>>8,ge=$[3+re]<<4,ve=$[5+re]<<4,z=ue-N+1>>1,ue=ue+N+1>>1,N=z,z=X*a+ke*o+128>>8,X=X*o-ke*a+128>>8,ke=z,z=be-ve+1>>1,be=be+ve+1>>1,ve=z,z=fe+ge+1>>1,ge=fe-ge+1>>1,fe=z,z=ue-ke+1>>1,ue=ue+ke+1>>1,ke=z,z=N-X+1>>1,N=N+X+1>>1,X=z,z=be*s+fe*n+2048>>12,be=be*n-fe*s+2048>>12,fe=z,z=ge*r+ve*t+2048>>12,ge=ge*t-ve*r+2048>>12,ve=z,$[0+re]=ue+fe,$[7+re]=ue-fe,$[1+re]=N+ve,$[6+re]=N-ve,$[2+re]=X+ge,$[5+re]=X-ge,$[3+re]=ke+be,$[4+re]=ke-be}for(Te=0;Te<8;++Te){var he=Te;if($[8+he]==0&&$[16+he]==0&&$[24+he]==0&&$[32+he]==0&&$[40+he]==0&&$[48+he]==0&&$[56+he]==0){z=l*ae[Te+0]+8192>>14,$[0+he]=z,$[8+he]=z,$[16+he]=z,$[24+he]=z,$[32+he]=z,$[40+he]=z,$[48+he]=z,$[56+he]=z;continue}ue=l*$[0+he]+2048>>12,N=l*$[32+he]+2048>>12,X=$[16+he],ke=$[48+he],be=c*($[8+he]-$[56+he])+2048>>12,fe=c*($[8+he]+$[56+he])+2048>>12,ge=$[24+he],ve=$[40+he],z=ue-N+1>>1,ue=ue+N+1>>1,N=z,z=X*a+ke*o+2048>>12,X=X*o-ke*a+2048>>12,ke=z,z=be-ve+1>>1,be=be+ve+1>>1,ve=z,z=fe+ge+1>>1,ge=fe-ge+1>>1,fe=z,z=ue-ke+1>>1,ue=ue+ke+1>>1,ke=z,z=N-X+1>>1,N=N+X+1>>1,X=z,z=be*s+fe*n+2048>>12,be=be*n-fe*s+2048>>12,fe=z,z=ge*r+ve*t+2048>>12,ge=ge*t-ve*r+2048>>12,ve=z,$[0+he]=ue+fe,$[56+he]=ue-fe,$[8+he]=N+ve,$[48+he]=N-ve,$[16+he]=X+ge,$[40+he]=X-ge,$[24+he]=ke+be,$[32+he]=ke-be}for(Te=0;Te<64;++Te){var ht=128+($[Te]+8>>4);de[Te]=ht<0?0:ht>255?255:ht}}w(T*R*8);for(var P,U,F=0;F255?255:S}u.prototype={load:function(k){var O=new XMLHttpRequest;O.open("GET",k,!0),O.responseType="arraybuffer",O.onload=(function(){var E=new Uint8Array(O.response||O.mozResponseArrayBuffer);this.parse(E),this.onload&&this.onload()}).bind(this),O.send(null)},parse:function(k){var O=this.opts.maxResolutionInMP*1e3*1e3,E=0,R=k.length;function T(){var ie=k[E]<<8|k[E+1];return E+=2,ie}function A(){var ie=T(),xe=k.subarray(E,E+ie-2);return E+=xe.length,xe}function C(ie){var xe=1,Ue=1,Ie,pt;for(pt in ie.components)ie.components.hasOwnProperty(pt)&&(Ie=ie.components[pt],xe>4===0)for(ne=0;ne<64;ne++){var fe=e[ne];ve[fe]=k[E++]}else if(ge>>4===1)for(ne=0;ne<64;ne++){var fe=e[ne];ve[fe]=T()}else throw new Error("DQT: invalid table spec");j[ge&15]=ve}break;case 65472:case 65473:case 65474:T(),F={},F.extended=W===65473,F.progressive=W===65474,F.precision=k[E++],F.scanLines=T(),F.samplesPerLine=T(),F.components={},F.componentsOrder=[];var z=F.scanLines*F.samplesPerLine;if(z>O){var $=Math.ceil((z-O)/1e6);throw new Error(`maxResolutionInMP limit exceeded by ${$}MP`)}var Te=k[E++],re,he=0,ht=0;for(ae=0;ae>4,I=k[E+1]&15,Z=k[E+2];if(bt<=0||I<=0)throw new Error("Invalid sampling factor, expected values above 0");F.componentsOrder.push(re),F.components[re]={h:bt,v:I,quantizationIdx:Z},E+=3}C(F),V.push(F);break;case 65476:var te=T();for(ae=2;ae>4===0?Q:Y)[ee&15]=f(le,_e)}break;case 65501:T(),H=T();break;case 65500:T(),T();break;case 65498:var we=T(),Re=k[E++],Ae=[],D;for(ae=0;ae>4],D.huffmanTableAC=Y[J&15],Ae.push(D)}var se=k[E++],Ne=k[E++],oe=k[E++],me=d(k,E,F,Ae,H,se,Ne,oe>>4,oe&15,this.opts);E+=me;break;case 65535:k[E]!==255&&E--;break;default:if(k[E-3]==255&&k[E-2]>=192&&k[E-2]<=254){E-=3;break}else if(W===224||W==225){if(de!==-1)throw new Error(`first unknown JPEG marker at offset ${de.toString(16)}, second unknown JPEG marker ${W.toString(16)} at offset ${(E-1).toString(16)}`);de=E-1;let ie=T();if(k[E+ie-2]===255){E+=ie-2;break}}throw new Error("unknown JPEG marker "+W.toString(16))}W=T()}if(V.length!=1)throw new Error("only single frame JPEGs supported");for(var ae=0;aeb){var O=Math.ceil((k-b)/1024/1024);throw new Error(`maxMemoryUsageInMB limit exceeded by at least ${O}MB`)}y=k}return u.resetMaxMemoryUsage=function(S){y=0,b=S},u.getBytesAllocated=function(){return y},u.requestMemoryAllocation=w,u})();typeof Ga!="undefined"?Ga.exports=tp:typeof window!="undefined"&&(window["jpeg-js"]=window["jpeg-js"]||{},window["jpeg-js"].decode=tp);function tp(i,e={}){var t={colorTransform:void 0,useTArray:!1,formatAsRGBA:!0,tolerantDecoding:!0,maxResolutionInMP:100,maxMemoryUsageInMB:512},r={...t,...e},n=new Uint8Array(i),s=new Ha;s.opts=r,Ha.resetMaxMemoryUsage(r.maxMemoryUsageInMB*1024*1024),s.parse(n);var o=r.formatAsRGBA?4:3,a=s.width*s.height*o;try{Ha.requestMemoryAllocation(a);var l={width:s.width,height:s.height,exifBuffer:s.exifBuffer,data:r.useTArray?new Uint8Array(a):Buffer.alloc(a)};s.comments.length>0&&(l.comments=s.comments)}catch(c){throw c instanceof RangeError?new Error("Could not allocate enough memory for the image. Required: "+a):c instanceof ReferenceError&&c.message==="Buffer is not defined"?new Error("Buffer is not globally defined in this environment. Consider setting useTArray to true"):c}return s.copyToImageData(l,r.formatAsRGBA),l}});var np=x((GI,rp)=>{var zw=ep(),Jw=ip();rp.exports={encode:zw,decode:Jw}});var op=x((WI,sp)=>{"use strict";function Rs(){this._types=Object.create(null),this._extensions=Object.create(null);for(let i=0;i{ap.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}});var up=x((KI,cp)=>{cp.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var hp=x((zI,fp)=>{"use strict";var Zw=op();fp.exports=new Zw(lp(),up())});var dp=x((JI,pp)=>{pp.exports=function(i,e){for(var t=[],r=0;r{"use strict";yp.exports=gp;function gp(i,e,t){i instanceof RegExp&&(i=mp(i,t)),e instanceof RegExp&&(e=mp(e,t));var r=vp(i,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+i.length,r[1]),post:t.slice(r[1]+e.length)}}function mp(i,e){var t=e.match(i);return t?t[0]:null}gp.range=vp;function vp(i,e,t){var r,n,s,o,a,l=t.indexOf(i),c=t.indexOf(e,l+1),u=l;if(l>=0&&c>0){if(i===e)return[l,c];for(r=[],s=t.length;u>=0&&!a;)u==l?(r.push(u),l=t.indexOf(i,u+1)):r.length==1?a=[r.pop(),c]:(n=r.pop(),n=0?l:c;r.length&&(a=[s,o])}return a}});var Cp=x((QI,kp)=>{var Xw=dp(),_p=bp();kp.exports=i1;var wp="\0SLASH"+Math.random()+"\0",xp="\0OPEN"+Math.random()+"\0",Ya="\0CLOSE"+Math.random()+"\0",Sp="\0COMMA"+Math.random()+"\0",Ep="\0PERIOD"+Math.random()+"\0";function Wa(i){return parseInt(i,10)==i?parseInt(i,10):i.charCodeAt(0)}function e1(i){return i.split("\\\\").join(wp).split("\\{").join(xp).split("\\}").join(Ya).split("\\,").join(Sp).split("\\.").join(Ep)}function t1(i){return i.split(wp).join("\\").split(xp).join("{").split(Ya).join("}").split(Sp).join(",").split(Ep).join(".")}function Op(i){if(!i)return[""];var e=[],t=_p("{","}",i);if(!t)return i.split(",");var r=t.pre,n=t.body,s=t.post,o=r.split(",");o[o.length-1]+="{"+n+"}";var a=Op(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function i1(i){return i?(i.substr(0,2)==="{}"&&(i="\\{\\}"+i.substr(2)),Or(e1(i),!0).map(t1)):[]}function r1(i){return"{"+i+"}"}function n1(i){return/^-?0\d/.test(i)}function s1(i,e){return i<=e}function o1(i,e){return i>=e}function Or(i,e){var t=[],r=_p("{","}",i);if(!r||/\$$/.test(r.pre))return[i];var n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),o=n||s,a=r.body.indexOf(",")>=0;if(!o&&!a)return r.post.match(/,(?!,).*\}/)?(i=r.pre+"{"+r.body+Ya+r.post,Or(i)):[i];var l;if(o)l=r.body.split(/\.\./);else if(l=Op(r.body),l.length===1&&(l=Or(l[0],!1).map(r1),l.length===1)){var u=r.post.length?Or(r.post,!1):[""];return u.map(function(P){return r.pre+l[0]+P})}var c=r.pre,u=r.post.length?Or(r.post,!1):[""],f;if(o){var d=Wa(l[0]),m=Wa(l[1]),g=Math.max(l[0].length,l[1].length),y=l.length==3?Math.abs(Wa(l[2])):1,b=s1,w=m0){var R=new Array(E+1).join("0");k<0?O="-"+R+O.slice(1):O=R+O}}f.push(O)}}else f=Xw(l,function(B){return Or(B,!1)});for(var T=0;T{Bp.exports=Et;Et.Minimatch=et;var ln=(function(){try{return require("path")}catch{}})()||{sep:"/"};Et.sep=ln.sep;var Ja=Et.GLOBSTAR=et.GLOBSTAR={},a1=Cp(),Tp={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},Ka="[^/]",za=Ka+"*?",l1="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c1="(?:(?!(?:\\/|^)\\.).)*?",Ap=u1("().*{}+?[]^$\\!");function u1(i){return i.split("").reduce(function(e,t){return e[t]=!0,e},{})}var Ip=/\/+/;Et.filter=f1;function f1(i,e){return e=e||{},function(t,r,n){return Et(t,i,e)}}function _i(i,e){e=e||{};var t={};return Object.keys(i).forEach(function(r){t[r]=i[r]}),Object.keys(e).forEach(function(r){t[r]=e[r]}),t}Et.defaults=function(i){if(!i||typeof i!="object"||!Object.keys(i).length)return Et;var e=Et,t=function(n,s,o){return e(n,s,_i(i,o))};return t.Minimatch=function(n,s){return new e.Minimatch(n,_i(i,s))},t.Minimatch.defaults=function(n){return e.defaults(_i(i,n)).Minimatch},t.filter=function(n,s){return e.filter(n,_i(i,s))},t.defaults=function(n){return e.defaults(_i(i,n))},t.makeRe=function(n,s){return e.makeRe(n,_i(i,s))},t.braceExpand=function(n,s){return e.braceExpand(n,_i(i,s))},t.match=function(r,n,s){return e.match(r,n,_i(i,s))},t};et.defaults=function(i){return Et.defaults(i).Minimatch};function Et(i,e,t){return Ms(e),t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:new et(e,t).match(i)}function et(i,e){if(!(this instanceof et))return new et(i,e);Ms(i),e||(e={}),i=i.trim(),!e.allowWindowsEscape&&ln.sep!=="/"&&(i=i.split(ln.sep).join("/")),this.options=e,this.set=[],this.pattern=i,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}et.prototype.debug=function(){};et.prototype.make=h1;function h1(){var i=this.pattern,e=this.options;if(!e.nocomment&&i.charAt(0)==="#"){this.comment=!0;return}if(!i){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,t),t=this.globParts=t.map(function(r){return r.split(Ip)}),this.debug(this.pattern,t),t=t.map(function(r,n,s){return r.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(r){return r.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}et.prototype.parseNegate=p1;function p1(){var i=this.pattern,e=!1,t=this.options,r=0;if(!t.nonegate){for(var n=0,s=i.length;nd1)throw new TypeError("pattern is too long")};et.prototype.parse=m1;var Ps={};function m1(i,e){Ms(i);var t=this.options;if(i==="**")if(t.noglobstar)i="*";else return Ja;if(i==="")return"";var r="",n=!!t.nocase,s=!1,o=[],a=[],l,c=!1,u=-1,f=-1,d=i.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function g(){if(l){switch(l){case"*":r+=za,n=!0;break;case"?":r+=Ka,n=!0;break;default:r+="\\"+l;break}m.debug("clearStateChar %j %j",l,r),l=!1}}for(var y=0,b=i.length,w;y-1;A--){var C=a[A],B=r.slice(0,C.reStart),P=r.slice(C.reStart,C.reEnd-8),U=r.slice(C.reEnd-8,C.reEnd),F=r.slice(C.reEnd);U+=F;var H=B.split("(").length-1,j=F;for(y=0;y=0&&(s=e[o],!s);o--);for(o=0;o>> no match, partial?`,i,u,e,f),u===o))}var m;if(typeof l=="string"?(m=c===l,this.debug("string match",l,c,m)):(m=c.match(l),this.debug("pattern match",l,c,m)),!m)return!1}if(n===o&&s===a)return!0;if(n===o)return t;if(s===a)return n===o-1&&i[n]==="";throw new Error("wtf?")};function v1(i){return i.replace(/\\(.)/g,"$1")}function y1(i){return i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Qa=x((e2,Pp)=>{"use strict";var Rp=require("fs"),Za;function b1(){try{return Rp.statSync("/.dockerenv"),!0}catch{return!1}}function _1(){try{return Rp.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Pp.exports=()=>(Za===void 0&&(Za=b1()||_1()),Za)});var Fp=x((t2,Xa)=>{"use strict";var w1=require("os"),x1=require("fs"),Mp=Qa(),qp=()=>{if(process.platform!=="linux")return!1;if(w1.release().toLowerCase().includes("microsoft"))return!Mp();try{return x1.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Mp():!1}catch{return!1}};process.env.__IS_WSL_TEST__?Xa.exports=qp:Xa.exports=qp()});var jp=x((i2,Dp)=>{"use strict";Dp.exports=(i,e,t)=>{let r=n=>Object.defineProperty(i,e,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get(){let n=t();return r(n),n},set(n){r(n)}}),i}});var Yp=x((r2,Wp)=>{var S1=require("path"),E1=require("child_process"),{promises:el,constants:Gp}=require("fs"),qs=Fp(),O1=Qa(),tl=jp(),Up=S1.join(__dirname,"xdg-open"),{platform:kr,arch:$p}=process,k1=(()=>{let i="/mnt/",e;return async function(){if(e)return e;let t="/etc/wsl.conf",r=!1;try{await el.access(t,Gp.F_OK),r=!0}catch{}if(!r)return i;let n=await el.readFile(t,{encoding:"utf8"}),s=/(?.*)/g.exec(n);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):i}})(),Vp=async(i,e)=>{let t;for(let r of i)try{return await e(r)}catch(n){t=n}throw t},Fs=async i=>{if(i={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...i},Array.isArray(i.app))return Vp(i.app,a=>Fs({...i,app:a}));let{name:e,arguments:t=[]}=i.app||{};if(t=[...t],Array.isArray(e))return Vp(e,a=>Fs({...i,app:{name:a,arguments:t}}));let r,n=[],s={};if(kr==="darwin")r="open",i.wait&&n.push("--wait-apps"),i.background&&n.push("--background"),i.newInstance&&n.push("--new"),e&&n.push("-a",e);else if(kr==="win32"||qs&&!O1()){let a=await k1();r=qs?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,n.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),qs||(s.windowsVerbatimArguments=!0);let l=["Start"];i.wait&&l.push("-Wait"),e?(l.push(`"\`"${e}\`""`,"-ArgumentList"),i.target&&t.unshift(i.target)):i.target&&l.push(`"${i.target}"`),t.length>0&&(t=t.map(c=>`"\`"${c}\`""`),l.push(t.join(","))),i.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(e)r=e;else{let a=!__dirname||__dirname==="/",l=!1;try{await el.access(Up,Gp.X_OK),l=!0}catch{}r=process.versions.electron||kr==="android"||a||!l?"xdg-open":Up}t.length>0&&n.push(...t),i.wait||(s.stdio="ignore",s.detached=!0)}i.target&&n.push(i.target),kr==="darwin"&&t.length>0&&n.push("--args",...t);let o=E1.spawn(r,n,s);return i.wait?new Promise((a,l)=>{o.once("error",l),o.once("close",c=>{if(i.allowNonzeroExitCode&&c>0){l(new Error(`Exited with code ${c}`));return}a(o)})}):(o.unref(),o)},il=(i,e)=>{if(typeof i!="string")throw new TypeError("Expected a `target`");return Fs({...e,target:i})},C1=(i,e)=>{if(typeof i!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=e||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return Fs({...e,app:{name:i,arguments:t}})};function Hp(i){if(typeof i=="string"||Array.isArray(i))return i;let{[$p]:e}=i;if(!e)throw new Error(`${$p} is not supported`);return e}function rl({[kr]:i},{wsl:e}){if(e&&qs)return Hp(e);if(!i)throw new Error(`${kr} is not supported`);return Hp(i)}var Ds={};tl(Ds,"chrome",()=>rl({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));tl(Ds,"firefox",()=>rl({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));tl(Ds,"edge",()=>rl({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));il.apps=Ds;il.openApp=C1;Wp.exports=il});var nl=x((n2,zp)=>{"use strict";var T1=require("util"),Kp=require("stream"),Vt=zp.exports=function(){Kp.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};T1.inherits(Vt,Kp);Vt.prototype.read=function(i,e){this._reads.push({length:Math.abs(i),allowLess:i<0,func:e}),process.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))};Vt.prototype.write=function(i,e){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let t;return Buffer.isBuffer(i)?t=i:t=Buffer.from(i,e||this._encoding),this._buffers.push(t),this._buffered+=t.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};Vt.prototype.end=function(i,e){i&&this.write(i,e),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};Vt.prototype.destroySoon=Vt.prototype.end;Vt.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Vt.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Vt.prototype._processReadAllowingLess=function(i){this._reads.shift();let e=this._buffers[0];e.length>i.length?(this._buffered-=i.length,this._buffers[0]=e.slice(i.length),i.func.call(this,e.slice(0,i.length))):(this._buffered-=e.length,this._buffers.shift(),i.func.call(this,e))};Vt.prototype._processRead=function(i){this._reads.shift();let e=0,t=0,r=Buffer.alloc(i.length);for(;e0&&this._buffers.splice(0,t),this._buffered-=i.length,i.func.call(this,r)};Vt.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let i=this._reads[0];if(i.allowLess)this._processReadAllowingLess(i);else if(this._buffered>=i.length)this._processRead(i);else break}this._buffers&&!this.writable&&this._end()}catch(i){this.emit("error",i)}}});var ol=x(sl=>{"use strict";var wi=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];sl.getImagePasses=function(i,e){let t=[],r=i%8,n=e%8,s=(i-r)/8,o=(e-n)/8;for(let a=0;a0&&u>0&&t.push({width:c,height:u,index:a})}return t};sl.getInterlaceIterator=function(i){return function(e,t,r){let n=e%wi[r].x.length,s=(e-n)/wi[r].x.length*8+wi[r].x[n],o=t%wi[r].y.length,a=(t-o)/wi[r].y.length*8+wi[r].y[o];return s*4+a*i*4}}});var al=x((o2,Jp)=>{"use strict";Jp.exports=function(e,t,r){let n=e+t-r,s=Math.abs(n-e),o=Math.abs(n-t),a=Math.abs(n-r);return s<=o&&s<=a?e:o<=a?t:r}});var ll=x((a2,Qp)=>{"use strict";var A1=ol(),I1=al();function Zp(i,e,t){let r=i*e;return t!==8&&(r=Math.ceil(r/(8/t))),r}var Cr=Qp.exports=function(i,e){let t=i.width,r=i.height,n=i.interlace,s=i.bpp,o=i.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],n){let a=A1.getImagePasses(t,r);for(let l=0;ln?e[s-r]:0;e[s]=o+a}};Cr.prototype._unFilterType2=function(i,e,t){let r=this._lastLine;for(let n=0;nn?e[o-r]:0,u=Math.floor((c+l)/2);e[o]=a+u}};Cr.prototype._unFilterType4=function(i,e,t){let r=this._xComparison,n=r-1,s=this._lastLine;for(let o=0;on?e[o-r]:0,u=o>n&&s?s[o-r]:0,f=I1(c,l,u);e[o]=a+f}};Cr.prototype._reverseFilterLine=function(i){let e=i[0],t,r=this._images[this._imageIndex],n=r.byteWidth;if(e===0)t=i.slice(1,n+1);else switch(t=Buffer.alloc(n),e){case 1:this._unFilterType1(i,t,n);break;case 2:this._unFilterType2(i,t,n);break;case 3:this._unFilterType3(i,t,n);break;case 4:this._unFilterType4(i,t,n);break;default:throw new Error("Unrecognised filter type - "+e)}this.write(t),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=t,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var td=x((l2,ed)=>{"use strict";var N1=require("util"),Xp=nl(),B1=ll(),L1=ed.exports=function(i){Xp.call(this);let e=[],t=this;this._filter=new B1(i,{read:this.read.bind(this),write:function(r){e.push(r)},complete:function(){t.emit("complete",Buffer.concat(e))}}),this._filter.start()};N1.inherits(L1,Xp)});var Tr=x((c2,id)=>{"use strict";id.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var fl=x((u2,rd)=>{"use strict";var cl=[];(function(){for(let i=0;i<256;i++){let e=i;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;cl[i]=e}})();var ul=rd.exports=function(){this._crc=-1};ul.prototype.write=function(i){for(let e=0;e>>8;return!0};ul.prototype.crc32=function(){return this._crc^-1};ul.crc32=function(i){let e=-1;for(let t=0;t>>8;return e^-1}});var hl=x((f2,nd)=>{"use strict";var He=Tr(),R1=fl(),ze=nd.exports=function(i,e){this._options=i,i.checkCRC=i.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[He.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[He.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[He.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[He.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[He.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[He.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};ze.prototype.start=function(){this.read(He.PNG_SIGNATURE.length,this._parseSignature.bind(this))};ze.prototype._parseSignature=function(i){let e=He.PNG_SIGNATURE;for(let t=0;tthis._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let e=0;e0?this._handleIDAT(t):this._handleChunkEnd()};ze.prototype._handleIEND=function(i){this.read(i,this._parseIEND.bind(this))};ze.prototype._parseIEND=function(i){this._crc.write(i),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var pl=x(od=>{"use strict";var sd=ol(),P1=[function(){},function(i,e,t,r){if(r===e.length)throw new Error("Ran out of data");let n=e[r];i[t]=n,i[t+1]=n,i[t+2]=n,i[t+3]=255},function(i,e,t,r){if(r+1>=e.length)throw new Error("Ran out of data");let n=e[r];i[t]=n,i[t+1]=n,i[t+2]=n,i[t+3]=e[r+1]},function(i,e,t,r){if(r+2>=e.length)throw new Error("Ran out of data");i[t]=e[r],i[t+1]=e[r+1],i[t+2]=e[r+2],i[t+3]=255},function(i,e,t,r){if(r+3>=e.length)throw new Error("Ran out of data");i[t]=e[r],i[t+1]=e[r+1],i[t+2]=e[r+2],i[t+3]=e[r+3]}],M1=[function(){},function(i,e,t,r){let n=e[0];i[t]=n,i[t+1]=n,i[t+2]=n,i[t+3]=r},function(i,e,t){let r=e[0];i[t]=r,i[t+1]=r,i[t+2]=r,i[t+3]=e[1]},function(i,e,t,r){i[t]=e[0],i[t+1]=e[1],i[t+2]=e[2],i[t+3]=r},function(i,e,t){i[t]=e[0],i[t+1]=e[1],i[t+2]=e[2],i[t+3]=e[3]}];function q1(i,e){let t=[],r=0;function n(){if(r===i.length)throw new Error("Ran out of data");let s=i[r];r++;let o,a,l,c,u,f,d,m;switch(e){default:throw new Error("unrecognised depth");case 16:d=i[r],r++,t.push((s<<8)+d);break;case 4:d=s&15,m=s>>4,t.push(m,d);break;case 2:u=s&3,f=s>>2&3,d=s>>4&3,m=s>>6&3,t.push(m,d,f,u);break;case 1:o=s&1,a=s>>1&1,l=s>>2&1,c=s>>3&1,u=s>>4&1,f=s>>5&1,d=s>>6&1,m=s>>7&1,t.push(m,d,f,u,c,l,a,o);break}}return{get:function(s){for(;t.length{"use strict";function j1(i,e,t,r,n){let s=0;for(let o=0;o{"use strict";var V1=require("util"),ml=require("zlib"),ld=nl(),H1=td(),G1=hl(),W1=pl(),Y1=dl(),zt=cd.exports=function(i){ld.call(this),this._parser=new G1(i,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=i,this.writable=!0,this._parser.start()};V1.inherits(zt,ld);zt.prototype._handleError=function(i){this.emit("error",i),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};zt.prototype._inflateData=function(i){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=ml.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let t=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,r=Math.max(t,ml.Z_MIN_CHUNK);this._inflate=ml.createInflate({chunkSize:r});let n=t,s=this.emit.bind(this,"error");this._inflate.on("error",function(a){n&&s(a)}),this._filter.on("complete",this._complete.bind(this));let o=this._filter.write.bind(this._filter);this._inflate.on("data",function(a){n&&(a.length>n&&(a=a.slice(0,n)),n-=a.length,o(a))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(i)};zt.prototype._handleMetaData=function(i){this._metaData=i,this._bitmapInfo=Object.create(i),this._filter=new H1(this._bitmapInfo)};zt.prototype._handleTransColor=function(i){this._bitmapInfo.transColor=i};zt.prototype._handlePalette=function(i){this._bitmapInfo.palette=i};zt.prototype._simpleTransparency=function(){this._metaData.alpha=!0};zt.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};zt.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};zt.prototype._complete=function(i){if(this.errord)return;let e;try{let t=W1.dataToBitMap(i,this._bitmapInfo);e=Y1(t,this._bitmapInfo,this._options.skipRescale),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var hd=x((m2,fd)=>{"use strict";var Bt=Tr();fd.exports=function(i,e,t,r){let n=[Bt.COLORTYPE_COLOR_ALPHA,Bt.COLORTYPE_ALPHA].indexOf(r.colorType)!==-1;if(r.colorType===r.inputColorType){let g=(function(){let y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]!==256})();if(r.bitDepth===8||r.bitDepth===16&&g)return i}let s=r.bitDepth!==16?i:new Uint16Array(i.buffer),o=255,a=Bt.COLORTYPE_TO_BPP_MAP[r.inputColorType];a===4&&!r.inputHasAlpha&&(a=3);let l=Bt.COLORTYPE_TO_BPP_MAP[r.colorType];r.bitDepth===16&&(o=65535,l*=2);let c=Buffer.alloc(e*t*l),u=0,f=0,d=r.bgColor||{};d.red===void 0&&(d.red=o),d.green===void 0&&(d.green=o),d.blue===void 0&&(d.blue=o);function m(){let g,y,b,w=o;switch(r.inputColorType){case Bt.COLORTYPE_COLOR_ALPHA:w=s[u+3],g=s[u],y=s[u+1],b=s[u+2];break;case Bt.COLORTYPE_COLOR:g=s[u],y=s[u+1],b=s[u+2];break;case Bt.COLORTYPE_ALPHA:w=s[u+1],g=s[u],y=g,b=g;break;case Bt.COLORTYPE_GRAYSCALE:g=s[u],y=g,b=g;break;default:throw new Error("input color type:"+r.inputColorType+" is not supported at present")}return r.inputHasAlpha&&(n||(w/=o,g=Math.min(Math.max(Math.round((1-w)*d.red+w*g),0),o),y=Math.min(Math.max(Math.round((1-w)*d.green+w*y),0),o),b=Math.min(Math.max(Math.round((1-w)*d.blue+w*b),0),o))),{red:g,green:y,blue:b,alpha:w}}for(let g=0;g{"use strict";var pd=al();function K1(i,e,t,r,n){for(let s=0;s=s?i[e+o-s]:0,l=i[e+o]-a;r[n+o]=l}}function Z1(i,e,t,r){let n=0;for(let s=0;s=r?i[e+s-r]:0,a=i[e+s]-o;n+=Math.abs(a)}return n}function Q1(i,e,t,r,n){for(let s=0;s0?i[e+s-t]:0,a=i[e+s]-o;r[n+s]=a}}function X1(i,e,t){let r=0,n=e+t;for(let s=e;s0?i[s-t]:0,a=i[s]-o;r+=Math.abs(a)}return r}function ex(i,e,t,r,n,s){for(let o=0;o=s?i[e+o-s]:0,l=e>0?i[e+o-t]:0,c=i[e+o]-(a+l>>1);r[n+o]=c}}function tx(i,e,t,r){let n=0;for(let s=0;s=r?i[e+s-r]:0,a=e>0?i[e+s-t]:0,l=i[e+s]-(o+a>>1);n+=Math.abs(l)}return n}function ix(i,e,t,r,n,s){for(let o=0;o=s?i[e+o-s]:0,l=e>0?i[e+o-t]:0,c=e>0&&o>=s?i[e+o-(t+s)]:0,u=i[e+o]-pd(a,l,c);r[n+o]=u}}function rx(i,e,t,r){let n=0;for(let s=0;s=r?i[e+s-r]:0,a=e>0?i[e+s-t]:0,l=e>0&&s>=r?i[e+s-(t+r)]:0,c=i[e+s]-pd(o,a,l);n+=Math.abs(c)}return n}var nx={0:K1,1:J1,2:Q1,3:ex,4:ix},sx={0:z1,1:Z1,2:X1,3:tx,4:rx};dd.exports=function(i,e,t,r,n){let s;if(!("filterType"in r)||r.filterType===-1)s=[0,1,2,3,4];else if(typeof r.filterType=="number")s=[r.filterType];else throw new Error("unrecognised filter types");r.bitDepth===16&&(n*=2);let o=e*n,a=0,l=0,c=Buffer.alloc((o+1)*t),u=s[0];for(let f=0;f1){let d=1/0;for(let m=0;m{"use strict";var rt=Tr(),ox=fl(),ax=hd(),lx=md(),cx=require("zlib"),xi=gd.exports=function(i){if(this._options=i,i.deflateChunkSize=i.deflateChunkSize||32*1024,i.deflateLevel=i.deflateLevel!=null?i.deflateLevel:9,i.deflateStrategy=i.deflateStrategy!=null?i.deflateStrategy:3,i.inputHasAlpha=i.inputHasAlpha!=null?i.inputHasAlpha:!0,i.deflateFactory=i.deflateFactory||cx.createDeflate,i.bitDepth=i.bitDepth||8,i.colorType=typeof i.colorType=="number"?i.colorType:rt.COLORTYPE_COLOR_ALPHA,i.inputColorType=typeof i.inputColorType=="number"?i.inputColorType:rt.COLORTYPE_COLOR_ALPHA,[rt.COLORTYPE_GRAYSCALE,rt.COLORTYPE_COLOR,rt.COLORTYPE_COLOR_ALPHA,rt.COLORTYPE_ALPHA].indexOf(i.colorType)===-1)throw new Error("option color type:"+i.colorType+" is not supported at present");if([rt.COLORTYPE_GRAYSCALE,rt.COLORTYPE_COLOR,rt.COLORTYPE_COLOR_ALPHA,rt.COLORTYPE_ALPHA].indexOf(i.inputColorType)===-1)throw new Error("option input color type:"+i.inputColorType+" is not supported at present");if(i.bitDepth!==8&&i.bitDepth!==16)throw new Error("option bit depth:"+i.bitDepth+" is not supported at present")};xi.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};xi.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};xi.prototype.filterData=function(i,e,t){let r=ax(i,e,t,this._options),n=rt.COLORTYPE_TO_BPP_MAP[this._options.colorType];return lx(r,e,t,this._options,n)};xi.prototype._packChunk=function(i,e){let t=e?e.length:0,r=Buffer.alloc(t+12);return r.writeUInt32BE(t,0),r.writeUInt32BE(i,4),e&&e.copy(r,8),r.writeInt32BE(ox.crc32(r.slice(4,r.length-4)),r.length-4),r};xi.prototype.packGAMA=function(i){let e=Buffer.alloc(4);return e.writeUInt32BE(Math.floor(i*rt.GAMMA_DIVISION),0),this._packChunk(rt.TYPE_gAMA,e)};xi.prototype.packIHDR=function(i,e){let t=Buffer.alloc(13);return t.writeUInt32BE(i,0),t.writeUInt32BE(e,4),t[8]=this._options.bitDepth,t[9]=this._options.colorType,t[10]=0,t[11]=0,t[12]=0,this._packChunk(rt.TYPE_IHDR,t)};xi.prototype.packIDAT=function(i){return this._packChunk(rt.TYPE_IDAT,i)};xi.prototype.packIEND=function(){return this._packChunk(rt.TYPE_IEND,null)}});var _d=x((y2,bd)=>{"use strict";var ux=require("util"),vd=require("stream"),fx=Tr(),hx=gl(),yd=bd.exports=function(i){vd.call(this);let e=i||{};this._packer=new hx(e),this._deflate=this._packer.createDeflate(),this.readable=!0};ux.inherits(yd,vd);yd.prototype.pack=function(i,e,t,r){this.emit("data",Buffer.from(fx.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,t)),r&&this.emit("data",this._packer.packGAMA(r));let n=this._packer.filterData(i,e,t);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(s){this.emit("data",this._packer.packIDAT(s))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(n)}});var kd=x((cn,Od)=>{"use strict";var wd=require("assert").ok,Ar=require("zlib"),px=require("util"),xd=require("buffer").kMaxLength;function zi(i){if(!(this instanceof zi))return new zi(i);i&&i.chunkSize=0,"have should not go down"),b>0){let w=r._buffer.slice(r._offset,r._offset+b);if(r._offset+=b,w.length>o&&(w=w.slice(0,o)),l.push(w),c+=w.length,o-=w.length,o===0)return!1}return(y===0||r._offset>=r._chunkSize)&&(s=r._chunkSize,r._offset=0,r._buffer=Buffer.allocUnsafe(r._chunkSize)),y===0?(a+=n-g,n=g,!0):!1}wd(this._handle,"zlib binding closed");let d;do d=this._handle.writeSync(e,i,a,n,this._buffer,this._offset,s),d=d||this._writeState;while(!this._hadError&&f(d[0],d[1]));if(this._hadError)throw u;if(c>=xd)throw Sd(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+xd.toString(16)+" bytes");let m=Buffer.concat(l,c);return Sd(this),m};px.inherits(zi,Ar.Inflate);function mx(i,e){if(typeof e=="string"&&(e=Buffer.from(e)),!(e instanceof Buffer))throw new TypeError("Not a string or buffer");let t=i._finishFlushFlag;return t==null&&(t=Ar.Z_FINISH),i._processChunk(e,t)}function Ed(i,e){return mx(new zi(e),i)}Od.exports=cn=Ed;cn.Inflate=zi;cn.createInflate=dx;cn.inflateSync=Ed});var vl=x((b2,Td)=>{"use strict";var Cd=Td.exports=function(i){this._buffer=i,this._reads=[]};Cd.prototype.read=function(i,e){this._reads.push({length:Math.abs(i),allowLess:i<0,func:e})};Cd.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let i=this._reads[0];if(this._buffer.length&&(this._buffer.length>=i.length||i.allowLess)){this._reads.shift();let e=this._buffer;this._buffer=e.slice(i.length),i.func.call(this,e.slice(0,i.length))}else break}if(this._reads.length>0)throw new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)throw new Error("unrecognised content at end of stream")}});var Id=x(Ad=>{"use strict";var gx=vl(),vx=ll();Ad.process=function(i,e){let t=[],r=new gx(i);return new vx(e,{read:r.read.bind(r),write:function(s){t.push(s)},complete:function(){}}).start(),r.process(),Buffer.concat(t)}});var Rd=x((w2,Ld)=>{"use strict";var Nd=!0,Bd=require("zlib"),yx=kd();Bd.deflateSync||(Nd=!1);var bx=vl(),_x=Id(),wx=hl(),xx=pl(),Sx=dl();Ld.exports=function(i,e){if(!Nd)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t;function r(O){t=O}let n;function s(O){n=O}function o(O){n.transColor=O}function a(O){n.palette=O}function l(){n.alpha=!0}let c;function u(O){c=O}let f=[];function d(O){f.push(O)}let m=new bx(i);if(new wx(e,{read:m.read.bind(m),error:r,metadata:s,gamma:u,palette:a,transColor:o,inflateData:d,simpleTransparency:l}).start(),m.process(),t)throw t;let y=Buffer.concat(f);f.length=0;let b;if(n.interlace)b=Bd.inflateSync(y);else{let E=((n.width*n.bpp*n.depth+7>>3)+1)*n.height;b=yx(y,{chunkSize:E,maxLength:E})}if(y=null,!b||!b.length)throw new Error("bad png - invalid inflate data response");let w=_x.process(b,n);y=null;let S=xx.dataToBitMap(w,n);w=null;let k=Sx(S,n,e.skipRescale);return n.data=k,n.gamma=c||0,n}});var Fd=x((x2,qd)=>{"use strict";var Pd=!0,Md=require("zlib");Md.deflateSync||(Pd=!1);var Ex=Tr(),Ox=gl();qd.exports=function(i,e){if(!Pd)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t=e||{},r=new Ox(t),n=[];n.push(Buffer.from(Ex.PNG_SIGNATURE)),n.push(r.packIHDR(i.width,i.height)),i.gamma&&n.push(r.packGAMA(i.gamma));let s=r.filterData(i.data,i.width,i.height),o=Md.deflateSync(s,r.getDeflateOptions());if(s=null,!o||!o.length)throw new Error("bad png - invalid compressed data response");return n.push(r.packIDAT(o)),n.push(r.packIEND()),Buffer.concat(n)}});var Dd=x(yl=>{"use strict";var kx=Rd(),Cx=Fd();yl.read=function(i,e){return kx(i,e||{})};yl.write=function(i,e){return Cx(i,e)}});var $d=x(Ud=>{"use strict";var Tx=require("util"),jd=require("stream"),Ax=ud(),Ix=_d(),Nx=Dd(),lt=Ud.PNG=function(i){jd.call(this),i=i||{},this.width=i.width|0,this.height=i.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,i.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new Ax(i),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(e){this.data=e,this.emit("parsed",e)}.bind(this)),this._packer=new Ix(i),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};Tx.inherits(lt,jd);lt.sync=Nx;lt.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this)};lt.prototype.parse=function(i,e){if(e){let t,r;t=function(n){this.removeListener("error",r),this.data=n,e(null,this)}.bind(this),r=function(n){this.removeListener("parsed",t),e(n,null)}.bind(this),this.once("parsed",t),this.once("error",r)}return this.end(i),this};lt.prototype.write=function(i){return this._parser.write(i),!0};lt.prototype.end=function(i){this._parser.end(i)};lt.prototype._metadata=function(i){this.width=i.width,this.height=i.height,this.emit("metadata",i)};lt.prototype._gamma=function(i){this.gamma=i};lt.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};lt.bitblt=function(i,e,t,r,n,s,o,a){if(t|=0,r|=0,n|=0,s|=0,o|=0,a|=0,t>i.width||r>i.height||t+n>i.width||r+s>i.height)throw new Error("bitblt reading outside image");if(o>e.width||a>e.height||o+n>e.width||a+s>e.height)throw new Error("bitblt writing outside image");for(let l=0;l{var js=class extends Error{constructor(e,t,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},bl=class extends js{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};_l.CommanderError=js;_l.InvalidArgumentError=bl});var Us=x(xl=>{var{InvalidArgumentError:Bx}=un(),wl=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,r)=>{if(!this.argChoices.includes(t))throw new Bx(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,r):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Lx(i){let e=i.name()+(i.variadic===!0?"...":"");return i.required?"<"+e+">":"["+e+"]"}xl.Argument=wl;xl.humanReadableArgName=Lx});var Ol=x(El=>{var{humanReadableArgName:Rx}=Us(),Sl=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){var t,r;this.helpWidth=(r=(t=this.helpWidth)!=null?t:e.helpWidth)!=null?r:80}visibleCommands(e){let t=e.commands.filter(n=>!n._hidden),r=e._getHelpCommand();return r&&!r._hidden&&t.push(r),this.sortSubcommands&&t.sort((n,s)=>n.name().localeCompare(s.name())),t}compareOptions(e,t){let r=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return r(e).localeCompare(r(t))}visibleOptions(e){let t=e.options.filter(n=>!n.hidden),r=e._getHelpOption();if(r&&!r.hidden){let n=r.short&&e._findOption(r.short),s=r.long&&e._findOption(r.long);!n&&!s?t.push(r):r.long&&!s?t.push(e.createOption(r.long,r.description)):r.short&&!n&&t.push(e.createOption(r.short,r.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let r=e.parent;r;r=r.parent){let n=r.options.filter(s=>!s.hidden);t.push(...n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(t=>t.description)?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(r=>Rx(r)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((r,n)=>Math.max(r,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((r,n)=>Math.max(r,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((r,n)=>Math.max(r,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((r,n)=>Math.max(r,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let r="";for(let n=e.parent;n;n=n.parent)r=n.name()+" "+r;return r+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];return e.argChoices&&t.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let r=`(${t.join(", ")})`;return e.description?`${e.description} ${r}`:r}return e.description}formatHelp(e,t){var f;let r=t.padWidth(e,t),n=(f=t.helpWidth)!=null?f:80;function s(d,m){return t.formatItem(d,r,m,t)}let o=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""],a=t.commandDescription(e);a.length>0&&(o=o.concat([t.boxWrap(t.styleCommandDescription(a),n),""]));let l=t.visibleArguments(e).map(d=>s(t.styleArgumentTerm(t.argumentTerm(d)),t.styleArgumentDescription(t.argumentDescription(d))));l.length>0&&(o=o.concat([t.styleTitle("Arguments:"),...l,""]));let c=t.visibleOptions(e).map(d=>s(t.styleOptionTerm(t.optionTerm(d)),t.styleOptionDescription(t.optionDescription(d))));if(c.length>0&&(o=o.concat([t.styleTitle("Options:"),...c,""])),t.showGlobalOptions){let d=t.visibleGlobalOptions(e).map(m=>s(t.styleOptionTerm(t.optionTerm(m)),t.styleOptionDescription(t.optionDescription(m))));d.length>0&&(o=o.concat([t.styleTitle("Global Options:"),...d,""]))}let u=t.visibleCommands(e).map(d=>s(t.styleSubcommandTerm(t.subcommandTerm(d)),t.styleSubcommandDescription(t.subcommandDescription(d))));return u.length>0&&(o=o.concat([t.styleTitle("Commands:"),...u,""])),o.join(` -`)}displayWidth(e){return Vd(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(t=>t==="[options]"?this.styleOptionText(t):t==="[command]"?this.styleSubcommandText(t):t[0]==="["||t[0]==="<"?this.styleArgumentText(t):this.styleCommandText(t)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(t=>t==="[options]"?this.styleOptionText(t):t[0]==="["||t[0]==="<"?this.styleArgumentText(t):this.styleSubcommandText(t)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,r,n){var d;let o=" ".repeat(2);if(!r)return o+e;let a=e.padEnd(t+e.length-n.displayWidth(e)),l=2,u=((d=this.helpWidth)!=null?d:80)-t-l-2,f;return u{let a=o.match(n);if(a===null){s.push("");return}let l=[a.shift()],c=this.displayWidth(l[0]);a.forEach(u=>{let f=this.displayWidth(u);if(c+f<=t){l.push(u),c+=f;return}s.push(l.join(""));let d=u.trimStart();l=[d],c=this.displayWidth(d)}),s.push(l.join(""))}),s.join(` -`)}};function Vd(i){let e=/\x1b\[\d*(;\d*)*m/g;return i.replace(e,"")}El.Help=Sl;El.stripColor=Vd});var Al=x(Tl=>{var{InvalidArgumentError:Px}=un(),kl=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let r=Mx(e);this.short=r.shortFlag,this.long=r.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return typeof e=="string"&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,r)=>{if(!this.argChoices.includes(t))throw new Px(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,r):t},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Hd(this.name().replace(/^no-/,"")):Hd(this.name())}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Cl=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(t=>{t.negate?this.negativeOptions.set(t.attributeName(),t):this.positiveOptions.set(t.attributeName(),t)}),this.negativeOptions.forEach((t,r)=>{this.positiveOptions.has(r)&&this.dualOptions.add(r)})}valueFromOption(e,t){let r=t.attributeName();if(!this.dualOptions.has(r))return!0;let n=this.negativeOptions.get(r).presetArg,s=n!==void 0?n:!1;return t.negate===(s===e)}};function Hd(i){return i.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Mx(i){let e,t,r=/^-[^-]$/,n=/^--[^-]/,s=i.split(/[ |,]+/).concat("guard");if(r.test(s[0])&&(e=s.shift()),n.test(s[0])&&(t=s.shift()),!e&&r.test(s[0])&&(e=s.shift()),!e&&n.test(s[0])&&(e=t,t=s.shift()),s[0].startsWith("-")){let o=s[0],a=`option creation failed due to '${o}' in option flags '${i}'`;throw/^-[^-][^-]/.test(o)?new Error(`${a} -- a short flag is a single dash and a single character - - either use a single dash and a single character (for a short flag) - - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):r.test(o)?new Error(`${a} -- too many short flags`):n.test(o)?new Error(`${a} -- too many long flags`):new Error(`${a} -- unrecognised flag format`)}if(e===void 0&&t===void 0)throw new Error(`option creation failed due to no flags found in '${i}'.`);return{shortFlag:e,longFlag:t}}Tl.Option=kl;Tl.DualOptions=Cl});var Wd=x(Gd=>{function qx(i,e){if(Math.abs(i.length-e.length)>3)return Math.max(i.length,e.length);let t=[];for(let r=0;r<=i.length;r++)t[r]=[r];for(let r=0;r<=e.length;r++)t[0][r]=r;for(let r=1;r<=e.length;r++)for(let n=1;n<=i.length;n++){let s=1;i[n-1]===e[r-1]?s=0:s=1,t[n][r]=Math.min(t[n-1][r]+1,t[n][r-1]+1,t[n-1][r-1]+s),n>1&&r>1&&i[n-1]===e[r-2]&&i[n-2]===e[r-1]&&(t[n][r]=Math.min(t[n][r],t[n-2][r-2]+1))}return t[i.length][e.length]}function Fx(i,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let t=i.startsWith("--");t&&(i=i.slice(2),e=e.map(o=>o.slice(2)));let r=[],n=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=qx(i,o),l=Math.max(i.length,o.length);(l-a)/l>s&&(ao.localeCompare(a)),t&&(r=r.map(o=>`--${o}`)),r.length>1?` -(Did you mean one of ${r.join(", ")}?)`:r.length===1?` -(Did you mean ${r[0]}?)`:""}Gd.suggestSimilar=Fx});var Jd=x(Rl=>{var Dx=require("node:events").EventEmitter,Il=require("node:child_process"),ci=require("node:path"),$s=require("node:fs"),Oe=require("node:process"),{Argument:jx,humanReadableArgName:Ux}=Us(),{CommanderError:Nl}=un(),{Help:$x,stripColor:Vx}=Ol(),{Option:Yd,DualOptions:Hx}=Al(),{suggestSimilar:Kd}=Wd(),Bl=class i extends Dx{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:t=>Oe.stdout.write(t),writeErr:t=>Oe.stderr.write(t),outputError:(t,r)=>r(t),getOutHelpWidth:()=>Oe.stdout.isTTY?Oe.stdout.columns:void 0,getErrHelpWidth:()=>Oe.stderr.isTTY?Oe.stderr.columns:void 0,getOutHasColors:()=>{var t,r,n;return(n=Ll())!=null?n:Oe.stdout.isTTY&&((r=(t=Oe.stdout).hasColors)==null?void 0:r.call(t))},getErrHasColors:()=>{var t,r,n;return(n=Ll())!=null?n:Oe.stderr.isTTY&&((r=(t=Oe.stderr).hasColors)==null?void 0:r.call(t))},stripColor:t=>Vx(t)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,r){let n=t,s=r;typeof n=="object"&&n!==null&&(s=n,n=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(o);return n&&(l.description(n),l._executableHandler=!0),s.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(s.noHelp||s.hidden),l._executableFile=s.executableFile||null,a&&l.arguments(a),this._registerCommand(l),l.parent=this,l.copyInheritedSettings(this),n?this:l}createCommand(e){return new i(e)}createHelp(){return Object.assign(new $x,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name -- specify the name in Command constructor or using .name()`);return t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new jx(e,t)}argument(e,t,r,n){let s=this.createArgument(e,t);return typeof r=="function"?s.default(n).argParser(r):s.default(r),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(t=>{this.argument(t)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t&&t.variadic)throw new Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e!=null?e:"help [command]";let[,r,n]=e.match(/([^ ]+) *(.*)/),s=t!=null?t:"display help for command",o=this.createCommand(r);return o.helpOption(!1),n&&o.arguments(n),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,this}addHelpCommand(e,t){return typeof e!="object"?(this.helpCommand(e,t),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){var t;return((t=this._addImplicitHelpCommand)!=null?t:this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){let r=["preSubcommand","preAction","postAction"];if(!r.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'. -Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,r){this._exitCallback&&this._exitCallback(new Nl(e,t,r)),Oe.exit(e)}action(e){let t=r=>{let n=this.registeredArguments.length,s=r.slice(0,n);return this._storeOptionsAsProperties?s[n]=this:s[n]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=t,this}createOption(e,t){return new Yd(e,t)}_callParseArg(e,t,r,n){try{return e.parseArg(t,r)}catch(s){if(s.code==="commander.invalidArgument"){let o=`${n} ${s.message}`;this.error(o,{exitCode:s.exitCode,code:s.code})}throw s}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let r=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}' -- already used by option '${t.flags}'`)}this.options.push(e)}_registerCommand(e){let t=n=>[n.name()].concat(n.aliases()),r=t(e).find(n=>this._findCommand(n));if(r){let n=t(this._findCommand(r)).join("|"),s=t(e).join("|");throw new Error(`cannot add command '${s}' as already have command '${n}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),r=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(r,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(r,e.defaultValue,"default");let n=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let l=this.getOptionValue(r);s!==null&&e.parseArg?s=this._callParseArg(e,s,l,o):s!==null&&e.variadic&&(s=e._concatValue(s,l)),s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(r,s,a)};return this.on("option:"+t,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;n(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+t,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;n(s,o,"env")}),this}_optionEx(e,t,r,n,s){if(typeof t=="object"&&t instanceof Yd)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(t,r);if(o.makeOptionMandatory(!!e.mandatory),typeof n=="function")o.default(s).argParser(n);else if(n instanceof RegExp){let a=n;n=(l,c)=>{let u=a.exec(l);return u?u[0]:c},o.default(s).argParser(n)}else o.default(n);return this.addOption(o)}option(e,t,r,n){return this._optionEx({},e,t,r,n)}requiredOption(e,t,r,n){return this._optionEx({mandatory:!0},e,t,r,n)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,r){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=r,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(r=>{r.getOptionValueSource(e)!==void 0&&(t=r.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){var n,s;if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(t=t||{},e===void 0&&t.from===void 0){(n=Oe.versions)!=null&&n.electron&&(t.from="electron");let o=(s=Oe.execArgv)!=null?s:[];(o.includes("-e")||o.includes("--eval")||o.includes("-p")||o.includes("--print"))&&(t.from="eval")}e===void 0&&(e=Oe.argv),this.rawArgs=e.slice();let r;switch(t.from){case void 0:case"node":this._scriptPath=e[1],r=e.slice(2);break;case"electron":Oe.defaultApp?(this._scriptPath=e[1],r=e.slice(2)):r=e.slice(1);break;case"user":r=e.slice(0);break;case"eval":r=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(e,t){this._prepareForParse();let r=this._prepareUserArgs(e,t);return this._parseCommand([],r),this}async parseAsync(e,t){this._prepareForParse();let r=this._prepareUserArgs(e,t);return await this._parseCommand([],r),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true. -- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,r){if($s.existsSync(e))return;let n=t?`searched for local subcommand relative to directory '${t}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",s=`'${e}' does not exist - - if '${r}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead - - if the default executable name is not suitable, use the executableFile option to supply a custom name or path - - ${n}`;throw new Error(s)}_executeSubCommand(e,t){t=t.slice();let r=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function s(u,f){let d=ci.resolve(u,f);if($s.existsSync(d))return d;if(n.includes(ci.extname(f)))return;let m=n.find(g=>$s.existsSync(`${d}${g}`));if(m)return`${d}${m}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let u;try{u=$s.realpathSync(this._scriptPath)}catch{u=this._scriptPath}a=ci.resolve(ci.dirname(u),a)}if(a){let u=s(a,o);if(!u&&!e._executableFile&&this._scriptPath){let f=ci.basename(this._scriptPath,ci.extname(this._scriptPath));f!==this._name&&(u=s(a,`${f}-${e._name}`))}o=u||o}r=n.includes(ci.extname(o));let l;Oe.platform!=="win32"?r?(t.unshift(o),t=zd(Oe.execArgv).concat(t),l=Il.spawn(Oe.argv[0],t,{stdio:"inherit"})):l=Il.spawn(o,t,{stdio:"inherit"}):(this._checkForMissingExecutable(o,a,e._name),t.unshift(o),t=zd(Oe.execArgv).concat(t),l=Il.spawn(Oe.execPath,t,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{Oe.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let c=this._exitCallback;l.on("close",u=>{u=u!=null?u:1,c?c(new Nl(u,"commander.executeSubCommandAsync","(close)")):Oe.exit(u)}),l.on("error",u=>{if(u.code==="ENOENT")this._checkForMissingExecutable(o,a,e._name);else if(u.code==="EACCES")throw new Error(`'${o}' not executable`);if(!c)Oe.exit(1);else{let f=new Nl(1,"commander.executeSubCommandAsync","(error)");f.nestedError=u,c(f)}}),this.runningCommand=l}_dispatchSubcommand(e,t,r){let n=this._findCommand(e);n||this.help({error:!0}),n._prepareForParse();let s;return s=this._chainOrCallSubCommandHook(s,n,"preSubcommand"),s=this._chainOrCall(s,()=>{if(n._executableHandler)this._executeSubCommand(n,t.concat(r));else return n._parseCommand(t,r)}),s}_dispatchHelpCommand(e){var r,n,s,o;e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[(o=(s=(r=this._getHelpOption())==null?void 0:r.long)!=null?s:(n=this._getHelpOption())==null?void 0:n.short)!=null?o:"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&this.args[t]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(r,n,s)=>{let o=n;if(n!==null&&r.parseArg){let a=`error: command-argument value '${n}' is invalid for argument '${r.name()}'.`;o=this._callParseArg(r,n,s,a)}return o};this._checkNumberOfArguments();let t=[];this.registeredArguments.forEach((r,n)=>{let s=r.defaultValue;r.variadic?ne(r,a,o),r.defaultValue))):s===void 0&&(s=[]):nt()):t()}_chainOrCallHooks(e,t){let r=e,n=[];return this._getCommandAndAncestors().reverse().filter(s=>s._lifeCycleHooks[t]!==void 0).forEach(s=>{s._lifeCycleHooks[t].forEach(o=>{n.push({hookedCommand:s,callback:o})})}),t==="postAction"&&n.reverse(),n.forEach(s=>{r=this._chainOrCall(r,()=>s.callback(s.hookedCommand,this))}),r}_chainOrCallSubCommandHook(e,t,r){let n=e;return this._lifeCycleHooks[r]!==void 0&&this._lifeCycleHooks[r].forEach(s=>{n=this._chainOrCall(n,()=>s(this,t))}),n}_parseCommand(e,t){let r=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(r.operands),t=r.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{r.unknown.length>0&&this.unknownOption(r.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,t)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))n(),this._processArguments(),this.parent.emit(s,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&e.getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(r=>{let n=r.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});e.filter(r=>r.conflictsWith.length>0).forEach(r=>{let n=e.find(s=>r.conflictsWith.includes(s.attributeName()));n&&this._conflictingOption(r,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let t=[],r=[],n=t,s=e.slice();function o(l){return l.length>1&&l[0]==="-"}let a=null;for(;s.length;){let l=s.shift();if(l==="--"){n===r&&n.push(l),n.push(...s);break}if(a&&!o(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,o(l)){let c=this._findOption(l);if(c){if(c.required){let u=s.shift();u===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,u)}else if(c.optional){let u=null;s.length>0&&!o(s[0])&&(u=s.shift()),this.emit(`option:${c.name()}`,u)}else this.emit(`option:${c.name()}`);a=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),s.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),u=this._findOption(l.slice(0,c));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,l.slice(c+1));continue}}if(o(l)&&(n=r),(this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&r.length===0){if(this._findCommand(l)){t.push(l),s.length>0&&r.push(...s);break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l),s.length>0&&t.push(...s);break}else if(this._defaultCommandName){r.push(l),s.length>0&&r.push(...s);break}}if(this._passThroughOptions){n.push(l),s.length>0&&n.push(...s);break}n.push(l)}return{operands:t,unknown:r}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let r=0;rObject.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e} -`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError} -`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(` -`),this.outputHelp({error:!0}));let r=t||{},n=r.exitCode||1,s=r.code||"commander.error";this._exit(n,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in Oe.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,Oe.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new Hx(this.options),t=r=>this.getOptionValue(r)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(r));this.options.filter(r=>r.implied!==void 0&&t(r.attributeName())&&e.valueFromOption(this.getOptionValue(r.attributeName()),r)).forEach(r=>{Object.keys(r.implied).filter(n=>!t(n)).forEach(n=>{this.setOptionValueWithSource(n,r.implied[n],"implied")})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){let r=o=>{let a=o.attributeName(),l=this.getOptionValue(a),c=this.options.find(f=>f.negate&&a===f.attributeName()),u=this.options.find(f=>!f.negate&&a===f.attributeName());return c&&(c.presetArg===void 0&&l===!1||c.presetArg!==void 0&&l===c.presetArg)?c:u||o},n=o=>{let a=r(o),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${n(e)} cannot be used with ${n(t)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);n=n.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);t=Kd(e,n)}let r=`error: unknown option '${e}'${t}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,r=t===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${r} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],t="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(s=>{n.push(s.name()),s.alias()&&n.push(s.alias())}),t=Kd(e,n)}let r=`error: unknown command '${e}'${t}`;this.error(r,{code:"commander.unknownCommand"})}version(e,t,r){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",r=r||"output the version number";let n=this.createOption(t,r);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${e} -`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){var n;if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let r=(n=this.parent)==null?void 0:n._findCommand(e);if(r){let s=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${s}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(r=>Ux(r));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=ci.basename(e,ci.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp(),r=this._getOutputContext(e);t.prepareContext({error:r.error,helpWidth:r.helpWidth,outputHasColors:r.hasColors});let n=t.formatHelp(this,t);return r.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(e){e=e||{};let t=!!e.error,r,n,s;return t?(r=a=>this._outputConfiguration.writeErr(a),n=this._outputConfiguration.getErrHasColors(),s=this._outputConfiguration.getErrHelpWidth()):(r=a=>this._outputConfiguration.writeOut(a),n=this._outputConfiguration.getOutHasColors(),s=this._outputConfiguration.getOutHelpWidth()),{error:t,write:a=>(n||(a=this._outputConfiguration.stripColor(a)),r(a)),hasColors:n,helpWidth:s}}outputHelp(e){var o;let t;typeof e=="function"&&(t=e,e=void 0);let r=this._getOutputContext(e),n={error:r.error,write:r.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let s=this.helpInformation({error:r.error});if(t&&(s=t(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(s),(o=this._getHelpOption())!=null&&o.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",n))}helpOption(e,t){var r;return typeof e=="boolean"?(e?this._helpOption=(r=this._helpOption)!=null?r:void 0:this._helpOption=null,this):(e=e!=null?e:"-h, --help",t=t!=null?t:"display help for command",this._helpOption=this.createOption(e,t),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){var r;this.outputHelp(e);let t=Number((r=Oe.exitCode)!=null?r:0);t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let r=["beforeAll","before","after","afterAll"];if(!r.includes(e))throw new Error(`Unexpected value for position to addHelpText. -Expecting one of '${r.join("', '")}'`);let n=`${e}Help`;return this.on(n,s=>{let o;typeof t=="function"?o=t({error:s.error,command:s.command}):o=t,o&&s.write(`${o} -`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(n=>t.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function zd(i){return i.map(e=>{if(!e.startsWith("--inspect"))return e;let t,r="127.0.0.1",n="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?n=s[3]:r=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],r=s[3],n=s[4]),t&&n!=="0"?`${t}=${r}:${parseInt(n)+1}`:e})}function Ll(){if(Oe.env.NO_COLOR||Oe.env.FORCE_COLOR==="0"||Oe.env.FORCE_COLOR==="false")return!1;if(Oe.env.FORCE_COLOR||Oe.env.CLICOLOR_FORCE!==void 0)return!0}Rl.Command=Bl;Rl.useColor=Ll});var em=x(Lt=>{var{Argument:Zd}=Us(),{Command:Pl}=Jd(),{CommanderError:Gx,InvalidArgumentError:Qd}=un(),{Help:Wx}=Ol(),{Option:Xd}=Al();Lt.program=new Pl;Lt.createCommand=i=>new Pl(i);Lt.createOption=(i,e)=>new Xd(i,e);Lt.createArgument=(i,e)=>new Zd(i,e);Lt.Command=Pl;Lt.Option=Xd;Lt.Argument=Zd;Lt.Help=Wx;Lt.CommanderError=Gx;Lt.InvalidArgumentError=Qd;Lt.InvalidOptionArgumentError=Qd});var om=x((nm,sm)=>{nm=sm.exports=Ir;function Ir(i,e){if(this.stream=e.stream||process.stderr,typeof e=="number"){var t=e;e={},e.total=t}else{if(e=e||{},typeof i!="string")throw new Error("format required");if(typeof e.total!="number")throw new Error("total required")}this.fmt=i,this.curr=e.curr||0,this.total=e.total,this.width=e.width||this.total,this.clear=e.clear,this.chars={complete:e.complete||"=",incomplete:e.incomplete||"-",head:e.head||e.complete||"="},this.renderThrottle=e.renderThrottle!==0?e.renderThrottle||16:0,this.lastRender=-1/0,this.callback=e.callback||function(){},this.tokens={},this.lastDraw=""}Ir.prototype.tick=function(i,e){if(i!==0&&(i=i||1),typeof i=="object"&&(e=i,i=1),e&&(this.tokens=e),this.curr==0&&(this.start=new Date),this.curr+=i,this.render(),this.curr>=this.total){this.render(void 0,!0),this.complete=!0,this.terminate(),this.callback(this);return}};Ir.prototype.render=function(i,e){if(e=e!==void 0?e:!1,i&&(this.tokens=i),!!this.stream.isTTY){var t=Date.now(),r=t-this.lastRender;if(!(!e&&r0&&(a=a.slice(0,-1)+this.chars.head),d=d.replace(":bar",a+o),this.tokens)for(var y in this.tokens)d=d.replace(":"+y,this.tokens[y]);this.lastDraw!==d&&(this.stream.cursorTo(0),this.stream.write(d),this.stream.clearLine(1),this.lastDraw=d)}}};Ir.prototype.update=function(i,e){var t=Math.floor(i*this.total),r=t-this.curr;this.tick(r,e)};Ir.prototype.interrupt=function(i){this.stream.clearLine(),this.stream.cursorTo(0),this.stream.write(i),this.stream.write(` -`),this.stream.write(this.lastDraw)};Ir.prototype.terminate=function(){this.clear?this.stream.clearLine&&(this.stream.clearLine(),this.stream.cursorTo(0)):this.stream.write(` -`)}});var lm=x(($2,am)=>{am.exports=om()});var hm=x(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var cm=require("buffer"),Ji={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};ui.ERRORS=Ji;function Yx(i){if(!cm.Buffer.isEncoding(i))throw new Error(Ji.INVALID_ENCODING)}ui.checkEncoding=Yx;function um(i){return typeof i=="number"&&isFinite(i)&&Zx(i)}ui.isFiniteInteger=um;function fm(i,e){if(typeof i=="number"){if(!um(i)||i<0)throw new Error(e?Ji.INVALID_OFFSET:Ji.INVALID_LENGTH)}else throw new Error(e?Ji.INVALID_OFFSET_NON_NUMBER:Ji.INVALID_LENGTH_NON_NUMBER)}function Kx(i){fm(i,!1)}ui.checkLengthValue=Kx;function zx(i){fm(i,!0)}ui.checkOffsetValue=zx;function Jx(i,e){if(i<0||i>e.length)throw new Error(Ji.INVALID_TARGET_OFFSET)}ui.checkTargetOffset=Jx;function Zx(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i}function Qx(i){if(typeof BigInt=="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof cm.Buffer.prototype[i]=="undefined")throw new Error(`Platform does not support Buffer.prototype.${i}.`)}ui.bigIntAndBufferInt64Check=Qx});var dm=x(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var pe=hm(),pm=4096,Xx="utf8",Ml=class i{constructor(e){if(this.length=0,this._encoding=Xx,this._writeOffset=0,this._readOffset=0,i.isSmartBufferOptions(e))if(e.encoding&&(pe.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(pe.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(pe.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(pe.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(pm);else{if(typeof e!="undefined")throw new Error(pe.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(pm)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let t=e;return t&&(t.encoding!==void 0||t.size!==void 0||t.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return pe.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return pe.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,t),this}insertInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){return pe.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){return pe.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){return pe.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){return pe.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(Buffer.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){return pe.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){return pe.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){return pe.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){return pe.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){return pe.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){return pe.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(Buffer.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(Buffer.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}readString(e,t){let r;typeof e=="number"?(pe.checkLengthValue(e),r=Math.min(e,this.length-this._readOffset)):(t=e,r=this.length-this._readOffset),typeof t!="undefined"&&pe.checkEncoding(t);let n=this._buff.slice(this._readOffset,this._readOffset+r).toString(t||this._encoding);return this._readOffset+=r,n}insertString(e,t,r){return pe.checkOffsetValue(t),this._handleString(e,!0,t,r)}writeString(e,t,r){return this._handleString(e,!1,t,r)}readStringNT(e){typeof e!="undefined"&&pe.checkEncoding(e);let t=this.length;for(let n=this._readOffset;nthis.length)throw new Error(pe.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(e,t){pe.checkOffsetValue(t),this._ensureCapacity(this.length+e),tthis.length?this.length=t+e:this.length+=e}_ensureWriteable(e,t){let r=typeof t=="number"?t:this._writeOffset;this._ensureCapacity(r+e),r+e>this.length&&(this.length=r+e)}_ensureCapacity(e){let t=this._buff.length;if(e>t){let r=this._buff,n=t*3/2+1;n{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.SOCKS5_NO_ACCEPTABLE_AUTH=Be.SOCKS5_CUSTOM_AUTH_END=Be.SOCKS5_CUSTOM_AUTH_START=Be.SOCKS_INCOMING_PACKET_SIZES=Be.SocksClientState=Be.Socks5Response=Be.Socks5HostType=Be.Socks5Auth=Be.Socks4Response=Be.SocksCommand=Be.ERRORS=Be.DEFAULT_TIMEOUT=void 0;var eS=3e4;Be.DEFAULT_TIMEOUT=eS;var tS={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};Be.ERRORS=tS;var iS={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:i=>i+7,Socks4Response:8};Be.SOCKS_INCOMING_PACKET_SIZES=iS;var mm;(function(i){i[i.connect=1]="connect",i[i.bind=2]="bind",i[i.associate=3]="associate"})(mm||(Be.SocksCommand=mm={}));var gm;(function(i){i[i.Granted=90]="Granted",i[i.Failed=91]="Failed",i[i.Rejected=92]="Rejected",i[i.RejectedIdent=93]="RejectedIdent"})(gm||(Be.Socks4Response=gm={}));var vm;(function(i){i[i.NoAuth=0]="NoAuth",i[i.GSSApi=1]="GSSApi",i[i.UserPass=2]="UserPass"})(vm||(Be.Socks5Auth=vm={}));var rS=128;Be.SOCKS5_CUSTOM_AUTH_START=rS;var nS=254;Be.SOCKS5_CUSTOM_AUTH_END=nS;var sS=255;Be.SOCKS5_NO_ACCEPTABLE_AUTH=sS;var ym;(function(i){i[i.Granted=0]="Granted",i[i.Failure=1]="Failure",i[i.NotAllowed=2]="NotAllowed",i[i.NetworkUnreachable=3]="NetworkUnreachable",i[i.HostUnreachable=4]="HostUnreachable",i[i.ConnectionRefused=5]="ConnectionRefused",i[i.TTLExpired=6]="TTLExpired",i[i.CommandNotSupported=7]="CommandNotSupported",i[i.AddressNotSupported=8]="AddressNotSupported"})(ym||(Be.Socks5Response=ym={}));var bm;(function(i){i[i.IPv4=1]="IPv4",i[i.Hostname=3]="Hostname",i[i.IPv6=4]="IPv6"})(bm||(Be.Socks5HostType=bm={}));var _m;(function(i){i[i.Created=0]="Created",i[i.Connecting=1]="Connecting",i[i.Connected=2]="Connected",i[i.SentInitialHandshake=3]="SentInitialHandshake",i[i.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",i[i.SentAuthentication=5]="SentAuthentication",i[i.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",i[i.SentFinalHandshake=7]="SentFinalHandshake",i[i.ReceivedFinalResponse=8]="ReceivedFinalResponse",i[i.BoundWaitingForConnection=9]="BoundWaitingForConnection",i[i.Established=10]="Established",i[i.Disconnected=11]="Disconnected",i[i.Error=99]="Error"})(_m||(Be.SocksClientState=_m={}))});var jl=x(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.shuffleArray=Nr.SocksClientError=void 0;var Dl=class extends Error{constructor(e,t){super(e),this.options=t}};Nr.SocksClientError=Dl;function oS(i){for(let e=i.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[i[e],i[t]]=[i[t],i[e]]}}Nr.shuffleArray=oS});var Ul=x(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.isCorrect=Br.isInSubnet=void 0;function aS(i){return this.subnetMask{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.RE_SUBNET_STRING=Jt.RE_ADDRESS=Jt.GROUPS=Jt.BITS=void 0;Jt.BITS=32;Jt.GROUPS=4;Jt.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g;Jt.RE_SUBNET_STRING=/\/\d{1,2}$/});var Hs=x(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.AddressError=void 0;var Vl=class extends Error{constructor(e,t){super(e),this.name="AddressError",t!==null&&(this.parseMessage=t)}};Vs.AddressError=Vl});var Hl=x((Gs,wm)=>{(function(){var i,e=0xdeadbeefcafe,t=(e&16777215)==15715070;function r(h,p,v){h!=null&&(typeof h=="number"?this.fromNumber(h,p,v):p==null&&typeof h!="string"?this.fromString(h,256):this.fromString(h,p))}function n(){return new r(null)}function s(h,p,v,_,L,M){for(;--M>=0;){var G=p*this[h++]+v[_]+L;L=Math.floor(G/67108864),v[_++]=G&67108863}return L}function o(h,p,v,_,L,M){for(var G=p&32767,K=p>>15;--M>=0;){var Pe=this[h]&32767,Ye=this[h++]>>15,Tt=K*Pe+Ye*G;Pe=G*Pe+((Tt&32767)<<15)+v[_]+(L&1073741823),L=(Pe>>>30)+(Tt>>>15)+K*Ye+(L>>>30),v[_++]=Pe&1073741823}return L}function a(h,p,v,_,L,M){for(var G=p&16383,K=p>>14;--M>=0;){var Pe=this[h]&16383,Ye=this[h++]>>14,Tt=K*Pe+Ye*G;Pe=G*Pe+((Tt&16383)<<14)+v[_]+L,L=(Pe>>28)+(Tt>>14)+K*Ye,v[_++]=Pe&268435455}return L}var l=typeof navigator!="undefined";l&&t&&navigator.appName=="Microsoft Internet Explorer"?(r.prototype.am=o,i=30):l&&t&&navigator.appName!="Netscape"?(r.prototype.am=s,i=26):(r.prototype.am=a,i=28),r.prototype.DB=i,r.prototype.DM=(1<=0;--p)h[p]=this[p];h.t=this.t,h.s=this.s}function w(h){this.t=1,this.s=h<0?-1:0,h>0?this[0]=h:h<-1?this[0]=h+this.DV:this.t=0}function S(h){var p=n();return p.fromInt(h),p}function k(h,p){var v;if(p==16)v=4;else if(p==8)v=3;else if(p==256)v=8;else if(p==2)v=1;else if(p==32)v=5;else if(p==4)v=2;else{this.fromRadix(h,p);return}this.t=0,this.s=0;for(var _=h.length,L=!1,M=0;--_>=0;){var G=v==8?h[_]&255:y(h,_);if(G<0){h.charAt(_)=="-"&&(L=!0);continue}L=!1,M==0?this[this.t++]=G:M+v>this.DB?(this[this.t-1]|=(G&(1<>this.DB-M):this[this.t-1]|=G<=this.DB&&(M-=this.DB)}v==8&&(h[0]&128)!=0&&(this.s=-1,M>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==h;)--this.t}function E(h){if(this.s<0)return"-"+this.negate().toString(h);var p;if(h==16)p=4;else if(h==8)p=3;else if(h==2)p=1;else if(h==32)p=5;else if(h==4)p=2;else return this.toRadix(h);var v=(1<0)for(K>K)>0&&(L=!0,M=g(_));G>=0;)K>(K+=this.DB-p)):(_=this[G]>>(K-=p)&v,K<=0&&(K+=this.DB,--G)),_>0&&(L=!0),L&&(M+=g(_));return L?M:"0"}function R(){var h=n();return r.ZERO.subTo(this,h),h}function T(){return this.s<0?this.negate():this}function A(h){var p=this.s-h.s;if(p!=0)return p;var v=this.t;if(p=v-h.t,p!=0)return this.s<0?-p:p;for(;--v>=0;)if((p=this[v]-h[v])!=0)return p;return 0}function C(h){var p=1,v;return(v=h>>>16)!=0&&(h=v,p+=16),(v=h>>8)!=0&&(h=v,p+=8),(v=h>>4)!=0&&(h=v,p+=4),(v=h>>2)!=0&&(h=v,p+=2),(v=h>>1)!=0&&(h=v,p+=1),p}function B(){return this.t<=0?0:this.DB*(this.t-1)+C(this[this.t-1]^this.s&this.DM)}function P(h,p){var v;for(v=this.t-1;v>=0;--v)p[v+h]=this[v];for(v=h-1;v>=0;--v)p[v]=0;p.t=this.t+h,p.s=this.s}function U(h,p){for(var v=h;v=0;--K)p[K+M+1]=this[K]>>_|G,G=(this[K]&L)<=0;--K)p[K]=0;p[M]=G,p.t=this.t+M+1,p.s=this.s,p.clamp()}function H(h,p){p.s=this.s;var v=Math.floor(h/this.DB);if(v>=this.t){p.t=0;return}var _=h%this.DB,L=this.DB-_,M=(1<<_)-1;p[0]=this[v]>>_;for(var G=v+1;G>_;_>0&&(p[this.t-v-1]|=(this.s&M)<>=this.DB;if(h.t>=this.DB;_+=this.s}else{for(_+=this.s;v>=this.DB;_-=h.s}p.s=_<0?-1:0,_<-1?p[v++]=this.DV+_:_>0&&(p[v++]=_),p.t=v,p.clamp()}function V(h,p){var v=this.abs(),_=h.abs(),L=v.t;for(p.t=L+_.t;--L>=0;)p[L]=0;for(L=0;L<_.t;++L)p[L+v.t]=v.am(0,_[L],p,L,0,v.t);p.s=0,p.clamp(),this.s!=h.s&&r.ZERO.subTo(p,p)}function Y(h){for(var p=this.abs(),v=h.t=2*p.t;--v>=0;)h[v]=0;for(v=0;v=p.DV&&(h[v+p.t]-=p.DV,h[v+p.t+1]=1)}h.t>0&&(h[h.t-1]+=p.am(v,p[v],h,2*v,0,1)),h.s=0,h.clamp()}function Q(h,p,v){var _=h.abs();if(!(_.t<=0)){var L=this.abs();if(L.t<_.t){p!=null&&p.fromInt(0),v!=null&&this.copyTo(v);return}v==null&&(v=n());var M=n(),G=this.s,K=h.s,Pe=this.DB-C(_[_.t-1]);Pe>0?(_.lShiftTo(Pe,M),L.lShiftTo(Pe,v)):(_.copyTo(M),L.copyTo(v));var Ye=M.t,Tt=M[Ye-1];if(Tt!=0){var wt=Tt*(1<1?M[Ye-2]>>this.F2:0),oi=this.FV/wt,ps=(1<=0&&(v[v.t++]=1,v.subTo(bi,v)),r.ONE.dlShiftTo(Ye,bi),bi.subTo(M,M);M.t=0;){var Oa=v[--Ut]==Tt?this.DM:Math.floor(v[Ut]*oi+(v[Ut-1]+jt)*ps);if((v[Ut]+=M.am(0,Oa,v,ds,0,Ye))0&&v.rShiftTo(Pe,v),G<0&&r.ZERO.subTo(v,v)}}}function W(h){var p=n();return this.abs().divRemTo(h,null,p),this.s<0&&p.compareTo(r.ZERO)>0&&h.subTo(p,p),p}function de(h){this.m=h}function ae(h){return h.s<0||h.compareTo(this.m)>=0?h.mod(this.m):h}function ne(h){return h}function ue(h){h.divRemTo(this.m,null,h)}function N(h,p,v){h.multiplyTo(p,v),this.reduce(v)}function X(h,p){h.squareTo(p),this.reduce(p)}de.prototype.convert=ae,de.prototype.revert=ne,de.prototype.reduce=ue,de.prototype.mulTo=N,de.prototype.sqrTo=X;function ke(){if(this.t<1)return 0;var h=this[0];if((h&1)==0)return 0;var p=h&3;return p=p*(2-(h&15)*p)&15,p=p*(2-(h&255)*p)&255,p=p*(2-((h&65535)*p&65535))&65535,p=p*(2-h*p%this.DV)%this.DV,p>0?this.DV-p:-p}function be(h){this.m=h,this.mp=h.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(p,p),p}function ve(h){var p=n();return h.copyTo(p),this.reduce(p),p}function fe(h){for(;h.t<=this.mt2;)h[h.t++]=0;for(var p=0;p>15)*this.mpl&this.um)<<15)&h.DM;for(v=p+this.m.t,h[v]+=this.m.am(0,_,h,p,0,this.m.t);h[v]>=h.DV;)h[v]-=h.DV,h[++v]++}h.clamp(),h.drShiftTo(this.m.t,h),h.compareTo(this.m)>=0&&h.subTo(this.m,h)}function z(h,p){h.squareTo(p),this.reduce(p)}function $(h,p,v){h.multiplyTo(p,v),this.reduce(v)}be.prototype.convert=ge,be.prototype.revert=ve,be.prototype.reduce=fe,be.prototype.mulTo=$,be.prototype.sqrTo=z;function Te(){return(this.t>0?this[0]&1:this.s)==0}function re(h,p){if(h>4294967295||h<1)return r.ONE;var v=n(),_=n(),L=p.convert(this),M=C(h)-1;for(L.copyTo(v);--M>=0;)if(p.sqrTo(v,_),(h&1<0)p.mulTo(_,L,v);else{var G=v;v=_,_=G}return p.revert(v)}function he(h,p){var v;return h<256||p.isEven()?v=new de(p):v=new be(p),this.exp(h,v)}r.prototype.copyTo=b,r.prototype.fromInt=w,r.prototype.fromString=k,r.prototype.clamp=O,r.prototype.dlShiftTo=P,r.prototype.drShiftTo=U,r.prototype.lShiftTo=F,r.prototype.rShiftTo=H,r.prototype.subTo=j,r.prototype.multiplyTo=V,r.prototype.squareTo=Y,r.prototype.divRemTo=Q,r.prototype.invDigit=ke,r.prototype.isEven=Te,r.prototype.exp=re,r.prototype.toString=E,r.prototype.negate=R,r.prototype.abs=T,r.prototype.compareTo=A,r.prototype.bitLength=B,r.prototype.mod=W,r.prototype.modPowInt=he,r.ZERO=S(0),r.ONE=S(1);function ht(){var h=n();return this.copyTo(h),h}function bt(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<>24}function Z(){return this.t==0?this.s:this[0]<<16>>16}function te(h){return Math.floor(Math.LN2*this.DB/Math.log(h))}function ee(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function le(h){if(h==null&&(h=10),this.signum()==0||h<2||h>36)return"0";var p=this.chunkSize(h),v=Math.pow(h,p),_=S(v),L=n(),M=n(),G="";for(this.divRemTo(_,L,M);L.signum()>0;)G=(v+M.intValue()).toString(h).substr(1)+G,L.divRemTo(_,L,M);return M.intValue().toString(h)+G}function ce(h,p){this.fromInt(0),p==null&&(p=10);for(var v=this.chunkSize(p),_=Math.pow(p,v),L=!1,M=0,G=0,K=0;K=v&&(this.dMultiply(_),this.dAddOffset(G,0),M=0,G=0)}M>0&&(this.dMultiply(Math.pow(p,M)),this.dAddOffset(G,0)),L&&r.ZERO.subTo(this,this)}function _e(h,p,v){if(typeof p=="number")if(h<2)this.fromInt(1);else for(this.fromNumber(h,v),this.testBit(h-1)||this.bitwiseTo(r.ONE.shiftLeft(h-1),oe,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(p);)this.dAddOffset(2,0),this.bitLength()>h&&this.subTo(r.ONE.shiftLeft(h-1),this);else{var _=new Array,L=h&7;_.length=(h>>3)+1,p.nextBytes(_),L>0?_[0]&=(1<0)for(v>v)!=(this.s&this.DM)>>v&&(p[L++]=_|this.s<=0;)v<8?(_=(this[h]&(1<>(v+=this.DB-8)):(_=this[h]>>(v-=8)&255,v<=0&&(v+=this.DB,--h)),(_&128)!=0&&(_|=-256),L==0&&(this.s&128)!=(_&128)&&++L,(L>0||_!=this.s)&&(p[L++]=_);return p}function Re(h){return this.compareTo(h)==0}function Ae(h){return this.compareTo(h)<0?this:h}function D(h){return this.compareTo(h)>0?this:h}function J(h,p,v){var _,L,M=Math.min(h.t,this.t);for(_=0;_>=16,p+=16),(h&255)==0&&(h>>=8,p+=8),(h&15)==0&&(h>>=4,p+=4),(h&3)==0&&(h>>=2,p+=2),(h&1)==0&&++p,p}function vi(){for(var h=0;h=this.t?this.s!=0:(this[p]&1<>=this.DB;if(h.t>=this.DB;_+=this.s}else{for(_+=this.s;v>=this.DB;_+=h.s}p.s=_<0?-1:0,_>0?p[v++]=_:_<-1&&(p[v++]=this.DV+_),p.t=v,p.clamp()}function es(h){var p=n();return this.addTo(h,p),p}function tn(h){var p=n();return this.subTo(h,p),p}function ts(h){var p=n();return this.multiplyTo(h,p),p}function is(){var h=n();return this.squareTo(h),h}function rs(h){var p=n();return this.divRemTo(h,p,null),p}function ns(h){var p=n();return this.divRemTo(h,null,p),p}function ss(h){var p=n(),v=n();return this.divRemTo(h,p,v),new Array(p,v)}function wa(h){this[this.t]=this.am(0,h-1,this,0,0,this.t),++this.t,this.clamp()}function Hi(h,p){if(h!=0){for(;this.t<=p;)this[this.t++]=0;for(this[p]+=h;this[p]>=this.DV;)this[p]-=this.DV,++p>=this.t&&(this[this.t++]=0),++this[p]}}function si(){}function Gi(h){return h}function gr(h,p,v){h.multiplyTo(p,v)}function os(h,p){h.squareTo(p)}si.prototype.convert=Gi,si.prototype.revert=Gi,si.prototype.mulTo=gr,si.prototype.sqrTo=os;function as(h){return this.exp(h,new si)}function ls(h,p,v){var _=Math.min(this.t+h.t,p);for(v.s=0,v.t=_;_>0;)v[--_]=0;var L;for(L=v.t-this.t;_=0;)v[_]=0;for(_=Math.max(p-this.t,0);_2*this.m.t)return h.mod(this.m);if(h.compareTo(this.m)<0)return h;var p=n();return h.copyTo(p),this.reduce(p),p}function fs(h){return h}function vr(h){for(h.drShiftTo(this.m.t-1,this.r2),h.t>this.m.t+1&&(h.t=this.m.t+1,h.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);h.compareTo(this.r2)<0;)h.dAddOffset(1,this.m.t+1);for(h.subTo(this.r2,h);h.compareTo(this.m)>=0;)h.subTo(this.m,h)}function Sb(h,p){h.squareTo(p),this.reduce(p)}function Eb(h,p,v){h.multiplyTo(p,v),this.reduce(v)}Yt.prototype.convert=us,Yt.prototype.revert=fs,Yt.prototype.reduce=vr,Yt.prototype.mulTo=Eb,Yt.prototype.sqrTo=Sb;function Ob(h,p){var v=h.bitLength(),_,L=S(1),M;if(v<=0)return L;v<18?_=1:v<48?_=3:v<144?_=4:v<768?_=5:_=6,v<8?M=new de(p):p.isEven()?M=new Yt(p):M=new be(p);var G=new Array,K=3,Pe=_-1,Ye=(1<<_)-1;if(G[1]=M.convert(this),_>1){var Tt=n();for(M.sqrTo(G[1],Tt);K<=Ye;)G[K]=n(),M.mulTo(Tt,G[K-2],G[K]),K+=2}var wt=h.t-1,oi,ps=!0,jt=n(),Ut;for(v=C(h[wt])-1;wt>=0;){for(v>=Pe?oi=h[wt]>>v-Pe&Ye:(oi=(h[wt]&(1<0&&(oi|=h[wt-1]>>this.DB+v-Pe)),K=_;(oi&1)==0;)oi>>=1,--K;if((v-=K)<0&&(v+=this.DB,--wt),ps)G[oi].copyTo(L),ps=!1;else{for(;K>1;)M.sqrTo(L,jt),M.sqrTo(jt,L),K-=2;K>0?M.sqrTo(L,jt):(Ut=L,L=jt,jt=Ut),M.mulTo(jt,G[oi],L)}for(;wt>=0&&(h[wt]&1<0&&(p.rShiftTo(M,p),v.rShiftTo(M,v));p.signum()>0;)(L=p.getLowestSetBit())>0&&p.rShiftTo(L,p),(L=v.getLowestSetBit())>0&&v.rShiftTo(L,v),p.compareTo(v)>=0?(p.subTo(v,p),p.rShiftTo(1,p)):(v.subTo(p,v),v.rShiftTo(1,v));return M>0&&v.lShiftTo(M,v),v}function Cb(h){if(h<=0)return 0;var p=this.DV%h,v=this.s<0?h-1:0;if(this.t>0)if(p==0)v=this[0]%h;else for(var _=this.t-1;_>=0;--_)v=(p*v+this[_])%h;return v}function Tb(h){var p=h.isEven();if(this.isEven()&&p||h.signum()==0)return r.ZERO;for(var v=h.clone(),_=this.clone(),L=S(1),M=S(0),G=S(0),K=S(1);v.signum()!=0;){for(;v.isEven();)v.rShiftTo(1,v),p?((!L.isEven()||!M.isEven())&&(L.addTo(this,L),M.subTo(h,M)),L.rShiftTo(1,L)):M.isEven()||M.subTo(h,M),M.rShiftTo(1,M);for(;_.isEven();)_.rShiftTo(1,_),p?((!G.isEven()||!K.isEven())&&(G.addTo(this,G),K.subTo(h,K)),G.rShiftTo(1,G)):K.isEven()||K.subTo(h,K),K.rShiftTo(1,K);v.compareTo(_)>=0?(v.subTo(_,v),p&&L.subTo(G,L),M.subTo(K,M)):(_.subTo(v,_),p&&G.subTo(L,G),K.subTo(M,K))}if(_.compareTo(r.ONE)!=0)return r.ZERO;if(K.compareTo(h)>=0)return K.subtract(h);if(K.signum()<0)K.addTo(h,K);else return K;return K.signum()<0?K.add(h):K}var ot=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ab=(1<<26)/ot[ot.length-1];function Ib(h){var p,v=this.abs();if(v.t==1&&v[0]<=ot[ot.length-1]){for(p=0;p>1,h>ot.length&&(h=ot.length);for(var L=n(),M=0;M>8&255,_t[We++]^=h>>16&255,_t[We++]^=h>>24&255,We>=Ea&&(We-=Ea)}function yf(){Bb(new Date().getTime())}if(_t==null){_t=new Array,We=0;var Dt;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var bf=new Uint8Array(32);for(window.crypto.getRandomValues(bf),Dt=0;Dt<32;++Dt)_t[We++]=bf[Dt]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var _f=window.crypto.random(32);for(Dt=0;Dt<_f.length;++Dt)_t[We++]=_f.charCodeAt(Dt)&255}}for(;We>>8,_t[We++]=Dt&255;We=0,yf()}function Lb(){if(hs==null){for(yf(),hs=qb(),hs.init(_t),We=0;We<_t.length;++We)_t[We]=0;We=0}return hs.next()}function Rb(h){var p;for(p=0;p{(function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(o){return r(s(o),arguments)}function t(o,a){return e.apply(null,[o].concat(a||[]))}function r(o,a){var l=1,c=o.length,u,f="",d,m,g,y,b,w,S,k;for(d=0;d=0),g.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,g.width?parseInt(g.width):0);break;case"e":u=g.precision?parseFloat(u).toExponential(g.precision):parseFloat(u).toExponential();break;case"f":u=g.precision?parseFloat(u).toFixed(g.precision):parseFloat(u);break;case"g":u=g.precision?String(Number(u.toPrecision(g.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=g.precision?u.substring(0,g.precision):u;break;case"t":u=String(!!u),u=g.precision?u.substring(0,g.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=g.precision?u.substring(0,g.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=g.precision?u.substring(0,g.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}i.json.test(g.type)?f+=u:(i.number.test(g.type)&&(!S||g.sign)?(k=S?"+":"-",u=u.toString().replace(i.sign,"")):k="",b=g.pad_char?g.pad_char==="0"?"0":g.pad_char.charAt(1):" ",w=g.width-(k+u).length,y=g.width&&w>0?b.repeat(w):"",f+=g.align?k+u+y:b==="0"?k+y+u:y+k+u)}return f}var n=Object.create(null);function s(o){if(n[o])return n[o];for(var a=o,l,c=[],u=0;a;){if((l=i.text.exec(a))!==null)c.push(l[0]);else if((l=i.modulo.exec(a))!==null)c.push("%");else if((l=i.placeholder.exec(a))!==null){if(l[2]){u|=1;var f=[],d=l[2],m=[];if((m=i.key.exec(d))!==null)for(f.push(m[1]);(d=d.substring(m[0].length))!=="";)if((m=i.key_access.exec(d))!==null)f.push(m[1]);else if((m=i.index_access.exec(d))!==null)f.push(m[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=f}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");c.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");a=a.substring(l[0].length)}return n[o]=c}typeof Ws!="undefined"&&(Ws.sprintf=e,Ws.vsprintf=t),typeof window!="undefined"&&(window.sprintf=e,window.vsprintf=t,typeof define=="function"&&define.amd&&define(function(){return{sprintf:e,vsprintf:t}}))})()});var Wl=x(Zt=>{"use strict";var cS=Zt&&Zt.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),uS=Zt&&Zt.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Em=Zt&&Zt.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&cS(e,i,t);return uS(e,i),e};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.Address4=void 0;var xm=Em(Ul()),Ht=Em($l()),Sm=Hs(),hn=Hl(),Lr=fn(),Gl=class i{constructor(e){this.groups=Ht.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=xm.isCorrect(Ht.BITS),this.isInSubnet=xm.isInSubnet,this.address=e;let t=Ht.RE_SUBNET_STRING.exec(e);if(t){if(this.parsedSubnet=t[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>Ht.BITS)throw new Sm.AddressError("Invalid subnet mask.");e=e.replace(Ht.RE_SUBNET_STRING,"")}this.addressMinusSuffix=e,this.parsedAddress=this.parse(e)}static isValid(e){try{return new i(e),!0}catch{return!1}}parse(e){let t=e.split(".");if(!e.match(Ht.RE_ADDRESS))throw new Sm.AddressError("Invalid IPv4 address.");return t}correctForm(){return this.parsedAddress.map(e=>parseInt(e,10)).join(".")}static fromHex(e){let t=e.replace(/:/g,"").padStart(8,"0"),r=[],n;for(n=0;n<8;n+=2){let s=t.slice(n,n+2);r.push(parseInt(s,16))}return new i(r.join("."))}static fromInteger(e){return i.fromHex(e.toString(16))}static fromArpa(e){let r=e.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join(".");return new i(r)}toHex(){return this.parsedAddress.map(e=>(0,Lr.sprintf)("%02x",parseInt(e,10))).join(":")}toArray(){return this.parsedAddress.map(e=>parseInt(e,10))}toGroup6(){let e=[],t;for(t=0;t(0,Lr.sprintf)("%02x",parseInt(e,10))).join(""),16)}_startAddress(){return new hn.BigInteger(this.mask()+"0".repeat(Ht.BITS-this.subnetMask),2)}startAddress(){return i.fromBigInteger(this._startAddress())}startAddressExclusive(){let e=new hn.BigInteger("1");return i.fromBigInteger(this._startAddress().add(e))}_endAddress(){return new hn.BigInteger(this.mask()+"1".repeat(Ht.BITS-this.subnetMask),2)}endAddress(){return i.fromBigInteger(this._endAddress())}endAddressExclusive(){let e=new hn.BigInteger("1");return i.fromBigInteger(this._endAddress().subtract(e))}static fromBigInteger(e){return i.fromInteger(parseInt(e.toString(),10))}mask(e){return e===void 0&&(e=this.subnetMask),this.getBitsBase2(0,e)}getBitsBase2(e,t){return this.binaryZeroPad().slice(e,t)}reverseForm(e){e||(e={});let t=this.correctForm().split(".").reverse().join(".");return e.omitSuffix?t:(0,Lr.sprintf)("%s.in-addr.arpa.",t)}isMulticast(){return this.isInSubnet(new i("224.0.0.0/4"))}binaryZeroPad(){return this.bigInteger().toString(2).padStart(Ht.BITS,"0")}groupForV6(){let e=this.parsedAddress;return this.address.replace(Ht.RE_ADDRESS,(0,Lr.sprintf)('%s.%s',e.slice(0,2).join("."),e.slice(2,4).join(".")))}};Zt.Address4=Gl});var Yl=x(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.RE_URL_WITH_PORT=Fe.RE_URL=Fe.RE_ZONE_STRING=Fe.RE_SUBNET_STRING=Fe.RE_BAD_ADDRESS=Fe.RE_BAD_CHARACTERS=Fe.TYPES=Fe.SCOPES=Fe.GROUPS=Fe.BITS=void 0;Fe.BITS=128;Fe.GROUPS=8;Fe.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"};Fe.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"};Fe.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi;Fe.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;Fe.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/;Fe.RE_ZONE_STRING=/%.*$/;Fe.RE_URL=new RegExp(/^\[{0,1}([0-9a-f:]+)\]{0,1}/);Fe.RE_URL_WITH_PORT=new RegExp(/\[([0-9a-f:]+)\]:([0-9]{1,5})/)});var Kl=x(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.simpleGroup=Qt.spanLeadingZeroes=Qt.spanAll=Qt.spanAllZeroes=void 0;var Om=fn();function km(i){return i.replace(/(0+)/g,'$1')}Qt.spanAllZeroes=km;function fS(i,e=0){return i.split("").map((r,n)=>(0,Om.sprintf)('%s',r,n+e,km(r))).join("")}Qt.spanAll=fS;function Cm(i){return i.replace(/^(0+)/,'$1')}function hS(i){return i.split(":").map(t=>Cm(t)).join(":")}Qt.spanLeadingZeroes=hS;function pS(i,e=0){return i.split(":").map((r,n)=>/group-v4/.test(r)?r:(0,Om.sprintf)('%s',n+e,Cm(r)))}Qt.simpleGroup=pS});var Tm=x(Je=>{"use strict";var dS=Je&&Je.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),mS=Je&&Je.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),gS=Je&&Je.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&dS(e,i,t);return mS(e,i),e};Object.defineProperty(Je,"__esModule",{value:!0});Je.possibleElisions=Je.simpleRegularExpression=Je.ADDRESS_BOUNDARY=Je.padGroup=Je.groupPossibilities=void 0;var vS=gS(Yl()),Rr=fn();function Ks(i){return(0,Rr.sprintf)("(%s)",i.join("|"))}Je.groupPossibilities=Ks;function Ys(i){return i.length<4?(0,Rr.sprintf)("0{0,%d}%s",4-i.length,i):i}Je.padGroup=Ys;Je.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function yS(i){let e=[];i.forEach((r,n)=>{parseInt(r,16)===0&&e.push(n)});let t=e.map(r=>i.map((n,s)=>{if(s===r){let o=s===0||s===vS.GROUPS-1?":":"";return Ks([Ys(n),o])}return Ys(n)}).join(":"));return t.push(i.map(Ys).join(":")),Ks(t)}Je.simpleRegularExpression=yS;function bS(i,e,t){let r=e?"":":",n=t?"":":",s=[];!e&&!t&&s.push("::"),e&&t&&s.push(""),(t&&!e||!t&&e)&&s.push(":"),s.push((0,Rr.sprintf)("%s(:0{1,4}){1,%d}",r,i-1)),s.push((0,Rr.sprintf)("(0{1,4}:){1,%d}%s",i-1,n)),s.push((0,Rr.sprintf)("(0{1,4}:){%d}0{1,4}",i-1));for(let o=1;o{"use strict";var _S=Xt&&Xt.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),wS=Xt&&Xt.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Js=Xt&&Xt.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&_S(e,i,t);return wS(e,i),e};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.Address6=void 0;var Am=Js(Ul()),zl=Js($l()),Le=Js(Yl()),Jl=Js(Kl()),Zi=Wl(),Qi=Tm(),fi=Hs(),ct=Hl(),ut=fn();function zs(i){if(!i)throw new Error("Assertion failed.")}function xS(i){let e=/(\d+)(\d{3})/;for(;e.test(i);)i=i.replace(e,"$1,$2");return i}function SS(i){return i=i.replace(/^(0{1,})([1-9]+)$/,'$1$2'),i=i.replace(/^(0{1,})(0)$/,'$1$2'),i}function ES(i,e){let t=[],r=[],n;for(n=0;ne[1]&&r.push(i[n]);return t.concat(["compact"]).concat(r)}function Im(i){return(0,ut.sprintf)("%04x",parseInt(i,16))}function Nm(i){return i&255}var Zl=class i{constructor(e,t){this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=Am.isInSubnet,this.isCorrect=Am.isCorrect(Le.BITS),t===void 0?this.groups=Le.GROUPS:this.groups=t,this.address=e;let r=Le.RE_SUBNET_STRING.exec(e);if(r){if(this.parsedSubnet=r[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>Le.BITS)throw new fi.AddressError("Invalid subnet mask.");e=e.replace(Le.RE_SUBNET_STRING,"")}else if(/\//.test(e))throw new fi.AddressError("Invalid subnet mask.");let n=Le.RE_ZONE_STRING.exec(e);n&&(this.zone=n[0],e=e.replace(Le.RE_ZONE_STRING,"")),this.addressMinusSuffix=e,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(e){try{return new i(e),!0}catch{return!1}}static fromBigInteger(e){let t=e.toString(16).padStart(32,"0"),r=[],n;for(n=0;n65536)&&(r=null)):r=null,{address:new i(t),port:r}}static fromAddress4(e){let t=new Zi.Address4(e),r=Le.BITS-(zl.BITS-t.subnetMask);return new i(`::ffff:${t.correctForm()}/${r}`)}static fromArpa(e){let t=e.replace(/(\.ip6\.arpa)?\.$/,""),r=7;if(t.length!==63)throw new fi.AddressError("Invalid 'ip6.arpa' form.");let n=t.split(".").reverse();for(let s=r;s>0;s--){let o=s*4;n.splice(o,0,":")}return t=n.join(""),new i(t)}microsoftTranscription(){return(0,ut.sprintf)("%s.ipv6-literal.net",this.correctForm().replace(/:/g,"-"))}mask(e=this.subnetMask){return this.getBitsBase2(0,e)}possibleSubnets(e=128){let t=Le.BITS-this.subnetMask,r=Math.abs(e-Le.BITS),n=t-r;return n<0?"0":xS(new ct.BigInteger("2",10).pow(n).toString(10))}_startAddress(){return new ct.BigInteger(this.mask()+"0".repeat(Le.BITS-this.subnetMask),2)}startAddress(){return i.fromBigInteger(this._startAddress())}startAddressExclusive(){let e=new ct.BigInteger("1");return i.fromBigInteger(this._startAddress().add(e))}_endAddress(){return new ct.BigInteger(this.mask()+"1".repeat(Le.BITS-this.subnetMask),2)}endAddress(){return i.fromBigInteger(this._endAddress())}endAddressExclusive(){let e=new ct.BigInteger("1");return i.fromBigInteger(this._endAddress().subtract(e))}getScope(){let e=Le.SCOPES[this.getBits(12,16).intValue()];return this.getType()==="Global unicast"&&e!=="Link local"&&(e="Global"),e||"Unknown"}getType(){for(let e of Object.keys(Le.TYPES))if(this.isInSubnet(new i(e)))return Le.TYPES[e];return"Global unicast"}getBits(e,t){return new ct.BigInteger(this.getBitsBase2(e,t),2)}getBitsBase2(e,t){return this.binaryZeroPad().slice(e,t)}getBitsBase16(e,t){let r=t-e;if(r%4!==0)throw new Error("Length of bits to retrieve must be divisible by four");return this.getBits(e,t).toString(16).padStart(r/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,Le.BITS)}reverseForm(e){e||(e={});let t=Math.floor(this.subnetMask/4),r=this.canonicalForm().replace(/:/g,"").split("").slice(0,t).reverse().join(".");return t>0?e.omitSuffix?r:(0,ut.sprintf)("%s.ip6.arpa.",r):e.omitSuffix?"":"ip6.arpa."}correctForm(){let e,t=[],r=0,n=[];for(e=0;e0&&(r>1&&n.push([e-r,e-1]),r=0)}r>1&&n.push([this.parsedAddress.length-r,this.parsedAddress.length-1]);let s=n.map(a=>a[1]-a[0]+1);if(n.length>0){let a=s.indexOf(Math.max(...s));t=ES(this.parsedAddress,n[a])}else t=this.parsedAddress;for(e=0;e1?"s":"",t.join("")),e.replace(Le.RE_BAD_CHARACTERS,'$1'));let r=e.match(Le.RE_BAD_ADDRESS);if(r)throw new fi.AddressError((0,ut.sprintf)("Address failed regex: %s",r.join("")),e.replace(Le.RE_BAD_ADDRESS,'$1'));let n=[],s=e.split("::");if(s.length===2){let o=s[0].split(":"),a=s[1].split(":");o.length===1&&o[0]===""&&(o=[]),a.length===1&&a[0]===""&&(a=[]);let l=this.groups-(o.length+a.length);if(!l)throw new fi.AddressError("Error parsing groups");this.elidedGroups=l,this.elisionBegin=o.length,this.elisionEnd=o.length+this.elidedGroups,n=n.concat(o);for(let c=0;c(0,ut.sprintf)("%x",parseInt(o,16))),n.length!==this.groups)throw new fi.AddressError("Incorrect number of groups found");return n}canonicalForm(){return this.parsedAddress.map(Im).join(":")}decimal(){return this.parsedAddress.map(e=>(0,ut.sprintf)("%05d",parseInt(e,16))).join(":")}bigInteger(){return new ct.BigInteger(this.parsedAddress.map(Im).join(""),16)}to4(){let e=this.binaryZeroPad().split("");return Zi.Address4.fromHex(new ct.BigInteger(e.slice(96,128).join(""),2).toString(16))}to4in6(){let e=this.to4(),r=new i(this.parsedAddress.slice(0,6).join(":"),6).correctForm(),n="";return/:$/.test(r)||(n=":"),r+n+e.address}inspectTeredo(){let e=this.getBitsBase16(0,32),t=this.getBits(80,96).xor(new ct.BigInteger("ffff",16)).toString(),r=Zi.Address4.fromHex(this.getBitsBase16(32,64)),n=Zi.Address4.fromHex(this.getBits(96,128).xor(new ct.BigInteger("ffffffff",16)).toString(16)),s=this.getBits(64,80),o=this.getBitsBase2(64,80),a=s.testBit(15),l=s.testBit(14),c=s.testBit(8),u=s.testBit(9),f=new ct.BigInteger(o.slice(2,6)+o.slice(8,16),2).toString(10);return{prefix:(0,ut.sprintf)("%s:%s",e.slice(0,4),e.slice(4,8)),server4:r.address,client4:n.address,flags:o,coneNat:a,microsoft:{reserved:l,universalLocal:u,groupIndividual:c,nonce:f},udpPort:t}}inspect6to4(){let e=this.getBitsBase16(0,16),t=Zi.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:(0,ut.sprintf)("%s",e.slice(0,4)),gateway:t.address}}to6to4(){if(!this.is4())return null;let e=["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":");return new i(e)}toByteArray(){let e=this.bigInteger().toByteArray();return e.length===17&&e[0]===0?e.slice(1):e}toUnsignedByteArray(){return this.toByteArray().map(Nm)}static fromByteArray(e){return this.fromUnsignedByteArray(e.map(Nm))}static fromUnsignedByteArray(e){let t=new ct.BigInteger("256",10),r=new ct.BigInteger("0",10),n=new ct.BigInteger("1",10);for(let s=e.length-1;s>=0;s--)r=r.add(n.multiply(new ct.BigInteger(e[s].toString(10),10))),n=n.multiply(t);return i.fromBigInteger(r)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){return this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000"}isMulticast(){return this.getType()==="Multicast"}is4(){return this.v4}isTeredo(){return this.isInSubnet(new i("2001::/32"))}is6to4(){return this.isInSubnet(new i("2002::/16"))}isLoopback(){return this.getType()==="Loopback"}href(e){return e===void 0?e="":e=(0,ut.sprintf)(":%s",e),(0,ut.sprintf)("http://[%s]%s/",this.correctForm(),e)}link(e){e||(e={}),e.className===void 0&&(e.className=""),e.prefix===void 0&&(e.prefix="/#address="),e.v4===void 0&&(e.v4=!1);let t=this.correctForm;return e.v4&&(t=this.to4in6),e.className?(0,ut.sprintf)('%2$s',e.prefix,t.call(this),e.className):(0,ut.sprintf)('%2$s',e.prefix,t.call(this))}group(){if(this.elidedGroups===0)return Jl.simpleGroup(this.address).join(":");zs(typeof this.elidedGroups=="number"),zs(typeof this.elisionBegin=="number");let e=[],[t,r]=this.address.split("::");t.length?e.push(...Jl.simpleGroup(t)):e.push("");let n=["hover-group"];for(let s=this.elisionBegin;s',n.join(" "))),r.length?e.push(...Jl.simpleGroup(r,this.elisionEnd)):e.push(""),this.is4()&&(zs(this.address4 instanceof Zi.Address4),e.pop(),e.push(this.address4.groupForV6())),e.join(":")}regularExpressionString(e=!1){let t=[],r=new i(this.correctForm());if(r.elidedGroups===0)t.push((0,Qi.simpleRegularExpression)(r.parsedAddress));else if(r.elidedGroups===Le.GROUPS)t.push((0,Qi.possibleElisions)(Le.GROUPS));else{let n=r.address.split("::");n[0].length&&t.push((0,Qi.simpleRegularExpression)(n[0].split(":"))),zs(typeof r.elidedGroups=="number"),t.push((0,Qi.possibleElisions)(r.elidedGroups,n[0].length!==0,n[1].length!==0)),n[1].length&&t.push((0,Qi.simpleRegularExpression)(n[1].split(":"))),t=[t.join(":")]}return e||(t=["(?=^|",Qi.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...t,")(?=[^\\w\\:]|",Qi.ADDRESS_BOUNDARY,"|$)"]),t.join("")}regularExpression(e=!1){return new RegExp(this.regularExpressionString(e),"i")}};Xt.Address6=Zl});var Ql=x(nt=>{"use strict";var OS=nt&&nt.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),kS=nt&&nt.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),CS=nt&&nt.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&OS(e,i,t);return kS(e,i),e};Object.defineProperty(nt,"__esModule",{value:!0});nt.v6=nt.AddressError=nt.Address6=nt.Address4=void 0;var TS=Wl();Object.defineProperty(nt,"Address4",{enumerable:!0,get:function(){return TS.Address4}});var AS=Bm();Object.defineProperty(nt,"Address6",{enumerable:!0,get:function(){return AS.Address6}});var IS=Hs();Object.defineProperty(nt,"AddressError",{enumerable:!0,get:function(){return IS.AddressError}});var NS=CS(Kl());nt.v6={helpers:NS}});var Fm=x(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.ipToBuffer=Rt.int32ToIpv4=Rt.ipv4ToInt32=Rt.validateSocksClientChainOptions=Rt.validateSocksClientOptions=void 0;var ft=jl(),Ze=Fl(),BS=require("stream"),Xl=Ql(),Lm=require("net");function LS(i,e=["connect","bind","associate"]){if(!Ze.SocksCommand[i.command])throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksCommand,i);if(e.indexOf(i.command)===-1)throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksCommandForOperation,i);if(!Pm(i.destination))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsDestination,i);if(!Mm(i.proxy))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsProxy,i);if(Rm(i.proxy,i),i.timeout&&!qm(i.timeout))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsTimeout,i);if(i.existing_socket&&!(i.existing_socket instanceof BS.Duplex))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsExistingSocket,i)}Rt.validateSocksClientOptions=LS;function RS(i){if(i.command!=="connect")throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksCommandChain,i);if(!Pm(i.destination))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsDestination,i);if(!(i.proxies&&Array.isArray(i.proxies)&&i.proxies.length>=2))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsProxiesLength,i);if(i.proxies.forEach(e=>{if(!Mm(e))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsProxy,i);Rm(e,i)}),i.timeout&&!qm(i.timeout))throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsTimeout,i)}Rt.validateSocksClientChainOptions=RS;function Rm(i,e){if(i.custom_auth_method!==void 0){if(i.custom_auth_methodZe.SOCKS5_CUSTOM_AUTH_END)throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsCustomAuthRange,e);if(i.custom_auth_request_handler===void 0||typeof i.custom_auth_request_handler!="function")throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,e);if(i.custom_auth_response_size===void 0)throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,e);if(i.custom_auth_response_handler===void 0||typeof i.custom_auth_response_handler!="function")throw new ft.SocksClientError(Ze.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,e)}}function Pm(i){return i&&typeof i.host=="string"&&typeof i.port=="number"&&i.port>=0&&i.port<=65535}function Mm(i){return i&&(typeof i.host=="string"||typeof i.ipaddress=="string")&&typeof i.port=="number"&&i.port>=0&&i.port<=65535&&(i.type===4||i.type===5)}function qm(i){return typeof i=="number"&&i>0}function PS(i){return new Xl.Address4(i).toArray().reduce((t,r)=>(t<<8)+r,0)}Rt.ipv4ToInt32=PS;function MS(i){let e=i>>>24&255,t=i>>>16&255,r=i>>>8&255,n=i&255;return[e,t,r,n].join(".")}Rt.int32ToIpv4=MS;function qS(i){if(Lm.isIPv4(i)){let e=new Xl.Address4(i);return Buffer.from(e.toArray())}else if(Lm.isIPv6(i)){let e=new Xl.Address6(i);return Buffer.from(e.canonicalForm().split(":").map(t=>t.padStart(4,"0")).join(""),"hex")}else throw new Error("Invalid IP address format")}Rt.ipToBuffer=qS});var Dm=x(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.ReceiveBuffer=void 0;var ec=class{constructor(e=4096){this.buffer=Buffer.allocUnsafe(e),this.offset=0,this.originalSize=e}get length(){return this.offset}append(e){if(!Buffer.isBuffer(e))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+e.length>=this.buffer.length){let t=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+e.length)),t.copy(this.buffer)}return e.copy(this.buffer,this.offset),this.offset+=e.length}peek(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,e)}get(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");let t=Buffer.allocUnsafe(e);return this.buffer.slice(0,e).copy(t),this.buffer.copyWithin(0,e,e+this.offset-e),this.offset-=e,t}};Zs.ReceiveBuffer=ec});var jm=x(Si=>{"use strict";var Pr=Si&&Si.__awaiter||function(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?s(u.value):n(u.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Object.defineProperty(Si,"__esModule",{value:!0});Si.SocksClientError=Si.SocksClient=void 0;var FS=require("events"),Mr=require("net"),gt=dm(),q=Fl(),Ot=Fm(),DS=Dm(),ic=jl();Object.defineProperty(Si,"SocksClientError",{enumerable:!0,get:function(){return ic.SocksClientError}});var tc=Ql(),rc=class i extends FS.EventEmitter{constructor(e){super(),this.options=Object.assign({},e),(0,Ot.validateSocksClientOptions)(e),this.setState(q.SocksClientState.Created)}static createConnection(e,t){return new Promise((r,n)=>{try{(0,Ot.validateSocksClientOptions)(e,["connect"])}catch(o){return typeof t=="function"?(t(o),r(o)):n(o)}let s=new i(e);s.connect(e.existing_socket),s.once("established",o=>{s.removeAllListeners(),typeof t=="function"&&t(null,o),r(o)}),s.once("error",o=>{s.removeAllListeners(),typeof t=="function"?(t(o),r(o)):n(o)})})}static createConnectionChain(e,t){return new Promise((r,n)=>Pr(this,void 0,void 0,function*(){try{(0,Ot.validateSocksClientChainOptions)(e)}catch(s){return typeof t=="function"?(t(s),r(s)):n(s)}e.randomizeChain&&(0,ic.shuffleArray)(e.proxies);try{let s;for(let o=0;othis.onDataReceivedHandler(r),this.onClose=()=>this.onCloseHandler(),this.onError=r=>this.onErrorHandler(r),this.onConnect=()=>this.onConnectHandler();let t=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||q.DEFAULT_TIMEOUT);t.unref&&typeof t.unref=="function"&&t.unref(),e?this.socket=e:this.socket=new Mr.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(q.SocksClientState.Connecting),this.receiveBuffer=new DS.ReceiveBuffer,e?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",r=>{setImmediate(()=>{if(this.receiveBuffer.length>0){let n=this.receiveBuffer.get(this.receiveBuffer.length);r.socket.emit("data",n)}r.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==q.SocksClientState.Established&&this.state!==q.SocksClientState.BoundWaitingForConnection&&this.closeSocket(q.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(q.SocksClientState.Connected),this.options.proxy.type===4?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(q.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(e){this.receiveBuffer.append(e),this.processData()}processData(){for(;this.state!==q.SocksClientState.Established&&this.state!==q.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===q.SocksClientState.SentInitialHandshake)this.options.proxy.type===4?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===q.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===q.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===q.SocksClientState.BoundWaitingForConnection)this.options.proxy.type===4?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(q.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(q.ERRORS.SocketClosed)}onErrorHandler(e){this.closeSocket(e.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(e){this.state!==q.SocksClientState.Error&&(this.setState(q.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new ic.SocksClientError(e,this.options)))}sendSocks4InitialHandshake(){let e=this.options.proxy.userId||"",t=new gt.SmartBuffer;t.writeUInt8(4),t.writeUInt8(q.SocksCommand[this.options.command]),t.writeUInt16BE(this.options.destination.port),Mr.isIPv4(this.options.destination.host)?(t.writeBuffer((0,Ot.ipToBuffer)(this.options.destination.host)),t.writeStringNT(e)):(t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(1),t.writeStringNT(e),t.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=q.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(t.toBuffer())}handleSocks4FinalHandshakeResponse(){let e=this.receiveBuffer.get(8);if(e[1]!==q.Socks4Response.Granted)this.closeSocket(`${q.ERRORS.Socks4ProxyRejectedConnection} - (${q.Socks4Response[e[1]]})`);else if(q.SocksCommand[this.options.command]===q.SocksCommand.bind){let t=gt.SmartBuffer.fromBuffer(e);t.readOffset=2;let r={port:t.readUInt16BE(),host:(0,Ot.int32ToIpv4)(t.readUInt32BE())};r.host==="0.0.0.0"&&(r.host=this.options.proxy.ipaddress),this.setState(q.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:r,socket:this.socket})}else this.setState(q.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){let e=this.receiveBuffer.get(8);if(e[1]!==q.Socks4Response.Granted)this.closeSocket(`${q.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${q.Socks4Response[e[1]]})`);else{let t=gt.SmartBuffer.fromBuffer(e);t.readOffset=2;let r={port:t.readUInt16BE(),host:(0,Ot.int32ToIpv4)(t.readUInt32BE())};this.setState(q.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket})}}sendSocks5InitialHandshake(){let e=new gt.SmartBuffer,t=[q.Socks5Auth.NoAuth];(this.options.proxy.userId||this.options.proxy.password)&&t.push(q.Socks5Auth.UserPass),this.options.proxy.custom_auth_method!==void 0&&t.push(this.options.proxy.custom_auth_method),e.writeUInt8(5),e.writeUInt8(t.length);for(let r of t)e.writeUInt8(r);this.nextRequiredPacketBufferSize=q.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(e.toBuffer()),this.setState(q.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){let e=this.receiveBuffer.get(2);e[0]!==5?this.closeSocket(q.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):e[1]===q.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(q.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):e[1]===q.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=q.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):e[1]===q.Socks5Auth.UserPass?(this.socks5ChosenAuthType=q.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):e[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(q.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){let e=this.options.proxy.userId||"",t=this.options.proxy.password||"",r=new gt.SmartBuffer;r.writeUInt8(1),r.writeUInt8(Buffer.byteLength(e)),r.writeString(e),r.writeUInt8(Buffer.byteLength(t)),r.writeString(t),this.nextRequiredPacketBufferSize=q.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(r.toBuffer()),this.setState(q.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return Pr(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(q.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(e){return Pr(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(e)})}handleSocks5AuthenticationNoAuthHandshakeResponse(e){return Pr(this,void 0,void 0,function*(){return e[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(e){return Pr(this,void 0,void 0,function*(){return e[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return Pr(this,void 0,void 0,function*(){this.setState(q.SocksClientState.ReceivedAuthenticationResponse);let e=!1;this.socks5ChosenAuthType===q.Socks5Auth.NoAuth?e=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===q.Socks5Auth.UserPass?e=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(e=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),e?this.sendSocks5CommandRequest():this.closeSocket(q.ERRORS.Socks5AuthenticationFailed)})}sendSocks5CommandRequest(){let e=new gt.SmartBuffer;e.writeUInt8(5),e.writeUInt8(q.SocksCommand[this.options.command]),e.writeUInt8(0),Mr.isIPv4(this.options.destination.host)?(e.writeUInt8(q.Socks5HostType.IPv4),e.writeBuffer((0,Ot.ipToBuffer)(this.options.destination.host))):Mr.isIPv6(this.options.destination.host)?(e.writeUInt8(q.Socks5HostType.IPv6),e.writeBuffer((0,Ot.ipToBuffer)(this.options.destination.host))):(e.writeUInt8(q.Socks5HostType.Hostname),e.writeUInt8(this.options.destination.host.length),e.writeString(this.options.destination.host)),e.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=q.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(e.toBuffer()),this.setState(q.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){let e=this.receiveBuffer.peek(5);if(e[0]!==5||e[1]!==q.Socks5Response.Granted)this.closeSocket(`${q.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${q.Socks5Response[e[1]]}`);else{let t=e[3],r,n;if(t===q.Socks5HostType.IPv4){let s=q.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length{"use strict";var jS=Xi&&Xi.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),US=Xi&&Xi.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&jS(e,i,t)};Object.defineProperty(Xi,"__esModule",{value:!0});US(jm(),Xi)});var $m=x(Pt=>{"use strict";var $S=Pt&&Pt.__createBinding||(Object.create?(function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}):(function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]})),VS=Pt&&Pt.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),nc=Pt&&Pt.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&$S(e,i,t);return VS(e,i),e},HS=Pt&&Pt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.SocksProxyAgent=void 0;var GS=Um(),WS=Va(),YS=HS(rn()),KS=nc(require("dns")),zS=nc(require("net")),JS=nc(require("tls")),ZS=require("url"),Qs=(0,YS.default)("socks-proxy-agent"),QS=i=>i.servername===void 0&&i.host&&!zS.isIP(i.host)?{...i,servername:i.host}:i;function XS(i){let e=!1,t=5,r=i.hostname,n=parseInt(i.port,10)||1080;switch(i.protocol.replace(":","")){case"socks4":e=!0,t=4;break;case"socks4a":t=4;break;case"socks5":e=!0,t=5;break;case"socks":t=5;break;case"socks5h":t=5;break;default:throw new TypeError(`A "socks" protocol must be specified! Got: ${String(i.protocol)}`)}let s={host:r,port:n,type:t};return i.username&&Object.defineProperty(s,"userId",{value:decodeURIComponent(i.username),enumerable:!1}),i.password!=null&&Object.defineProperty(s,"password",{value:decodeURIComponent(i.password),enumerable:!1}),{lookup:e,proxy:s}}var Xs=class extends WS.Agent{constructor(e,t){var o,a;super(t);let r=typeof e=="string"?new ZS.URL(e):e,{proxy:n,lookup:s}=XS(r);this.shouldLookup=s,this.proxy=n,this.timeout=(o=t==null?void 0:t.timeout)!=null?o:null,this.socketOptions=(a=t==null?void 0:t.socketOptions)!=null?a:null}async connect(e,t){var d;let{shouldLookup:r,proxy:n,timeout:s}=this;if(!t.host)throw new Error("No `host` defined!");let{host:o}=t,{port:a,lookup:l=KS.lookup}=t;r&&(o=await new Promise((m,g)=>{l(o,{},(y,b)=>{y?g(y):m(b)})}));let c={proxy:n,destination:{host:o,port:typeof a=="number"?a:parseInt(a,10)},command:"connect",timeout:s!=null?s:void 0,socket_options:(d=this.socketOptions)!=null?d:void 0},u=m=>{e.destroy(),f.destroy(),m&&m.destroy()};Qs("Creating socks proxy connection: %o",c);let{socket:f}=await GS.SocksClient.createConnection(c);if(Qs("Successfully created socks proxy connection"),s!==null&&(f.setTimeout(s),f.on("timeout",()=>u())),t.secureEndpoint){Qs("Upgrading socket connection to TLS");let m=JS.connect({...eE(QS(t),"host","path","port"),socket:f});return m.once("error",g=>{Qs("Socket TLS error",g.message),u(m)}),m}return f}};Xs.protocols=["socks","socks4","socks4a","socks5","socks5h"];Pt.SocksProxyAgent=Xs;function eE(i,...e){let t={},r;for(r in i)e.includes(r)||(t[r]=i[r]);return t}});var Wm=x((lN,Gm)=>{"use strict";var{Duplex:tE}=require("stream");function Vm(i){i.emit("close")}function iE(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Hm(i){this.removeListener("error",Hm),this.destroy(),this.listenerCount("error")===0&&this.emit("error",i)}function rE(i,e){let t=!0,r=new tE({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return i.on("message",function(s,o){let a=!o&&r._readableState.objectMode?s.toString():s;r.push(a)||i.pause()}),i.once("error",function(s){r.destroyed||(t=!1,r.destroy(s))}),i.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(n,s){if(i.readyState===i.CLOSED){s(n),process.nextTick(Vm,r);return}let o=!1;i.once("error",function(l){o=!0,s(l)}),i.once("close",function(){o||s(n),process.nextTick(Vm,r)}),t&&i.terminate()},r._final=function(n){if(i.readyState===i.CONNECTING){i.once("open",function(){r._final(n)});return}i._socket!==null&&(i._socket._writableState.finished?(n(),r._readableState.endEmitted&&r.destroy()):(i._socket.once("finish",function(){n()}),i.close()))},r._read=function(){i.isPaused&&i.resume()},r._write=function(n,s,o){if(i.readyState===i.CONNECTING){i.once("open",function(){r._write(n,s,o)});return}i.send(n,o)},r.on("end",iE),r.on("error",Hm),r}Gm.exports=rE});var Ei=x((cN,Ym)=>{"use strict";Ym.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var pn=x((uN,eo)=>{"use strict";var{EMPTY_BUFFER:nE}=Ei(),sc=Buffer[Symbol.species];function sE(i,e){if(i.length===0)return nE;if(i.length===1)return i[0];let t=Buffer.allocUnsafe(e),r=0;for(let n=0;n{"use strict";var Jm=Symbol("kDone"),ac=Symbol("kRun"),lc=class{constructor(e){this[Jm]=()=>{this.pending--,this[ac]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[ac]()}[ac](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[Jm])}}};Zm.exports=lc});var gn=x((hN,ig)=>{"use strict";var dn=require("zlib"),Xm=pn(),aE=Qm(),{kStatusCode:eg}=Ei(),lE=Buffer[Symbol.species],cE=Buffer.from([0,0,255,255]),ro=Symbol("permessage-deflate"),hi=Symbol("total-length"),mn=Symbol("callback"),Oi=Symbol("buffers"),io=Symbol("error"),to,cc=class{constructor(e,t,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!to){let n=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;to=new aE(n)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[mn];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(n=>!(t.serverNoContextTakeover===!1&&n.server_no_context_takeover||n.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>n.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!n.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{let n=t[r];if(n.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(n=n[0],r==="client_max_window_bits"){if(n!==!0){let s=+n;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${r}": ${n}`);n=s}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${n}`)}else if(r==="server_max_window_bits"){let s=+n;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${r}": ${n}`);n=s}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(n!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${n}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=n})}),e}decompress(e,t,r){to.add(n=>{this._decompress(e,t,(s,o)=>{n(),r(s,o)})})}compress(e,t,r){to.add(n=>{this._compress(e,t,(s,o)=>{n(),r(s,o)})})}_decompress(e,t,r){let n=this._isServer?"client":"server";if(!this._inflate){let s=`${n}_max_window_bits`,o=typeof this.params[s]!="number"?dn.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=dn.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[ro]=this,this._inflate[hi]=0,this._inflate[Oi]=[],this._inflate.on("error",fE),this._inflate.on("data",tg)}this._inflate[mn]=r,this._inflate.write(e),t&&this._inflate.write(cE),this._inflate.flush(()=>{let s=this._inflate[io];if(s){this._inflate.close(),this._inflate=null,r(s);return}let o=Xm.concat(this._inflate[Oi],this._inflate[hi]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[hi]=0,this._inflate[Oi]=[],t&&this.params[`${n}_no_context_takeover`]&&this._inflate.reset()),r(null,o)})}_compress(e,t,r){let n=this._isServer?"server":"client";if(!this._deflate){let s=`${n}_max_window_bits`,o=typeof this.params[s]!="number"?dn.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=dn.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[hi]=0,this._deflate[Oi]=[],this._deflate.on("data",uE)}this._deflate[mn]=r,this._deflate.write(e),this._deflate.flush(dn.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=Xm.concat(this._deflate[Oi],this._deflate[hi]);t&&(s=new lE(s.buffer,s.byteOffset,s.length-4)),this._deflate[mn]=null,this._deflate[hi]=0,this._deflate[Oi]=[],t&&this.params[`${n}_no_context_takeover`]&&this._deflate.reset(),r(null,s)})}};ig.exports=cc;function uE(i){this[Oi].push(i),this[hi]+=i.length}function tg(i){if(this[hi]+=i.length,this[ro]._maxPayload<1||this[hi]<=this[ro]._maxPayload){this[Oi].push(i);return}this[io]=new RangeError("Max payload size exceeded"),this[io].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[io][eg]=1009,this.removeListener("data",tg),this.reset()}function fE(i){this[ro]._inflate=null,i[eg]=1007,this[mn](i)}});var vn=x((pN,no)=>{"use strict";var{isUtf8:rg}=require("buffer"),hE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function pE(i){return i>=1e3&&i<=1014&&i!==1004&&i!==1005&&i!==1006||i>=3e3&&i<=4999}function uc(i){let e=i.length,t=0;for(;t=e||(i[t+1]&192)!==128||(i[t+2]&192)!==128||i[t]===224&&(i[t+1]&224)===128||i[t]===237&&(i[t+1]&224)===160)return!1;t+=3}else if((i[t]&248)===240){if(t+3>=e||(i[t+1]&192)!==128||(i[t+2]&192)!==128||(i[t+3]&192)!==128||i[t]===240&&(i[t+1]&240)===128||i[t]===244&&i[t+1]>143||i[t]>244)return!1;t+=4}else return!1;return!0}no.exports={isValidStatusCode:pE,isValidUTF8:uc,tokenChars:hE};if(rg)no.exports.isValidUTF8=function(i){return i.length<24?uc(i):rg(i)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let i=require("utf-8-validate");no.exports.isValidUTF8=function(e){return e.length<32?uc(e):i(e)}}catch{}});var mc=x((dN,ug)=>{"use strict";var{Writable:dE}=require("stream"),ng=gn(),{BINARY_TYPES:mE,EMPTY_BUFFER:sg,kStatusCode:gE,kWebSocket:vE}=Ei(),{concat:fc,toArrayBuffer:yE,unmask:bE}=pn(),{isValidStatusCode:_E,isValidUTF8:og}=vn(),so=Buffer[Symbol.species],Mt=0,ag=1,lg=2,cg=3,hc=4,pc=5,oo=6,dc=class extends dE{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||mE[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[vE]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=Mt}_write(e,t,r){if(this._opcode===8&&this._state==Mt)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e=r.length?t.set(this._buffers.shift(),n):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),n),this._buffers[0]=new so(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case Mt:this.getInfo(e);break;case ag:this.getPayloadLength16(e);break;case lg:this.getPayloadLength64(e);break;case cg:this.getMask();break;case hc:this.getData(e);break;case pc:case oo:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let n=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(n);return}let r=(t[0]&64)===64;if(r&&!this._extensions[ng.extensionName]){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(r){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(!this._fragmented){let n=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let n=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(n);return}if(r){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let n=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(n);return}}else{let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let n=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(n);return}}else if(this._masked){let n=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(n);return}this._payloadLength===126?this._state=ag:this._payloadLength===127?this._state=lg:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>Math.pow(2,21)-1){let n=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(n);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=cg:this._state=hc}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=hc}getData(e){let t=sg;if(this._payloadLength){if(this._bufferedBytes7){this.controlMessage(t,e);return}if(this._compressed){this._state=pc,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[ng.extensionName].decompress(e,this._fin,(n,s)=>{if(n)return t(n);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let o=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(o);return}this._fragments.push(s)}this.dataMessage(t),this._state===Mt&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=Mt;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let n;this._binaryType==="nodebuffer"?n=fc(r,t):this._binaryType==="arraybuffer"?n=yE(fc(r,t)):n=r,this._allowSynchronousEvents?(this.emit("message",n,!0),this._state=Mt):(this._state=oo,setImmediate(()=>{this.emit("message",n,!0),this._state=Mt,this.startLoop(e)}))}else{let n=fc(r,t);if(!this._skipUTF8Validation&&!og(n)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(s);return}this._state===pc||this._allowSynchronousEvents?(this.emit("message",n,!1),this._state=Mt):(this._state=oo,setImmediate(()=>{this.emit("message",n,!1),this._state=Mt,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,sg),this.end();else{let r=e.readUInt16BE(0);if(!_E(r)){let s=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(s);return}let n=new so(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!og(n)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(s);return}this._loop=!1,this.emit("conclude",r,n),this.end()}this._state=Mt;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=Mt):(this._state=oo,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=Mt,this.startLoop(t)}))}createError(e,t,r,n,s){this._loop=!1,this._errored=!0;let o=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=s,o[gE]=n,o}};ug.exports=dc});var vc=x((gN,pg)=>{"use strict";var{Duplex:mN}=require("stream"),{randomFillSync:wE}=require("crypto"),fg=gn(),{EMPTY_BUFFER:xE}=Ei(),{isValidStatusCode:SE}=vn(),{mask:hg,toBuffer:qr}=pn(),Gt=Symbol("kByteLength"),EE=Buffer.alloc(4),ao=8*1024,er,Fr=ao,gc=class i{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let r,n=!1,s=2,o=!1;t.mask&&(r=t.maskBuffer||EE,t.generateMask?t.generateMask(r):(Fr===ao&&(er===void 0&&(er=Buffer.alloc(ao)),wE(er,0,ao),Fr=0),r[0]=er[Fr++],r[1]=er[Fr++],r[2]=er[Fr++],r[3]=er[Fr++]),o=(r[0]|r[1]|r[2]|r[3])===0,s=6);let a;typeof e=="string"?(!t.mask||o)&&t[Gt]!==void 0?a=t[Gt]:(e=Buffer.from(e),a=e.length):(a=e.length,n=t.mask&&t.readOnly&&!o);let l=a;a>=65536?(s+=8,l=127):a>125&&(s+=2,l=126);let c=Buffer.allocUnsafe(n?a+s:s);return c[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(c[0]|=64),c[1]=l,l===126?c.writeUInt16BE(a,2):l===127&&(c[2]=c[3]=0,c.writeUIntBE(a,4,6)),t.mask?(c[1]|=128,c[s-4]=r[0],c[s-3]=r[1],c[s-2]=r[2],c[s-1]=r[3],o?[c,e]:n?(hg(e,r,c,s,a),[c]):(hg(e,r,e,0,a),[c,e])):[c,e]}close(e,t,r,n){let s;if(e===void 0)s=xE;else{if(typeof e!="number"||!SE(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(e,0);else{let a=Buffer.byteLength(t);if(a>123)throw new RangeError("The message must not be greater than 123 bytes");s=Buffer.allocUnsafe(2+a),s.writeUInt16BE(e,0),typeof t=="string"?s.write(t,2):s.set(t,2)}}let o={[Gt]:s.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,s,!1,o,n]):this.sendFrame(i.frame(s,o),n)}ping(e,t,r){let n,s;if(typeof e=="string"?(n=Buffer.byteLength(e),s=!1):(e=qr(e),n=e.length,s=qr.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[Gt]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:s,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(i.frame(e,o),r)}pong(e,t,r){let n,s;if(typeof e=="string"?(n=Buffer.byteLength(e),s=!1):(e=qr(e),n=e.length,s=qr.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[Gt]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:s,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(i.frame(e,o),r)}send(e,t,r){let n=this._extensions[fg.extensionName],s=t.binary?2:1,o=t.compress,a,l;if(typeof e=="string"?(a=Buffer.byteLength(e),l=!1):(e=qr(e),a=e.length,l=qr.readOnly),this._firstFragment?(this._firstFragment=!1,o&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(o=a>=n._threshold),this._compress=o):(o=!1,s=0),t.fin&&(this._firstFragment=!0),n){let c={[Gt]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:l,rsv1:o};this._deflating?this.enqueue([this.dispatch,e,this._compress,c,r]):this.dispatch(e,this._compress,c,r)}else this.sendFrame(i.frame(e,{[Gt]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:l,rsv1:!1}),r)}dispatch(e,t,r,n){if(!t){this.sendFrame(i.frame(e,r),n);return}let s=this._extensions[fg.extensionName];this._bufferedBytes+=r[Gt],this._deflating=!0,s.compress(e,r.fin,(o,a)=>{if(this._socket.destroyed){let l=new Error("The socket was closed while data was being compressed");typeof n=="function"&&n(l);for(let c=0;c{"use strict";var{kForOnEventAttribute:yn,kListener:yc}=Ei(),dg=Symbol("kCode"),mg=Symbol("kData"),gg=Symbol("kError"),vg=Symbol("kMessage"),yg=Symbol("kReason"),Dr=Symbol("kTarget"),bg=Symbol("kType"),_g=Symbol("kWasClean"),pi=class{constructor(e){this[Dr]=null,this[bg]=e}get target(){return this[Dr]}get type(){return this[bg]}};Object.defineProperty(pi.prototype,"target",{enumerable:!0});Object.defineProperty(pi.prototype,"type",{enumerable:!0});var tr=class extends pi{constructor(e,t={}){super(e),this[dg]=t.code===void 0?0:t.code,this[yg]=t.reason===void 0?"":t.reason,this[_g]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[dg]}get reason(){return this[yg]}get wasClean(){return this[_g]}};Object.defineProperty(tr.prototype,"code",{enumerable:!0});Object.defineProperty(tr.prototype,"reason",{enumerable:!0});Object.defineProperty(tr.prototype,"wasClean",{enumerable:!0});var jr=class extends pi{constructor(e,t={}){super(e),this[gg]=t.error===void 0?null:t.error,this[vg]=t.message===void 0?"":t.message}get error(){return this[gg]}get message(){return this[vg]}};Object.defineProperty(jr.prototype,"error",{enumerable:!0});Object.defineProperty(jr.prototype,"message",{enumerable:!0});var bn=class extends pi{constructor(e,t={}){super(e),this[mg]=t.data===void 0?null:t.data}get data(){return this[mg]}};Object.defineProperty(bn.prototype,"data",{enumerable:!0});var OE={addEventListener(i,e,t={}){for(let n of this.listeners(i))if(!t[yn]&&n[yc]===e&&!n[yn])return;let r;if(i==="message")r=function(s,o){let a=new bn("message",{data:o?s:s.toString()});a[Dr]=this,lo(e,this,a)};else if(i==="close")r=function(s,o){let a=new tr("close",{code:s,reason:o.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[Dr]=this,lo(e,this,a)};else if(i==="error")r=function(s){let o=new jr("error",{error:s,message:s.message});o[Dr]=this,lo(e,this,o)};else if(i==="open")r=function(){let s=new pi("open");s[Dr]=this,lo(e,this,s)};else return;r[yn]=!!t[yn],r[yc]=e,t.once?this.once(i,r):this.on(i,r)},removeEventListener(i,e){for(let t of this.listeners(i))if(t[yc]===e&&!t[yn]){this.removeListener(i,t);break}}};wg.exports={CloseEvent:tr,ErrorEvent:jr,Event:pi,EventTarget:OE,MessageEvent:bn};function lo(i,e,t){typeof i=="object"&&i.handleEvent?i.handleEvent.call(i,t):i.call(e,t)}});var bc=x((yN,Sg)=>{"use strict";var{tokenChars:_n}=vn();function ei(i,e,t){i[e]===void 0?i[e]=[t]:i[e].push(t)}function kE(i){let e=Object.create(null),t=Object.create(null),r=!1,n=!1,s=!1,o,a,l=-1,c=-1,u=-1,f=0;for(;f{let t=i[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(n=>{let s=r[n];return Array.isArray(s)||(s=[s]),s.map(o=>o===!0?n:`${n}=${o}`).join("; ")})).join("; ")).join(", ")}).join(", ")}Sg.exports={format:CE,parse:kE}});var Ec=x((wN,Rg)=>{"use strict";var TE=require("events"),AE=require("https"),IE=require("http"),kg=require("net"),NE=require("tls"),{randomBytes:BE,createHash:LE}=require("crypto"),{Duplex:bN,Readable:_N}=require("stream"),{URL:_c}=require("url"),ki=gn(),RE=mc(),PE=vc(),{BINARY_TYPES:Eg,EMPTY_BUFFER:co,GUID:ME,kForOnEventAttribute:wc,kListener:qE,kStatusCode:FE,kWebSocket:st,NOOP:Cg}=Ei(),{EventTarget:{addEventListener:DE,removeEventListener:jE}}=xg(),{format:UE,parse:$E}=bc(),{toBuffer:VE}=pn(),HE=30*1e3,Tg=Symbol("kAborted"),xc=[8,13],di=["CONNECTING","OPEN","CLOSING","CLOSED"],GE=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,De=class i extends TE{constructor(e,t,r){super(),this._binaryType=Eg[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=co,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=i.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(r=t,t=[]):t=[t]),Ag(this,e,t,r)):(this._autoPong=r.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){Eg.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let n=new RE({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new PE(e,this._extensions,r.generateMask),this._receiver=n,this._socket=e,n[st]=this,e[st]=this,n.on("conclude",KE),n.on("drain",zE),n.on("error",JE),n.on("message",ZE),n.on("ping",QE),n.on("pong",XE),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Ng),e.on("data",fo),e.on("end",Bg),e.on("error",Lg),this._readyState=i.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=i.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[ki.extensionName]&&this._extensions[ki.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=i.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==i.CLOSED){if(this.readyState===i.CONNECTING){kt(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===i.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=i.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),HE)}}pause(){this.readyState===i.CONNECTING||this.readyState===i.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===i.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==i.OPEN){Sc(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||co,t,r)}pong(e,t,r){if(this.readyState===i.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==i.OPEN){Sc(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||co,t,r)}resume(){this.readyState===i.CONNECTING||this.readyState===i.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===i.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(r=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==i.OPEN){Sc(this,e,r);return}let n={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[ki.extensionName]||(n.compress=!1),this._sender.send(e||co,n,r)}terminate(){if(this.readyState!==i.CLOSED){if(this.readyState===i.CONNECTING){kt(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=i.CLOSING,this._socket.destroy())}}};Object.defineProperty(De,"CONNECTING",{enumerable:!0,value:di.indexOf("CONNECTING")});Object.defineProperty(De.prototype,"CONNECTING",{enumerable:!0,value:di.indexOf("CONNECTING")});Object.defineProperty(De,"OPEN",{enumerable:!0,value:di.indexOf("OPEN")});Object.defineProperty(De.prototype,"OPEN",{enumerable:!0,value:di.indexOf("OPEN")});Object.defineProperty(De,"CLOSING",{enumerable:!0,value:di.indexOf("CLOSING")});Object.defineProperty(De.prototype,"CLOSING",{enumerable:!0,value:di.indexOf("CLOSING")});Object.defineProperty(De,"CLOSED",{enumerable:!0,value:di.indexOf("CLOSED")});Object.defineProperty(De.prototype,"CLOSED",{enumerable:!0,value:di.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(i=>{Object.defineProperty(De.prototype,i,{enumerable:!0})});["open","error","close","message"].forEach(i=>{Object.defineProperty(De.prototype,`on${i}`,{enumerable:!0,get(){for(let e of this.listeners(i))if(e[wc])return e[qE];return null},set(e){for(let t of this.listeners(i))if(t[wc]){this.removeListener(i,t);break}typeof e=="function"&&this.addEventListener(i,e,{[wc]:!0})}})});De.prototype.addEventListener=DE;De.prototype.removeEventListener=jE;Rg.exports=De;function Ag(i,e,t,r){let n={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:xc[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(i._autoPong=n.autoPong,!xc.includes(n.protocolVersion))throw new RangeError(`Unsupported protocol version: ${n.protocolVersion} (supported versions: ${xc.join(", ")})`);let s;if(e instanceof _c)s=e;else try{s=new _c(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}s.protocol==="http:"?s.protocol="ws:":s.protocol==="https:"&&(s.protocol="wss:"),i._url=s.href;let o=s.protocol==="wss:",a=s.protocol==="ws+unix:",l;if(s.protocol!=="ws:"&&!o&&!a?l=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:a&&!s.pathname?l="The URL's pathname is empty":s.hash&&(l="The URL contains a fragment identifier"),l){let y=new SyntaxError(l);if(i._redirects===0)throw y;uo(i,y);return}let c=o?443:80,u=BE(16).toString("base64"),f=o?AE.request:IE.request,d=new Set,m;if(n.createConnection=n.createConnection||(o?YE:WE),n.defaultPort=n.defaultPort||c,n.port=s.port||c,n.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,n.headers={...n.headers,"Sec-WebSocket-Version":n.protocolVersion,"Sec-WebSocket-Key":u,Connection:"Upgrade",Upgrade:"websocket"},n.path=s.pathname+s.search,n.timeout=n.handshakeTimeout,n.perMessageDeflate&&(m=new ki(n.perMessageDeflate!==!0?n.perMessageDeflate:{},!1,n.maxPayload),n.headers["Sec-WebSocket-Extensions"]=UE({[ki.extensionName]:m.offer()})),t.length){for(let y of t){if(typeof y!="string"||!GE.test(y)||d.has(y))throw new SyntaxError("An invalid or duplicated subprotocol was specified");d.add(y)}n.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(n.origin&&(n.protocolVersion<13?n.headers["Sec-WebSocket-Origin"]=n.origin:n.headers.Origin=n.origin),(s.username||s.password)&&(n.auth=`${s.username}:${s.password}`),a){let y=n.path.split(":");n.socketPath=y[0],n.path=y[1]}let g;if(n.followRedirects){if(i._redirects===0){i._originalIpc=a,i._originalSecure=o,i._originalHostOrSocketPath=a?n.socketPath:s.host;let y=r&&r.headers;if(r={...r,headers:{}},y)for(let[b,w]of Object.entries(y))r.headers[b.toLowerCase()]=w}else if(i.listenerCount("redirect")===0){let y=a?i._originalIpc?n.socketPath===i._originalHostOrSocketPath:!1:i._originalIpc?!1:s.host===i._originalHostOrSocketPath;(!y||i._originalSecure&&!o)&&(delete n.headers.authorization,delete n.headers.cookie,y||delete n.headers.host,n.auth=void 0)}n.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(n.auth).toString("base64")),g=i._req=f(n),i._redirects&&i.emit("redirect",i.url,g)}else g=i._req=f(n);n.timeout&&g.on("timeout",()=>{kt(i,g,"Opening handshake has timed out")}),g.on("error",y=>{g===null||g[Tg]||(g=i._req=null,uo(i,y))}),g.on("response",y=>{let b=y.headers.location,w=y.statusCode;if(b&&n.followRedirects&&w>=300&&w<400){if(++i._redirects>n.maxRedirects){kt(i,g,"Maximum redirects exceeded");return}g.abort();let S;try{S=new _c(b,e)}catch{let O=new SyntaxError(`Invalid URL: ${b}`);uo(i,O);return}Ag(i,S,t,r)}else i.emit("unexpected-response",g,y)||kt(i,g,`Unexpected server response: ${y.statusCode}`)}),g.on("upgrade",(y,b,w)=>{if(i.emit("upgrade",y),i.readyState!==De.CONNECTING)return;g=i._req=null;let S=y.headers.upgrade;if(S===void 0||S.toLowerCase()!=="websocket"){kt(i,b,"Invalid Upgrade header");return}let k=LE("sha1").update(u+ME).digest("base64");if(y.headers["sec-websocket-accept"]!==k){kt(i,b,"Invalid Sec-WebSocket-Accept header");return}let O=y.headers["sec-websocket-protocol"],E;if(O!==void 0?d.size?d.has(O)||(E="Server sent an invalid subprotocol"):E="Server sent a subprotocol but none was requested":d.size&&(E="Server sent no subprotocol"),E){kt(i,b,E);return}O&&(i._protocol=O);let R=y.headers["sec-websocket-extensions"];if(R!==void 0){if(!m){kt(i,b,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let T;try{T=$E(R)}catch{kt(i,b,"Invalid Sec-WebSocket-Extensions header");return}let A=Object.keys(T);if(A.length!==1||A[0]!==ki.extensionName){kt(i,b,"Server indicated an extension that was not requested");return}try{m.accept(T[ki.extensionName])}catch{kt(i,b,"Invalid Sec-WebSocket-Extensions header");return}i._extensions[ki.extensionName]=m}i.setSocket(b,w,{allowSynchronousEvents:n.allowSynchronousEvents,generateMask:n.generateMask,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation})}),n.finishRequest?n.finishRequest(g,i):g.end()}function uo(i,e){i._readyState=De.CLOSING,i.emit("error",e),i.emitClose()}function WE(i){return i.path=i.socketPath,kg.connect(i)}function YE(i){return i.path=void 0,!i.servername&&i.servername!==""&&(i.servername=kg.isIP(i.host)?"":i.host),NE.connect(i)}function kt(i,e,t){i._readyState=De.CLOSING;let r=new Error(t);Error.captureStackTrace(r,kt),e.setHeader?(e[Tg]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(uo,i,r)):(e.destroy(r),e.once("error",i.emit.bind(i,"error")),e.once("close",i.emitClose.bind(i)))}function Sc(i,e,t){if(e){let r=VE(e).length;i._socket?i._sender._bufferedBytes+=r:i._bufferedAmount+=r}if(t){let r=new Error(`WebSocket is not open: readyState ${i.readyState} (${di[i.readyState]})`);process.nextTick(t,r)}}function KE(i,e){let t=this[st];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=i,t._socket[st]!==void 0&&(t._socket.removeListener("data",fo),process.nextTick(Ig,t._socket),i===1005?t.close():t.close(i,e))}function zE(){let i=this[st];i.isPaused||i._socket.resume()}function JE(i){let e=this[st];e._socket[st]!==void 0&&(e._socket.removeListener("data",fo),process.nextTick(Ig,e._socket),e.close(i[FE])),e.emit("error",i)}function Og(){this[st].emitClose()}function ZE(i,e){this[st].emit("message",i,e)}function QE(i){let e=this[st];e._autoPong&&e.pong(i,!this._isServer,Cg),e.emit("ping",i)}function XE(i){this[st].emit("pong",i)}function Ig(i){i.resume()}function Ng(){let i=this[st];this.removeListener("close",Ng),this.removeListener("data",fo),this.removeListener("end",Bg),i._readyState=De.CLOSING;let e;!this._readableState.endEmitted&&!i._closeFrameReceived&&!i._receiver._writableState.errorEmitted&&(e=i._socket.read())!==null&&i._receiver.write(e),i._receiver.end(),this[st]=void 0,clearTimeout(i._closeTimer),i._receiver._writableState.finished||i._receiver._writableState.errorEmitted?i.emitClose():(i._receiver.on("error",Og),i._receiver.on("finish",Og))}function fo(i){this[st]._receiver.write(i)||this.pause()}function Bg(){let i=this[st];i._readyState=De.CLOSING,i._receiver.end(),this.end()}function Lg(){let i=this[st];this.removeListener("error",Lg),this.on("error",Cg),i&&(i._readyState=De.CLOSING,this.destroy())}});var Mg=x((xN,Pg)=>{"use strict";var{tokenChars:eO}=vn();function tO(i){let e=new Set,t=-1,r=-1,n=0;for(n;n{"use strict";var iO=require("events"),ho=require("http"),{Duplex:SN}=require("stream"),{createHash:rO}=require("crypto"),qg=bc(),ir=gn(),nO=Mg(),sO=Ec(),{GUID:oO,kWebSocket:aO}=Ei(),lO=/^[+/0-9A-Za-z]{22}==$/,Fg=0,Dg=1,Ug=2,Oc=class extends iO{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:sO,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=ho.createServer((r,n)=>{let s=ho.STATUS_CODES[426];n.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),n.end(s)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=cO(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(n,s,o)=>{this.handleUpgrade(n,s,o,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=Fg}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===Ug){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(wn,this);return}if(e&&this.once("close",e),this._state!==Dg)if(this._state=Dg,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(wn,this):process.nextTick(wn,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{wn(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,n){t.on("error",jg);let s=e.headers["sec-websocket-key"],o=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){rr(this,e,t,405,"Invalid HTTP method");return}if(o===void 0||o.toLowerCase()!=="websocket"){rr(this,e,t,400,"Invalid Upgrade header");return}if(s===void 0||!lO.test(s)){rr(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==8&&a!==13){rr(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(e)){xn(t,400);return}let l=e.headers["sec-websocket-protocol"],c=new Set;if(l!==void 0)try{c=nO.parse(l)}catch{rr(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let u=e.headers["sec-websocket-extensions"],f={};if(this.options.perMessageDeflate&&u!==void 0){let d=new ir(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let m=qg.parse(u);m[ir.extensionName]&&(d.accept(m[ir.extensionName]),f[ir.extensionName]=d)}catch{rr(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let d={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(d,(m,g,y,b)=>{if(!m)return xn(t,g||401,y,b);this.completeUpgrade(f,s,c,e,t,r,n)});return}if(!this.options.verifyClient(d))return xn(t,401)}this.completeUpgrade(f,s,c,e,t,r,n)}completeUpgrade(e,t,r,n,s,o,a){if(!s.readable||!s.writable)return s.destroy();if(s[aO])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Fg)return xn(s,503);let c=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${rO("sha1").update(t+oO).digest("base64")}`],u=new this.options.WebSocket(null,void 0,this.options);if(r.size){let f=this.options.handleProtocols?this.options.handleProtocols(r,n):r.values().next().value;f&&(c.push(`Sec-WebSocket-Protocol: ${f}`),u._protocol=f)}if(e[ir.extensionName]){let f=e[ir.extensionName].params,d=qg.format({[ir.extensionName]:[f]});c.push(`Sec-WebSocket-Extensions: ${d}`),u._extensions=e}this.emit("headers",c,n),s.write(c.concat(`\r -`).join(`\r -`)),s.removeListener("error",jg),u.setSocket(s,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(u),u.on("close",()=>{this.clients.delete(u),this._shouldEmitClose&&!this.clients.size&&process.nextTick(wn,this)})),a(u,n)}};$g.exports=Oc;function cO(i,e){for(let t of Object.keys(e))i.on(t,e[t]);return function(){for(let r of Object.keys(e))i.removeListener(r,e[r])}}function wn(i){i._state=Ug,i.emit("close")}function jg(){this.destroy()}function xn(i,e,t,r){t=t||ho.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...r},i.once("finish",i.destroy),i.end(`HTTP/1.1 ${e} ${ho.STATUS_CODES[e]}\r -`+Object.keys(r).map(n=>`${n}: ${r[n]}`).join(`\r -`)+`\r -\r -`+t)}function rr(i,e,t,r,n){if(i.listenerCount("wsClientError")){let s=new Error(n);Error.captureStackTrace(s,rr),i.emit("wsClientError",s,t,e)}else xn(t,r,n)}});var Se=x(tt=>{"use strict";var Ac=Symbol.for("yaml.alias"),Wg=Symbol.for("yaml.document"),po=Symbol.for("yaml.map"),Yg=Symbol.for("yaml.pair"),Ic=Symbol.for("yaml.scalar"),mo=Symbol.for("yaml.seq"),mi=Symbol.for("yaml.node.type"),fO=i=>!!i&&typeof i=="object"&&i[mi]===Ac,hO=i=>!!i&&typeof i=="object"&&i[mi]===Wg,pO=i=>!!i&&typeof i=="object"&&i[mi]===po,dO=i=>!!i&&typeof i=="object"&&i[mi]===Yg,Kg=i=>!!i&&typeof i=="object"&&i[mi]===Ic,mO=i=>!!i&&typeof i=="object"&&i[mi]===mo;function zg(i){if(i&&typeof i=="object")switch(i[mi]){case po:case mo:return!0}return!1}function gO(i){if(i&&typeof i=="object")switch(i[mi]){case Ac:case po:case Ic:case mo:return!0}return!1}var vO=i=>(Kg(i)||zg(i))&&!!i.anchor;tt.ALIAS=Ac;tt.DOC=Wg;tt.MAP=po;tt.NODE_TYPE=mi;tt.PAIR=Yg;tt.SCALAR=Ic;tt.SEQ=mo;tt.hasAnchor=vO;tt.isAlias=fO;tt.isCollection=zg;tt.isDocument=hO;tt.isMap=pO;tt.isNode=gO;tt.isPair=dO;tt.isScalar=Kg;tt.isSeq=mO});var Sn=x(Nc=>{"use strict";var Ge=Se(),vt=Symbol("break visit"),Jg=Symbol("skip children"),ti=Symbol("remove node");function go(i,e){let t=Zg(e);Ge.isDocument(i)?Ur(null,i.contents,t,Object.freeze([i]))===ti&&(i.contents=null):Ur(null,i,t,Object.freeze([]))}go.BREAK=vt;go.SKIP=Jg;go.REMOVE=ti;function Ur(i,e,t,r){let n=Qg(i,e,t,r);if(Ge.isNode(n)||Ge.isPair(n))return Xg(i,r,n),Ur(i,n,t,r);if(typeof n!="symbol"){if(Ge.isCollection(e)){r=Object.freeze(r.concat(e));for(let s=0;s{"use strict";var e0=Se(),yO=Sn(),bO={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},_O=i=>i.replace(/[!,[\]{}]/g,e=>bO[e]),En=class i{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i.defaultYaml,e),this.tags=Object.assign({},i.defaultTags,t)}clone(){let e=new i(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new i(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:i.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i.defaultTags),this.atNextDocument=!1);let r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(r.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{let o=/^\d+\.\d+$/.test(s);return t(6,`Unsupported YAML version ${s}`,o),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,r,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let s=this.tags[r];if(s)try{return s+decodeURIComponent(n)}catch(o){return t(String(o)),null}return r==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+_O(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags),n;if(e&&r.length>0&&e0.isNode(e.contents)){let s={};yO.visit(e.contents,(o,a)=>{e0.isNode(a)&&a.tag&&(s[a.tag]=!0)}),n=Object.keys(s)}else n=[];for(let[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!e||n.some(a=>a.startsWith(o)))&&t.push(`%TAG ${s} ${o}`);return t.join(` -`)}};En.defaultYaml={explicit:!1,version:"1.2"};En.defaultTags={"!!":"tag:yaml.org,2002:"};t0.Directives=En});var yo=x(On=>{"use strict";var i0=Se(),wO=Sn();function xO(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(i)}`;throw new Error(t)}return!0}function r0(i){let e=new Set;return wO.visit(i,{Value(t,r){r.anchor&&e.add(r.anchor)}}),e}function n0(i,e){for(let t=1;;++t){let r=`${i}${t}`;if(!e.has(r))return r}}function SO(i,e){let t=[],r=new Map,n=null;return{onAnchor:s=>{t.push(s),n||(n=r0(i));let o=n0(e,n);return n.add(o),o},setAnchors:()=>{for(let s of t){let o=r.get(s);if(typeof o=="object"&&o.anchor&&(i0.isScalar(o.node)||i0.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}}},sourceObjects:r}}On.anchorIsValid=xO;On.anchorNames=r0;On.createNodeAnchors=SO;On.findNewAnchor=n0});var Lc=x(s0=>{"use strict";function kn(i,e,t,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let n=0,s=r.length;n{"use strict";var EO=Se();function o0(i,e,t){if(Array.isArray(i))return i.map((r,n)=>o0(r,String(n),t));if(i&&typeof i.toJSON=="function"){if(!t||!EO.hasAnchor(i))return i.toJSON(e,t);let r={aliasCount:0,count:1,res:void 0};t.anchors.set(i,r),t.onCreate=s=>{r.res=s,delete t.onCreate};let n=i.toJSON(e,t);return t.onCreate&&t.onCreate(n),n}return typeof i=="bigint"&&!(t!=null&&t.keep)?Number(i):i}a0.toJS=o0});var bo=x(c0=>{"use strict";var OO=Lc(),l0=Se(),kO=Ci(),Rc=class{constructor(e){Object.defineProperty(this,l0.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:n,reviver:s}={}){if(!l0.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=kO.toJS(this,"",o);if(typeof n=="function")for(let{count:l,res:c}of o.anchors.values())n(c,l);return typeof s=="function"?OO.applyReviver(s,{"":a},"",a):a}};c0.NodeBase=Rc});var Cn=x(f0=>{"use strict";var CO=yo(),u0=Sn(),_o=Se(),TO=bo(),AO=Ci(),Pc=class extends TO.NodeBase{constructor(e){super(_o.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return u0.visit(e,{Node:(r,n)=>{if(n===this)return u0.visit.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:r,doc:n,maxAliasCount:s}=t,o=this.resolve(n);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=r.get(o);if(a||(AO.toJS(o,null,t),a=r.get(o)),!a||a.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=wo(n,o,r)),a.count*a.aliasCount>s)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,r){let n=`*${this.source}`;if(e){if(CO.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${n} `}return n}};function wo(i,e,t){if(_o.isAlias(e)){let r=e.resolve(i),n=t&&r&&t.get(r);return n?n.count*n.aliasCount:0}else if(_o.isCollection(e)){let r=0;for(let n of e.items){let s=wo(i,n,t);s>r&&(r=s)}return r}else if(_o.isPair(e)){let r=wo(i,e.key,t),n=wo(i,e.value,t);return Math.max(r,n)}return 1}f0.Alias=Pc});var je=x(Mc=>{"use strict";var IO=Se(),NO=bo(),BO=Ci(),LO=i=>!i||typeof i!="function"&&typeof i!="object",Ti=class extends NO.NodeBase{constructor(e){super(IO.SCALAR),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:BO.toJS(this.value,e,t)}toString(){return String(this.value)}};Ti.BLOCK_FOLDED="BLOCK_FOLDED";Ti.BLOCK_LITERAL="BLOCK_LITERAL";Ti.PLAIN="PLAIN";Ti.QUOTE_DOUBLE="QUOTE_DOUBLE";Ti.QUOTE_SINGLE="QUOTE_SINGLE";Mc.Scalar=Ti;Mc.isScalarValue=LO});var Tn=x(p0=>{"use strict";var RO=Cn(),nr=Se(),h0=je(),PO="tag:yaml.org,2002:";function MO(i,e,t){var r;if(e){let n=t.filter(o=>o.tag===e),s=(r=n.find(o=>!o.format))!=null?r:n[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return t.find(n=>{var s;return((s=n.identify)==null?void 0:s.call(n,i))&&!n.format})}function qO(i,e,t){var f,d,m;if(nr.isDocument(i)&&(i=i.contents),nr.isNode(i))return i;if(nr.isPair(i)){let g=(d=(f=t.schema[nr.MAP]).createNode)==null?void 0:d.call(f,t.schema,null,t);return g.items.push(i),g}(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt!="undefined"&&i instanceof BigInt)&&(i=i.valueOf());let{aliasDuplicateObjects:r,onAnchor:n,onTagObj:s,schema:o,sourceObjects:a}=t,l;if(r&&i&&typeof i=="object"){if(l=a.get(i),l)return l.anchor||(l.anchor=n(i)),new RO.Alias(l.anchor);l={anchor:null,node:null},a.set(i,l)}e!=null&&e.startsWith("!!")&&(e=PO+e.slice(2));let c=MO(i,e,o.tags);if(!c){if(i&&typeof i.toJSON=="function"&&(i=i.toJSON()),!i||typeof i!="object"){let g=new h0.Scalar(i);return l&&(l.node=g),g}c=i instanceof Map?o[nr.MAP]:Symbol.iterator in Object(i)?o[nr.SEQ]:o[nr.MAP]}s&&(s(c),delete t.onTagObj);let u=c!=null&&c.createNode?c.createNode(t.schema,i,t):typeof((m=c==null?void 0:c.nodeClass)==null?void 0:m.from)=="function"?c.nodeClass.from(t.schema,i,t):new h0.Scalar(i);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}p0.createNode=qO});var So=x(xo=>{"use strict";var FO=Tn(),ii=Se(),DO=bo();function qc(i,e,t){let r=t;for(let n=e.length-1;n>=0;--n){let s=e[n];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){let o=[];o[s]=r,r=o}else r=new Map([[s,r]])}return FO.createNode(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}var d0=i=>i==null||typeof i=="object"&&!!i[Symbol.iterator]().next().done,Fc=class extends DO.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(r=>ii.isNode(r)||ii.isPair(r)?r.clone(e):r),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(d0(e))this.add(t);else{let[r,...n]=e,s=this.get(r,!0);if(ii.isCollection(s))s.addIn(n,t);else if(s===void 0&&this.schema)this.set(r,qc(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let n=this.get(t,!0);if(ii.isCollection(n))return n.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...n]=e,s=this.get(r,!0);return n.length===0?!t&&ii.isScalar(s)?s.value:s:ii.isCollection(s)?s.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!ii.isPair(t))return!1;let r=t.value;return r==null||e&&ii.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let n=this.get(t,!0);return ii.isCollection(n)?n.hasIn(r):!1}setIn(e,t){let[r,...n]=e;if(n.length===0)this.set(r,t);else{let s=this.get(r,!0);if(ii.isCollection(s))s.setIn(n,t);else if(s===void 0&&this.schema)this.set(r,qc(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}};xo.Collection=Fc;xo.collectionFromPath=qc;xo.isEmptyPath=d0});var An=x(Eo=>{"use strict";var jO=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function Dc(i,e){return/^\n+$/.test(i)?i.substring(1):e?i.replace(/^(?! *$)/gm,e):i}var UO=(i,e,t)=>i.endsWith(` -`)?Dc(t,e):t.includes(` -`)?` -`+Dc(t,e):(i.endsWith(" ")?"":" ")+t;Eo.indentComment=Dc;Eo.lineComment=UO;Eo.stringifyComment=jO});var g0=x(In=>{"use strict";var $O="flow",jc="block",Oo="quoted";function VO(i,e,t="flow",{indentAtStart:r,lineWidth:n=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!n||n<0)return i;nn-Math.max(2,s)?c.push(0):f=n-r);let d,m,g=!1,y=-1,b=-1,w=-1;t===jc&&(y=m0(i,y,e.length),y!==-1&&(f=y+l));for(let k;k=i[y+=1];){if(t===Oo&&k==="\\"){switch(b=y,i[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}w=y}if(k===` -`)t===jc&&(y=m0(i,y,e.length)),f=y+e.length+l,d=void 0;else{if(k===" "&&m&&m!==" "&&m!==` -`&&m!==" "){let O=i[y+1];O&&O!==" "&&O!==` -`&&O!==" "&&(d=y)}if(y>=f)if(d)c.push(d),f=d+l,d=void 0;else if(t===Oo){for(;m===" "||m===" ";)m=k,k=i[y+=1],g=!0;let O=y>w+1?y-2:b-1;if(u[O])return i;c.push(O),u[O]=!0,f=O+l,d=void 0}else g=!0}m=k}if(g&&a&&a(),c.length===0)return i;o&&o();let S=i.slice(0,c[0]);for(let k=0;k{"use strict";var ri=je(),Ai=g0(),Co=(i,e)=>({indentAtStart:e?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth}),To=i=>/^(%|---|\.\.\.)/m.test(i);function HO(i,e,t){if(!e||e<0)return!1;let r=e-t,n=i.length;if(n<=r)return!1;for(let s=0,o=0;sr)return!0;if(o=s+1,n-o<=r)return!1}return!0}function Nn(i,e){let t=JSON.stringify(i);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:r}=e,n=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(To(i)?" ":""),o="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(o+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{o+=t.slice(a,l);let u=t.substr(l+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(r||t[l+2]==='"'||t.length -`;let f,d;for(d=t.length;d>0;--d){let R=t[d-1];if(R!==` -`&&R!==" "&&R!==" ")break}let m=t.substring(d),g=m.indexOf(` -`);g===-1?f="-":t===m||g!==m.length-1?(f="+",s&&s()):f="",m&&(t=t.slice(0,-m.length),m[m.length-1]===` -`&&(m=m.slice(0,-1)),m=m.replace($c,`$&${c}`));let y=!1,b,w=-1;for(b=0;b")+(y?c?"2":"1":"")+f;if(i&&(O+=" "+a(i.replace(/ ?[\r\n]+/g," ")),n&&n()),u)return t=t.replace(/\n+/g,`$&${c}`),`${O} -${c}${S}${t}${m}`;t=t.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let E=Ai.foldFlowLines(`${S}${t}${m}`,c,Ai.FOLD_BLOCK,Co(r,!0));return`${O} -${c}${E}`}function GO(i,e,t,r){let{type:n,value:s}=i,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&s.includes(` -`)||u&&/[[\]{},]/.test(s))return Vr(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||u||!s.includes(` -`)?Vr(s,e):ko(i,e,t,r);if(!a&&!u&&n!==ri.Scalar.PLAIN&&s.includes(` -`))return ko(i,e,t,r);if(To(s)){if(l==="")return e.forceBlockIndent=!0,ko(i,e,t,r);if(a&&l===c)return Vr(s,e)}let f=s.replace(/\n+/g,`$& -${l}`);if(o){let d=y=>{var b;return y.default&&y.tag!=="tag:yaml.org,2002:str"&&((b=y.test)==null?void 0:b.test(f))},{compat:m,tags:g}=e.doc.schema;if(g.some(d)||m!=null&&m.some(d))return Vr(s,e)}return a?f:Ai.foldFlowLines(f,l,Ai.FOLD_FLOW,Co(e,!1))}function WO(i,e,t,r){let{implicitKey:n,inFlow:s}=e,o=typeof i.value=="string"?i:Object.assign({},i,{value:String(i.value)}),{type:a}=i;a!==ri.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=ri.Scalar.QUOTE_DOUBLE);let l=u=>{switch(u){case ri.Scalar.BLOCK_FOLDED:case ri.Scalar.BLOCK_LITERAL:return n||s?Vr(o.value,e):ko(o,e,t,r);case ri.Scalar.QUOTE_DOUBLE:return Nn(o.value,e);case ri.Scalar.QUOTE_SINGLE:return Uc(o.value,e);case ri.Scalar.PLAIN:return GO(o,e,t,r);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:f}=e.options,d=n&&u||f;if(c=l(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}v0.stringifyString=WO});var Ln=x(Vc=>{"use strict";var YO=yo(),Ii=Se(),KO=An(),zO=Bn();function JO(i,e){let t=Object.assign({blockQuote:!0,commentString:KO.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},i.schema.toStringOptions,e),r;switch(t.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:i,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:r,options:t}}function ZO(i,e){var n,s,o,a;if(e.tag){let l=i.filter(c=>c.tag===e.tag);if(l.length>0)return(n=l.find(c=>c.format===e.format))!=null?n:l[0]}let t,r;if(Ii.isScalar(e)){r=e.value;let l=i.filter(c=>{var u;return(u=c.identify)==null?void 0:u.call(c,r)});if(l.length>1){let c=l.filter(u=>u.test);c.length>0&&(l=c)}t=(s=l.find(c=>c.format===e.format))!=null?s:l.find(c=>!c.format)}else r=e,t=i.find(l=>l.nodeClass&&r instanceof l.nodeClass);if(!t){let l=(a=(o=r==null?void 0:r.constructor)==null?void 0:o.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${l} value`)}return t}function QO(i,e,{anchors:t,doc:r}){if(!r.directives)return"";let n=[],s=(Ii.isScalar(i)||Ii.isCollection(i))&&i.anchor;s&&YO.anchorIsValid(s)&&(t.add(s),n.push(`&${s}`));let o=i.tag?i.tag:e.default?null:e.tag;return o&&n.push(r.directives.tagString(o)),n.join(" ")}function XO(i,e,t,r){var l,c;if(Ii.isPair(i))return i.toString(e,t,r);if(Ii.isAlias(i)){if(e.doc.directives)return i.toString(e);if((l=e.resolvedAliases)!=null&&l.has(i))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(i):e.resolvedAliases=new Set([i]),i=i.resolve(e.doc)}let n,s=Ii.isNode(i)?i:e.doc.createNode(i,{onTagObj:u=>n=u});n||(n=ZO(e.doc.schema.tags,s));let o=QO(s,n,e);o.length>0&&(e.indentAtStart=((c=e.indentAtStart)!=null?c:0)+o.length+1);let a=typeof n.stringify=="function"?n.stringify(s,e,t,r):Ii.isScalar(s)?zO.stringifyString(s,e,t,r):s.toString(e,t,r);return o?Ii.isScalar(s)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o} -${e.indent}${a}`:a}Vc.createStringifyContext=JO;Vc.stringify=XO});var w0=x(_0=>{"use strict";var gi=Se(),y0=je(),b0=Ln(),Rn=An();function ek({key:i,value:e},t,r,n){var T,A;let{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:f}}=t,d=gi.isNode(i)&&i.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(gi.isCollection(i)||!gi.isNode(i)&&typeof i=="object"){let C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let m=!f&&(!i||d&&e==null&&!t.inFlow||gi.isCollection(i)||(gi.isScalar(i)?i.type===y0.Scalar.BLOCK_FOLDED||i.type===y0.Scalar.BLOCK_LITERAL:typeof i=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!m&&(f||!s),indent:a+l});let g=!1,y=!1,b=b0.stringify(i,t,()=>g=!0,()=>y=!0);if(!m&&!t.inFlow&&b.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(t.inFlow){if(s||e==null)return g&&r&&r(),b===""?"?":m?`? ${b}`:b}else if(s&&!f||e==null&&m)return b=`? ${b}`,d&&!g?b+=Rn.lineComment(b,t.indent,c(d)):y&&n&&n(),b;g&&(d=null),m?(d&&(b+=Rn.lineComment(b,t.indent,c(d))),b=`? ${b} -${a}:`):(b=`${b}:`,d&&(b+=Rn.lineComment(b,t.indent,c(d))));let w,S,k;gi.isNode(e)?(w=!!e.spaceBefore,S=e.commentBefore,k=e.comment):(w=!1,S=null,k=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!m&&!d&&gi.isScalar(e)&&(t.indentAtStart=b.length+1),y=!1,!u&&l.length>=2&&!t.inFlow&&!m&&gi.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let O=!1,E=b0.stringify(e,t,()=>O=!0,()=>y=!0),R=" ";if(d||w||S){if(R=w?` -`:"",S){let C=c(S);R+=` -${Rn.indentComment(C,t.indent)}`}E===""&&!t.inFlow?R===` -`&&(R=` - -`):R+=` -${t.indent}`}else if(!m&&gi.isCollection(e)){let C=E[0],B=E.indexOf(` -`),P=B!==-1,U=(A=(T=t.inFlow)!=null?T:e.flow)!=null?A:e.items.length===0;if(P||!U){let F=!1;if(P&&(C==="&"||C==="!")){let H=E.indexOf(" ");C==="&"&&H!==-1&&H{"use strict";function tk(i,...e){i==="debug"&&console.log(...e)}function ik(i,e){(i==="debug"||i==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(e):console.warn(e))}Hc.debug=tk;Hc.warn=ik});var Bo=x(No=>{"use strict";var Pn=Se(),x0=je(),Ao="<<",Io={identify:i=>i===Ao||typeof i=="symbol"&&i.description===Ao,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new x0.Scalar(Symbol(Ao)),{addToJSMap:S0}),stringify:()=>Ao},rk=(i,e)=>(Io.identify(e)||Pn.isScalar(e)&&(!e.type||e.type===x0.Scalar.PLAIN)&&Io.identify(e.value))&&(i==null?void 0:i.doc.schema.tags.some(t=>t.tag===Io.tag&&t.default));function S0(i,e,t){if(t=i&&Pn.isAlias(t)?t.resolve(i.doc):t,Pn.isSeq(t))for(let r of t.items)Wc(i,e,r);else if(Array.isArray(t))for(let r of t)Wc(i,e,r);else Wc(i,e,t)}function Wc(i,e,t){let r=i&&Pn.isAlias(t)?t.resolve(i.doc):t;if(!Pn.isMap(r))throw new Error("Merge sources must be maps or map aliases");let n=r.toJSON(null,i,Map);for(let[s,o]of n)e instanceof Map?e.has(s)||e.set(s,o):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}No.addMergeToJSMap=S0;No.isMergeKey=rk;No.merge=Io});var Kc=x(k0=>{"use strict";var nk=Gc(),E0=Bo(),sk=Ln(),O0=Se(),Yc=Ci();function ok(i,e,{key:t,value:r}){if(O0.isNode(t)&&t.addToJSMap)t.addToJSMap(i,e,r);else if(E0.isMergeKey(i,t))E0.addMergeToJSMap(i,e,r);else{let n=Yc.toJS(t,"",i);if(e instanceof Map)e.set(n,Yc.toJS(r,n,i));else if(e instanceof Set)e.add(n);else{let s=ak(t,n,i),o=Yc.toJS(r,s,i);s in e?Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[s]=o}}return e}function ak(i,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(O0.isNode(i)&&(t!=null&&t.doc)){let r=sk.createStringifyContext(t.doc,{});r.anchors=new Set;for(let s of t.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;let n=i.toString(r);if(!t.mapKeyWarned){let s=JSON.stringify(n);s.length>40&&(s=s.substring(0,36)+'..."'),nk.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return n}return JSON.stringify(e)}k0.addPairToJSMap=ok});var Ni=x(zc=>{"use strict";var C0=Tn(),lk=w0(),ck=Kc(),Lo=Se();function uk(i,e,t){let r=C0.createNode(i,void 0,t),n=C0.createNode(e,void 0,t);return new Ro(r,n)}var Ro=class i{constructor(e,t=null){Object.defineProperty(this,Lo.NODE_TYPE,{value:Lo.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return Lo.isNode(t)&&(t=t.clone(e)),Lo.isNode(r)&&(r=r.clone(e)),new i(t,r)}toJSON(e,t){let r=t!=null&&t.mapAsMap?new Map:{};return ck.addPairToJSMap(t,r,this)}toString(e,t,r){return e!=null&&e.doc?lk.stringifyPair(this,e,t,r):JSON.stringify(this)}};zc.Pair=Ro;zc.createPair=uk});var Jc=x(A0=>{"use strict";var sr=Se(),T0=Ln(),Po=An();function fk(i,e,t){var s;return(((s=e.inFlow)!=null?s:i.flow)?pk:hk)(i,e,t)}function hk({comment:i,items:e},t,{blockItemPrefix:r,flowChars:n,itemIndent:s,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:s,type:null}),f=!1,d=[];for(let g=0;gb=null,()=>f=!0);b&&(w+=Po.lineComment(w,s,c(b))),f&&b&&(f=!1),d.push(r+w)}let m;if(d.length===0)m=n.start+n.end;else{m=d[0];for(let g=1;gb=null);gu||w.includes(` -`))&&(c=!0),f.push(w),u=f.length}let{start:d,end:m}=t;if(f.length===0)return d+m;if(!c){let g=f.reduce((y,b)=>y+b.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=d;for(let y of f)g+=y?` -${s}${n}${y}`:` -`;return`${g} -${n}${m}`}else return`${d}${o}${f.join(" ")}${o}${m}`}function Mo({indent:i,options:{commentString:e}},t,r,n){if(r&&n&&(r=r.replace(/^\n+/,"")),r){let s=Po.indentComment(e(r),i);t.push(s.trimStart())}}A0.stringifyCollection=fk});var Li=x(Qc=>{"use strict";var dk=Jc(),mk=Kc(),gk=So(),Bi=Se(),qo=Ni(),vk=je();function Mn(i,e){let t=Bi.isScalar(e)?e.value:e;for(let r of i)if(Bi.isPair(r)&&(r.key===e||r.key===t||Bi.isScalar(r.key)&&r.key.value===t))return r}var Zc=class extends gk.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Bi.MAP,e),this.items=[]}static from(e,t,r){let{keepUndefined:n,replacer:s}=r,o=new this(e),a=(l,c)=>{if(typeof s=="function")c=s.call(t,l,c);else if(Array.isArray(s)&&!s.includes(l))return;(c!==void 0||n)&&o.items.push(qo.createPair(l,c,r))};if(t instanceof Map)for(let[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(let l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){var o;let r;Bi.isPair(e)?r=e:!e||typeof e!="object"||!("key"in e)?r=new qo.Pair(e,e==null?void 0:e.value):r=new qo.Pair(e.key,e.value);let n=Mn(this.items,r.key),s=(o=this.schema)==null?void 0:o.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);Bi.isScalar(n.value)&&vk.isScalarValue(r.value)?n.value.value=r.value:n.value=r.value}else if(s){let a=this.items.findIndex(l=>s(r,l)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(e){let t=Mn(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){var s;let r=Mn(this.items,e),n=r==null?void 0:r.value;return(s=!t&&Bi.isScalar(n)?n.value:n)!=null?s:void 0}has(e){return!!Mn(this.items,e)}set(e,t){this.add(new qo.Pair(e,t),!0)}toJSON(e,t,r){let n=r?new r:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(n);for(let s of this.items)mk.addPairToJSMap(t,n,s);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(let n of this.items)if(!Bi.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),dk.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}};Qc.YAMLMap=Zc;Qc.findPair=Mn});var Hr=x(N0=>{"use strict";var yk=Se(),I0=Li(),bk={collection:"map",default:!0,nodeClass:I0.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(i,e){return yk.isMap(i)||e("Expected a mapping for this tag"),i},createNode:(i,e,t)=>I0.YAMLMap.from(i,e,t)};N0.map=bk});var Ri=x(B0=>{"use strict";var _k=Tn(),wk=Jc(),xk=So(),Do=Se(),Sk=je(),Ek=Ci(),Xc=class extends xk.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Do.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Fo(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let r=Fo(e);if(typeof r!="number")return;let n=this.items[r];return!t&&Do.isScalar(n)?n.value:n}has(e){let t=Fo(e);return typeof t=="number"&&t=0?e:null}B0.YAMLSeq=Xc});var Gr=x(R0=>{"use strict";var Ok=Se(),L0=Ri(),kk={collection:"seq",default:!0,nodeClass:L0.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(i,e){return Ok.isSeq(i)||e("Expected a sequence for this tag"),i},createNode:(i,e,t)=>L0.YAMLSeq.from(i,e,t)};R0.seq=kk});var qn=x(P0=>{"use strict";var Ck=Bn(),Tk={identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,e,t,r){return e=Object.assign({actualString:!0},e),Ck.stringifyString(i,e,t,r)}};P0.string=Tk});var jo=x(F0=>{"use strict";var M0=je(),q0={identify:i=>i==null,createNode:()=>new M0.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new M0.Scalar(null),stringify:({source:i},e)=>typeof i=="string"&&q0.test.test(i)?i:e.options.nullStr};F0.nullTag=q0});var eu=x(j0=>{"use strict";var Ak=je(),D0={identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new Ak.Scalar(i[0]==="t"||i[0]==="T"),stringify({source:i,value:e},t){if(i&&D0.test.test(i)){let r=i[0]==="t"||i[0]==="T";if(e===r)return i}return e?t.options.trueStr:t.options.falseStr}};j0.boolTag=D0});var Wr=x(U0=>{"use strict";function Ik({format:i,minFractionDigits:e,tag:t,value:r}){if(typeof r=="bigint")return String(r);let n=typeof r=="number"?r:Number(r);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let s=JSON.stringify(r);if(!i&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let a=e-(s.length-o-1);for(;a-- >0;)s+="0"}return s}U0.stringifyNumber=Ik});var iu=x(Uo=>{"use strict";var Nk=je(),tu=Wr(),Bk={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tu.stringifyNumber},Lk={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){let e=Number(i.value);return isFinite(e)?e.toExponential():tu.stringifyNumber(i)}},Rk={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){let e=new Nk.Scalar(parseFloat(i)),t=i.indexOf(".");return t!==-1&&i[i.length-1]==="0"&&(e.minFractionDigits=i.length-t-1),e},stringify:tu.stringifyNumber};Uo.float=Rk;Uo.floatExp=Lk;Uo.floatNaN=Bk});var nu=x(Vo=>{"use strict";var $0=Wr(),$o=i=>typeof i=="bigint"||Number.isInteger(i),ru=(i,e,t,{intAsBigInt:r})=>r?BigInt(i):parseInt(i.substring(e),t);function V0(i,e,t){let{value:r}=i;return $o(r)&&r>=0?t+r.toString(e):$0.stringifyNumber(i)}var Pk={identify:i=>$o(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,e,t)=>ru(i,2,8,t),stringify:i=>V0(i,8,"0o")},Mk={identify:$o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,e,t)=>ru(i,0,10,t),stringify:$0.stringifyNumber},qk={identify:i=>$o(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,e,t)=>ru(i,2,16,t),stringify:i=>V0(i,16,"0x")};Vo.int=Mk;Vo.intHex=qk;Vo.intOct=Pk});var G0=x(H0=>{"use strict";var Fk=Hr(),Dk=jo(),jk=Gr(),Uk=qn(),$k=eu(),su=iu(),ou=nu(),Vk=[Fk.map,jk.seq,Uk.string,Dk.nullTag,$k.boolTag,ou.intOct,ou.int,ou.intHex,su.floatNaN,su.floatExp,su.float];H0.schema=Vk});var K0=x(Y0=>{"use strict";var Hk=je(),Gk=Hr(),Wk=Gr();function W0(i){return typeof i=="bigint"||Number.isInteger(i)}var Ho=({value:i})=>JSON.stringify(i),Yk=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:Ho},{identify:i=>i==null,createNode:()=>new Hk.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ho},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:i=>i==="true",stringify:Ho},{identify:W0,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,e,{intAsBigInt:t})=>t?BigInt(i):parseInt(i,10),stringify:({value:i})=>W0(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:Ho}],Kk={default:!0,tag:"",test:/^/,resolve(i,e){return e(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},zk=[Gk.map,Wk.seq].concat(Yk,Kk);Y0.schema=zk});var lu=x(z0=>{"use strict";var au=je(),Jk=Bn(),Zk={identify:i=>i instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(i,e){if(typeof Buffer=="function")return Buffer.from(i,"base64");if(typeof atob=="function"){let t=atob(i.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let n=0;n{"use strict";var Go=Se(),cu=Ni(),Qk=je(),Xk=Ri();function J0(i,e){var t;if(Go.isSeq(i))for(let r=0;r1&&e("Each pair must have its own sequence indicator");let s=n.items[0]||new cu.Pair(new Qk.Scalar(null));if(n.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${n.commentBefore} -${s.key.commentBefore}`:n.commentBefore),n.comment){let o=(t=s.value)!=null?t:s.key;o.comment=o.comment?`${n.comment} -${o.comment}`:n.comment}n=s}i.items[r]=Go.isPair(n)?n:new cu.Pair(n)}}else e("Expected a sequence for this tag");return i}function Z0(i,e,t){let{replacer:r}=t,n=new Xk.YAMLSeq(i);n.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof r=="function"&&(o=r.call(e,String(s++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;n.items.push(cu.createPair(a,l,t))}return n}var eC={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:J0,createNode:Z0};Wo.createPairs=Z0;Wo.pairs=eC;Wo.resolvePairs=J0});var hu=x(fu=>{"use strict";var Q0=Se(),uu=Ci(),Fn=Li(),tC=Ri(),X0=Yo(),or=class i extends tC.YAMLSeq{constructor(){super(),this.add=Fn.YAMLMap.prototype.add.bind(this),this.delete=Fn.YAMLMap.prototype.delete.bind(this),this.get=Fn.YAMLMap.prototype.get.bind(this),this.has=Fn.YAMLMap.prototype.has.bind(this),this.set=Fn.YAMLMap.prototype.set.bind(this),this.tag=i.tag}toJSON(e,t){if(!t)return super.toJSON(e);let r=new Map;t!=null&&t.onCreate&&t.onCreate(r);for(let n of this.items){let s,o;if(Q0.isPair(n)?(s=uu.toJS(n.key,"",t),o=uu.toJS(n.value,s,t)):s=uu.toJS(n,"",t),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,o)}return r}static from(e,t,r){let n=X0.createPairs(e,t,r),s=new this;return s.items=n.items,s}};or.tag="tag:yaml.org,2002:omap";var iC={collection:"seq",identify:i=>i instanceof Map,nodeClass:or,default:!1,tag:"tag:yaml.org,2002:omap",resolve(i,e){let t=X0.resolvePairs(i,e),r=[];for(let{key:n}of t.items)Q0.isScalar(n)&&(r.includes(n.value)?e(`Ordered maps must not include duplicate keys: ${n.value}`):r.push(n.value));return Object.assign(new or,t)},createNode:(i,e,t)=>or.from(i,e,t)};fu.YAMLOMap=or;fu.omap=iC});var nv=x(pu=>{"use strict";var ev=je();function tv({value:i,source:e},t){return e&&(i?iv:rv).test.test(e)?e:i?t.options.trueStr:t.options.falseStr}var iv={identify:i=>i===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ev.Scalar(!0),stringify:tv},rv={identify:i=>i===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ev.Scalar(!1),stringify:tv};pu.falseTag=rv;pu.trueTag=iv});var sv=x(Ko=>{"use strict";var rC=je(),du=Wr(),nC={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:du.stringifyNumber},sC={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){let e=Number(i.value);return isFinite(e)?e.toExponential():du.stringifyNumber(i)}},oC={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){let e=new rC.Scalar(parseFloat(i.replace(/_/g,""))),t=i.indexOf(".");if(t!==-1){let r=i.substring(t+1).replace(/_/g,"");r[r.length-1]==="0"&&(e.minFractionDigits=r.length)}return e},stringify:du.stringifyNumber};Ko.float=oC;Ko.floatExp=sC;Ko.floatNaN=nC});var av=x(jn=>{"use strict";var ov=Wr(),Dn=i=>typeof i=="bigint"||Number.isInteger(i);function zo(i,e,t,{intAsBigInt:r}){let n=i[0];if((n==="-"||n==="+")&&(e+=1),i=i.substring(e).replace(/_/g,""),r){switch(t){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}let o=BigInt(i);return n==="-"?BigInt(-1)*o:o}let s=parseInt(i,t);return n==="-"?-1*s:s}function mu(i,e,t){let{value:r}=i;if(Dn(r)){let n=r.toString(e);return r<0?"-"+t+n.substr(1):t+n}return ov.stringifyNumber(i)}var aC={identify:Dn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,e,t)=>zo(i,2,2,t),stringify:i=>mu(i,2,"0b")},lC={identify:Dn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,e,t)=>zo(i,1,8,t),stringify:i=>mu(i,8,"0")},cC={identify:Dn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,e,t)=>zo(i,0,10,t),stringify:ov.stringifyNumber},uC={identify:Dn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,e,t)=>zo(i,2,16,t),stringify:i=>mu(i,16,"0x")};jn.int=cC;jn.intBin=aC;jn.intHex=uC;jn.intOct=lC});var vu=x(gu=>{"use strict";var Qo=Se(),Jo=Ni(),Zo=Li(),ar=class i extends Zo.YAMLMap{constructor(e){super(e),this.tag=i.tag}add(e){let t;Qo.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Jo.Pair(e.key,null):t=new Jo.Pair(e,null),Zo.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let r=Zo.findPair(this.items,e);return!t&&Qo.isPair(r)?Qo.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=Zo.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new Jo.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}static from(e,t,r){let{replacer:n}=r,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof n=="function"&&(o=n.call(t,o,o)),s.items.push(Jo.createPair(o,null,r));return s}};ar.tag="tag:yaml.org,2002:set";var fC={collection:"map",identify:i=>i instanceof Set,nodeClass:ar,default:!1,tag:"tag:yaml.org,2002:set",createNode:(i,e,t)=>ar.from(i,e,t),resolve(i,e){if(Qo.isMap(i)){if(i.hasAllNullValues(!0))return Object.assign(new ar,i);e("Set items must all have null values")}else e("Expected a mapping for this tag");return i}};gu.YAMLSet=ar;gu.set=fC});var bu=x(Xo=>{"use strict";var hC=Wr();function yu(i,e){let t=i[0],r=t==="-"||t==="+"?i.substring(1):i,n=o=>e?BigInt(o):Number(o),s=r.replace(/_/g,"").split(":").reduce((o,a)=>o*n(60)+n(a),n(0));return t==="-"?n(-1)*s:s}function lv(i){let{value:e}=i,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return hC.stringifyNumber(i);let r="";e<0&&(r="-",e*=t(-1));let n=t(60),s=[e%n];return e<60?s.unshift(0):(e=(e-s[0])/n,s.unshift(e%n),e>=60&&(e=(e-s[0])/n,s.unshift(e))),r+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var pC={identify:i=>typeof i=="bigint"||Number.isInteger(i),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,e,{intAsBigInt:t})=>yu(i,t),stringify:lv},dC={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>yu(i,!1),stringify:lv},cv={identify:i=>i instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(i){let e=i.match(cv.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,r,n,s,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(t,r-1,n,s||0,o||0,a||0,l),u=e[8];if(u&&u!=="Z"){let f=yu(u,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:i})=>i.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};Xo.floatTime=dC;Xo.intTime=pC;Xo.timestamp=cv});var hv=x(fv=>{"use strict";var mC=Hr(),gC=jo(),vC=Gr(),yC=qn(),bC=lu(),uv=nv(),_u=sv(),ea=av(),_C=Bo(),wC=hu(),xC=Yo(),SC=vu(),wu=bu(),EC=[mC.map,vC.seq,yC.string,gC.nullTag,uv.trueTag,uv.falseTag,ea.intBin,ea.intOct,ea.int,ea.intHex,_u.floatNaN,_u.floatExp,_u.float,bC.binary,_C.merge,wC.omap,xC.pairs,SC.set,wu.intTime,wu.floatTime,wu.timestamp];fv.schema=EC});var xv=x(Eu=>{"use strict";var gv=Hr(),OC=jo(),vv=Gr(),kC=qn(),CC=eu(),xu=iu(),Su=nu(),TC=G0(),AC=K0(),yv=lu(),Un=Bo(),bv=hu(),_v=Yo(),pv=hv(),wv=vu(),ta=bu(),dv=new Map([["core",TC.schema],["failsafe",[gv.map,vv.seq,kC.string]],["json",AC.schema],["yaml11",pv.schema],["yaml-1.1",pv.schema]]),mv={binary:yv.binary,bool:CC.boolTag,float:xu.float,floatExp:xu.floatExp,floatNaN:xu.floatNaN,floatTime:ta.floatTime,int:Su.int,intHex:Su.intHex,intOct:Su.intOct,intTime:ta.intTime,map:gv.map,merge:Un.merge,null:OC.nullTag,omap:bv.omap,pairs:_v.pairs,seq:vv.seq,set:wv.set,timestamp:ta.timestamp},IC={"tag:yaml.org,2002:binary":yv.binary,"tag:yaml.org,2002:merge":Un.merge,"tag:yaml.org,2002:omap":bv.omap,"tag:yaml.org,2002:pairs":_v.pairs,"tag:yaml.org,2002:set":wv.set,"tag:yaml.org,2002:timestamp":ta.timestamp};function NC(i,e,t){let r=dv.get(e);if(r&&!i)return t&&!r.includes(Un.merge)?r.concat(Un.merge):r.slice();let n=r;if(!n)if(Array.isArray(i))n=[];else{let s=Array.from(dv.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${s} or define customTags array`)}if(Array.isArray(i))for(let s of i)n=n.concat(s);else typeof i=="function"&&(n=i(n.slice()));return t&&(n=n.concat(Un.merge)),n.reduce((s,o)=>{let a=typeof o=="string"?mv[o]:o;if(!a){let l=JSON.stringify(o),c=Object.keys(mv).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return s.includes(a)||s.push(a),s},[])}Eu.coreKnownTags=IC;Eu.getTags=NC});var Cu=x(Sv=>{"use strict";var Ou=Se(),BC=Hr(),LC=Gr(),RC=qn(),ia=xv(),PC=(i,e)=>i.keye.key?1:0,ku=class i{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:n,schema:s,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?ia.getTags(e,"compat"):e?ia.getTags(null,e):null,this.name=typeof s=="string"&&s||"core",this.knownTags=n?ia.coreKnownTags:{},this.tags=ia.getTags(t,this.name,r),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,Ou.MAP,{value:BC.map}),Object.defineProperty(this,Ou.SCALAR,{value:RC.string}),Object.defineProperty(this,Ou.SEQ,{value:LC.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?PC:null}clone(){let e=Object.create(i.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Sv.Schema=ku});var Ov=x(Ev=>{"use strict";var MC=Se(),Tu=Ln(),$n=An();function qC(i,e){var l;let t=[],r=e.directives===!0;if(e.directives!==!1&&i.directives){let c=i.directives.toString(i);c?(t.push(c),r=!0):i.directives.docStart&&(r=!0)}r&&t.push("---");let n=Tu.createStringifyContext(i,e),{commentString:s}=n.options;if(i.commentBefore){t.length!==1&&t.unshift("");let c=s(i.commentBefore);t.unshift($n.indentComment(c,""))}let o=!1,a=null;if(i.contents){if(MC.isNode(i.contents)){if(i.contents.spaceBefore&&r&&t.push(""),i.contents.commentBefore){let f=s(i.contents.commentBefore);t.push($n.indentComment(f,""))}n.forceBlockIndent=!!i.comment,a=i.contents.comment}let c=a?void 0:()=>o=!0,u=Tu.stringify(i.contents,n,()=>a=null,c);a&&(u+=$n.lineComment(u,"",s(a))),(u[0]==="|"||u[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${u}`:t.push(u)}else t.push(Tu.stringify(i.contents,n));if((l=i.directives)!=null&&l.docEnd)if(i.comment){let c=s(i.comment);c.includes(` -`)?(t.push("..."),t.push($n.indentComment(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=i.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push($n.indentComment(s(c),"")))}return t.join(` -`)+` -`}Ev.stringifyDocument=qC});var Vn=x(kv=>{"use strict";var FC=Cn(),Yr=So(),qt=Se(),DC=Ni(),jC=Ci(),UC=Cu(),$C=Ov(),Au=yo(),VC=Lc(),HC=Tn(),Iu=Bc(),Nu=class i{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,qt.NODE_TYPE,{value:qt.DOC});let n=null;typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t,t=void 0);let s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:o}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Iu.Directives({version:o}),this.setSchema(o,r),this.contents=e===void 0?null:this.createNode(e,n,r)}clone(){let e=Object.create(i.prototype,{[qt.NODE_TYPE]:{value:qt.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=qt.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Kr(this.contents)&&this.contents.add(e)}addIn(e,t){Kr(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let r=Au.anchorNames(this);e.anchor=!t||r.has(t)?Au.findNewAnchor(t||"a",r):t}return new FC.Alias(e.anchor)}createNode(e,t,r){let n;if(typeof t=="function")e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let b=S=>typeof S=="number"||S instanceof String||S instanceof Number,w=t.filter(b).map(String);w.length>0&&(t=t.concat(w)),n=t}else r===void 0&&t&&(r=t,t=void 0);let{aliasDuplicateObjects:s,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=r!=null?r:{},{onAnchor:f,setAnchors:d,sourceObjects:m}=Au.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:s!=null?s:!0,keepUndefined:l!=null?l:!1,onAnchor:f,onTagObj:c,replacer:n,schema:this.schema,sourceObjects:m},y=HC.createNode(e,u,g);return a&&qt.isCollection(y)&&(y.flow=!0),d(),y}createPair(e,t,r={}){let n=this.createNode(e,null,r),s=this.createNode(t,null,r);return new DC.Pair(n,s)}delete(e){return Kr(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Yr.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):Kr(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return qt.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Yr.isEmptyPath(e)?!t&&qt.isScalar(this.contents)?this.contents.value:this.contents:qt.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return qt.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return Yr.isEmptyPath(e)?this.contents!==void 0:qt.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Yr.collectionFromPath(this.schema,[e],t):Kr(this.contents)&&this.contents.set(e,t)}setIn(e,t){Yr.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=Yr.collectionFromPath(this.schema,Array.from(e),t):Kr(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let r;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Iu.Directives({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Iu.Directives({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let n=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new UC.Schema(Object.assign(r,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=jC.toJS(this.contents,t!=null?t:"",a);if(typeof s=="function")for(let{count:c,res:u}of a.anchors.values())s(u,c);return typeof o=="function"?VC.applyReviver(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return $C.stringifyDocument(this,e)}};function Kr(i){if(qt.isCollection(i))return!0;throw new Error("Expected a YAML collection as document contents")}kv.Document=Nu});var Wn=x(Gn=>{"use strict";var Hn=class extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}},Bu=class extends Hn{constructor(e,t,r){super("YAMLParseError",e,t,r)}},Lu=class extends Hn{constructor(e,t,r){super("YAMLWarning",e,t,r)}},GC=(i,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));let{line:r,col:n}=t.linePos[0];t.message+=` at line ${r}, column ${n}`;let s=n-1,o=i.substring(e.lineStarts[r-1],e.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){let a=Math.min(s-39,o.length-79);o="\u2026"+o.substring(a),s-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),r>1&&/^ *$/.test(o.substring(0,s))){let a=i.substring(e.lineStarts[r-2],e.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`\u2026 -`),o=a+o}if(/[^ ]/.test(o)){let a=1,l=t.linePos[1];l&&l.line===r&&l.col>n&&(a=Math.max(1,Math.min(l.col-n,80-s)));let c=" ".repeat(s)+"^".repeat(a);t.message+=`: - -${o} -${c} -`}};Gn.YAMLError=Hn;Gn.YAMLParseError=Bu;Gn.YAMLWarning=Lu;Gn.prettifyError=GC});var Yn=x(Cv=>{"use strict";function WC(i,{flow:e,indicator:t,next:r,offset:n,onError:s,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,f="",d="",m=!1,g=!1,y=null,b=null,w=null,S=null,k=null,O=null,E=null;for(let A of i)switch(g&&(A.type!=="space"&&A.type!=="newline"&&A.type!=="comma"&&s(A.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),y&&(c&&A.type!=="comment"&&A.type!=="newline"&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),y=null),A.type){case"space":!e&&(t!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&A.source.includes(" ")&&(y=A),u=!0;break;case"comment":{u||s(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=A.source.substring(1)||" ";f?f+=d+C:f=C,d="",c=!1;break}case"newline":c?f?f+=A.source:l=!0:d+=A.source,c=!0,m=!0,(b||w)&&(S=A),u=!0;break;case"anchor":b&&s(A,"MULTIPLE_ANCHORS","A node can have at most one anchor"),A.source.endsWith(":")&&s(A.offset+A.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=A,E===null&&(E=A.offset),c=!1,u=!1,g=!0;break;case"tag":{w&&s(A,"MULTIPLE_TAGS","A node can have at most one tag"),w=A,E===null&&(E=A.offset),c=!1,u=!1,g=!0;break}case t:(b||w)&&s(A,"BAD_PROP_ORDER",`Anchors and tags must be after the ${A.source} indicator`),O&&s(A,"UNEXPECTED_TOKEN",`Unexpected ${A.source} in ${e!=null?e:"collection"}`),O=A,c=t==="seq-item-ind"||t==="explicit-key-ind",u=!1;break;case"comma":if(e){k&&s(A,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),k=A,c=!1,u=!1;break}default:s(A,"UNEXPECTED_TOKEN",`Unexpected ${A.type} token`),c=!1,u=!1}let R=i[i.length-1],T=R?R.offset+R.source.length:n;return g&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y&&(c&&y.indent<=o||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&s(y,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:k,found:O,spaceBefore:l,comment:f,hasNewline:m,anchor:b,tag:w,newlineAfterProp:S,end:T,start:E!=null?E:T}}Cv.resolveProps=WC});var ra=x(Tv=>{"use strict";function Ru(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes(` -`))return!0;if(i.end){for(let e of i.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of i.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(Ru(e.key)||Ru(e.value))return!0}return!1;default:return!0}}Tv.containsNewline=Ru});var Pu=x(Av=>{"use strict";var YC=ra();function KC(i,e,t){if((e==null?void 0:e.type)==="flow-collection"){let r=e.end[0];r.indent===i&&(r.source==="]"||r.source==="}")&&YC.containsNewline(e)&&t(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Av.flowIndentCheck=KC});var Mu=x(Nv=>{"use strict";var Iv=Se();function zC(i,e,t){let{uniqueKeys:r}=i.options;if(r===!1)return!1;let n=typeof r=="function"?r:(s,o)=>s===o||Iv.isScalar(s)&&Iv.isScalar(o)&&s.value===o.value;return e.some(s=>n(s.key,t))}Nv.mapIncludes=zC});var qv=x(Mv=>{"use strict";var Bv=Ni(),JC=Li(),Lv=Yn(),ZC=ra(),Rv=Pu(),QC=Mu(),Pv="All mapping items must start at the same column";function XC({composeNode:i,composeEmptyNode:e},t,r,n,s){var u,f;let o=(u=s==null?void 0:s.nodeClass)!=null?u:JC.YAMLMap,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let l=r.offset,c=null;for(let d of r.items){let{start:m,key:g,sep:y,value:b}=d,w=Lv.resolveProps(m,{indicator:"explicit-key-ind",next:g!=null?g:y==null?void 0:y[0],offset:l,onError:n,parentIndent:r.indent,startOnNewline:!0}),S=!w.found;if(S){if(g&&(g.type==="block-seq"?n(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==r.indent&&n(l,"BAD_INDENT",Pv)),!w.anchor&&!w.tag&&!y){c=w.end,w.comment&&(a.comment?a.comment+=` -`+w.comment:a.comment=w.comment);continue}(w.newlineAfterProp||ZC.containsNewline(g))&&n(g!=null?g:m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((f=w.found)==null?void 0:f.indent)!==r.indent&&n(l,"BAD_INDENT",Pv);t.atKey=!0;let k=w.end,O=g?i(t,g,w,n):e(t,k,m,null,w,n);t.schema.compat&&Rv.flowIndentCheck(r.indent,g,n),t.atKey=!1,QC.mapIncludes(t,a.items,O)&&n(k,"DUPLICATE_KEY","Map keys must be unique");let E=Lv.resolveProps(y!=null?y:[],{indicator:"map-value-ind",next:b,offset:O.range[2],onError:n,parentIndent:r.indent,startOnNewline:!g||g.type==="block-scalar"});if(l=E.end,E.found){S&&((b==null?void 0:b.type)==="block-map"&&!E.hasNewline&&n(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&w.start{"use strict";var eT=Ri(),tT=Yn(),iT=Pu();function rT({composeNode:i,composeEmptyNode:e},t,r,n,s){var u;let o=(u=s==null?void 0:s.nodeClass)!=null?u:eT.YAMLSeq,a=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let l=r.offset,c=null;for(let{start:f,value:d}of r.items){let m=tT.resolveProps(f,{indicator:"seq-item-ind",next:d,offset:l,onError:n,parentIndent:r.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||d)d&&d.type==="block-seq"?n(m.end,"BAD_INDENT","All sequence items must start at the same column"):n(l,"MISSING_CHAR","Sequence item without - indicator");else{c=m.end,m.comment&&(a.comment=m.comment);continue}let g=d?i(t,d,m,n):e(t,m.end,f,null,m,n);t.schema.compat&&iT.flowIndentCheck(r.indent,d,n),l=g.range[2],a.items.push(g)}return a.range=[r.offset,l,c!=null?c:l],a}Fv.resolveBlockSeq=rT});var zr=x(jv=>{"use strict";function nT(i,e,t,r){let n="";if(i){let s=!1,o="";for(let a of i){let{source:l,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{t&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=l.substring(1)||" ";n?n+=o+u:n=u,o="";break}case"newline":n&&(o+=l),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:n,offset:e}}jv.resolveEnd=nT});var Hv=x(Vv=>{"use strict";var sT=Se(),oT=Ni(),Uv=Li(),aT=Ri(),lT=zr(),$v=Yn(),cT=ra(),uT=Mu(),qu="Block collections are not allowed within flow collections",Fu=i=>i&&(i.type==="block-map"||i.type==="block-seq");function fT({composeNode:i,composeEmptyNode:e},t,r,n,s){var b,w;let o=r.start.source==="{",a=o?"flow map":"flow sequence",l=(b=s==null?void 0:s.nodeClass)!=null?b:o?Uv.YAMLMap:aT.YAMLSeq,c=new l(t.schema);c.flow=!0;let u=t.atRoot;u&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let f=r.offset+r.start.source.length;for(let S=0;S0){let S=lT.resolveEnd(g,y,t.options.strict,n);S.comment&&(c.comment?c.comment+=` -`+S.comment:c.comment=S.comment),c.range=[r.offset,y,S.offset]}else c.range=[r.offset,y,y];return c}Vv.resolveFlowCollection=fT});var Wv=x(Gv=>{"use strict";var hT=Se(),pT=je(),dT=Li(),mT=Ri(),gT=qv(),vT=Dv(),yT=Hv();function Du(i,e,t,r,n,s){let o=t.type==="block-map"?gT.resolveBlockMap(i,e,t,r,s):t.type==="block-seq"?vT.resolveBlockSeq(i,e,t,r,s):yT.resolveFlowCollection(i,e,t,r,s),a=o.constructor;return n==="!"||n===a.tagName?(o.tag=a.tagName,o):(n&&(o.tag=n),o)}function bT(i,e,t,r,n){var d,m;let s=r.tag,o=s?e.directives.tagName(s.source,g=>n(s,"TAG_RESOLVE_FAILED",g)):null;if(t.type==="block-seq"){let{anchor:g,newlineAfterProp:y}=r,b=g&&s?g.offset>s.offset?g:s:g!=null?g:s;b&&(!y||y.offsetg.tag===o&&g.collection===a);if(!l){let g=e.schema.knownTags[o];if(g&&g.collection===a)e.schema.tags.push(Object.assign({},g,{default:!1})),l=g;else return g!=null&&g.collection?n(s,"BAD_COLLECTION_TYPE",`${g.tag} used for ${a} collection, but expects ${g.collection}`,!0):n(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Du(i,e,t,n,o)}let c=Du(i,e,t,n,o,l),u=(m=(d=l.resolve)==null?void 0:d.call(l,c,g=>n(s,"TAG_RESOLVE_FAILED",g),e.options))!=null?m:c,f=hT.isNode(u)?u:new pT.Scalar(u);return f.range=c.range,f.tag=o,l!=null&&l.format&&(f.format=l.format),f}Gv.composeCollection=bT});var Uu=x(Yv=>{"use strict";var ju=je();function _T(i,e,t){let r=e.offset,n=wT(e,i.options.strict,t);if(!n)return{value:"",type:null,comment:"",range:[r,r,r]};let s=n.mode===">"?ju.Scalar.BLOCK_FOLDED:ju.Scalar.BLOCK_LITERAL,o=e.source?xT(e.source):[],a=o.length;for(let y=o.length-1;y>=0;--y){let b=o[y][1];if(b===""||b==="\r")a=y;else break}if(a===0){let y=n.chomp==="+"&&o.length>0?` -`.repeat(Math.max(1,o.length-1)):"",b=r+n.length;return e.source&&(b+=e.source.length),{value:y,type:s,comment:n.comment,range:[r,b,b]}}let l=e.indent+n.indent,c=e.offset+n.length,u=0;for(let y=0;yl&&(l=b.length);else{b.length=a;--y)o[y][0].length>l&&(a=y+1);let f="",d="",m=!1;for(let y=0;yl||w[0]===" "?(d===" "?d=` -`:!m&&d===` -`&&(d=` - -`),f+=d+b.slice(l)+w,d=` -`,m=!0):w===""?d===` -`?f+=` -`:d=` -`:(f+=d+w,d=" ",m=!1)}switch(n.chomp){case"-":break;case"+":for(let y=a;y{"use strict";var $u=je(),ST=zr();function ET(i,e,t){let{offset:r,type:n,source:s,end:o}=i,a,l,c=(d,m,g)=>t(r+d,m,g);switch(n){case"scalar":a=$u.Scalar.PLAIN,l=OT(s,c);break;case"single-quoted-scalar":a=$u.Scalar.QUOTE_SINGLE,l=kT(s,c);break;case"double-quoted-scalar":a=$u.Scalar.QUOTE_DOUBLE,l=CT(s,c);break;default:return t(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}let u=r+s.length,f=ST.resolveEnd(o,u,e,t);return{value:l,type:a,comment:f.comment,range:[r,u,f.offset]}}function OT(i,e){let t="";switch(i[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${i[0]}`;break}case"@":case"`":{t=`reserved character ${i[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Kv(i)}function kT(i,e){return(i[i.length-1]!=="'"||i.length===1)&&e(i.length,"MISSING_CHAR","Missing closing 'quote"),Kv(i.slice(1,-1)).replace(/''/g,"'")}function Kv(i){var l;let e,t;try{e=new RegExp(`(.*?)(?s?i.slice(s,r+1):n)}else t+=n}return(i[i.length-1]!=='"'||i.length===1)&&e(i.length,"MISSING_CHAR",'Missing closing "quote'),t}function TT(i,e){let t="",r=i[e+1];for(;(r===" "||r===" "||r===` -`||r==="\r")&&!(r==="\r"&&i[e+2]!==` -`);)r===` -`&&(t+=` -`),e+=1,r=i[e+1];return t||(t=" "),{fold:t,offset:e}}var AT={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` -`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function IT(i,e,t,r){let n=i.substr(e,t),o=n.length===t&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(o)){let a=i.substr(e-2,t+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}zv.resolveFlowScalar=ET});var Qv=x(Zv=>{"use strict";var lr=Se(),Jv=je(),NT=Uu(),BT=Vu();function LT(i,e,t,r){let{value:n,type:s,comment:o,range:a}=e.type==="block-scalar"?NT.resolveBlockScalar(i,e,r):BT.resolveFlowScalar(e,i.options.strict,r),l=t?i.directives.tagName(t.source,f=>r(t,"TAG_RESOLVE_FAILED",f)):null,c;i.options.stringKeys&&i.atKey?c=i.schema[lr.SCALAR]:l?c=RT(i.schema,n,l,t,r):e.type==="scalar"?c=PT(i,n,e,r):c=i.schema[lr.SCALAR];let u;try{let f=c.resolve(n,d=>r(t!=null?t:e,"TAG_RESOLVE_FAILED",d),i.options);u=lr.isScalar(f)?f:new Jv.Scalar(f)}catch(f){let d=f instanceof Error?f.message:String(f);r(t!=null?t:e,"TAG_RESOLVE_FAILED",d),u=new Jv.Scalar(n)}return u.range=a,u.source=n,s&&(u.type=s),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function RT(i,e,t,r,n){var a;if(t==="!")return i[lr.SCALAR];let s=[];for(let l of i.tags)if(!l.collection&&l.tag===t)if(l.default&&l.test)s.push(l);else return l;for(let l of s)if((a=l.test)!=null&&a.test(e))return l;let o=i.knownTags[t];return o&&!o.collection?(i.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),i[lr.SCALAR])}function PT({atKey:i,directives:e,schema:t},r,n,s){var a;let o=t.tags.find(l=>{var c;return(l.default===!0||i&&l.default==="key")&&((c=l.test)==null?void 0:c.test(r))})||t[lr.SCALAR];if(t.compat){let l=(a=t.compat.find(c=>{var u;return c.default&&((u=c.test)==null?void 0:u.test(r))}))!=null?a:t[lr.SCALAR];if(o.tag!==l.tag){let c=e.tagString(o.tag),u=e.tagString(l.tag),f=`Value may be parsed as either ${c} or ${u}`;s(n,"TAG_RESOLVE_FAILED",f,!0)}}return o}Zv.composeScalar=LT});var ey=x(Xv=>{"use strict";function MT(i,e,t){if(e){t===null&&(t=e.length);for(let r=t-1;r>=0;--r){let n=e[r];switch(n.type){case"space":case"comment":case"newline":i-=n.source.length;continue}for(n=e[++r];(n==null?void 0:n.type)==="space";)i+=n.source.length,n=e[++r];break}}return i}Xv.emptyScalarPosition=MT});var ry=x(Gu=>{"use strict";var qT=Cn(),FT=Se(),DT=Wv(),ty=Qv(),jT=zr(),UT=ey(),$T={composeNode:iy,composeEmptyNode:Hu};function iy(i,e,t,r){let n=i.atKey,{spaceBefore:s,comment:o,anchor:a,tag:l}=t,c,u=!0;switch(e.type){case"alias":c=VT(i,e,r),(a||l)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=ty.composeScalar(i,e,l,r),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=DT.composeCollection($T,i,e,t,r),a&&(c.anchor=a.source.substring(1));break;default:{let f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",f),c=Hu(i,e.offset,void 0,null,t,r),u=!1}}return a&&c.anchor===""&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),n&&i.options.stringKeys&&(!FT.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&r(l!=null?l:e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),i.options.keepSourceTokens&&u&&(c.srcToken=e),c}function Hu(i,e,t,r,{spaceBefore:n,comment:s,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:UT.emptyScalarPosition(e,t,r),indent:-1,source:""},f=ty.composeScalar(i,u,a,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(f.spaceBefore=!0),s&&(f.comment=s,f.range[2]=l),f}function VT({options:i},{offset:e,source:t,end:r},n){let s=new qT.Alias(t.substring(1));s.source===""&&n(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&n(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,a=jT.resolveEnd(r,o,i.strict,n);return s.range=[e,o,a.offset],a.comment&&(s.comment=a.comment),s}Gu.composeEmptyNode=Hu;Gu.composeNode=iy});var oy=x(sy=>{"use strict";var HT=Vn(),ny=ry(),GT=zr(),WT=Yn();function YT(i,e,{offset:t,start:r,value:n,end:s},o){let a=Object.assign({_directives:e},i),l=new HT.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=WT.resolveProps(r,{indicator:"doc-start",next:n!=null?n:s==null?void 0:s[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=n?ny.composeNode(c,n,u,o):ny.composeEmptyNode(c,u.end,r,null,u,o);let f=l.contents.range[2],d=GT.resolveEnd(s,f,!1,o);return d.comment&&(l.comment=d.comment),l.range=[t,f,d.offset],l}sy.composeDoc=YT});var Yu=x(cy=>{"use strict";var KT=Bc(),zT=Vn(),Kn=Wn(),ay=Se(),JT=oy(),ZT=zr();function zn(i){if(typeof i=="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];let{offset:e,source:t}=i;return[e,e+(typeof t=="string"?t.length:1)]}function ly(i){var n;let e="",t=!1,r=!1;for(let s=0;s{let o=zn(t);s?this.warnings.push(new Kn.YAMLWarning(o,r,n)):this.errors.push(new Kn.YAMLParseError(o,r,n))},this.directives=new KT.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:r,afterEmptyLine:n}=ly(this.prelude);if(r){let s=e.contents;if(t)e.comment=e.comment?`${e.comment} -${r}`:r;else if(n||e.directives.docStart||!s)e.commentBefore=r;else if(ay.isCollection(s)&&!s.flow&&s.items.length>0){let o=s.items[0];ay.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${r} -${a}`:r}else{let o=s.commentBefore;s.commentBefore=o?`${r} -${o}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:ly(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(let n of e)yield*this.next(n);yield*this.end(t,r)}*next(e){switch(process.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,r,n)=>{let s=zn(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",r,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=JT.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new Kn.YAMLParseError(zn(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){let r="Unexpected doc-end without preceding document";this.errors.push(new Kn.YAMLParseError(zn(e),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;let t=ZT.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let r=this.doc.comment;this.doc.comment=r?`${r} -${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Kn.YAMLParseError(zn(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let r=Object.assign({_directives:this.directives},this.options),n=new zT.Document(void 0,r);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}};cy.Composer=Wu});var hy=x(na=>{"use strict";var QT=Uu(),XT=Vu(),eA=Wn(),uy=Bn();function tA(i,e=!0,t){if(i){let r=(n,s,o)=>{let a=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(t)t(a,s,o);else throw new eA.YAMLParseError([a,a+1],s,o)};switch(i.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return XT.resolveFlowScalar(i,e,r);case"block-scalar":return QT.resolveBlockScalar({options:{strict:e}},i,r)}}return null}function iA(i,e){var c;let{implicitKey:t=!1,indent:r,inFlow:n=!1,offset:s=-1,type:o="PLAIN"}=e,a=uy.stringifyString({type:o,value:i},{implicitKey:t,indent:r>0?" ".repeat(r):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),l=(c=e.end)!=null?c:[{type:"newline",offset:-1,indent:r,source:` -`}];switch(a[0]){case"|":case">":{let u=a.indexOf(` -`),f=a.substring(0,u),d=a.substring(u+1)+` -`,m=[{type:"block-scalar-header",offset:s,indent:r,source:f}];return fy(m,l)||m.push({type:"newline",offset:-1,indent:r,source:` -`}),{type:"block-scalar",offset:s,indent:r,props:m,source:d}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:a,end:l};default:return{type:"scalar",offset:s,indent:r,source:a,end:l}}}function rA(i,e,t={}){let{afterKey:r=!1,implicitKey:n=!1,inFlow:s=!1,type:o}=t,a="indent"in i?i.indent:null;if(r&&typeof a=="number"&&(a+=2),!o)switch(i.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=i.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=uy.stringifyString({type:o,value:e},{implicitKey:n||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":nA(i,l);break;case'"':Ku(i,l,"double-quoted-scalar");break;case"'":Ku(i,l,"single-quoted-scalar");break;default:Ku(i,l,"scalar")}}function nA(i,e){let t=e.indexOf(` -`),r=e.substring(0,t),n=e.substring(t+1)+` -`;if(i.type==="block-scalar"){let s=i.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=r,i.source=n}else{let{offset:s}=i,o="indent"in i?i.indent:-1,a=[{type:"block-scalar-header",offset:s,indent:o,source:r}];fy(a,"end"in i?i.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:` -`});for(let l of Object.keys(i))l!=="type"&&l!=="offset"&&delete i[l];Object.assign(i,{type:"block-scalar",indent:o,props:a,source:n})}}function fy(i,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":i.push(t);break;case"newline":return i.push(t),!0}return!1}function Ku(i,e,t){switch(i.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":i.type=t,i.source=e;break;case"block-scalar":{let r=i.props.slice(1),n=e.length;i.props[0].type==="block-scalar-header"&&(n-=i.props[0].source.length);for(let s of r)s.offset+=n;delete i.props,Object.assign(i,{type:t,source:e,end:r});break}case"block-map":case"block-seq":{let n={type:"newline",offset:i.offset+e.length,indent:i.indent,source:` -`};delete i.items,Object.assign(i,{type:t,source:e,end:[n]});break}default:{let r="indent"in i?i.indent:-1,n="end"in i&&Array.isArray(i.end)?i.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(let s of Object.keys(i))s!=="type"&&s!=="offset"&&delete i[s];Object.assign(i,{type:t,indent:r,source:e,end:n})}}}na.createScalarToken=iA;na.resolveAsScalar=tA;na.setScalarValue=rA});var dy=x(py=>{"use strict";var sA=i=>"type"in i?oa(i):sa(i);function oa(i){switch(i.type){case"block-scalar":{let e="";for(let t of i.props)e+=oa(t);return e+i.source}case"block-map":case"block-seq":{let e="";for(let t of i.items)e+=sa(t);return e}case"flow-collection":{let e=i.start.source;for(let t of i.items)e+=sa(t);for(let t of i.end)e+=t.source;return e}case"document":{let e=sa(i);if(i.end)for(let t of i.end)e+=t.source;return e}default:{let e=i.source;if("end"in i&&i.end)for(let t of i.end)e+=t.source;return e}}}function sa({start:i,key:e,sep:t,value:r}){let n="";for(let s of i)n+=s.source;if(e&&(n+=oa(e)),t)for(let s of t)n+=s.source;return r&&(n+=oa(r)),n}py.stringify=sA});var yy=x(vy=>{"use strict";var zu=Symbol("break visit"),oA=Symbol("skip children"),my=Symbol("remove item");function cr(i,e){"type"in i&&i.type==="document"&&(i={start:i.start,value:i.value}),gy(Object.freeze([]),i,e)}cr.BREAK=zu;cr.SKIP=oA;cr.REMOVE=my;cr.itemAtPath=(i,e)=>{let t=i;for(let[r,n]of e){let s=t==null?void 0:t[r];if(s&&"items"in s)t=s.items[n];else return}return t};cr.parentCollection=(i,e)=>{let t=cr.itemAtPath(i,e.slice(0,-1)),r=e[e.length-1][0],n=t==null?void 0:t[r];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function gy(i,e,t){let r=t(e,i);if(typeof r=="symbol")return r;for(let n of["key","value"]){let s=e[n];if(s&&"items"in s){for(let o=0;o{"use strict";var Ju=hy(),aA=dy(),lA=yy(),Zu="\uFEFF",Qu="",Xu="",ef="",cA=i=>!!i&&"items"in i,uA=i=>!!i&&(i.type==="scalar"||i.type==="single-quoted-scalar"||i.type==="double-quoted-scalar"||i.type==="block-scalar");function fA(i){switch(i){case Zu:return"";case Qu:return"";case Xu:return"";case ef:return"";default:return JSON.stringify(i)}}function hA(i){switch(i){case Zu:return"byte-order-mark";case Qu:return"doc-mode";case Xu:return"flow-error-end";case ef:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` -`:case`\r -`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(i[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}yt.createScalarToken=Ju.createScalarToken;yt.resolveAsScalar=Ju.resolveAsScalar;yt.setScalarValue=Ju.setScalarValue;yt.stringify=aA.stringify;yt.visit=lA.visit;yt.BOM=Zu;yt.DOCUMENT=Qu;yt.FLOW_END=Xu;yt.SCALAR=ef;yt.isCollection=cA;yt.isScalar=uA;yt.prettyToken=fA;yt.tokenType=hA});var nf=x(_y=>{"use strict";var Jn=aa();function Wt(i){switch(i){case void 0:case" ":case` -`:case"\r":case" ":return!0;default:return!1}}var by=new Set("0123456789ABCDEFabcdef"),pA=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),la=new Set(",[]{}"),dA=new Set(` ,[]{} -\r `),tf=i=>!i||dA.has(i),rf=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){var n;if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let r=(n=this.next)!=null?n:"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===` -`?!0:t==="\r"?this.buffer[e+1]===` -`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;t===" ";)t=this.buffer[++r+e];if(t==="\r"){let n=this.buffer[r+e+1];if(n===` -`||!n&&!this.atEnd)return e+r+1}return t===` -`||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){let r=this.buffer.substr(e,3);if((r==="---"||r==="...")&&Wt(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&ethis.indentValue&&!Wt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Wt(t)){let r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(tf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>Wt(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,r;e:for(let s=this.pos;r=this.buffer[s];++s)switch(r){case" ":t+=1;break;case` -`:e=s,t=0;break;case"\r":{let o=this.buffer[s+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===` -`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let s=this.continueScalar(e+1);if(s===-1)break;e=this.buffer.indexOf(` -`,s)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let n=e+1;for(r=this.buffer[n];r===" ";)r=this.buffer[++n];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===` -`;)r=this.buffer[++n];e=n-1}else if(!this.blockScalarKeep)do{let s=e-1,o=this.buffer[s];o==="\r"&&(o=this.buffer[--s]);let a=s;for(;o===" ";)o=this.buffer[--s];if(o===` -`&&s>=this.pos&&s+1+t>a)e=s;else break}while(!0);return yield Jn.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,r=this.pos-1,n;for(;n=this.buffer[++r];)if(n===":"){let s=this.buffer[r+1];if(Wt(s)||e&&la.has(s))break;t=r}else if(Wt(n)){let s=this.buffer[r+1];if(n==="\r"&&(s===` -`?(r+=1,n=` -`,s=this.buffer[r+1]):t=r),s==="#"||e&&la.has(s))break;if(n===` -`){let o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(e&&la.has(n))break;t=r}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield Jn.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(tf))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(Wt(t)||e&&la.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!Wt(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(pA.has(t))t=this.buffer[++e];else if(t==="%"&&by.has(this.buffer[e+1])&&by.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===` -`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,r;do r=this.buffer[++t];while(r===" "||e&&r===" ");let n=t-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=t),n}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};_y.Lexer=rf});var of=x(wy=>{"use strict";var sf=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t>1;this.lineStarts[s]{"use strict";var xy=aa(),mA=nf();function ur(i,e){for(let t=0;t=0;)switch(i[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((t=i[++e])==null?void 0:t.type)==="space";);return i.splice(e,i.length)}function Ey(i){if(i.start.type==="flow-seq-start")for(let e of i.items)e.sep&&!e.value&&!ur(e.start,"explicit-key-ind")&&!ur(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Oy(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}var af=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new mA.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let r of this.lexer.lex(e,t))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,process.env.LOG_TOKENS&&console.log("|",xy.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=xy.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let r=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e!=null?e:this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let r=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in r?r.indent:0:t.type==="flow-collection"&&r.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Ey(t),r.type){case"document":r.value=t;break;case"block-scalar":r.props.push(t);break;case"block-map":{let n=r.items[r.items.length-1];if(n.value){r.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=r.items[r.items.length-1];n.value?r.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=r.items[r.items.length-1];!n||n.value?r.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Sy(n.start)===-1&&(t.indent===0||n.start.every(s=>s.type!=="comment"||s.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,s=n&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",o=[];if(s&&t.sep&&!t.value){let a=[];for(let l=0;le.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(o=t.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):s||t.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ur(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(Oy(t.key)&&!ur(t.sep,"newline")){let a=Jr(t.start),l=t.key,c=t.sep;c.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:l,sep:c}]})}else o.length>0?t.sep=t.sep.concat(o,this.sourceToken):t.sep.push(this.sourceToken);else if(ur(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let a=Jr(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||s?e.items.push({start:o,key:null,sep:[this.sourceToken]}):ur(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);s||t.value?(e.items.push({start:o,key:a,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(a):(Object.assign(t,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(e);if(a){n&&a.type!=="block-seq"&&e.items.push({start:o}),this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var r;let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;(s==null?void 0:s.type)==="comment"?n==null||n.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],s=(r=n==null?void 0:n.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||ur(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{let r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){let n=ca(r),s=Jr(n);Ey(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(` -`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(` -`,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=ca(e),r=Jr(t);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=ca(e),r=Jr(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};ky.Parser=af});var Ny=x(Qn=>{"use strict";var Cy=Yu(),gA=Vn(),Zn=Wn(),vA=Gc(),yA=Se(),bA=of(),Ty=lf();function Ay(i){let e=i.prettyErrors!==!1;return{lineCounter:i.lineCounter||e&&new bA.LineCounter||null,prettyErrors:e}}function _A(i,e={}){let{lineCounter:t,prettyErrors:r}=Ay(e),n=new Ty.Parser(t==null?void 0:t.addNewLine),s=new Cy.Composer(e),o=Array.from(s.compose(n.parse(i)));if(r&&t)for(let a of o)a.errors.forEach(Zn.prettifyError(i,t)),a.warnings.forEach(Zn.prettifyError(i,t));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function Iy(i,e={}){let{lineCounter:t,prettyErrors:r}=Ay(e),n=new Ty.Parser(t==null?void 0:t.addNewLine),s=new Cy.Composer(e),o=null;for(let a of s.compose(n.parse(i),!0,i.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new Zn.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&t&&(o.errors.forEach(Zn.prettifyError(i,t)),o.warnings.forEach(Zn.prettifyError(i,t))),o}function wA(i,e,t){let r;typeof e=="function"?r=e:t===void 0&&e&&typeof e=="object"&&(t=e);let n=Iy(i,t);if(!n)return null;if(n.warnings.forEach(s=>vA.warn(n.options.logLevel,s)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:r},t))}function xA(i,e,t){var n;let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let s=Math.round(t);t=s<1?void 0:s>8?{indent:8}:{indent:s}}if(i===void 0){let{keepUndefined:s}=(n=t!=null?t:e)!=null?n:{};if(!s)return}return yA.isDocument(i)&&!r?i.toString(t):new gA.Document(i,r,t).toString(t)}Qn.parse=wA;Qn.parseAllDocuments=_A;Qn.parseDocument=Iy;Qn.stringify=xA});var Ly=x(Ce=>{"use strict";var SA=Yu(),EA=Vn(),OA=Cu(),cf=Wn(),kA=Cn(),Pi=Se(),CA=Ni(),TA=je(),AA=Li(),IA=Ri(),NA=aa(),BA=nf(),LA=of(),RA=lf(),ua=Ny(),By=Sn();Ce.Composer=SA.Composer;Ce.Document=EA.Document;Ce.Schema=OA.Schema;Ce.YAMLError=cf.YAMLError;Ce.YAMLParseError=cf.YAMLParseError;Ce.YAMLWarning=cf.YAMLWarning;Ce.Alias=kA.Alias;Ce.isAlias=Pi.isAlias;Ce.isCollection=Pi.isCollection;Ce.isDocument=Pi.isDocument;Ce.isMap=Pi.isMap;Ce.isNode=Pi.isNode;Ce.isPair=Pi.isPair;Ce.isScalar=Pi.isScalar;Ce.isSeq=Pi.isSeq;Ce.Pair=CA.Pair;Ce.Scalar=TA.Scalar;Ce.YAMLMap=AA.YAMLMap;Ce.YAMLSeq=IA.YAMLSeq;Ce.CST=NA;Ce.Lexer=BA.Lexer;Ce.LineCounter=LA.LineCounter;Ce.Parser=RA.Parser;Ce.parse=ua.parse;Ce.parseAllDocuments=ua.parseAllDocuments;Ce.parseDocument=ua.parseDocument;Ce.stringify=ua.stringify;Ce.visit=By.visit;Ce.visitAsync=By.visitAsync});var Py=x((HB,Ry)=>{var Mi=require("constants"),PA=process.cwd,fa=null,MA=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return fa||(fa=PA.call(process)),fa};try{process.cwd()}catch{}typeof process.chdir=="function"&&(uf=process.chdir,process.chdir=function(i){fa=null,uf.call(process,i)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,uf));var uf;Ry.exports=qA;function qA(i){Mi.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(i),i.lutimes||t(i),i.chown=s(i.chown),i.fchown=s(i.fchown),i.lchown=s(i.lchown),i.chmod=r(i.chmod),i.fchmod=r(i.fchmod),i.lchmod=r(i.lchmod),i.chownSync=o(i.chownSync),i.fchownSync=o(i.fchownSync),i.lchownSync=o(i.lchownSync),i.chmodSync=n(i.chmodSync),i.fchmodSync=n(i.fchmodSync),i.lchmodSync=n(i.lchmodSync),i.stat=a(i.stat),i.fstat=a(i.fstat),i.lstat=a(i.lstat),i.statSync=l(i.statSync),i.fstatSync=l(i.fstatSync),i.lstatSync=l(i.lstatSync),i.chmod&&!i.lchmod&&(i.lchmod=function(u,f,d){d&&process.nextTick(d)},i.lchmodSync=function(){}),i.chown&&!i.lchown&&(i.lchown=function(u,f,d,m){m&&process.nextTick(m)},i.lchownSync=function(){}),MA==="win32"&&(i.rename=typeof i.rename!="function"?i.rename:(function(u){function f(d,m,g){var y=Date.now(),b=0;u(d,m,function w(S){if(S&&(S.code==="EACCES"||S.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){i.stat(m,function(k,O){k&&k.code==="ENOENT"?u(d,m,w):g(S)})},b),b<100&&(b+=10);return}g&&g(S)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,u),f})(i.rename)),i.read=typeof i.read!="function"?i.read:(function(u){function f(d,m,g,y,b,w){var S;if(w&&typeof w=="function"){var k=0;S=function(O,E,R){if(O&&O.code==="EAGAIN"&&k<10)return k++,u.call(i,d,m,g,y,b,S);w.apply(this,arguments)}}return u.call(i,d,m,g,y,b,S)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,u),f})(i.read),i.readSync=typeof i.readSync!="function"?i.readSync:(function(u){return function(f,d,m,g,y){for(var b=0;;)try{return u.call(i,f,d,m,g,y)}catch(w){if(w.code==="EAGAIN"&&b<10){b++;continue}throw w}}})(i.readSync);function e(u){u.lchmod=function(f,d,m){u.open(f,Mi.O_WRONLY|Mi.O_SYMLINK,d,function(g,y){if(g){m&&m(g);return}u.fchmod(y,d,function(b){u.close(y,function(w){m&&m(b||w)})})})},u.lchmodSync=function(f,d){var m=u.openSync(f,Mi.O_WRONLY|Mi.O_SYMLINK,d),g=!0,y;try{y=u.fchmodSync(m,d),g=!1}finally{if(g)try{u.closeSync(m)}catch{}else u.closeSync(m)}return y}}function t(u){Mi.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(f,d,m,g){u.open(f,Mi.O_SYMLINK,function(y,b){if(y){g&&g(y);return}u.futimes(b,d,m,function(w){u.close(b,function(S){g&&g(w||S)})})})},u.lutimesSync=function(f,d,m){var g=u.openSync(f,Mi.O_SYMLINK),y,b=!0;try{y=u.futimesSync(g,d,m),b=!1}finally{if(b)try{u.closeSync(g)}catch{}else u.closeSync(g)}return y}):u.futimes&&(u.lutimes=function(f,d,m,g){g&&process.nextTick(g)},u.lutimesSync=function(){})}function r(u){return u&&function(f,d,m){return u.call(i,f,d,function(g){c(g)&&(g=null),m&&m.apply(this,arguments)})}}function n(u){return u&&function(f,d){try{return u.call(i,f,d)}catch(m){if(!c(m))throw m}}}function s(u){return u&&function(f,d,m,g){return u.call(i,f,d,m,function(y){c(y)&&(y=null),g&&g.apply(this,arguments)})}}function o(u){return u&&function(f,d,m){try{return u.call(i,f,d,m)}catch(g){if(!c(g))throw g}}}function a(u){return u&&function(f,d,m){typeof d=="function"&&(m=d,d=null);function g(y,b){b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),m&&m.apply(this,arguments)}return d?u.call(i,f,d,g):u.call(i,f,g)}}function l(u){return u&&function(f,d){var m=d?u.call(i,f,d):u.call(i,f);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function c(u){if(!u||u.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var Fy=x((GB,qy)=>{var My=require("stream").Stream;qy.exports=FA;function FA(i){return{ReadStream:e,WriteStream:t};function e(r,n){if(!(this instanceof e))return new e(r,n);My.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;athis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}i.open(this.path,this.flags,this.mode,function(u,f){if(u){s.emit("error",u),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function t(r,n){if(!(this instanceof t))return new t(r,n);My.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var jy=x((WB,Dy)=>{"use strict";Dy.exports=jA;var DA=Object.getPrototypeOf||function(i){return i.__proto__};function jA(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var e={__proto__:DA(i)};else var e=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}),e}});var Hy=x((YB,pf)=>{var qe=require("fs"),UA=Py(),$A=Fy(),VA=jy(),ha=require("util"),it,da;typeof Symbol=="function"&&typeof Symbol.for=="function"?(it=Symbol.for("graceful-fs.queue"),da=Symbol.for("graceful-fs.previous")):(it="___graceful-fs.queue",da="___graceful-fs.previous");function HA(){}function Vy(i,e){Object.defineProperty(i,it,{get:function(){return e}})}var fr=HA;ha.debuglog?fr=ha.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(fr=function(){var i=ha.format.apply(ha,arguments);i="GFS4: "+i.split(/\n/).join(` -GFS4: `),console.error(i)});qe[it]||(Uy=global[it]||[],Vy(qe,Uy),qe.close=(function(i){function e(t,r){return i.call(qe,t,function(n){n||$y(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(e,da,{value:i}),e})(qe.close),qe.closeSync=(function(i){function e(t){i.apply(qe,arguments),$y()}return Object.defineProperty(e,da,{value:i}),e})(qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fr(qe[it]),require("assert").equal(qe[it].length,0)}));var Uy;global[it]||Vy(global,qe[it]);pf.exports=ff(VA(qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!qe.__patched&&(pf.exports=ff(qe),qe.__patched=!0);function ff(i){UA(i),i.gracefulify=ff,i.createReadStream=E,i.createWriteStream=R;var e=i.readFile;i.readFile=t;function t(C,B,P){return typeof B=="function"&&(P=B,B=null),U(C,B,P);function U(F,H,j,V){return e(F,H,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?Zr([U,[F,H,j],Y,V||Date.now(),Date.now()]):typeof j=="function"&&j.apply(this,arguments)})}}var r=i.writeFile;i.writeFile=n;function n(C,B,P,U){return typeof P=="function"&&(U=P,P=null),F(C,B,P,U);function F(H,j,V,Y,Q){return r(H,j,V,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Zr([F,[H,j,V,Y],W,Q||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var s=i.appendFile;s&&(i.appendFile=o);function o(C,B,P,U){return typeof P=="function"&&(U=P,P=null),F(C,B,P,U);function F(H,j,V,Y,Q){return s(H,j,V,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Zr([F,[H,j,V,Y],W,Q||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var a=i.copyFile;a&&(i.copyFile=l);function l(C,B,P,U){return typeof P=="function"&&(U=P,P=0),F(C,B,P,U);function F(H,j,V,Y,Q){return a(H,j,V,function(W){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Zr([F,[H,j,V,Y],W,Q||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var c=i.readdir;i.readdir=f;var u=/^v[0-5]\./;function f(C,B,P){typeof B=="function"&&(P=B,B=null);var U=u.test(process.version)?function(j,V,Y,Q){return c(j,F(j,V,Y,Q))}:function(j,V,Y,Q){return c(j,V,F(j,V,Y,Q))};return U(C,B,P);function F(H,j,V,Y){return function(Q,W){Q&&(Q.code==="EMFILE"||Q.code==="ENFILE")?Zr([U,[H,j,V],Q,Y||Date.now(),Date.now()]):(W&&W.sort&&W.sort(),typeof V=="function"&&V.call(this,Q,W))}}}if(process.version.substr(0,4)==="v0.8"){var d=$A(i);w=d.ReadStream,k=d.WriteStream}var m=i.ReadStream;m&&(w.prototype=Object.create(m.prototype),w.prototype.open=S);var g=i.WriteStream;g&&(k.prototype=Object.create(g.prototype),k.prototype.open=O),Object.defineProperty(i,"ReadStream",{get:function(){return w},set:function(C){w=C},enumerable:!0,configurable:!0}),Object.defineProperty(i,"WriteStream",{get:function(){return k},set:function(C){k=C},enumerable:!0,configurable:!0});var y=w;Object.defineProperty(i,"FileReadStream",{get:function(){return y},set:function(C){y=C},enumerable:!0,configurable:!0});var b=k;Object.defineProperty(i,"FileWriteStream",{get:function(){return b},set:function(C){b=C},enumerable:!0,configurable:!0});function w(C,B){return this instanceof w?(m.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var C=this;A(C.path,C.flags,C.mode,function(B,P){B?(C.autoClose&&C.destroy(),C.emit("error",B)):(C.fd=P,C.emit("open",P),C.read())})}function k(C,B){return this instanceof k?(g.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function O(){var C=this;A(C.path,C.flags,C.mode,function(B,P){B?(C.destroy(),C.emit("error",B)):(C.fd=P,C.emit("open",P))})}function E(C,B){return new i.ReadStream(C,B)}function R(C,B){return new i.WriteStream(C,B)}var T=i.open;i.open=A;function A(C,B,P,U){return typeof P=="function"&&(U=P,P=null),F(C,B,P,U);function F(H,j,V,Y,Q){return T(H,j,V,function(W,de){W&&(W.code==="EMFILE"||W.code==="ENFILE")?Zr([F,[H,j,V,Y],W,Q||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}return i}function Zr(i){fr("ENQUEUE",i[0].name,i[1]),qe[it].push(i),hf()}var pa;function $y(){for(var i=Date.now(),e=0;e2&&(qe[it][e][3]=i,qe[it][e][4]=i);hf()}function hf(){if(clearTimeout(pa),pa=void 0,qe[it].length!==0){var i=qe[it].shift(),e=i[0],t=i[1],r=i[2],n=i[3],s=i[4];if(n===void 0)fr("RETRY",e.name,t),e.apply(null,t);else if(Date.now()-n>=6e4){fr("TIMEOUT",e.name,t);var o=t.pop();typeof o=="function"&&o.call(null,r)}else{var a=Date.now()-s,l=Math.max(s-n,1),c=Math.min(l*1.2,100);a>=c?(fr("RETRY",e.name,t),e.apply(null,t.concat([n]))):qe[it].push(i)}pa===void 0&&(pa=setTimeout(hf,0))}}});var Wy=x((KB,Gy)=>{function Ft(i,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}Gy.exports=Ft;Ft.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};Ft.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};Ft.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var e=new Date().getTime();if(i&&e-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),t=this._timeouts.shift();else return!1;var r=this,n=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t);return this._options.unref&&n.unref(),!0};Ft.prototype.attempt=function(i,e){this._fn=i,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ft.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)};Ft.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)};Ft.prototype.start=Ft.prototype.try;Ft.prototype.errors=function(){return this._errors};Ft.prototype.attempts=function(){return this._attempts};Ft.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},e=null,t=0,r=0;r=t&&(e=n,t=o)}return e}});var Yy=x(hr=>{var GA=Wy();hr.operation=function(i){var e=hr.timeouts(i);return new GA(e,{forever:i&&i.forever,unref:i&&i.unref,maxRetryTime:i&&i.maxRetryTime})};hr.timeouts=function(i){if(i instanceof Array)return[].concat(i);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var t in i)e[t]=i[t];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],n=0;n{Ky.exports=Yy()});var Jy=x((ZB,ma)=>{ma.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ma.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ma.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var tb=x((QB,en)=>{var Me=global.process,pr=function(i){return i&&typeof i=="object"&&typeof i.removeListener=="function"&&typeof i.emit=="function"&&typeof i.reallyExit=="function"&&typeof i.listeners=="function"&&typeof i.kill=="function"&&typeof i.pid=="number"&&typeof i.on=="function"};pr(Me)?(Zy=require("assert"),Qr=Jy(),Qy=/^win/i.test(Me.platform),Xn=require("events"),typeof Xn!="function"&&(Xn=Xn.EventEmitter),Me.__signal_exit_emitter__?Qe=Me.__signal_exit_emitter__:(Qe=Me.__signal_exit_emitter__=new Xn,Qe.count=0,Qe.emitted={}),Qe.infinite||(Qe.setMaxListeners(1/0),Qe.infinite=!0),en.exports=function(i,e){if(!pr(global.process))return function(){};Zy.equal(typeof i,"function","a callback must be provided for exit handler"),Xr===!1&&df();var t="exit";e&&e.alwaysLast&&(t="afterexit");var r=function(){Qe.removeListener(t,i),Qe.listeners("exit").length===0&&Qe.listeners("afterexit").length===0&&ga()};return Qe.on(t,i),r},ga=function(){!Xr||!pr(global.process)||(Xr=!1,Qr.forEach(function(e){try{Me.removeListener(e,va[e])}catch{}}),Me.emit=ya,Me.reallyExit=mf,Qe.count-=1)},en.exports.unload=ga,dr=function(e,t,r){Qe.emitted[e]||(Qe.emitted[e]=!0,Qe.emit(e,t,r))},va={},Qr.forEach(function(i){va[i]=function(){if(pr(global.process)){var t=Me.listeners(i);t.length===Qe.count&&(ga(),dr("exit",null,i),dr("afterexit",null,i),Qy&&i==="SIGHUP"&&(i="SIGINT"),Me.kill(Me.pid,i))}}}),en.exports.signals=function(){return Qr},Xr=!1,df=function(){Xr||!pr(global.process)||(Xr=!0,Qe.count+=1,Qr=Qr.filter(function(e){try{return Me.on(e,va[e]),!0}catch{return!1}}),Me.emit=eb,Me.reallyExit=Xy)},en.exports.load=df,mf=Me.reallyExit,Xy=function(e){pr(global.process)&&(Me.exitCode=e||0,dr("exit",Me.exitCode,null),dr("afterexit",Me.exitCode,null),mf.call(Me,Me.exitCode))},ya=Me.emit,eb=function(e,t){if(e==="exit"&&pr(global.process)){t!==void 0&&(Me.exitCode=t);var r=ya.apply(this,arguments);return dr("exit",Me.exitCode,null),dr("afterexit",Me.exitCode,null),r}else return ya.apply(this,arguments)}):en.exports=function(){return function(){}};var Zy,Qr,Qy,Xn,Qe,ga,dr,va,Xr,df,mf,Xy,ya,eb});var cb=x((XB,lb)=>{"use strict";var WA=require("path"),sb=Hy(),YA=zy(),KA=tb(),qi={},ib=Symbol();function zA(i,e,t){let r=e[ib];if(r)return e.stat(i,(s,o)=>{if(s)return t(s);t(null,o.mtime,r)});let n=new Date(Math.ceil(Date.now()/1e3)*1e3+5);e.utimes(i,n,n,s=>{if(s)return t(s);e.stat(i,(o,a)=>{if(o)return t(o);let l=a.mtime.getTime()%1e3===0?"s":"ms";Object.defineProperty(e,ib,{value:l}),t(null,a.mtime,l)})})}function JA(i){let e=Date.now();return i==="s"&&(e=Math.ceil(e/1e3)*1e3),new Date(e)}function _a(i,e){return e.lockfilePath||`${i}.lock`}function ob(i,e,t){if(!e.realpath)return t(null,WA.resolve(i));e.fs.realpath(i,t)}function vf(i,e,t){let r=_a(i,e);e.fs.mkdir(r,n=>{if(!n)return zA(r,e.fs,(s,o,a)=>{if(s)return e.fs.rmdir(r,()=>{}),t(s);t(null,o,a)});if(n.code!=="EEXIST")return t(n);if(e.stale<=0)return t(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:i}));e.fs.stat(r,(s,o)=>{if(s)return s.code==="ENOENT"?vf(i,{...e,stale:0},t):t(s);if(!ZA(o,e))return t(Object.assign(new Error("Lock file is already being held"),{code:"ELOCKED",file:i}));ab(i,e,a=>{if(a)return t(a);vf(i,{...e,stale:0},t)})})})}function ZA(i,e){return i.mtime.getTime(){if(r&&r.code!=="ENOENT")return t(r);t()})}function ba(i,e){let t=qi[i];t.updateTimeout||(t.updateDelay=t.updateDelay||e.update,t.updateTimeout=setTimeout(()=>{t.updateTimeout=null,e.fs.stat(t.lockfilePath,(r,n)=>{let s=t.lastUpdate+e.stale{let c=t.lastUpdate+e.stale{throw r},...e},e.retries=e.retries||0,e.retries=typeof e.retries=="number"?{retries:e.retries}:e.retries,e.stale=Math.max(e.stale||0,2e3),e.update=e.update==null?e.stale/2:e.update||0,e.update=Math.max(Math.min(e.update,e.stale/2),1e3),ob(i,e,(r,n)=>{if(r)return t(r);let s=YA.operation(e.retries);s.attempt(()=>{vf(n,e,(o,a,l)=>{if(s.retry(o))return;if(o)return t(s.mainError());let c=qi[n]={lockfilePath:_a(n,e),mtime:a,mtimePrecision:l,options:e,lastUpdate:Date.now()};ba(n,e),t(null,u=>{if(c.released)return u&&u(Object.assign(new Error("Lock is already released"),{code:"ERELEASED"}));XA(n,{...e,realpath:!1},u)})})})})}function XA(i,e,t){e={fs:sb,realpath:!0,...e},ob(i,e,(r,n)=>{if(r)return t(r);let s=qi[n];if(!s)return t(Object.assign(new Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));s.updateTimeout&&clearTimeout(s.updateTimeout),s.released=!0,delete qi[n],ab(n,e,t)})}function rb(i){return(...e)=>new Promise((t,r)=>{e.push((n,s)=>{n?r(n):t(s)}),i(...e)})}var nb=!1;function eI(){nb||(nb=!0,KA(()=>{for(let i in qi){let e=qi[i].options;try{e.fs.rmdirSync(_a(i,e))}catch{}}}))}lb.exports.lock=async(i,e)=>{eI();let t=await rb(QA)(i,e);return rb(t)}});var vI={};wf(vI,{HttpsProxyAgent:()=>_b.HttpsProxyAgent,PNG:()=>wb.PNG,ProgramOption:()=>rm,SocksProxyAgent:()=>xb.SocksProxyAgent,colors:()=>tI,debug:()=>iI,diff:()=>rI,dotenv:()=>nI,getProxyForUrl:()=>bb.getProxyForUrl,jpegjs:()=>sI,lockfile:()=>aI,mime:()=>lI,minimatch:()=>cI,open:()=>uI,program:()=>im,progress:()=>fI,ws:()=>hI,wsReceiver:()=>dI,wsSender:()=>mI,wsServer:()=>pI,yaml:()=>gI});module.exports=Vb(vI);var ub=$e(Jf()),fb=$e(rn());var Fa={};wf(Fa,{Diff:()=>It,applyPatch:()=>Ah,applyPatches:()=>z_,canonicalize:()=>Es,convertChangesToDMP:()=>nw,convertChangesToXML:()=>sw,createPatch:()=>J_,createTwoFilesPatch:()=>Ih,diffArrays:()=>G_,diffChars:()=>C_,diffCss:()=>M_,diffJson:()=>H_,diffLines:()=>Ba,diffSentences:()=>P_,diffTrimmedLines:()=>R_,diffWords:()=>B_,diffWordsWithSpace:()=>Eh,formatPatch:()=>Cs,merge:()=>ew,parsePatch:()=>Ts,reversePatch:()=>Nh,structuredPatch:()=>ks});function It(){}It.prototype={diff:function(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=n.callback;typeof n=="function"&&(s=n,n={});var o=this;function a(O){return O=o.postProcess(O,n),s?(setTimeout(function(){s(O)},0),!0):O}e=this.castInput(e,n),t=this.castInput(t,n),e=this.removeEmpty(this.tokenize(e,n)),t=this.removeEmpty(this.tokenize(t,n));var l=t.length,c=e.length,u=1,f=l+c;n.maxEditLength!=null&&(f=Math.min(f,n.maxEditLength));var d=(r=n.timeout)!==null&&r!==void 0?r:1/0,m=Date.now()+d,g=[{oldPos:-1,lastComponent:void 0}],y=this.extractCommon(g[0],t,e,0,n);if(g[0].oldPos+1>=c&&y+1>=l)return a(lh(o,g[0].lastComponent,t,e,o.useLongestToken));var b=-1/0,w=1/0;function S(){for(var O=Math.max(b,-u);O<=Math.min(w,u);O+=2){var E=void 0,R=g[O-1],T=g[O+1];R&&(g[O-1]=void 0);var A=!1;if(T){var C=T.oldPos-O;A=T&&0<=C&&C=c&&y+1>=l)return a(lh(o,E.lastComponent,t,e,o.useLongestToken));g[O]=E,E.oldPos+1>=c&&(w=Math.min(w,O-1)),y+1>=l&&(b=Math.max(b,O+1))}u++}if(s)(function O(){setTimeout(function(){if(u>f||Date.now()>m)return s();S()||O()},0)})();else for(;u<=f&&Date.now()<=m;){var k=S();if(k)return k}},addToPath:function(e,t,r,n,s){var o=e.lastComponent;return o&&!s.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}},extractCommon:function(e,t,r,n,s){for(var o=t.length,a=r.length,l=e.oldPos,c=l-n,u=0;c+1m.length?y:m}),f.value=i.join(d)}else f.value=i.join(t.slice(c,c+f.count));c+=f.count,f.added||(u+=f.count)}}return s}var k_=new It;function C_(i,e,t){return k_.diff(i,e,t)}function ch(i,e){var t;for(t=0;te.length&&(t=i.length-e.length);var r=e.length;i.length0&&e[o]!=e[s];)s=n[s];e[o]==e[s]&&s++}s=0;for(var a=t;a0&&i[a]!=e[s];)s=n[s];i[a]==e[s]&&s++}return s}function A_(i){return i.includes(`\r -`)&&!i.startsWith(` -`)&&!i.match(/[^\r]\n/)}function I_(i){return!i.includes(`\r -`)&&i.includes(` -`)}var Ss="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",N_=new RegExp("[".concat(Ss,"]+|\\s+|[^").concat(Ss,"]"),"ug"),sn=new It;sn.equals=function(i,e,t){return t.ignoreCase&&(i=i.toLowerCase(),e=e.toLowerCase()),i.trim()===e.trim()};sn.tokenize=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t;if(e.intlSegmenter){if(e.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');t=Array.from(e.intlSegmenter.segment(i),function(s){return s.segment})}else t=i.match(N_)||[];var r=[],n=null;return t.forEach(function(s){/\s/.test(s)?n==null?r.push(s):r.push(r.pop()+s):/\s/.test(n)?r[r.length-1]==n?r.push(r.pop()+s):r.push(n+s):r.push(s),n=s}),r};sn.join=function(i){return i.map(function(e,t){return t==0?e:e.replace(/^\s+/,"")}).join("")};sn.postProcess=function(i,e){if(!i||e.oneChangePerToken)return i;var t=null,r=null,n=null;return i.forEach(function(s){s.added?r=s:s.removed?n=s:((r||n)&&hh(t,n,r,s),t=s,r=null,n=null)}),(r||n)&&hh(t,n,r,null),i};function B_(i,e,t){return(t==null?void 0:t.ignoreWhitespace)!=null&&!t.ignoreWhitespace?Eh(i,e,t):sn.diff(i,e,t)}function hh(i,e,t,r){if(e&&t){var n=e.value.match(/^\s*/)[0],s=e.value.match(/\s*$/)[0],o=t.value.match(/^\s*/)[0],a=t.value.match(/\s*$/)[0];if(i){var l=ch(n,o);i.value=Na(i.value,o,l),e.value=nn(e.value,l),t.value=nn(t.value,l)}if(r){var c=uh(s,a);r.value=Ia(r.value,a,c),e.value=ws(e.value,c),t.value=ws(t.value,c)}}else if(t)i&&(t.value=t.value.replace(/^\s*/,"")),r&&(r.value=r.value.replace(/^\s*/,""));else if(i&&r){var u=r.value.match(/^\s*/)[0],f=e.value.match(/^\s*/)[0],d=e.value.match(/\s*$/)[0],m=ch(u,f);e.value=nn(e.value,m);var g=uh(nn(u,m),d);e.value=ws(e.value,g),r.value=Ia(r.value,u,g),i.value=Na(i.value,u,u.slice(0,u.length-g.length))}else if(r){var y=r.value.match(/^\s*/)[0],b=e.value.match(/\s*$/)[0],w=fh(b,y);e.value=ws(e.value,w)}else if(i){var S=i.value.match(/\s*$/)[0],k=e.value.match(/^\s*/)[0],O=fh(S,k);e.value=nn(e.value,O)}}var Sh=new It;Sh.tokenize=function(i){var e=new RegExp("(\\r?\\n)|[".concat(Ss,"]+|[^\\S\\n\\r]+|[^").concat(Ss,"]"),"ug");return i.match(e)||[]};function Eh(i,e,t){return Sh.diff(i,e,t)}function L_(i,e){if(typeof i=="function")e.callback=i;else if(i)for(var t in i)i.hasOwnProperty(t)&&(e[t]=i[t]);return e}var on=new It;on.tokenize=function(i,e){e.stripTrailingCr&&(i=i.replace(/\r\n/g,` -`));var t=[],r=i.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;ni.length)&&(e=i.length);for(var t=0,r=new Array(e);t2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string"&&(e=Ts(e)),Array.isArray(e)){if(e.length>1)throw new Error("applyPatch only works with a single input.");e=e[0]}(t.autoConvertLineEndings||t.autoConvertLineEndings==null)&&(A_(i)&&W_(e)?e=Ch(e):I_(i)&&Y_(e)&&(e=Th(e)));var r=i.split(` -`),n=e.hunks,s=t.compareLine||function(P,U,F,H){return U===H},o=t.fuzzFactor||0,a=0;if(o<0||!Number.isInteger(o))throw new Error("fuzzFactor must be a non-negative integer");if(!n.length)return i;for(var l="",c=!1,u=!1,f=0;f3&&arguments[3]!==void 0?arguments[3]:0,j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,V=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],Y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,Q=0,W=!1;H0?de[0]:" ",ne=de.length>0?de.substr(1):de;if(ae==="-")if(s(U+1,r[U],ae,ne))U++,Q=0;else return!F||r[U]==null?null:(V[Y]=r[U],m(P,U+1,F-1,H,!1,V,Y+1));if(ae==="+"){if(!j)return null;V[Y]=ne,Y++,Q=0,W=!0}if(ae===" ")if(Q++,V[Y]=r[U],s(U+1,r[U],ae,ne))Y++,j=!0,W=!1,U++;else return W||!F?null:r[U]&&(m(P,U+1,F-1,H+1,!1,V,Y+1)||m(P,U+1,F-1,H,!1,V,Y+1))||m(P,U,F-1,H+1,!1,V,Y)}return Y-=Q,U-=Q,V.length=Y,{patchedLines:V,oldLineLastI:U-1}}for(var g=[],y=0,b=0;b0?f(U.lines.slice(-o.context)):[],m-=y.length,g-=y.length)}(P=y).push.apply(P,ai(B.map(function(Y){return(C.added?"+":"-")+Y}))),C.added?w+=B.length:b+=B.length}else{if(m)if(B.length<=o.context*2&&ki.length)return!1;for(var t=0;t"):r.removed&&e.push(""),e.push(ow(r.value)),r.added?e.push(""):r.removed&&e.push("")}return e.join("")}function ow(i){var e=i;return e=e.replace(/&/g,"&"),e=e.replace(//g,">"),e=e.replace(/"/g,"""),e}var hb=$e(Mh()),bb=$e(Fh()),_b=$e(Zh()),pb=$e(np()),db=$e(hp()),mb=$e(Lp()),gb=$e(Yp()),wb=$e($d());var tm=$e(em(),1),{program:im,createCommand:B2,createArgument:L2,createOption:R2,CommanderError:P2,InvalidArgumentError:M2,InvalidOptionArgumentError:q2,Command:F2,Argument:D2,Option:rm,Help:j2}=tm.default;var vb=$e(lm()),xb=$e($m());var uO=$e(Wm(),1),kc=$e(mc(),1),Cc=$e(vc(),1),Hg=$e(Ec(),1),Tc=$e(Vg(),1);var Gg=Hg.default;var yb=$e(Ly()),tI=ub.default,iI=fb.default,rI=Fa,nI=hb.default,sI=pb.default,oI=cb(),aI=oI,lI=db.default,cI=mb.default,uI=gb.default,fI=vb.default,hI=Gg,pI=Tc.default,dI=kc.default,mI=Cc.default,gI=yb.default;0&&(module.exports={HttpsProxyAgent,PNG,ProgramOption,SocksProxyAgent,colors,debug,diff,dotenv,getProxyForUrl,jpegjs,lockfile,mime,minimatch,open,program,progress,ws,wsReceiver,wsSender,wsServer,yaml}); -/*! Bundled license information: - -progress/lib/node-progress.js: - (*! - * node-progress - * Copyright(c) 2011 TJ Holowaychuk - * MIT Licensed - *) -*/ diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open deleted file mode 100755 index b392fbf..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +++ /dev/null @@ -1,1066 +0,0 @@ -#!/bin/sh -#--------------------------------------------- -# xdg-open -# -# Utility script to open a URL in the registered default application. -# -# Refer to the usage() function below for usage. -# -# Copyright 2009-2010, Fathi Boudra -# Copyright 2009-2010, Rex Dieter -# Copyright 2006, Kevin Krammer -# Copyright 2006, Jeremy White -# -# LICENSE: -# -# Permission is hereby granted, free of charge, to any person obtaining a -# copy of this software and associated documentation files (the "Software"), -# to deal in the Software without restriction, including without limitation -# the rights to use, copy, modify, merge, publish, distribute, sublicense, -# and/or sell copies of the Software, and to permit persons to whom the -# Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included -# in all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR -# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -# OTHER DEALINGS IN THE SOFTWARE. -# -#--------------------------------------------- - -manualpage() -{ -cat << _MANUALPAGE -Name - - xdg-open -- opens a file or URL in the user's preferred - application - -Synopsis - - xdg-open { file | URL } - - xdg-open { --help | --manual | --version } - -Description - - xdg-open opens a file or URL in the user's preferred - application. If a URL is provided the URL will be opened in the - user's preferred web browser. If a file is provided the file - will be opened in the preferred application for files of that - type. xdg-open supports file, ftp, http and https URLs. - - xdg-open is for use inside a desktop session only. It is not - recommended to use xdg-open as root. - -Options - - --help - Show command synopsis. - - --manual - Show this manual page. - - --version - Show the xdg-utils version information. - -Exit Codes - - An exit code of 0 indicates success while a non-zero exit code - indicates failure. The following failure codes can be returned: - - 1 - Error in command line syntax. - - 2 - One of the files passed on the command line did not - exist. - - 3 - A required tool could not be found. - - 4 - The action failed. - -See Also - - xdg-mime(1), xdg-settings(1), MIME applications associations - specification - -Examples - -xdg-open 'http://www.freedesktop.org/' - - Opens the freedesktop.org website in the user's default - browser. - -xdg-open /tmp/foobar.png - - Opens the PNG image file /tmp/foobar.png in the user's default - image viewing application. -_MANUALPAGE -} - -usage() -{ -cat << _USAGE - xdg-open -- opens a file or URL in the user's preferred - application - -Synopsis - - xdg-open { file | URL } - - xdg-open { --help | --manual | --version } - -_USAGE -} - -#@xdg-utils-common@ - -#---------------------------------------------------------------------------- -# Common utility functions included in all XDG wrapper scripts -#---------------------------------------------------------------------------- - -DEBUG() -{ - [ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && return 0; - [ ${XDG_UTILS_DEBUG_LEVEL} -lt $1 ] && return 0; - shift - echo "$@" >&2 -} - -# This handles backslashes but not quote marks. -first_word() -{ - read first rest - echo "$first" -} - -#------------------------------------------------------------- -# map a binary to a .desktop file -binary_to_desktop_file() -{ - search="${XDG_DATA_HOME:-$HOME/.local/share}:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" - binary="`which "$1"`" - binary="`readlink -f "$binary"`" - base="`basename "$binary"`" - IFS=: - for dir in $search; do - unset IFS - [ "$dir" ] || continue - [ -d "$dir/applications" ] || [ -d "$dir/applnk" ] || continue - for file in "$dir"/applications/*.desktop "$dir"/applications/*/*.desktop "$dir"/applnk/*.desktop "$dir"/applnk/*/*.desktop; do - [ -r "$file" ] || continue - # Check to make sure it's worth the processing. - grep -q "^Exec.*$base" "$file" || continue - # Make sure it's a visible desktop file (e.g. not "preferred-web-browser.desktop"). - grep -Eq "^(NoDisplay|Hidden)=true" "$file" && continue - command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word`" - command="`which "$command"`" - if [ x"`readlink -f "$command"`" = x"$binary" ]; then - # Fix any double slashes that got added path composition - echo "$file" | sed -e 's,//*,/,g' - return - fi - done - done -} - -#------------------------------------------------------------- -# map a .desktop file to a binary -desktop_file_to_binary() -{ - search="${XDG_DATA_HOME:-$HOME/.local/share}:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" - desktop="`basename "$1"`" - IFS=: - for dir in $search; do - unset IFS - [ "$dir" ] && [ -d "$dir/applications" ] || [ -d "$dir/applnk" ] || continue - # Check if desktop file contains - - if [ "${desktop#*-}" != "$desktop" ]; then - vendor=${desktop%-*} - app=${desktop#*-} - if [ -r $dir/applications/$vendor/$app ]; then - file_path=$dir/applications/$vendor/$app - elif [ -r $dir/applnk/$vendor/$app ]; then - file_path=$dir/applnk/$vendor/$app - fi - fi - if test -z "$file_path" ; then - for indir in "$dir"/applications/ "$dir"/applications/*/ "$dir"/applnk/ "$dir"/applnk/*/; do - file="$indir/$desktop" - if [ -r "$file" ]; then - file_path=$file - break - fi - done - fi - if [ -r "$file_path" ]; then - # Remove any arguments (%F, %f, %U, %u, etc.). - command="`grep -E "^Exec(\[[^]=]*])?=" "$file_path" | cut -d= -f 2- | first_word`" - command="`which "$command"`" - readlink -f "$command" - return - fi - done -} - -#------------------------------------------------------------- -# Exit script on successfully completing the desired operation - -exit_success() -{ - if [ $# -gt 0 ]; then - echo "$@" - echo - fi - - exit 0 -} - - -#----------------------------------------- -# Exit script on malformed arguments, not enough arguments -# or missing required option. -# prints usage information - -exit_failure_syntax() -{ - if [ $# -gt 0 ]; then - echo "xdg-open: $@" >&2 - echo "Try 'xdg-open --help' for more information." >&2 - else - usage - echo "Use 'man xdg-open' or 'xdg-open --manual' for additional info." - fi - - exit 1 -} - -#------------------------------------------------------------- -# Exit script on missing file specified on command line - -exit_failure_file_missing() -{ - if [ $# -gt 0 ]; then - echo "xdg-open: $@" >&2 - fi - - exit 2 -} - -#------------------------------------------------------------- -# Exit script on failure to locate necessary tool applications - -exit_failure_operation_impossible() -{ - if [ $# -gt 0 ]; then - echo "xdg-open: $@" >&2 - fi - - exit 3 -} - -#------------------------------------------------------------- -# Exit script on failure returned by a tool application - -exit_failure_operation_failed() -{ - if [ $# -gt 0 ]; then - echo "xdg-open: $@" >&2 - fi - - exit 4 -} - -#------------------------------------------------------------ -# Exit script on insufficient permission to read a specified file - -exit_failure_file_permission_read() -{ - if [ $# -gt 0 ]; then - echo "xdg-open: $@" >&2 - fi - - exit 5 -} - -#------------------------------------------------------------ -# Exit script on insufficient permission to write a specified file - -exit_failure_file_permission_write() -{ - if [ $# -gt 0 ]; then - echo "xdg-open: $@" >&2 - fi - - exit 6 -} - -check_input_file() -{ - if [ ! -e "$1" ]; then - exit_failure_file_missing "file '$1' does not exist" - fi - if [ ! -r "$1" ]; then - exit_failure_file_permission_read "no permission to read file '$1'" - fi -} - -check_vendor_prefix() -{ - file_label="$2" - [ -n "$file_label" ] || file_label="filename" - file=`basename "$1"` - case "$file" in - [[:alpha:]]*-*) - return - ;; - esac - - echo "xdg-open: $file_label '$file' does not have a proper vendor prefix" >&2 - echo 'A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated' >&2 - echo 'with a dash ("-"). An example '"$file_label"' is '"'example-$file'" >&2 - echo "Use --novendor to override or 'xdg-open --manual' for additional info." >&2 - exit 1 -} - -check_output_file() -{ - # if the file exists, check if it is writeable - # if it does not exists, check if we are allowed to write on the directory - if [ -e "$1" ]; then - if [ ! -w "$1" ]; then - exit_failure_file_permission_write "no permission to write to file '$1'" - fi - else - DIR=`dirname "$1"` - if [ ! -w "$DIR" ] || [ ! -x "$DIR" ]; then - exit_failure_file_permission_write "no permission to create file '$1'" - fi - fi -} - -#---------------------------------------- -# Checks for shared commands, e.g. --help - -check_common_commands() -{ - while [ $# -gt 0 ] ; do - parm="$1" - shift - - case "$parm" in - --help) - usage - echo "Use 'man xdg-open' or 'xdg-open --manual' for additional info." - exit_success - ;; - - --manual) - manualpage - exit_success - ;; - - --version) - echo "xdg-open 1.1.3" - exit_success - ;; - esac - done -} - -check_common_commands "$@" - -[ -z "${XDG_UTILS_DEBUG_LEVEL}" ] && unset XDG_UTILS_DEBUG_LEVEL; -if [ ${XDG_UTILS_DEBUG_LEVEL-0} -lt 1 ]; then - # Be silent - xdg_redirect_output=" > /dev/null 2> /dev/null" -else - # All output to stderr - xdg_redirect_output=" >&2" -fi - -#-------------------------------------- -# Checks for known desktop environments -# set variable DE to the desktop environments name, lowercase - -detectDE() -{ - # see https://bugs.freedesktop.org/show_bug.cgi?id=34164 - unset GREP_OPTIONS - - if [ -n "${XDG_CURRENT_DESKTOP}" ]; then - case "${XDG_CURRENT_DESKTOP}" in - # only recently added to menu-spec, pre-spec X- still in use - Cinnamon|X-Cinnamon) - DE=cinnamon; - ;; - ENLIGHTENMENT) - DE=enlightenment; - ;; - # GNOME, GNOME-Classic:GNOME, or GNOME-Flashback:GNOME - GNOME*) - DE=gnome; - ;; - KDE) - DE=kde; - ;; - # Deepin Desktop Environments - DEEPIN|Deepin|deepin) - DE=dde; - ;; - LXDE) - DE=lxde; - ;; - LXQt) - DE=lxqt; - ;; - MATE) - DE=mate; - ;; - XFCE) - DE=xfce - ;; - X-Generic) - DE=generic - ;; - esac - fi - - if [ x"$DE" = x"" ]; then - # classic fallbacks - if [ x"$KDE_FULL_SESSION" != x"" ]; then DE=kde; - elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; - elif [ x"$MATE_DESKTOP_SESSION_ID" != x"" ]; then DE=mate; - elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome; - elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; - elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>&1; then DE=xfce - elif echo $DESKTOP | grep -q '^Enlightenment'; then DE=enlightenment; - elif [ x"$LXQT_SESSION_CONFIG" != x"" ]; then DE=lxqt; - fi - fi - - if [ x"$DE" = x"" ]; then - # fallback to checking $DESKTOP_SESSION - case "$DESKTOP_SESSION" in - gnome) - DE=gnome; - ;; - LXDE|Lubuntu) - DE=lxde; - ;; - MATE) - DE=mate; - ;; - xfce|xfce4|'Xfce Session') - DE=xfce; - ;; - esac - fi - - if [ x"$DE" = x"" ]; then - # fallback to uname output for other platforms - case "$(uname 2>/dev/null)" in - CYGWIN*) - DE=cygwin; - ;; - Darwin) - DE=darwin; - ;; - esac - fi - - if [ x"$DE" = x"gnome" ]; then - # gnome-default-applications-properties is only available in GNOME 2.x - # but not in GNOME 3.x - which gnome-default-applications-properties > /dev/null 2>&1 || DE="gnome3" - fi - - if [ -f "$XDG_RUNTIME_DIR/flatpak-info" ]; then - DE="flatpak" - fi -} - -#---------------------------------------------------------------------------- -# kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 -# It also always returns 1 in KDE 3.4 and earlier -# Simply return 0 in such case - -kfmclient_fix_exit_code() -{ - version=`LC_ALL=C.UTF-8 kde-config --version 2>/dev/null | grep '^KDE'` - major=`echo $version | sed 's/KDE.*: \([0-9]\).*/\1/'` - minor=`echo $version | sed 's/KDE.*: [0-9]*\.\([0-9]\).*/\1/'` - release=`echo $version | sed 's/KDE.*: [0-9]*\.[0-9]*\.\([0-9]\).*/\1/'` - test "$major" -gt 3 && return $1 - test "$minor" -gt 5 && return $1 - test "$release" -gt 4 && return $1 - return 0 -} - -#---------------------------------------------------------------------------- -# Returns true if there is a graphical display attached. - -has_display() -{ - if [ -n "$DISPLAY" ] || [ -n "$WAYLAND_DISPLAY" ]; then - return 0 - else - return 1 - fi -} - -# This handles backslashes but not quote marks. -last_word() -{ - read first rest - echo "$rest" -} - -# Get the value of a key in a desktop file's Desktop Entry group. -# Example: Use get_key foo.desktop Exec -# to get the values of the Exec= key for the Desktop Entry group. -get_key() -{ - local file="${1}" - local key="${2}" - local desktop_entry="" - - IFS_="${IFS}" - IFS="" - while read line - do - case "$line" in - "[Desktop Entry]") - desktop_entry="y" - ;; - # Reset match flag for other groups - "["*) - desktop_entry="" - ;; - "${key}="*) - # Only match Desktop Entry group - if [ -n "${desktop_entry}" ] - then - echo "${line}" | cut -d= -f 2- - fi - esac - done < "${file}" - IFS="${IFS_}" -} - -# Returns true if argument is a file:// URL or path -is_file_url_or_path() -{ - if echo "$1" | grep -q '^file://' \ - || ! echo "$1" | egrep -q '^[[:alpha:]+\.\-]+:'; then - return 0 - else - return 1 - fi -} - -# If argument is a file URL, convert it to a (percent-decoded) path. -# If not, leave it as it is. -file_url_to_path() -{ - local file="$1" - if echo "$file" | grep -q '^file:///'; then - file=${file#file://} - file=${file%%#*} - file=$(echo "$file" | sed -r 's/\?.*$//') - local printf=printf - if [ -x /usr/bin/printf ]; then - printf=/usr/bin/printf - fi - file=$($printf "$(echo "$file" | sed -e 's@%\([a-f0-9A-F]\{2\}\)@\\x\1@g')") - fi - echo "$file" -} - -open_cygwin() -{ - cygstart "$1" - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_darwin() -{ - open "$1" - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_kde() -{ - if [ -n "${KDE_SESSION_VERSION}" ]; then - case "${KDE_SESSION_VERSION}" in - 4) - kde-open "$1" - ;; - 5) - kde-open${KDE_SESSION_VERSION} "$1" - ;; - esac - else - kfmclient exec "$1" - kfmclient_fix_exit_code $? - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_dde() -{ - if dde-open -version >/dev/null 2>&1; then - dde-open "$1" - else - open_generic "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_gnome3() -{ - if gio help open 2>/dev/null 1>&2; then - gio open "$1" - elif gvfs-open --help 2>/dev/null 1>&2; then - gvfs-open "$1" - else - open_generic "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_gnome() -{ - if gio help open 2>/dev/null 1>&2; then - gio open "$1" - elif gvfs-open --help 2>/dev/null 1>&2; then - gvfs-open "$1" - elif gnome-open --help 2>/dev/null 1>&2; then - gnome-open "$1" - else - open_generic "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_mate() -{ - if gio help open 2>/dev/null 1>&2; then - gio open "$1" - elif gvfs-open --help 2>/dev/null 1>&2; then - gvfs-open "$1" - elif mate-open --help 2>/dev/null 1>&2; then - mate-open "$1" - else - open_generic "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_xfce() -{ - if exo-open --help 2>/dev/null 1>&2; then - exo-open "$1" - elif gio help open 2>/dev/null 1>&2; then - gio open "$1" - elif gvfs-open --help 2>/dev/null 1>&2; then - gvfs-open "$1" - else - open_generic "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_enlightenment() -{ - if enlightenment_open --help 2>/dev/null 1>&2; then - enlightenment_open "$1" - else - open_generic "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_flatpak() -{ - gdbus call --session \ - --dest org.freedesktop.portal.Desktop \ - --object-path /org/freedesktop/portal/desktop \ - --method org.freedesktop.portal.OpenURI.OpenURI \ - "" "$1" {} - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -#----------------------------------------- -# Recursively search .desktop file - -search_desktop_file() -{ - local default="$1" - local dir="$2" - local target="$3" - - local file="" - # look for both vendor-app.desktop, vendor/app.desktop - if [ -r "$dir/$default" ]; then - file="$dir/$default" - elif [ -r "$dir/`echo $default | sed -e 's|-|/|'`" ]; then - file="$dir/`echo $default | sed -e 's|-|/|'`" - fi - - if [ -r "$file" ] ; then - command="$(get_key "${file}" "Exec" | first_word)" - command_exec=`which $command 2>/dev/null` - icon="$(get_key "${file}" "Icon")" - # FIXME: Actually LC_MESSAGES should be used as described in - # http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s04.html - localised_name="$(get_key "${file}" "Name")" - set -- $(get_key "${file}" "Exec" | last_word) - # We need to replace any occurrence of "%f", "%F" and - # the like by the target file. We examine each - # argument and append the modified argument to the - # end then shift. - local args=$# - local replaced=0 - while [ $args -gt 0 ]; do - case $1 in - %[c]) - replaced=1 - arg="${localised_name}" - shift - set -- "$@" "$arg" - ;; - %[fFuU]) - replaced=1 - arg="$target" - shift - set -- "$@" "$arg" - ;; - %[i]) - replaced=1 - shift - set -- "$@" "--icon" "$icon" - ;; - *) - arg="$1" - shift - set -- "$@" "$arg" - ;; - esac - args=$(( $args - 1 )) - done - [ $replaced -eq 1 ] || set -- "$@" "$target" - "$command_exec" "$@" - - if [ $? -eq 0 ]; then - exit_success - fi - fi - - for d in $dir/*/; do - [ -d "$d" ] && search_desktop_file "$default" "$d" "$target" - done -} - - -open_generic_xdg_mime() -{ - filetype="$2" - default=`xdg-mime query default "$filetype"` - if [ -n "$default" ] ; then - xdg_user_dir="$XDG_DATA_HOME" - [ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.local/share" - - xdg_system_dirs="$XDG_DATA_DIRS" - [ -n "$xdg_system_dirs" ] || xdg_system_dirs=/usr/local/share/:/usr/share/ - -DEBUG 3 "$xdg_user_dir:$xdg_system_dirs" - for x in `echo "$xdg_user_dir:$xdg_system_dirs" | sed 's/:/ /g'`; do - search_desktop_file "$default" "$x/applications/" "$1" - done - fi -} - -open_generic_xdg_file_mime() -{ - filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"` - open_generic_xdg_mime "$1" "$filetype" -} - -open_generic_xdg_x_scheme_handler() -{ - scheme="`echo $1 | sed -n 's/\(^[[:alnum:]+\.-]*\):.*$/\1/p'`" - if [ -n $scheme ]; then - filetype="x-scheme-handler/$scheme" - open_generic_xdg_mime "$1" "$filetype" - fi -} - -has_single_argument() -{ - test $# = 1 -} - -open_envvar() -{ - local oldifs="$IFS" - local browser browser_with_arg - - IFS=":" - for browser in $BROWSER; do - IFS="$oldifs" - - if [ -z "$browser" ]; then - continue - fi - - if echo "$browser" | grep -q %s; then - # Avoid argument injection. - # See https://bugs.freedesktop.org/show_bug.cgi?id=103807 - # URIs don't have IFS characters spaces anyway. - has_single_argument $1 && $(printf "$browser" "$1") - else - $browser "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - fi - done -} - -open_generic() -{ - if is_file_url_or_path "$1"; then - local file="$(file_url_to_path "$1")" - - check_input_file "$file" - - if has_display; then - filetype=`xdg-mime query filetype "$file" | sed "s/;.*//"` - open_generic_xdg_mime "$file" "$filetype" - fi - - if which run-mailcap 2>/dev/null 1>&2; then - run-mailcap --action=view "$file" - if [ $? -eq 0 ]; then - exit_success - fi - fi - - if has_display && mimeopen -v 2>/dev/null 1>&2; then - mimeopen -L -n "$file" - if [ $? -eq 0 ]; then - exit_success - fi - fi - fi - - if has_display; then - open_generic_xdg_x_scheme_handler "$1" - fi - - if [ -n "$BROWSER" ]; then - open_envvar "$1" - fi - - # if BROWSER variable is not set, check some well known browsers instead - if [ x"$BROWSER" = x"" ]; then - BROWSER=www-browser:links2:elinks:links:lynx:w3m - if has_display; then - BROWSER=x-www-browser:firefox:iceweasel:seamonkey:mozilla:epiphany:konqueror:chromium:chromium-browser:google-chrome:microsoft-edge:$BROWSER - fi - fi - - open_envvar "$1" - - exit_failure_operation_impossible "no method available for opening '$1'" -} - -open_lxde() -{ - - # pcmanfm only knows how to handle file:// urls and filepaths, it seems. - if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then - local file="$(file_url_to_path "$1")" - - # handle relative paths - if ! echo "$file" | grep -q ^/; then - file="$(pwd)/$file" - fi - - pcmanfm "$file" - else - open_generic "$1" - fi - - if [ $? -eq 0 ]; then - exit_success - else - exit_failure_operation_failed - fi -} - -open_lxqt() -{ - open_generic "$1" -} - -[ x"$1" != x"" ] || exit_failure_syntax - -url= -while [ $# -gt 0 ] ; do - parm="$1" - shift - - case "$parm" in - -*) - exit_failure_syntax "unexpected option '$parm'" - ;; - - *) - if [ -n "$url" ] ; then - exit_failure_syntax "unexpected argument '$parm'" - fi - url="$parm" - ;; - esac -done - -if [ -z "${url}" ] ; then - exit_failure_syntax "file or URL argument missing" -fi - -detectDE - -if [ x"$DE" = x"" ]; then - DE=generic -fi - -DEBUG 2 "Selected DE $DE" - -# sanitize BROWSER (avoid caling ourselves in particular) -case "${BROWSER}" in - *:"xdg-open"|"xdg-open":*) - BROWSER=$(echo $BROWSER | sed -e 's|:xdg-open||g' -e 's|xdg-open:||g') - ;; - "xdg-open") - BROWSER= - ;; -esac - -case "$DE" in - kde) - open_kde "$url" - ;; - - dde) - open_dde "$url" - ;; - - gnome3|cinnamon) - open_gnome3 "$url" - ;; - - gnome) - open_gnome "$url" - ;; - - mate) - open_mate "$url" - ;; - - xfce) - open_xfce "$url" - ;; - - lxde) - open_lxde "$url" - ;; - - lxqt) - open_lxqt "$url" - ;; - - enlightenment) - open_enlightenment "$url" - ;; - - cygwin) - open_cygwin "$url" - ;; - - darwin) - open_darwin "$url" - ;; - - flatpak) - open_flatpak "$url" - ;; - - generic) - open_generic "$url" - ;; - - *) - exit_failure_operation_impossible "no method available for opening '$url'" - ;; -esac diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/htmlReport/index.html b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/htmlReport/index.html deleted file mode 100644 index 57669b2..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/htmlReport/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css deleted file mode 100644 index 132b892..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +++ /dev/null @@ -1 +0,0 @@ -.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%} diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js deleted file mode 100644 index aec9e63..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js +++ /dev/null @@ -1,32 +0,0 @@ -import{g as Ju}from"./index-BhTWtUlo.js";var vi={exports:{}},Zu=vi.exports,pa;function mt(){return pa||(pa=1,(function(ct,xt){(function(b,pe){ct.exports=pe()})(Zu,(function(){var b=navigator.userAgent,pe=navigator.platform,_=/gecko\/\d/i.test(b),te=/MSIE \d/.test(b),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(b),Q=/Edge\/(\d+)/.exec(b),k=te||oe||Q,I=k&&(te?document.documentMode||6:+(Q||oe)[1]),Y=!Q&&/WebKit\//.test(b),ne=Y&&/Qt\/\d+\.\d+/.test(b),S=!Q&&/Chrome\/(\d+)/.exec(b),R=S&&+S[1],A=/Opera\//.test(b),V=/Apple Computer/.test(navigator.vendor),ue=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(b),O=/PhantomJS/.test(b),w=V&&(/Mobile\/\w+/.test(b)||navigator.maxTouchPoints>2),M=/Android/.test(b),N=w||M||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(b),z=w||/Mac/.test(pe),X=/\bCrOS\b/.test(b),q=/win/i.test(pe),p=A&&b.match(/Version\/(\d*\.\d*)/);p&&(p=Number(p[1])),p&&p>=15&&(A=!1,Y=!0);var W=z&&(ne||A&&(p==null||p<12.11)),J=_||k&&I>=9;function P(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var $=function(e,t){var n=e.className,r=P(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function F(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return F(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var Ce=function(){this.id=null,this.f=null,this.time=0,this.handler=xe(this.onTimeout,this)};Ce.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ce.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Ue=[""];function et(e){for(;Ue.length<=e;)Ue.push(we(Ue)+" ");return Ue[e]}function we(e){return e[e.length-1]}function Ie(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ze.test(e))}function De(e,t){return t?t.source.indexOf("\\w")>-1&&me(e)?!0:t.test(e):me(e)}function be(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ne(e){return e.charCodeAt(0)>=768&&Be.test(e)}function Mt(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function or(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var br=null;function lr(e,t,n){var r;br=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:br=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:br=i)}return r??br}var mi=(function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,x){this.level=u,this.from=h,this.to=x}return function(u,h){var x=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!r.test(u))return!1;for(var D=u.length,L=[],H=0;H-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ye(e,t){var n=Zt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Bt(e){e.prototype.on=function(t,n){Se(this,t,n)},e.prototype.off=function(t,n){ht(this,t,n)}}function pt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Er(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function kt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ar(e){pt(e),Er(e)}function ln(e){return e.target||e.srcElement}function Rt(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),z&&e.ctrlKey&&t==1&&(t=3),t}var xi=(function(){if(k&&I<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e})(),Or;function Rn(e){if(Or==null){var t=c("span","​");G(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Or=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&I<8))}var n=Or?c("span","​"):c("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var an;function sr(e){if(an!=null)return an;var t=G(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return F(e),!n||n.left==n.right?!1:an=r.right-n.right<3}var zt=` - -b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` -`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ur=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Wn=(function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),Wt=null;function yi(e){if(Wt!=null)return Wt;var t=G(e,c("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Wt=Math.abs(n.left-r.left)>1}var Pr={},Ht={};function _t(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pr[e]=t}function kr(e,t){Ht[e]=t}function Ir(e){if(typeof e=="string"&&Ht.hasOwnProperty(e))e=Ht[e];else if(e&&typeof e.name=="string"&&Ht.hasOwnProperty(e.name)){var t=Ht[e.name];typeof t=="string"&&(t={name:t}),e=K(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ir("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ir("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function zr(e,t){t=Ir(t);var n=Pr[t.name];if(!n)return zr(e,"text/plain");var r=n(e,t);if(fr.hasOwnProperty(t.name)){var i=fr[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var fr={};function Br(e,t){var n=fr.hasOwnProperty(e)?fr[e]:fr[e]={};Me(t,n)}function Gt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function sn(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Rr(e,t,n){return e.startState?e.startState(t,n):!0}var Je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Je.prototype.eol=function(){return this.pos>=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ye(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?B(n,ye(e,n).text.length):Za(t,ye(e,t.line).text.length)}function Za(e,t){var n=e.ch;return n==null||n>t?B(e.line,t):n<0?B(e.line,0):e}function vo(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Xt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xt.fromSaved=function(e,t,n){return t instanceof Hn?new Xt(e,Gt(e.mode,t.state),n,t.lookAhead):new Xt(e,Gt(e.mode,t),n)},Xt.prototype.save=function(e){var t=e!==!1?Gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(t,this.maxLookAhead):t};function mo(e,t,n,r){var i=[e.state.modeGen],o={};So(e,t.text,e.doc.mode,n,function(u,h){return i.push(u,h)},o,r);for(var l=n.state,a=function(u){n.baseTokens=i;var h=e.state.overlays[u],x=1,D=0;n.state=!0,So(e,t.text,h.mode,n,function(L,H){for(var Z=x;DL&&i.splice(x,1,L,i[x+1],ie),x+=2,D=Math.min(L,ie)}if(H)if(h.opaque)i.splice(Z,x-Z,L,"overlay "+H),x=Z+2;else for(;Ze.options.maxHighlightLength&&Gt(e.doc.mode,r.state),o=mo(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function fn(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Xt(r,!0,t);var o=Va(e,t,n),l=o>r.first&&ye(r,o-1).stateAfter,a=l?Xt.fromSaved(r,l,o):new Xt(r,Rr(r.mode),o);return r.iter(o,t,function(s){bi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var bo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function ko(e,t,n,r){var i=e.doc,o=i.mode,l;t=Ae(i,t);var a=ye(i,t.line),s=fn(e,t.line,n),u=new Je(a.text,e.options.tabSize,s),h;for(r&&(h=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&bi(e,t,r,h.pos),h.pos=t.length,x=null):x=wo(ki(n,h,r.state,D),o),D){var L=D[0].name;L&&(x="m-"+(x?L+" "+x:L))}if(!a||u!=x){for(;sl;--a){if(a<=o.first)return o.first;var s=ye(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Hn?u.lookAhead:0)<=o.modeFrontier))return a;var h=Fe(s.text,null,e.options.tabSize);(i==null||r>h)&&(i=a-1,r=h)}return i}function $a(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=ye(e,r).stateAfter;if(i&&(!(i instanceof Hn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new _n(l,o.from,s?null:o.to))}}return r}function os(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var ge=0;ge0)){var h=[s,1],x=ce(u.from,a.from),D=ce(u.to,a.to);(x<0||!l.inclusiveLeft&&!x)&&h.push({from:u.from,to:a.from}),(D>0||!l.inclusiveRight&&!D)&&h.push({from:a.to,to:u.to}),i.splice.apply(i,h),s+=h.length-3}}return i}function Co(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||Si(r,o.marker)<0)&&(r=o.marker)}return r}function Ao(e,t,n,r,i){var o=ye(e,t),l=$t&&o.markedSpans;if(l)for(var a=0;a=0&&x<=0||h<=0&&x>=0)&&(h<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.to,n)>=0:ce(u.to,n)>0)||h>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.from,r)<=0:ce(u.from,r)<0)))return!0}}}function qt(e){for(var t;t=Fo(e);)e=t.find(-1,!0).line;return e}function ss(e){for(var t;t=Kn(e);)e=t.find(1,!0).line;return e}function us(e){for(var t,n;t=Kn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Li(e,t){var n=ye(e,t),r=qt(n);return n==r?t:f(r)}function No(e,t){if(t>e.lastLine())return t;var n=ye(e,t),r;if(!cr(e,n))return t;for(;r=Kn(n);)n=r.find(1,!0).line;return f(n)+1}function cr(e,t){var n=$t&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Hr=function(e,t,n){this.text=e,Do(this,t),this.height=n?n(this):1};Hr.prototype.lineNo=function(){return f(this)},Bt(Hr);function fs(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Co(e),Do(e,n);var i=r?r(e):1;i!=e.height&&Et(e,i)}function cs(e){e.parent=null,Co(e)}var ds={},hs={};function Eo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hs:ds;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Oo(e,t){var n=T("span",null,null,Y?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=gs,sr(e.display.measure)&&(l=Re(o,e.doc.direction))&&(r.addToken=ms(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&f(o);xs(o,r,xo(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=de(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=de(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Rn(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Y){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=de(r.pre.className,r.textClass||"")),r}function ps(e){var t=c("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gs(e,t,n,r,i,o,l){if(t){var a=e.splitSpaces?vs(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),k&&I<9&&(u=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var x=0;;){s.lastIndex=x;var D=s.exec(t),L=D?D.index-x:t.length-x;if(L){var H=document.createTextNode(a.slice(x,x+L));k&&I<9?h.appendChild(c("span",[H])):h.appendChild(H),e.map.push(e.pos,e.pos+L,H),e.col+=L,e.pos+=L}if(!D)break;x+=L+1;var Z=void 0;if(D[0]==" "){var ie=e.cm.options.tabSize,ae=ie-e.col%ie;Z=h.appendChild(c("span",et(ae),"cm-tab")),Z.setAttribute("role","presentation"),Z.setAttribute("cm-text"," "),e.col+=ae}else D[0]=="\r"||D[0]==` -`?(Z=h.appendChild(c("span",D[0]=="\r"?"␍":"␤","cm-invalidchar")),Z.setAttribute("cm-text",D[0]),e.col+=1):(Z=e.cm.options.specialCharPlaceholder(D[0]),Z.setAttribute("cm-text",D[0]),k&&I<9?h.appendChild(c("span",[Z])):h.appendChild(Z),e.col+=1);e.map.push(e.pos,e.pos+1,Z),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||o||l){var he=n||"";r&&(he+=r),i&&(he+=i);var se=c("span",[h],he,o);if(l)for(var ge in l)l.hasOwnProperty(ge)&&ge!="style"&&ge!="class"&&se.setAttribute(ge,l[ge]);return e.content.appendChild(se)}e.content.appendChild(h)}}function vs(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&x.from<=u));D++);if(x.to>=h)return e(n,r,i,o,l,a,s);e(n,r.slice(0,x.to-u),i,o,null,a,s),o=null,r=r.slice(x.to-u),u=x.to}}}function Po(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function xs(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;ls||Ee.collapsed&&ke.to==s&&ke.from==s)){if(ke.to!=null&&ke.to!=s&&L>ke.to&&(L=ke.to,Z=""),Ee.className&&(H+=" "+Ee.className),Ee.css&&(D=(D?D+";":"")+Ee.css),Ee.startStyle&&ke.from==s&&(ie+=" "+Ee.startStyle),Ee.endStyle&&ke.to==L&&(ge||(ge=[])).push(Ee.endStyle,ke.to),Ee.title&&((he||(he={})).title=Ee.title),Ee.attributes)for(var Ke in Ee.attributes)(he||(he={}))[Ke]=Ee.attributes[Ke];Ee.collapsed&&(!ae||Si(ae.marker,Ee)<0)&&(ae=ke)}else ke.from>s&&L>ke.from&&(L=ke.from)}if(ge)for(var st=0;st=a)break;for(var Nt=Math.min(a,L);;){if(h){var Tt=s+h.length;if(!ae){var tt=Tt>Nt?h.slice(0,Nt-s):h;t.addToken(t,tt,x?x+H:H,ie,s+tt.length==L?Z:"",D,he)}if(Tt>=Nt){h=h.slice(Nt-s),s=Nt;break}s=Tt,ie=""}h=i.slice(o,o=n[u++]),x=Eo(n[u++],t.cm.options)}}}function Io(e,t,n){this.line=t,this.rest=us(t),this.size=this.rest?f(we(this.rest))-n+1:1,this.node=this.text=null,this.hidden=cr(e,t)}function Gn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function qo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Fs(e,t){t=qt(t);var n=f(t),r=e.display.externalMeasured=new Io(e.doc,t,n);r.lineN=n;var i=r.built=Oo(e,r);return r.text=i.pre,G(e.display.lineMeasure,i.pre),r}function jo(e,t,n,r){return Qt(e,qr(e,t),n,r)}function Ai(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Ns(e,t,n,r){var i=Uo(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var h=0;h<4;h++){for(;l&&Ne(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a0&&(s=r="right");var x;e.options.lineWrapping&&(x=o.getClientRects()).length>1?u=x[r=="right"?x.length-1:0]:u=o.getBoundingClientRect()}if(k&&I<9&&!l&&(!u||!u.left&&!u.right)){var D=o.parentNode.getClientRects()[0];D?u={left:D.left,right:D.left+Kr(e.display),top:D.top,bottom:D.bottom}:u=Ko}for(var L=u.top-t.rect.top,H=u.bottom-t.rect.top,Z=(L+H)/2,ie=t.view.measure.heights,ae=0;ae=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function h(H,Z,ie){var ae=a[Z],he=ae.level==1;return l(ie?H-1:H,he!=ie)}var x=lr(a,s,u),D=br,L=h(s,x,u=="before");return D!=null&&(L.other=h(s,D,u!="before")),L}function Zo(e,t){var n=0;t=Ae(e.doc,t),e.options.lineWrapping||(n=Kr(e.display)*t.ch);var r=ye(e.doc,t.line),i=er(r)+Xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ei(e,t,n,r,i){var o=B(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Oi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Ei(r.first,0,null,-1,-1);var i=m(r,n),o=r.first+r.size-1;if(i>o)return Ei(r.first+r.size-1,ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=ye(r,i);;){var a=Os(e,l,i,t,n),s=as(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=ye(r,i=u.line)}}function Vo(e,t,n,r){r-=Ni(t);var i=t.text.length,o=Pt(function(l){return Qt(e,n,l-1).bottom<=r},i,0);return i=Pt(function(l){return Qt(e,n,l).top>r},o,i),{begin:o,end:i}}function $o(e,t,n,r){n||(n=qr(e,t));var i=Yn(e,t,Qt(e,n,r),"line").top;return Vo(e,t,n,i)}function Pi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Os(e,t,n,r,i){i-=er(t);var o=qr(e,t),l=Ni(t),a=0,s=t.text.length,u=!0,h=Re(t,e.doc.direction);if(h){var x=(e.options.lineWrapping?Is:Ps)(e,t,n,o,h,r,i);u=x.level!=1,a=u?x.from:x.to-1,s=u?x.to:x.from-1}var D=null,L=null,H=Pt(function(Le){var ke=Qt(e,o,Le);return ke.top+=l,ke.bottom+=l,Pi(ke,r,i,!1)?(ke.top<=i&&ke.left<=r&&(D=Le,L=ke),!0):!1},a,s),Z,ie,ae=!1;if(L){var he=r-L.left=ge.bottom?1:0}return H=Mt(t.text,H,1),Ei(n,H,ie,ae,r-Z)}function Ps(e,t,n,r,i,o,l){var a=Pt(function(x){var D=i[x],L=D.level!=1;return Pi(jt(e,B(n,L?D.to:D.from,L?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,h=jt(e,B(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Pi(h,o,l,!0)&&h.top>l&&(s=i[a-1])}return s}function Is(e,t,n,r,i,o,l){var a=Vo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var h=null,x=null,D=0;D=u||L.to<=s)){var H=L.level!=1,Z=Qt(e,r,H?Math.min(u,L.to)-1:Math.max(s,L.from)).right,ie=Zie)&&(h=L,x=ie)}}return h||(h=i[i.length-1]),h.fromu&&(h={from:h.from,to:u,level:h.level}),h}var Sr;function jr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Sr==null){Sr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Sr.appendChild(document.createTextNode("x")),Sr.appendChild(c("br"));Sr.appendChild(document.createTextNode("x"))}G(e.measure,Sr);var n=Sr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),F(e.measure),n||1}function Kr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");G(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ii(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:zi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function zi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function el(e){var t=jr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Kr(e.display)-3);return function(i){if(cr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(u=ye(e.doc,s.line).text).length==s.ch){var h=Fe(u,u.length,e.options.tabSize)-u.length;s=B(s.line,Math.max(0,Math.round((o-_o(e.display).left)/Kr(e.display))-h))}return s}function Tr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)$t&&Li(e.doc,t)i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=Jn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var l=Jn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):hr(e)}else{var a=Jn(e,t,t,-1),s=Jn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Gn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):hr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Tr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);ve(l,n)==-1&&l.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Jn(e,t,n,r){var i=Tr(e,t),o,l=e.display.view;if(!$t||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;Li(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function zs(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Gn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Gn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Tr(e,n)))),r.viewTo=n}function tl(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(c("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Zn(e,t){return e.top-t.top||e.left-t.left}function Bs(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=_o(e.display),a=l.left,s=Math.max(r.sizerWidth,wr(e)-r.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function h(se,ge,Le,ke){ge<0&&(ge=0),ge=Math.round(ge),ke=Math.round(ke),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+se+`px; - top: `+ge+"px; width: "+(Le??s-se)+`px; - height: `+(ke-ge)+"px"))}function x(se,ge,Le){var ke=ye(i,se),Ee=ke.text.length,Ke,st;function Xe(tt,Ct){return Qn(e,B(se,tt),"div",ke,Ct)}function Nt(tt,Ct,ft){var nt=$o(e,ke,null,tt),rt=Ct=="ltr"==(ft=="after")?"left":"right",Ze=ft=="after"?nt.begin:nt.end-(/\s/.test(ke.text.charAt(nt.end-1))?2:1);return Xe(Ze,rt)[rt]}var Tt=Re(ke,i.direction);return or(Tt,ge||0,Le??Ee,function(tt,Ct,ft,nt){var rt=ft=="ltr",Ze=Xe(tt,rt?"left":"right"),Dt=Xe(Ct-1,rt?"right":"left"),nn=ge==null&&tt==0,yr=Le==null&&Ct==Ee,vt=nt==0,Jt=!Tt||nt==Tt.length-1;if(Dt.top-Ze.top<=3){var ut=(u?nn:yr)&&vt,co=(u?yr:nn)&&Jt,ir=ut?a:(rt?Ze:Dt).left,Ar=co?s:(rt?Dt:Ze).right;h(ir,Ze.top,Ar-ir,Ze.bottom)}else{var Nr,bt,on,ho;rt?(Nr=u&&nn&&vt?a:Ze.left,bt=u?s:Nt(tt,ft,"before"),on=u?a:Nt(Ct,ft,"after"),ho=u&&yr&&Jt?s:Dt.right):(Nr=u?Nt(tt,ft,"before"):a,bt=!u&&nn&&vt?s:Ze.right,on=!u&&yr&&Jt?a:Dt.left,ho=u?Nt(Ct,ft,"after"):s),h(Nr,Ze.top,bt-Nr,Ze.bottom),Ze.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Ur(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function nl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_i(e))}function Hi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ur(e))},100)}function _i(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ye(e,"focus",e,t),e.state.focused=!0,j(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),Y&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Wi(e))}function Ur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ye(e,"blur",e,t),e.state.focused=!1,$(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Vn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||L<-.005)&&(ie.display.sizerWidth){var Z=Math.ceil(h/Kr(e.display));Z>e.display.maxLineLength&&(e.display.maxLineLength=Z,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function il(e){if(e.widgets)for(var t=0;t=l&&(o=m(t,er(ye(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Rs(e,t){if(!Qe(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!O){var l=c("div","​",null,`position: absolute; - top: `+(t.top-n.viewOffset-Xn(e.display))+`px; - height: `+(t.bottom-t.top+Yt(e)+n.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function Ws(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?B(t.line,t.ch+1,"before"):t,t=t.ch?B(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=jt(e,t),s=!n||n==t?a:jt(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=qi(e,i),h=e.doc.scrollTop,x=e.doc.scrollLeft;if(u.scrollTop!=null&&(xn(e,u.scrollTop),Math.abs(e.doc.scrollTop-h)>1&&(l=!0)),u.scrollLeft!=null&&(Cr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-x)>1&&(l=!0)),!l)break}return i}function Hs(e,t){var n=qi(e,t);n.scrollTop!=null&&xn(e,n.scrollTop),n.scrollLeft!=null&&Cr(e,n.scrollLeft)}function qi(e,t){var n=e.display,r=jr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Fi(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Mi(n),s=t.topa-r;if(t.topi+o){var h=Math.min(t.top,(u?a:t.bottom)-o);h!=i&&(l.scrollTop=h)}var x=e.options.fixedGutter?0:n.gutters.offsetWidth,D=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-x,L=wr(e)-n.gutters.offsetWidth,H=t.right-t.left>L;return H&&(t.right=t.left+L),t.left<10?l.scrollLeft=0:t.leftL+D-3&&(l.scrollLeft=t.right+(H?0:10)-L),l}function ji(e,t){t!=null&&(ei(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Gr(e){ei(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mn(e,t,n){(t!=null||n!=null)&&ei(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function _s(e,t){ei(e),e.curOp.scrollToPos=t}function ei(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Zo(e,t.from),r=Zo(e,t.to);ol(e,n,r,t.margin)}}function ol(e,t,n,r){var i=qi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});mn(e,i.scrollLeft,i.scrollTop)}function xn(e,t){Math.abs(e.doc.scrollTop-t)<2||(_||Ui(e,{top:t}),ll(e,t,!0),_&&Ui(e),kn(e,100))}function ll(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,cl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Mi(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Yt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Dr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),Se(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Se(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,k&&I<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Dr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Dr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Dr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Dr.prototype.zeroWidthHack=function(){var e=z&&!ue?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ce,this.disableVert=new Ce},Dr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Dr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bn=function(){};bn.prototype.update=function(){return{bottom:0,right:0}},bn.prototype.setScrollLeft=function(){},bn.prototype.setScrollTop=function(){},bn.prototype.clear=function(){};function Xr(e,t){t||(t=yn(e));var n=e.display.barWidth,r=e.display.barHeight;al(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Vn(e),al(e,yn(e)),n=e.display.barWidth,r=e.display.barHeight}function al(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var sl={native:Dr,null:bn};function ul(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new sl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Se(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Cr(e,t):xn(e,t)},e),e.display.scrollbars.addClass&&j(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function Mr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qs,markArrays:null},ys(e.curOp)}function Fr(e){var t=e.curOp;t&&ks(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ti(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Us(e){e.updatedDisplay=e.mustUpdate&&Ki(e.cm,e.update)}function Gs(e){var t=e.cm,n=t.display;e.updatedDisplay&&Vn(t),e.barMeasure=yn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=jo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-wr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xs(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=fn(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Gt(t.mode,r.state):null,s=mo(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,h=s.classes;h?o.styleClasses=h:u&&(o.styleClasses=null);for(var x=!l||l.length!=o.styles.length||u!=h&&(!u||!h||u.bgClass!=h.bgClass||u.textClass!=h.textClass),D=0;!x&&Dn)return kn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&At(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&tl(e)==0)return!1;dl(e)&&(hr(e),t.dims=Ii(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),$t&&(o=Li(e.doc,o),l=No(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zs(e,o,l),n.viewOffset=er(ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=tl(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=Zs(e);return s>4&&(n.lineDiv.style.display="none"),$s(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Vs(u),F(n.cursorDiv),F(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,kn(e,400)),n.updateLineNumbers=null,!0}function fl(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==wr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Mi(e.display)-Fi(e),n.top)}),t.visible=$n(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=$n(e.display,e.doc,n));if(!Ki(e,t))break;Vn(e);var i=yn(e);vn(e),Xr(e,i),Xi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new ti(e,t);if(Ki(e,n)){Vn(e),fl(e,n);var r=yn(e);vn(e),Xr(e,r),Xi(e,r),n.finish()}}function $s(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(H){var Z=H.nextSibling;return Y&&z&&e.display.currentWheelTarget==H?H.style.display="none":H.parentNode.removeChild(H),Z}for(var s=r.view,u=r.viewFrom,h=0;h-1&&(L=!1),zo(e,x,u,n)),L&&(F(x.lineNumber),x.lineNumber.appendChild(document.createTextNode(re(e.options,u)))),l=x.node.nextSibling}u+=x.size}for(;l;)l=a(l)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ot(e,"gutterChanged",e)}function Xi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yt(e)+"px"}function cl(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=zi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),k&&I<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!Y&&!(_&&N)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Yi(r.gutters,r.lineNumbers),hl(i),n.init(i)}var ri=0,rr=null;k?rr=-.53:_?rr=15:S?rr=-.7:V&&(rr=-1/3);function pl(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function tu(e){var t=pl(e);return t.x*=rr,t.y*=rr,t}function gl(e,t){S&&R==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=pl(t),r=n.x,i=n.y,o=rr;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&z&&Y){e:for(var h=t.target,x=l.view;h!=a;h=h.parentNode)for(var D=0;D=0&&ce(e,r.to())<=0)return n}return-1};var He=function(e,t){this.anchor=e,this.head=t};He.prototype.from=function(){return Wr(this.anchor,this.head)},He.prototype.to=function(){return wt(this.anchor,this.head)},He.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Kt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(D,L){return ce(D.from(),L.from())}),n=ve(t,i);for(var o=1;o0:s>=0){var u=Wr(a.from(),l.from()),h=wt(a.to(),l.to()),x=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new He(x?h:u,x?u:h))}}return new Ot(t,n)}function pr(e,t){return new Ot([new He(e,t||e)],0)}function gr(e){return e.text?B(e.from.line+e.text.length-1,we(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function vl(e,t){if(ce(e,t.from)<0)return e;if(ce(e,t.to)<=0)return gr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=gr(t).ch-t.to.ch),B(n,r)}function Qi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,H-1),e.insert(a.line+1,ae)}ot(e,"change",e,t)}function vr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),we(e.done)}function wl(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=iu(i,i.lastOp==r)))a=we(l.changes),ce(t.from,t.to)==0&&ce(t.from,a.to)==0?a.to=gr(t):l.changes.push(Vi(e,t));else{var s=we(i.done);for((!s||!s.ranges)&&ii(e.sel,i.done),l={changes:[Vi(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ye(e,"historyAdded")}function ou(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function lu(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ou(e,o,we(i.done),t))?i.done[i.done.length-1]=t:ii(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&kl(i.undone)}function ii(e,t){var n=we(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Sl(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function au(e){if(!e)return null;for(var t,n=0;n-1&&(we(a)[x]=u[x],delete u[x])}}return r}function $i(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ce(t,i)<0;o!=ce(n,i)<0?(i=t,t=n):o!=ce(t,n)<0&&(t=n)}return new He(i,t)}else return new He(n||t,t)}function oi(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),gt(e,new Ot([$i(e.sel.primary(),t,n,i)],0),r)}function Tl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(Ye(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var x=s.find(r<0?1:-1),D=void 0;if((r<0?h:u)&&(x=Nl(e,x,-r,x&&x.line==t.line?o:null)),x&&x.line==t.line&&(D=ce(x,n))&&(r<0?D<0:D>0))return Qr(e,x,t,r,i)}var L=s.find(r<0?-1:1);return(r<0?u:h)&&(L=Nl(e,L,r,L.line==t.line?o:null)),L?Qr(e,L,t,r,i):null}}return t}function ai(e,t,n,r,i){var o=r||1,l=Qr(e,t,n,o,i)||!i&&Qr(e,t,n,o,!0)||Qr(e,t,n,-o,i)||!i&&Qr(e,t,n,-o,!0);return l||(e.cantEdit=!0,B(e.first,0))}function Nl(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?Ae(e,B(t.line-1)):null:n>0&&t.ch==(r||ye(e,t.line)).text.length?t.line=0;--i)Pl(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&ce(t.from,t.to)==0)){var n=Qi(e,t);wl(e,t,n,e.cm?e.cm.curOp.id:NaN),Ln(e,t,n,wi(e,t));var r=[];vr(e,function(i,o){!o&&ve(r,i.history)==-1&&(Rl(i.history,t),r.push(i.history)),Ln(i,t,null,wi(i,t))})}}function si(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--L){var H=D(L);if(H)return H.v}}}}function Il(e,t){if(t!=0&&(e.first+=t,e.sel=new Ot(Ie(e.sel.ranges,function(i){return new He(B(i.anchor.line+t,i.anchor.ch),B(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){St(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:B(o,ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Vt(e,t.from,t.to),n||(n=Qi(e,t)),e.cm?fu(e.cm,t,r):Zi(e,t,r),li(e,n,Ve),e.cantEdit&&ai(e,B(e.firstLine(),0))&&(e.cantEdit=!1)}}function fu(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=f(qt(ye(r,o.line))),r.iter(s,l.line+1,function(L){if(L==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&It(e),Zi(r,t,n,el(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(L){var H=Un(L);H>i.maxLineLength&&(i.maxLine=L,i.maxLineLength=H,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),$a(r,o.line),kn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?St(e):o.line==l.line&&t.text.length==1&&!xl(e.doc,t)?dr(e,o.line,"text"):St(e,o.line,l.line+1,u);var h=Ft(e,"changes"),x=Ft(e,"change");if(x||h){var D={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};x&&ot(e,"change",e,D),h&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(D)}e.display.selForContextMenu=null}function Zr(e,t,n,r,i){var o;r||(r=n),ce(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Jr(e,{from:n,to:r,text:t,origin:i})}function zl(e,t,n,r){n1||!(this.children[0]instanceof Cn))){var a=[];this.collapse(a),this.children=[new Cn(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=h,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&St(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Fl(e.doc)),e&&ot(e,"markerCleared",e,this,r,i),t&&Fr(e),this.parent&&this.parent.clear()}},mr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ao(e,t.line,t,n,o)||t.line!=n.line&&Ao(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");ts()}o.addToHistory&&wl(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(x){s&&o.collapsed&&!s.options.lineWrapping&&qt(x)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Et(x,0),ns(x,new _n(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(x){cr(e,x)&&Et(x,0)}),o.clearOnEnter&&Se(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(es(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Hl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)St(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var h=t.line;h<=n.line;h++)dr(s,h,"text");o.atomic&&Fl(s.doc),ot(s,"markerAdded",s,o)}return o}var Fn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)Jr(this,r[s]);a?Dl(this,a):this.cm&&Gr(this.cm)}),undo:at(function(){si(this,"undo")}),redo:at(function(){si(this,"redo")}),undoSelection:at(function(){si(this,"undo",!0)}),redoSelection:at(function(){si(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Ae(this,e),t=Ae(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),Ae(this,B(n,t))},indexFromPos:function(e){e=Ae(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var h=e.dataTransfer.getData("Text");if(h){var x;if(t.state.draggingText&&!t.state.draggingText.copy&&(x=t.listSelections()),li(t.doc,pr(n,n)),x)for(var D=0;D=0;a--)Zr(e.doc,"",r[a].from,r[a].to,"+delete");Gr(e)})}function to(e,t,n){var r=Mt(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ro(e,t,n){var r=to(e,t.ch,n);return r==null?null:new B(t.line,r,n<0?"after":"before")}function no(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Re(n,t.doc.direction);if(o){var l=i<0?we(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var h=qr(t,n);u=i<0?n.text.length-1:0;var x=Qt(t,h,u).top;u=Pt(function(D){return Qt(t,h,D).top==x},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=to(n,u,1))}else u=i<0?l.to:l.from;return new B(r,u,s)}}return new B(r,i<0?n.text.length:0,i<0?"before":"after")}function Lu(e,t,n,r){var i=Re(t,e.doc.direction);if(!i)return ro(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lr(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&D>=h.begin)){var L=x?"before":"after";return new B(n.line,D,L)}}var H=function(ae,he,se){for(var ge=function(Ke,st){return st?new B(n.line,a(Ke,1),"before"):new B(n.line,Ke,"after")};ae>=0&&ae0==(Le.level!=1),Ee=ke?se.begin:a(se.end,-1);if(Le.from<=Ee&&Ee0?h.end:a(h.begin,-1);return ie!=null&&!(r>0&&ie==t.text.length)&&(Z=H(r>0?0:i.length-1,r,u(ie)),Z)?Z:null}var En={selectAll:El,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ve)},killLine:function(e){return en(e,function(t){if(t.empty()){var n=ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new B(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),B(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=ye(e.doc,i.line-1).text;l&&(i=new B(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),B(i.line-1,l.length-1),i,"+transpose"))}}n.push(new He(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return At(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&ce(t,this.pos)==0&&n==this.button};var Pn,In;function Nu(e,t){var n=+new Date;return In&&In.compare(n,e,t)?(Pn=In=null,"triple"):Pn&&Pn.compare(n,e,t)?(In=new oo(n,e,t),Pn=null,"double"):(Pn=new oo(n,e,t),In=null,"single")}function ra(e){var t=this,n=t.display;if(!(Qe(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,tr(n,e)){Y||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!lo(t,e)){var r=Lr(t,e),i=Rt(e),o=r?Nu(r,i):"single";le(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Eu(t,i,r,o,e))&&(i==1?r?Pu(t,r,o,e):ln(e)==n.scroller&&pt(e):i==2?(r&&oi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(J?t.display.input.onContextMenu(e):Hi(t)))}}}function Eu(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,On(e,Xl(o,i),i,function(l){if(typeof l=="string"&&(l=En[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=qe}finally{e.state.suppressEdits=!1}return a})}function Ou(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=X?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=z?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(z?n.altKey:n.ctrlKey)),i}function Pu(e,t,n,r){k?setTimeout(xe(nl,e),0):e.curOp.focus=y(fe(e));var i=Ou(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&xi&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(ce((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(ce(l.to(),t)>0||t.xRel<0)?Iu(e,r,t,i):zu(e,r,t,i)}function Iu(e,t,n,r){var i=e.display,o=!1,l=lt(e,function(u){Y&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Hi(e)),ht(i.wrapper.ownerDocument,"mouseup",l),ht(i.wrapper.ownerDocument,"mousemove",a),ht(i.scroller,"dragstart",s),ht(i.scroller,"drop",l),o||(pt(u),r.addNew||oi(e.doc,n,null,null,r.extend),Y&&!V||k&&I==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};Y&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,Se(i.wrapper.ownerDocument,"mouseup",l),Se(i.wrapper.ownerDocument,"mousemove",a),Se(i.scroller,"dragstart",s),Se(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function na(e,t,n){if(n=="char")return new He(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new He(B(t.line,0),Ae(e.doc,B(t.line+1,0)));var r=n(e,t);return new He(r.from,r.to)}function zu(e,t,n,r){k&&Hi(e);var i=e.display,o=e.doc;pt(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=u[a]:l=new He(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new He(n,n)),n=Lr(e,t,!0,!0),a=-1;else{var h=na(e,n,r.unit);r.extend?l=$i(l,h.anchor,h.head,r.extend):l=h}r.addNew?a==-1?(a=u.length,gt(o,Kt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(gt(o,Kt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):eo(o,a,l,dt):(a=0,gt(o,new Ot([l],0),dt),s=o.sel);var x=n;function D(se){if(ce(x,se)!=0)if(x=se,r.unit=="rectangle"){for(var ge=[],Le=e.options.tabSize,ke=Fe(ye(o,n.line).text,n.ch,Le),Ee=Fe(ye(o,se.line).text,se.ch,Le),Ke=Math.min(ke,Ee),st=Math.max(ke,Ee),Xe=Math.min(n.line,se.line),Nt=Math.min(e.lastLine(),Math.max(n.line,se.line));Xe<=Nt;Xe++){var Tt=ye(o,Xe).text,tt=_e(Tt,Ke,Le);Ke==st?ge.push(new He(B(Xe,tt),B(Xe,tt))):Tt.length>tt&&ge.push(new He(B(Xe,tt),B(Xe,_e(Tt,st,Le))))}ge.length||ge.push(new He(n,n)),gt(o,Kt(e,s.ranges.slice(0,a).concat(ge),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(se)}else{var Ct=l,ft=na(e,se,r.unit),nt=Ct.anchor,rt;ce(ft.anchor,nt)>0?(rt=ft.head,nt=Wr(Ct.from(),ft.anchor)):(rt=ft.anchor,nt=wt(Ct.to(),ft.head));var Ze=s.ranges.slice(0);Ze[a]=Bu(e,new He(Ae(o,nt),rt)),gt(o,Kt(e,Ze,a),dt)}}var L=i.wrapper.getBoundingClientRect(),H=0;function Z(se){var ge=++H,Le=Lr(e,se,!0,r.unit=="rectangle");if(Le)if(ce(Le,x)!=0){e.curOp.focus=y(fe(e)),D(Le);var ke=$n(i,o);(Le.line>=ke.to||Le.lineL.bottom?20:0;Ee&&setTimeout(lt(e,function(){H==ge&&(i.scroller.scrollTop+=Ee,Z(se))}),50)}}function ie(se){e.state.selectingText=!1,H=1/0,se&&(pt(se),i.input.focus()),ht(i.wrapper.ownerDocument,"mousemove",ae),ht(i.wrapper.ownerDocument,"mouseup",he),o.history.lastSelOrigin=null}var ae=lt(e,function(se){se.buttons===0||!Rt(se)?ie(se):Z(se)}),he=lt(e,ie);e.state.selectingText=he,Se(i.wrapper.ownerDocument,"mousemove",ae),Se(i.wrapper.ownerDocument,"mouseup",he)}function Bu(e,t){var n=t.anchor,r=t.head,i=ye(e.doc,n.line);if(ce(n,r)==0&&n.sticky==r.sticky)return t;var o=Re(i);if(!o)return t;var l=lr(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var h=lr(o,r.ch,r.sticky),x=h-l||(r.ch-n.ch)*(a.level==1?-1:1);h==s-1||h==s?u=x<0:u=x>0}var D=o[s+(u?-1:0)],L=u==(D.level==1),H=L?D.from:D.to,Z=L?"after":"before";return n.ch==H&&n.sticky==Z?t:new He(new B(n.line,H,Z),r)}function ia(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&pt(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ft(e,n))return kt(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var h=m(e.doc,o),x=e.display.gutterSpecs[s];return Ye(e,n,e,h,x.className,t),kt(t)}}}function lo(e,t){return ia(e,t,"gutterClick",!0)}function oa(e,t){tr(e.display,t)||Ru(e,t)||Qe(e,t,"contextmenu")||J||e.display.input.onContextMenu(t)}function Ru(e,t){return Ft(e,"gutterContextMenu")?ia(e,t,"gutterContextMenu",!1):!1}function la(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gn(e)}var tn={toString:function(){return"CodeMirror.Init"}},aa={},di={};function Wu(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,u){u!=tn&&o(a,s,u)}:o)}e.defineOption=n,e.Init=tn,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Ji(r)},!0),n("indentUnit",2,Ji,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Sn(r),gn(r),St(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var h=s.text.indexOf(i,u);if(h==-1)break;u=h+i.length,o.push(B(l,h))}l++});for(var a=o.length-1;a>=0;a--)Zr(r.doc,i,o[a],B(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=tn&&r.refresh()}),n("specialCharPlaceholder",ps,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!q),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){la(r),wn(r)},!0),n("keyMap","default",function(r,i,o){var l=fi(i),a=o!=tn&&fi(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,_u,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Yi(i,r.options.lineNumbers),wn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?zi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Xr(r)},!0),n("scrollbarStyle","native",function(r){ul(r),Xr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Yi(r.options.gutters,i),wn(r)},!0),n("firstLineNumber",1,wn,!0),n("lineNumberFormatter",function(r){return r},wn,!0),n("showCursorWhenSelecting",!1,vn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Ur(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,Hu),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vn,!0),n("singleCursorHeightPerLine",!0,vn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Sn,!0),n("addModeClass",!1,Sn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Sn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function Hu(e,t,n){var r=n&&n!=tn;if(!t!=!r){var i=e.display.dragFunctions,o=t?Se:ht;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function _u(e){e.options.lineWrapping?(j(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):($(e.display.wrapper,"CodeMirror-wrap"),Ci(e)),Bi(e),St(e),gn(e),setTimeout(function(){return Xr(e)},100)}function Ge(e,t){var n=this;if(!(this instanceof Ge))return new Ge(e,t);this.options=t=t?Me(t):{},Me(aa,t,!1);var r=t.value;typeof r=="string"?r=new Lt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ge.inputStyles[t.inputStyle](this),o=this.display=new eu(e,r,i,t);o.wrapper.CodeMirror=this,la(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ul(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ce,keySeq:null,specialChars:null},t.autofocus&&!N&&o.input.focus(),k&&I<11&&setTimeout(function(){return n.display.input.reset(!0)},20),qu(this),yu(),Mr(this),this.curOp.forceUpdate=!0,yl(this,r),t.autofocus&&!N||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&_i(n)},20):Ur(this);for(var l in di)di.hasOwnProperty(l)&&di[l](this,t[l],tn);dl(this),t.finishInit&&t.finishInit(this);for(var a=0;a400}Se(t.scroller,"touchstart",function(s){if(!Qe(e,s)&&!o(s)&&!lo(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),Se(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Se(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!tr(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var h=e.coordsChar(t.activeTouch,"page"),x;!u.prev||l(u,u.prev)?x=new He(h,h):!u.prev.prev||l(u,u.prev.prev)?x=e.findWordAt(h):x=new He(B(h.line,0),Ae(e.doc,B(h.line+1,0))),e.setSelection(x.anchor,x.head),e.focus(),pt(s)}i()}),Se(t.scroller,"touchcancel",i),Se(t.scroller,"scroll",function(){t.scroller.clientHeight&&(xn(e,t.scroller.scrollTop),Cr(e,t.scroller.scrollLeft,!0),Ye(e,"scroll",e))}),Se(t.scroller,"mousewheel",function(s){return gl(e,s)}),Se(t.scroller,"DOMMouseScroll",function(s){return gl(e,s)}),Se(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Qe(e,s)||ar(s)},over:function(s){Qe(e,s)||(xu(e,s),ar(s))},start:function(s){return mu(e,s)},drop:lt(e,vu),leave:function(s){Qe(e,s)||jl(e)}};var a=t.input.getField();Se(a,"keyup",function(s){return ea.call(e,s)}),Se(a,"keydown",lt(e,$l)),Se(a,"keypress",lt(e,ta)),Se(a,"focus",function(s){return _i(e,s)}),Se(a,"blur",function(s){return Ur(e,s)})}var ao=[];Ge.defineInitHook=function(e){return ao.push(e)};function zn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=fn(e,t).state:n="prev");var l=e.options.tabSize,a=ye(i,t),s=Fe(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],h;if(!r&&!/\S/.test(a.text))h=0,n="not";else if(n=="smart"&&(h=i.mode.indent(o,a.text.slice(u.length),a.text),h==qe||h>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?h=Fe(ye(i,t-1).text,null,l):h=0:n=="add"?h=s+e.options.indentUnit:n=="subtract"?h=s-e.options.indentUnit:typeof n=="number"&&(h=s+n),h=Math.max(0,h);var x="",D=0;if(e.options.indentWithTabs)for(var L=Math.floor(h/l);L;--L)D+=l,x+=" ";if(Dl,s=zt(t),u=null;if(a&&r.ranges.length>1)if(Ut&&Ut.text.join(` -`)==t){if(r.ranges.length%Ut.text.length==0){u=[];for(var h=0;h=0;D--){var L=r.ranges[D],H=L.from(),Z=L.to();L.empty()&&(n&&n>0?H=B(H.line,H.ch-n):e.state.overwrite&&!a?Z=B(Z.line,Math.min(ye(o,Z.line).text.length,Z.ch+we(s).length)):a&&Ut&&Ut.lineWise&&Ut.text.join(` -`)==s.join(` -`)&&(H=Z=B(H.line,0)));var ie={from:H,to:Z,text:u?u[D%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Jr(e.doc,ie),ot(e,"inputRead",e,ie)}t&&!a&&ua(e,t),Gr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=x),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function sa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&At(t,function(){return so(t,n,0,null,"paste")}),!0}function ua(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=zn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=zn(e,i.head.line,"smart"));l&&ot(e,"electricInput",e,i.head.line)}}}function fa(e){for(var t=[],n=[],r=0;ro&&(zn(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Gr(this));else{var s=a.from(),u=a.to(),h=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var x=h;x0&&eo(this.doc,l,new He(s,D[l].to()),Ve)}}}),getTokenAt:function(r,i){return ko(this,r,i)},getLineTokens:function(r,i){return ko(this,B(r),i,!0)},getTokenTypeAt:function(r){r=Ae(this.doc,r);var i=xo(this,ye(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]s&&(r=s,l=!0),a=ye(this.doc,r)}else a=r;return Yn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-er(a):0)},defaultTextHeight:function(){return jr(this.display)},defaultCharWidth:function(){return Kr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=jt(this,Ae(this.doc,r));var u=r.bottom,h=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=r.top;else if(l=="above"||l=="near"){var x=Math.max(s.wrapper.clientHeight,this.doc.height),D=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>x)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=x&&(u=r.bottom),h+i.offsetWidth>D&&(h=D-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(h=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?h=0:a=="middle"&&(h=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=h+"px"),o&&Hs(this,{left:h,top:u,right:h+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:yt($l),triggerOnKeyPress:yt(ta),triggerOnKeyUp:ea,triggerOnMouseDown:yt(ra),execCommand:function(r){if(En.hasOwnProperty(r))return En[r].call(null,this)},triggerElectric:yt(function(r){ua(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=Ae(this.doc,r),u=0;u0&&h(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&Bi(this),Ye(this,"refresh",this)}),swapDoc:yt(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),yl(this,r),gn(this),this.display.input.reset(),mn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,ot(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bt(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function fo(e,t,n,r,i){var o=t,l=n,a=ye(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var he=t.line+s;return he=e.first+e.size?!1:(t=new B(he,t.ch,t.sticky),a=ye(e,he))}function h(he){var se;if(r=="codepoint"){var ge=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(ge))se=null;else{var Le=n>0?ge>=55296&&ge<56320:ge>=56320&&ge<57343;se=new B(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(Le?2:1))),-n)}}else i?se=Lu(e.cm,a,t,n):se=ro(a,t,n);if(se==null)if(!he&&u())t=no(i,e.cm,a,t.line,s);else return!1;else t=se;return!0}if(r=="char"||r=="codepoint")h();else if(r=="column")h(!0);else if(r=="word"||r=="group")for(var x=null,D=r=="group",L=e.cm&&e.cm.getHelper(t,"wordChars"),H=!0;!(n<0&&!h(!H));H=!1){var Z=a.text.charAt(t.ch)||` -`,ie=De(Z,L)?"w":D&&Z==` -`?"n":!D||/\s/.test(Z)?null:"p";if(D&&!H&&!ie&&(ie="s"),x&&x!=ie){n<0&&(n=1,h(),t.sticky="after");break}if(ie&&(x=ie),n>0&&!h(!H))break}var ae=ai(e,t,o,l,!0);return We(o,ae)&&(ae.hitSide=!0),ae}function da(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,le(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*jr(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var u;u=Oi(e,o,l),!!u.outside;){if(n<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=n*5}return u}var je=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};je.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,uo(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}Se(i,"paste",function(a){!o(a)||Qe(r,a)||sa(a,r)||I<=11&&setTimeout(lt(r,function(){return t.updateFromDOM()}),20)}),Se(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),Se(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),Se(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Se(i,"touchstart",function(){return n.forceCompositionEnd()}),Se(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||Qe(r,a))){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=fa(r);hi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ve),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Ut.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var h=ca(),x=h.firstChild;uo(x),r.display.lineSpace.insertBefore(h,r.display.lineSpace.firstChild),x.value=Ut.text.join(` -`);var D=y(Te(i));v(x),setTimeout(function(){r.display.lineSpace.removeChild(h),D.focus(),D==i&&n.showPrimarySelection()},50)}}Se(i,"copy",l),Se(i,"cut",l)},je.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},je.prototype.prepareSelection=function(){var e=rl(this.cm,!1);return e.focus=y(Te(this.div))==this.div,e},je.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},je.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},je.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&ha(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=B(r.line-1,ye(e.doc,r.line-1).length)),i.ch==ye(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Tr(e,r.line))==0?(l=f(t.view[0].line),a=t.view[0].node):(l=f(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Tr(e,i.line),u,h;if(s==t.view.length-1?(u=t.viewTo-1,h=t.lineDiv.lastChild):(u=f(t.view[s+1].line)-1,h=t.view[s+1].node.previousSibling),!a)return!1;for(var x=e.doc.splitLines(Uu(e,a,h,l,u)),D=Vt(e.doc,B(l,0),B(u,ye(e.doc,u).text.length));x.length>1&&D.length>1;)if(we(x)==we(D))x.pop(),D.pop(),u--;else if(x[0]==D[0])x.shift(),D.shift(),l++;else break;for(var L=0,H=0,Z=x[0],ie=D[0],ae=Math.min(Z.length,ie.length);Lr.ch&&he.charCodeAt(he.length-H-1)==se.charCodeAt(se.length-H-1);)L--,H++;x[x.length-1]=he.slice(0,he.length-H).replace(/^\u200b+/,""),x[0]=x[0].slice(L).replace(/\u200b+$/,"");var Le=B(l,L),ke=B(u,D.length?we(D).length-H:0);if(x.length>1||x[0]||ce(Le,ke))return Zr(e.doc,x,Le,ke,"+input"),!0},je.prototype.ensurePolled=function(){this.forceCompositionEnd()},je.prototype.reset=function(){this.forceCompositionEnd()},je.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},je.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},je.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&At(this.cm,function(){return St(e.cm)})},je.prototype.setUneditable=function(e){e.contentEditable="false"},je.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||lt(this.cm,so)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},je.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},je.prototype.onContextMenu=function(){},je.prototype.resetPosition=function(){},je.prototype.needsContentAttribute=!0;function ha(e,t){var n=Ai(e,t.line);if(!n||n.hidden)return null;var r=ye(e.doc,t.line),i=qo(n,r,t.line),o=Re(r,e.doc.direction),l="left";if(o){var a=lr(o,t.ch);l=a%2?"right":"left"}var s=Uo(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function Ku(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rn(e,t){return t&&(e.bad=!0),e}function Uu(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(L){return function(H){return H.id==L}}function h(){l&&(o+=a,s&&(o+=a),l=s=!1)}function x(L){L&&(h(),o+=L)}function D(L){if(L.nodeType==1){var H=L.getAttribute("cm-text");if(H){x(H);return}var Z=L.getAttribute("cm-marker"),ie;if(Z){var ae=e.findMarks(B(r,0),B(i+1,0),u(+Z));ae.length&&(ie=ae[0].find(0))&&x(Vt(e.doc,ie.from,ie.to).join(a));return}if(L.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;he&&h();for(var se=0;se=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Se(i,"paste",function(l){Qe(r,l)||sa(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!Qe(r,l)){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=fa(r);hi({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,Ve):(n.prevInput="",i.value=a.text.join(` -`),v(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}Se(i,"cut",o),Se(i,"copy",o),Se(e.scroller,"paste",function(l){if(!(tr(e,l)||Qe(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),Se(e.lineSpace,"selectstart",function(l){tr(e,l)||pt(l)}),Se(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},$e.prototype.createField=function(e){this.wrapper=ca(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;uo(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},$e.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},$e.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=rl(e);if(e.options.moveInputWithCursor){var i=jt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},$e.prototype.showSelection=function(e){var t=this.cm,n=t.display;G(n.cursorDiv,e.cursors),G(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},$e.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&v(this.textarea),k&&I>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",k&&I>=9&&(this.hasSelection=null));this.resetting=!1}},$e.prototype.getField=function(){return this.textarea},$e.prototype.supportsTouch=function(){return!1},$e.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||y(Te(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},$e.prototype.blur=function(){this.textarea.blur()},$e.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$e.prototype.receivedFocus=function(){this.slowPoll()},$e.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},$e.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},$e.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||ur(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(k&&I>=9&&this.hasSelection===i||z&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l1e3||i.indexOf(` -`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$e.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$e.prototype.onKeyPress=function(){k&&I>=9&&(this.hasSelection=null),this.fastPoll()},$e.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Lr(n,e),l=r.scroller.scrollTop;if(!o||A)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&<(n,gt)(n.doc,pr(o),Ve);var s=i.style.cssText,u=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+`px; - z-index: 1000; background: `+(k?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var x;Y&&(x=i.ownerDocument.defaultView.scrollY),r.input.focus(),Y&&i.ownerDocument.defaultView.scrollTo(null,x),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=L,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function D(){if(i.selectionStart!=null){var Z=n.somethingSelected(),ie="​"+(Z?i.value:"");i.value="⇚",i.value=ie,t.prevInput=Z?"":"​",i.selectionStart=1,i.selectionEnd=ie.length,r.selForContextMenu=n.doc.sel}}function L(){if(t.contextMenuPending==L&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,k&&I<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!k||k&&I<9)&&D();var Z=0,ie=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?lt(n,El)(n):Z++<10?r.detectingSelectAll=setTimeout(ie,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(ie,200)}}if(k&&I>=9&&D(),J){ar(e);var H=function(){ht(window,"mouseup",H),setTimeout(L,20)};Se(window,"mouseup",H)}else setTimeout(L,50)},$e.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},$e.prototype.setUneditable=function(){},$e.prototype.needsContentAttribute=!1;function Xu(e,t){if(t=t?Me(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=y(Te(e));t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(Se(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ht(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Ge(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function Yu(e){e.off=ht,e.on=Se,e.wheelEventPixels=tu,e.Doc=Lt,e.splitLines=zt,e.countColumn=Fe,e.findColumn=_e,e.isWordChar=me,e.Pass=qe,e.signal=Ye,e.Line=Hr,e.changeEnd=gr,e.scrollbarModel=sl,e.Pos=B,e.cmpPos=ce,e.modes=Pr,e.mimeModes=Ht,e.resolveMode=Ir,e.getMode=zr,e.modeExtensions=fr,e.extendMode=Br,e.copyState=Gt,e.startState=Rr,e.innerMode=sn,e.commands=En,e.keyMap=nr,e.keyName=Yl,e.isModifierKey=Gl,e.lookupKey=$r,e.normalizeKeyMap=Su,e.StringStream=Je,e.SharedTextMarker=Fn,e.TextMarker=mr,e.LineWidget=Mn,e.e_preventDefault=pt,e.e_stopPropagation=Er,e.e_stop=ar,e.addClass=j,e.contains=g,e.rmClass=$,e.keyNames=xr}Wu(Ge),ju(Ge);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var gi in Lt.prototype)Lt.prototype.hasOwnProperty(gi)&&ve(Qu,gi)<0&&(Ge.prototype[gi]=(function(e){return function(){return e.apply(this.doc,arguments)}})(Lt.prototype[gi]));return Bt(Lt),Ge.inputStyles={textarea:$e,contenteditable:je},Ge.defineMode=function(e){!Ge.defaults.mode&&e!="null"&&(Ge.defaults.mode=e),_t.apply(this,arguments)},Ge.defineMIME=kr,Ge.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ge.defineMIME("text/plain","null"),Ge.defineExtension=function(e,t){Ge.prototype[e]=t},Ge.defineDocExtension=function(e,t){Lt.prototype[e]=t},Ge.fromTextArea=Xu,Yu(Ge),Ge.version="5.65.18",Ge}))})(vi)),vi.exports}var Vu=mt();const df=Ju(Vu);var ga={exports:{}},va;function Xa(){return va||(va=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineMode("css",function(J,P){var $=P.inline;P.propertyKeywords||(P=b.resolveMode("text/css"));var F=J.indentUnit,G=P.tokenHooks,c=P.documentTypes||{},T=P.mediaTypes||{},C=P.mediaFeatures||{},g=P.mediaValueKeywords||{},y=P.propertyKeywords||{},j=P.nonStandardPropertyKeywords||{},de=P.fontProperties||{},v=P.counterDescriptors||{},d=P.colorKeywords||{},fe=P.valueKeywords||{},Te=P.allowNested,le=P.lineComment,xe=P.supportsAtComponent===!0,Me=J.highlightNonStandardPropertyKeywords!==!1,Fe,Ce;function ve(E,ee){return Fe=ee,E}function Oe(E,ee){var K=E.next();if(G[K]){var ze=G[K](E,ee);if(ze!==!1)return ze}if(K=="@")return E.eatWhile(/[\w\\\-]/),ve("def",E.current());if(K=="="||(K=="~"||K=="|")&&E.eat("="))return ve(null,"compare");if(K=='"'||K=="'")return ee.tokenize=qe(K),ee.tokenize(E,ee);if(K=="#")return E.eatWhile(/[\w\\\-]/),ve("atom","hash");if(K=="!")return E.match(/^\s*\w*/),ve("keyword","important");if(/\d/.test(K)||K=="."&&E.eat(/\d/))return E.eatWhile(/[\w.%]/),ve("number","unit");if(K==="-"){if(/[\d.]/.test(E.peek()))return E.eatWhile(/[\w.%]/),ve("number","unit");if(E.match(/^-[\w\\\-]*/))return E.eatWhile(/[\w\\\-]/),E.match(/^\s*:/,!1)?ve("variable-2","variable-definition"):ve("variable-2","variable");if(E.match(/^\w+-/))return ve("meta","meta")}else return/[,+>*\/]/.test(K)?ve(null,"select-op"):K=="."&&E.match(/^-?[_a-z][_a-z0-9-]*/i)?ve("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?ve(null,K):E.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(E.current())&&(ee.tokenize=Ve),ve("variable callee","variable")):/[\w\\\-]/.test(K)?(E.eatWhile(/[\w\\\-]/),ve("property","word")):ve(null,null)}function qe(E){return function(ee,K){for(var ze=!1,me;(me=ee.next())!=null;){if(me==E&&!ze){E==")"&&ee.backUp(1);break}ze=!ze&&me=="\\"}return(me==E||!ze&&E!=")")&&(K.tokenize=null),ve("string","string")}}function Ve(E,ee){return E.next(),E.match(/^\s*[\"\')]/,!1)?ee.tokenize=null:ee.tokenize=qe(")"),ve(null,"(")}function dt(E,ee,K){this.type=E,this.indent=ee,this.prev=K}function Pe(E,ee,K,ze){return E.context=new dt(K,ee.indentation()+(ze===!1?0:F),E.context),K}function _e(E){return E.context.prev&&(E.context=E.context.prev),E.context.type}function Ue(E,ee,K){return Ie[K.context.type](E,ee,K)}function et(E,ee,K,ze){for(var me=ze||1;me>0;me--)K.context=K.context.prev;return Ue(E,ee,K)}function we(E){var ee=E.current().toLowerCase();fe.hasOwnProperty(ee)?Ce="atom":d.hasOwnProperty(ee)?Ce="keyword":Ce="variable"}var Ie={};return Ie.top=function(E,ee,K){if(E=="{")return Pe(K,ee,"block");if(E=="}"&&K.context.prev)return _e(K);if(xe&&/@component/i.test(E))return Pe(K,ee,"atComponentBlock");if(/^@(-moz-)?document$/i.test(E))return Pe(K,ee,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(E))return Pe(K,ee,"atBlock");if(/^@(font-face|counter-style)/i.test(E))return K.stateArg=E,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(E))return"keyframes";if(E&&E.charAt(0)=="@")return Pe(K,ee,"at");if(E=="hash")Ce="builtin";else if(E=="word")Ce="tag";else{if(E=="variable-definition")return"maybeprop";if(E=="interpolation")return Pe(K,ee,"interpolation");if(E==":")return"pseudo";if(Te&&E=="(")return Pe(K,ee,"parens")}return K.context.type},Ie.block=function(E,ee,K){if(E=="word"){var ze=ee.current().toLowerCase();return y.hasOwnProperty(ze)?(Ce="property","maybeprop"):j.hasOwnProperty(ze)?(Ce=Me?"string-2":"property","maybeprop"):Te?(Ce=ee.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ce+=" error","maybeprop")}else return E=="meta"?"block":!Te&&(E=="hash"||E=="qualifier")?(Ce="error","block"):Ie.top(E,ee,K)},Ie.maybeprop=function(E,ee,K){return E==":"?Pe(K,ee,"prop"):Ue(E,ee,K)},Ie.prop=function(E,ee,K){if(E==";")return _e(K);if(E=="{"&&Te)return Pe(K,ee,"propBlock");if(E=="}"||E=="{")return et(E,ee,K);if(E=="(")return Pe(K,ee,"parens");if(E=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ee.current()))Ce+=" error";else if(E=="word")we(ee);else if(E=="interpolation")return Pe(K,ee,"interpolation");return"prop"},Ie.propBlock=function(E,ee,K){return E=="}"?_e(K):E=="word"?(Ce="property","maybeprop"):K.context.type},Ie.parens=function(E,ee,K){return E=="{"||E=="}"?et(E,ee,K):E==")"?_e(K):E=="("?Pe(K,ee,"parens"):E=="interpolation"?Pe(K,ee,"interpolation"):(E=="word"&&we(ee),"parens")},Ie.pseudo=function(E,ee,K){return E=="meta"?"pseudo":E=="word"?(Ce="variable-3",K.context.type):Ue(E,ee,K)},Ie.documentTypes=function(E,ee,K){return E=="word"&&c.hasOwnProperty(ee.current())?(Ce="tag",K.context.type):Ie.atBlock(E,ee,K)},Ie.atBlock=function(E,ee,K){if(E=="(")return Pe(K,ee,"atBlock_parens");if(E=="}"||E==";")return et(E,ee,K);if(E=="{")return _e(K)&&Pe(K,ee,Te?"block":"top");if(E=="interpolation")return Pe(K,ee,"interpolation");if(E=="word"){var ze=ee.current().toLowerCase();ze=="only"||ze=="not"||ze=="and"||ze=="or"?Ce="keyword":T.hasOwnProperty(ze)?Ce="attribute":C.hasOwnProperty(ze)?Ce="property":g.hasOwnProperty(ze)?Ce="keyword":y.hasOwnProperty(ze)?Ce="property":j.hasOwnProperty(ze)?Ce=Me?"string-2":"property":fe.hasOwnProperty(ze)?Ce="atom":d.hasOwnProperty(ze)?Ce="keyword":Ce="error"}return K.context.type},Ie.atComponentBlock=function(E,ee,K){return E=="}"?et(E,ee,K):E=="{"?_e(K)&&Pe(K,ee,Te?"block":"top",!1):(E=="word"&&(Ce="error"),K.context.type)},Ie.atBlock_parens=function(E,ee,K){return E==")"?_e(K):E=="{"||E=="}"?et(E,ee,K,2):Ie.atBlock(E,ee,K)},Ie.restricted_atBlock_before=function(E,ee,K){return E=="{"?Pe(K,ee,"restricted_atBlock"):E=="word"&&K.stateArg=="@counter-style"?(Ce="variable","restricted_atBlock_before"):Ue(E,ee,K)},Ie.restricted_atBlock=function(E,ee,K){return E=="}"?(K.stateArg=null,_e(K)):E=="word"?(K.stateArg=="@font-face"&&!de.hasOwnProperty(ee.current().toLowerCase())||K.stateArg=="@counter-style"&&!v.hasOwnProperty(ee.current().toLowerCase())?Ce="error":Ce="property","maybeprop"):"restricted_atBlock"},Ie.keyframes=function(E,ee,K){return E=="word"?(Ce="variable","keyframes"):E=="{"?Pe(K,ee,"top"):Ue(E,ee,K)},Ie.at=function(E,ee,K){return E==";"?_e(K):E=="{"||E=="}"?et(E,ee,K):(E=="word"?Ce="tag":E=="hash"&&(Ce="builtin"),"at")},Ie.interpolation=function(E,ee,K){return E=="}"?_e(K):E=="{"||E==";"?et(E,ee,K):(E=="word"?Ce="variable":E!="variable"&&E!="("&&E!=")"&&(Ce="error"),"interpolation")},{startState:function(E){return{tokenize:null,state:$?"block":"top",stateArg:null,context:new dt($?"block":"top",E||0,null)}},token:function(E,ee){if(!ee.tokenize&&E.eatSpace())return null;var K=(ee.tokenize||Oe)(E,ee);return K&&typeof K=="object"&&(Fe=K[1],K=K[0]),Ce=K,Fe!="comment"&&(ee.state=Ie[ee.state](Fe,E,ee)),Ce},indent:function(E,ee){var K=E.context,ze=ee&&ee.charAt(0),me=K.indent;return K.type=="prop"&&(ze=="}"||ze==")")&&(K=K.prev),K.prev&&(ze=="}"&&(K.type=="block"||K.type=="top"||K.type=="interpolation"||K.type=="restricted_atBlock")?(K=K.prev,me=K.indent):(ze==")"&&(K.type=="parens"||K.type=="atBlock_parens")||ze=="{"&&(K.type=="at"||K.type=="atBlock"))&&(me=Math.max(0,K.indent-F))),me},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:le,fold:"brace"}});function pe(J){for(var P={},$=0;$")):null:c.match("--")?C(ue("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),C(O(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),T.tokenize=ue("meta","?>"),"meta"):(ne=c.eat("/")?"closeTag":"openTag",T.tokenize=A,"tag bracket");if(g=="&"){var y;return c.eat("#")?c.eat("x")?y=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):y=c.eatWhile(/[\d]/)&&c.eat(";"):y=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),y?"atom":"error"}else return c.eatWhile(/[^&<]/),null}R.isInText=!0;function A(c,T){var C=c.next();if(C==">"||C=="/"&&c.eat(">"))return T.tokenize=R,ne=C==">"?"endTag":"selfcloseTag","tag bracket";if(C=="=")return ne="equals",null;if(C=="<"){T.tokenize=R,T.state=X,T.tagName=T.tagStart=null;var g=T.tokenize(c,T);return g?g+" tag error":"tag error"}else return/[\'\"]/.test(C)?(T.tokenize=V(C),T.stringStartCol=c.column(),T.tokenize(c,T)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function V(c){var T=function(C,g){for(;!C.eol();)if(C.next()==c){g.tokenize=A;break}return"string"};return T.isInAttribute=!0,T}function ue(c,T){return function(C,g){for(;!C.eol();){if(C.match(T)){g.tokenize=R;break}C.next()}return c}}function O(c){return function(T,C){for(var g;(g=T.next())!=null;){if(g=="<")return C.tokenize=O(c+1),C.tokenize(T,C);if(g==">")if(c==1){C.tokenize=R;break}else return C.tokenize=O(c-1),C.tokenize(T,C)}return"meta"}}function w(c){return c&&c.toLowerCase()}function M(c,T,C){this.prev=c.context,this.tagName=T||"",this.indent=c.indented,this.startOfLine=C,(k.doNotIndent.hasOwnProperty(T)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function N(c){c.context&&(c.context=c.context.prev)}function z(c,T){for(var C;;){if(!c.context||(C=c.context.tagName,!k.contextGrabbers.hasOwnProperty(w(C))||!k.contextGrabbers[w(C)].hasOwnProperty(w(T))))return;N(c)}}function X(c,T,C){return c=="openTag"?(C.tagStart=T.column(),q):c=="closeTag"?p:X}function q(c,T,C){return c=="word"?(C.tagName=T.current(),S="tag",P):k.allowMissingTagName&&c=="endTag"?(S="tag bracket",P(c,T,C)):(S="error",q)}function p(c,T,C){if(c=="word"){var g=T.current();return C.context&&C.context.tagName!=g&&k.implicitlyClosed.hasOwnProperty(w(C.context.tagName))&&N(C),C.context&&C.context.tagName==g||k.matchClosing===!1?(S="tag",W):(S="tag error",J)}else return k.allowMissingTagName&&c=="endTag"?(S="tag bracket",W(c,T,C)):(S="error",J)}function W(c,T,C){return c!="endTag"?(S="error",W):(N(C),X)}function J(c,T,C){return S="error",W(c,T,C)}function P(c,T,C){if(c=="word")return S="attribute",$;if(c=="endTag"||c=="selfcloseTag"){var g=C.tagName,y=C.tagStart;return C.tagName=C.tagStart=null,c=="selfcloseTag"||k.autoSelfClosers.hasOwnProperty(w(g))?z(C,g):(z(C,g),C.context=new M(C,g,y==C.indented)),X}return S="error",P}function $(c,T,C){return c=="equals"?F:(k.allowMissing||(S="error"),P(c,T,C))}function F(c,T,C){return c=="string"?G:c=="word"&&k.allowUnquoted?(S="string",P):(S="error",P(c,T,C))}function G(c,T,C){return c=="string"?G:P(c,T,C)}return{startState:function(c){var T={tokenize:R,state:X,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(T.baseIndent=c),T},token:function(c,T){if(!T.tagName&&c.sol()&&(T.indented=c.indentation()),c.eatSpace())return null;ne=null;var C=T.tokenize(c,T);return(C||ne)&&C!="comment"&&(S=null,T.state=T.state(ne||C,c,T),S&&(C=S=="error"?C+" error":S)),C},indent:function(c,T,C){var g=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+Q;if(g&&g.noIndent)return b.Pass;if(c.tokenize!=A&&c.tokenize!=R)return C?C.match(/^(\s*)/)[0].length:0;if(c.tagName)return k.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+Q*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/$/,blockCommentStart:"",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(c){c.state==F&&(c.state=P)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var T=[],C=c.context;C;C=C.prev)T.push(C.tagName);return T.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),xa.exports}var ba={exports:{}},ka;function Qa(){return ka||(ka=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineMode("javascript",function(pe,_){var te=pe.indentUnit,oe=_.statementIndent,Q=_.jsonld,k=_.json||Q,I=_.trackScope!==!1,Y=_.typescript,ne=_.wordCharacters||/[\w$\xa1-\uffff]/,S=(function(){function f(it){return{type:it,style:"keyword"}}var m=f("keyword a"),U=f("keyword b"),re=f("keyword c"),B=f("keyword d"),ce=f("operator"),We={type:"atom",style:"atom"};return{if:f("if"),while:m,with:m,else:U,do:U,try:U,finally:U,return:B,break:B,continue:B,new:f("new"),delete:re,void:re,throw:re,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:ce,typeof:ce,instanceof:ce,true:We,false:We,null:We,undefined:We,NaN:We,Infinity:We,this:f("this"),class:f("class"),super:f("atom"),yield:re,export:f("export"),import:f("import"),extends:re,await:re}})(),R=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function V(f){for(var m=!1,U,re=!1;(U=f.next())!=null;){if(!m){if(U=="/"&&!re)return;U=="["?re=!0:re&&U=="]"&&(re=!1)}m=!m&&U=="\\"}}var ue,O;function w(f,m,U){return ue=f,O=U,m}function M(f,m){var U=f.next();if(U=='"'||U=="'")return m.tokenize=N(U),m.tokenize(f,m);if(U=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(U=="."&&f.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(U))return w(U);if(U=="="&&f.eat(">"))return w("=>","operator");if(U=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(U))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(U=="/")return f.eat("*")?(m.tokenize=z,z(f,m)):f.eat("/")?(f.skipToEnd(),w("comment","comment")):Et(f,m,1)?(V(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(f.eat("="),w("operator","operator",f.current()));if(U=="`")return m.tokenize=X,X(f,m);if(U=="#"&&f.peek()=="!")return f.skipToEnd(),w("meta","meta");if(U=="#"&&f.eatWhile(ne))return w("variable","property");if(U=="<"&&f.match("!--")||U=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),w("comment","comment");if(R.test(U))return(U!=">"||!m.lexical||m.lexical.type!=">")&&(f.eat("=")?(U=="!"||U=="=")&&f.eat("="):/[<>*+\-|&?]/.test(U)&&(f.eat(U),U==">"&&f.eat(U))),U=="?"&&f.eat(".")?w("."):w("operator","operator",f.current());if(ne.test(U)){f.eatWhile(ne);var re=f.current();if(m.lastType!="."){if(S.propertyIsEnumerable(re)){var B=S[re];return w(B.type,B.style,re)}if(re=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",re)}return w("variable","variable",re)}}function N(f){return function(m,U){var re=!1,B;if(Q&&m.peek()=="@"&&m.match(A))return U.tokenize=M,w("jsonld-keyword","meta");for(;(B=m.next())!=null&&!(B==f&&!re);)re=!re&&B=="\\";return re||(U.tokenize=M),w("string","string")}}function z(f,m){for(var U=!1,re;re=f.next();){if(re=="/"&&U){m.tokenize=M;break}U=re=="*"}return w("comment","comment")}function X(f,m){for(var U=!1,re;(re=f.next())!=null;){if(!U&&(re=="`"||re=="$"&&f.eat("{"))){m.tokenize=M;break}U=!U&&re=="\\"}return w("quasi","string-2",f.current())}var q="([{}])";function p(f,m){m.fatArrowAt&&(m.fatArrowAt=null);var U=f.string.indexOf("=>",f.start);if(!(U<0)){if(Y){var re=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,U));re&&(U=re.index)}for(var B=0,ce=!1,We=U-1;We>=0;--We){var it=f.string.charAt(We),wt=q.indexOf(it);if(wt>=0&&wt<3){if(!B){++We;break}if(--B==0){it=="("&&(ce=!0);break}}else if(wt>=3&&wt<6)++B;else if(ne.test(it))ce=!0;else if(/["'\/`]/.test(it))for(;;--We){if(We==0)return;var Wr=f.string.charAt(We-1);if(Wr==it&&f.string.charAt(We-2)!="\\"){We--;break}}else if(ce&&!B){++We;break}}ce&&!B&&(m.fatArrowAt=We)}}var W={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function J(f,m,U,re,B,ce){this.indented=f,this.column=m,this.type=U,this.prev=B,this.info=ce,re!=null&&(this.align=re)}function P(f,m){if(!I)return!1;for(var U=f.localVars;U;U=U.next)if(U.name==m)return!0;for(var re=f.context;re;re=re.prev)for(var U=re.vars;U;U=U.next)if(U.name==m)return!0}function $(f,m,U,re,B){var ce=f.cc;for(F.state=f,F.stream=B,F.marked=null,F.cc=ce,F.style=m,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var We=ce.length?ce.pop():k?ve:Fe;if(We(U,re)){for(;ce.length&&ce[ce.length-1].lex;)ce.pop()();return F.marked?F.marked:U=="variable"&&P(f,re)?"variable-2":m}}}var F={state:null,marked:null,cc:null};function G(){for(var f=arguments.length-1;f>=0;f--)F.cc.push(arguments[f])}function c(){return G.apply(null,arguments),!0}function T(f,m){for(var U=m;U;U=U.next)if(U.name==f)return!0;return!1}function C(f){var m=F.state;if(F.marked="def",!!I){if(m.context){if(m.lexical.info=="var"&&m.context&&m.context.block){var U=g(f,m.context);if(U!=null){m.context=U;return}}else if(!T(f,m.localVars)){m.localVars=new de(f,m.localVars);return}}_.globalVars&&!T(f,m.globalVars)&&(m.globalVars=new de(f,m.globalVars))}}function g(f,m){if(m)if(m.block){var U=g(f,m.prev);return U?U==m.prev?m:new j(U,m.vars,!0):null}else return T(f,m.vars)?m:new j(m.prev,new de(f,m.vars),!1);else return null}function y(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function j(f,m,U){this.prev=f,this.vars=m,this.block=U}function de(f,m){this.name=f,this.next=m}var v=new de("this",new de("arguments",null));function d(){F.state.context=new j(F.state.context,F.state.localVars,!1),F.state.localVars=v}function fe(){F.state.context=new j(F.state.context,F.state.localVars,!0),F.state.localVars=null}d.lex=fe.lex=!0;function Te(){F.state.localVars=F.state.context.vars,F.state.context=F.state.context.prev}Te.lex=!0;function le(f,m){var U=function(){var re=F.state,B=re.indented;if(re.lexical.type=="stat")B=re.lexical.indented;else for(var ce=re.lexical;ce&&ce.type==")"&&ce.align;ce=ce.prev)B=ce.indented;re.lexical=new J(B,F.stream.column(),f,null,re.lexical,m)};return U.lex=!0,U}function xe(){var f=F.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}xe.lex=!0;function Me(f){function m(U){return U==f?c():f==";"||U=="}"||U==")"||U=="]"?G():c(m)}return m}function Fe(f,m){return f=="var"?c(le("vardef",m),Er,Me(";"),xe):f=="keyword a"?c(le("form"),qe,Fe,xe):f=="keyword b"?c(le("form"),Fe,xe):f=="keyword d"?F.stream.match(/^\s*$/,!1)?c():c(le("stat"),dt,Me(";"),xe):f=="debugger"?c(Me(";")):f=="{"?c(le("}"),fe,Pt,xe,Te):f==";"?c():f=="if"?(F.state.lexical.info=="else"&&F.state.cc[F.state.cc.length-1]==xe&&F.state.cc.pop()(),c(le("form"),qe,Fe,xe,Or)):f=="function"?c(zt):f=="for"?c(le("form"),fe,Rn,Fe,Te,xe):f=="class"||Y&&m=="interface"?(F.marked="keyword",c(le("form",f=="class"?f:m),Pr,xe)):f=="variable"?Y&&m=="declare"?(F.marked="keyword",c(Fe)):Y&&(m=="module"||m=="enum"||m=="type")&&F.stream.match(/^\s*\w/,!1)?(F.marked="keyword",m=="enum"?c(ye):m=="type"?c(Wn,Me("operator"),Re,Me(";")):c(le("form"),kt,Me("{"),le("}"),Pt,xe,xe)):Y&&m=="namespace"?(F.marked="keyword",c(le("form"),ve,Fe,xe)):Y&&m=="abstract"?(F.marked="keyword",c(Fe)):c(le("stat"),ze):f=="switch"?c(le("form"),qe,Me("{"),le("}","switch"),fe,Pt,xe,xe,Te):f=="case"?c(ve,Me(":")):f=="default"?c(Me(":")):f=="catch"?c(le("form"),d,Ce,Fe,xe,Te):f=="export"?c(le("stat"),Ir,xe):f=="import"?c(le("stat"),fr,xe):f=="async"?c(Fe):m=="@"?c(ve,Fe):G(le("stat"),ve,Me(";"),xe)}function Ce(f){if(f=="(")return c(Wt,Me(")"))}function ve(f,m){return Ve(f,m,!1)}function Oe(f,m){return Ve(f,m,!0)}function qe(f){return f!="("?G():c(le(")"),dt,Me(")"),xe)}function Ve(f,m,U){if(F.state.fatArrowAt==F.stream.start){var re=U?Ie:we;if(f=="(")return c(d,le(")"),Ne(Wt,")"),xe,Me("=>"),re,Te);if(f=="variable")return G(d,kt,Me("=>"),re,Te)}var B=U?_e:Pe;return W.hasOwnProperty(f)?c(B):f=="function"?c(zt,B):f=="class"||Y&&m=="interface"?(F.marked="keyword",c(le("form"),yi,xe)):f=="keyword c"||f=="async"?c(U?Oe:ve):f=="("?c(le(")"),dt,Me(")"),xe,B):f=="operator"||f=="spread"?c(U?Oe:ve):f=="["?c(le("]"),Je,xe,B):f=="{"?Mt(De,"}",null,B):f=="quasi"?G(Ue,B):f=="new"?c(E(U)):c()}function dt(f){return f.match(/[;\}\)\],]/)?G():G(ve)}function Pe(f,m){return f==","?c(dt):_e(f,m,!1)}function _e(f,m,U){var re=U==!1?Pe:_e,B=U==!1?ve:Oe;if(f=="=>")return c(d,U?Ie:we,Te);if(f=="operator")return/\+\+|--/.test(m)||Y&&m=="!"?c(re):Y&&m=="<"&&F.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(le(">"),Ne(Re,">"),xe,re):m=="?"?c(ve,Me(":"),B):c(B);if(f=="quasi")return G(Ue,re);if(f!=";"){if(f=="(")return Mt(Oe,")","call",re);if(f==".")return c(me,re);if(f=="[")return c(le("]"),dt,Me("]"),xe,re);if(Y&&m=="as")return F.marked="keyword",c(Re,re);if(f=="regexp")return F.state.lastType=F.marked="operator",F.stream.backUp(F.stream.pos-F.stream.start-1),c(B)}}function Ue(f,m){return f!="quasi"?G():m.slice(m.length-2)!="${"?c(Ue):c(dt,et)}function et(f){if(f=="}")return F.marked="string-2",F.state.tokenize=X,c(Ue)}function we(f){return p(F.stream,F.state),G(f=="{"?Fe:ve)}function Ie(f){return p(F.stream,F.state),G(f=="{"?Fe:Oe)}function E(f){return function(m){return m=="."?c(f?K:ee):m=="variable"&&Y?c(Ft,f?_e:Pe):G(f?Oe:ve)}}function ee(f,m){if(m=="target")return F.marked="keyword",c(Pe)}function K(f,m){if(m=="target")return F.marked="keyword",c(_e)}function ze(f){return f==":"?c(xe,Fe):G(Pe,Me(";"),xe)}function me(f){if(f=="variable")return F.marked="property",c()}function De(f,m){if(f=="async")return F.marked="property",c(De);if(f=="variable"||F.style=="keyword"){if(F.marked="property",m=="get"||m=="set")return c(be);var U;return Y&&F.state.fatArrowAt==F.stream.start&&(U=F.stream.match(/^\s*:\s*/,!1))&&(F.state.fatArrowAt=F.stream.pos+U[0].length),c(Be)}else{if(f=="number"||f=="string")return F.marked=Q?"property":F.style+" property",c(Be);if(f=="jsonld-keyword")return c(Be);if(Y&&y(m))return F.marked="keyword",c(De);if(f=="[")return c(ve,or,Me("]"),Be);if(f=="spread")return c(Oe,Be);if(m=="*")return F.marked="keyword",c(De);if(f==":")return G(Be)}}function be(f){return f!="variable"?G(Be):(F.marked="property",c(zt))}function Be(f){if(f==":")return c(Oe);if(f=="(")return G(zt)}function Ne(f,m,U){function re(B,ce){if(U?U.indexOf(B)>-1:B==","){var We=F.state.lexical;return We.info=="call"&&(We.pos=(We.pos||0)+1),c(function(it,wt){return it==m||wt==m?G():G(f)},re)}return B==m||ce==m?c():U&&U.indexOf(";")>-1?G(f):c(Me(m))}return function(B,ce){return B==m||ce==m?c():G(f,re)}}function Mt(f,m,U){for(var re=3;re"),Re);if(f=="quasi")return G(ht,It)}function Bn(f){if(f=="=>")return c(Re)}function Se(f){return f.match(/[\}\)\]]/)?c():f==","||f==";"?c(Se):G(Zt,Se)}function Zt(f,m){if(f=="variable"||F.style=="keyword")return F.marked="property",c(Zt);if(m=="?"||f=="number"||f=="string")return c(Zt);if(f==":")return c(Re);if(f=="[")return c(Me("variable"),br,Me("]"),Zt);if(f=="(")return G(ur,Zt);if(!f.match(/[;\}\)\],]/))return c()}function ht(f,m){return f!="quasi"?G():m.slice(m.length-2)!="${"?c(ht):c(Re,Ye)}function Ye(f){if(f=="}")return F.marked="string-2",F.state.tokenize=X,c(ht)}function Qe(f,m){return f=="variable"&&F.stream.match(/^\s*[?:]/,!1)||m=="?"?c(Qe):f==":"?c(Re):f=="spread"?c(Qe):G(Re)}function It(f,m){if(m=="<")return c(le(">"),Ne(Re,">"),xe,It);if(m=="|"||f=="."||m=="&")return c(Re);if(f=="[")return c(Re,Me("]"),It);if(m=="extends"||m=="implements")return F.marked="keyword",c(Re);if(m=="?")return c(Re,Me(":"),Re)}function Ft(f,m){if(m=="<")return c(le(">"),Ne(Re,">"),xe,It)}function Bt(){return G(Re,pt)}function pt(f,m){if(m=="=")return c(Re)}function Er(f,m){return m=="enum"?(F.marked="keyword",c(ye)):G(kt,or,Rt,xi)}function kt(f,m){if(Y&&y(m))return F.marked="keyword",c(kt);if(f=="variable")return C(m),c();if(f=="spread")return c(kt);if(f=="[")return Mt(ln,"]");if(f=="{")return Mt(ar,"}")}function ar(f,m){return f=="variable"&&!F.stream.match(/^\s*:/,!1)?(C(m),c(Rt)):(f=="variable"&&(F.marked="property"),f=="spread"?c(kt):f=="}"?G():f=="["?c(ve,Me("]"),Me(":"),ar):c(Me(":"),kt,Rt))}function ln(){return G(kt,Rt)}function Rt(f,m){if(m=="=")return c(Oe)}function xi(f){if(f==",")return c(Er)}function Or(f,m){if(f=="keyword b"&&m=="else")return c(le("form","else"),Fe,xe)}function Rn(f,m){if(m=="await")return c(Rn);if(f=="(")return c(le(")"),an,xe)}function an(f){return f=="var"?c(Er,sr):f=="variable"?c(sr):G(sr)}function sr(f,m){return f==")"?c():f==";"?c(sr):m=="in"||m=="of"?(F.marked="keyword",c(ve,sr)):G(ve,sr)}function zt(f,m){if(m=="*")return F.marked="keyword",c(zt);if(f=="variable")return C(m),c(zt);if(f=="(")return c(d,le(")"),Ne(Wt,")"),xe,lr,Fe,Te);if(Y&&m=="<")return c(le(">"),Ne(Bt,">"),xe,zt)}function ur(f,m){if(m=="*")return F.marked="keyword",c(ur);if(f=="variable")return C(m),c(ur);if(f=="(")return c(d,le(")"),Ne(Wt,")"),xe,lr,Te);if(Y&&m=="<")return c(le(">"),Ne(Bt,">"),xe,ur)}function Wn(f,m){if(f=="keyword"||f=="variable")return F.marked="type",c(Wn);if(m=="<")return c(le(">"),Ne(Bt,">"),xe)}function Wt(f,m){return m=="@"&&c(ve,Wt),f=="spread"?c(Wt):Y&&y(m)?(F.marked="keyword",c(Wt)):Y&&f=="this"?c(or,Rt):G(kt,or,Rt)}function yi(f,m){return f=="variable"?Pr(f,m):Ht(f,m)}function Pr(f,m){if(f=="variable")return C(m),c(Ht)}function Ht(f,m){if(m=="<")return c(le(">"),Ne(Bt,">"),xe,Ht);if(m=="extends"||m=="implements"||Y&&f==",")return m=="implements"&&(F.marked="keyword"),c(Y?Re:ve,Ht);if(f=="{")return c(le("}"),_t,xe)}function _t(f,m){if(f=="async"||f=="variable"&&(m=="static"||m=="get"||m=="set"||Y&&y(m))&&F.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return F.marked="keyword",c(_t);if(f=="variable"||F.style=="keyword")return F.marked="property",c(kr,_t);if(f=="number"||f=="string")return c(kr,_t);if(f=="[")return c(ve,or,Me("]"),kr,_t);if(m=="*")return F.marked="keyword",c(_t);if(Y&&f=="(")return G(ur,_t);if(f==";"||f==",")return c(_t);if(f=="}")return c();if(m=="@")return c(ve,_t)}function kr(f,m){if(m=="!"||m=="?")return c(kr);if(f==":")return c(Re,Rt);if(m=="=")return c(Oe);var U=F.state.lexical.prev,re=U&&U.info=="interface";return G(re?ur:zt)}function Ir(f,m){return m=="*"?(F.marked="keyword",c(Rr,Me(";"))):m=="default"?(F.marked="keyword",c(ve,Me(";"))):f=="{"?c(Ne(zr,"}"),Rr,Me(";")):G(Fe)}function zr(f,m){if(m=="as")return F.marked="keyword",c(Me("variable"));if(f=="variable")return G(Oe,zr)}function fr(f){return f=="string"?c():f=="("?G(ve):f=="."?G(Pe):G(Br,Gt,Rr)}function Br(f,m){return f=="{"?Mt(Br,"}"):(f=="variable"&&C(m),m=="*"&&(F.marked="keyword"),c(sn))}function Gt(f){if(f==",")return c(Br,Gt)}function sn(f,m){if(m=="as")return F.marked="keyword",c(Br)}function Rr(f,m){if(m=="from")return F.marked="keyword",c(ve)}function Je(f){return f=="]"?c():G(Ne(Oe,"]"))}function ye(){return G(le("form"),kt,Me("{"),le("}"),Ne(Vt,"}"),xe,xe)}function Vt(){return G(kt,Rt)}function un(f,m){return f.lastType=="operator"||f.lastType==","||R.test(m.charAt(0))||/[,.]/.test(m.charAt(0))}function Et(f,m,U){return m.tokenize==M&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(m.lastType)||m.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(U||0)))}return{startState:function(f){var m={tokenize:M,lastType:"sof",cc:[],lexical:new J((f||0)-te,0,"block",!1),localVars:_.localVars,context:_.localVars&&new j(null,null,!1),indented:f||0};return _.globalVars&&typeof _.globalVars=="object"&&(m.globalVars=_.globalVars),m},token:function(f,m){if(f.sol()&&(m.lexical.hasOwnProperty("align")||(m.lexical.align=!1),m.indented=f.indentation(),p(f,m)),m.tokenize!=z&&f.eatSpace())return null;var U=m.tokenize(f,m);return ue=="comment"?U:(m.lastType=ue=="operator"&&(O=="++"||O=="--")?"incdec":ue,$(m,U,ue,O,f))},indent:function(f,m){if(f.tokenize==z||f.tokenize==X)return b.Pass;if(f.tokenize!=M)return 0;var U=m&&m.charAt(0),re=f.lexical,B;if(!/^\s*else\b/.test(m))for(var ce=f.cc.length-1;ce>=0;--ce){var We=f.cc[ce];if(We==xe)re=re.prev;else if(We!=Or&&We!=Te)break}for(;(re.type=="stat"||re.type=="form")&&(U=="}"||(B=f.cc[f.cc.length-1])&&(B==Pe||B==_e)&&!/^[,\.=+\-*:?[\(]/.test(m));)re=re.prev;oe&&re.type==")"&&re.prev.type=="stat"&&(re=re.prev);var it=re.type,wt=U==it;return it=="vardef"?re.indented+(f.lastType=="operator"||f.lastType==","?re.info.length+1:0):it=="form"&&U=="{"?re.indented:it=="form"?re.indented+te:it=="stat"?re.indented+(un(f,m)?oe||te:0):re.info=="switch"&&!wt&&_.doubleIndentSwitch!=!1?re.indented+(/^(?:case|default)\b/.test(m)?te:2*te):re.align?re.column+(wt?0:1):re.indented+(wt?0:te)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:k?null:"/*",blockCommentEnd:k?null:"*/",blockCommentContinue:k?null:" * ",lineComment:k?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:k?"json":"javascript",jsonldMode:Q,jsonMode:k,expressionAllowed:Et,skipExpression:function(f){$(f,"atom","atom","true",new b.StringStream("",2,null))}}}),b.registerHelper("wordChars","javascript",/[\w$]/),b.defineMIME("text/javascript","javascript"),b.defineMIME("text/ecmascript","javascript"),b.defineMIME("application/javascript","javascript"),b.defineMIME("application/x-javascript","javascript"),b.defineMIME("application/ecmascript","javascript"),b.defineMIME("application/json",{name:"javascript",json:!0}),b.defineMIME("application/x-json",{name:"javascript",json:!0}),b.defineMIME("application/manifest+json",{name:"javascript",json:!0}),b.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),b.defineMIME("text/typescript",{name:"javascript",typescript:!0}),b.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),ba.exports}var wa;function $u(){return wa||(wa=1,(function(ct,xt){(function(b){b(mt(),Ya(),Qa(),Xa())})(function(b){var pe={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function _(ne,S,R){var A=ne.current(),V=A.search(S);return V>-1?ne.backUp(A.length-V):A.match(/<\/?$/)&&(ne.backUp(A.length),ne.match(S,!1)||ne.match(A)),R}var te={};function oe(ne){var S=te[ne];return S||(te[ne]=new RegExp("\\s+"+ne+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function Q(ne,S){var R=ne.match(oe(S));return R?/^\s*(.*?)\s*$/.exec(R[2])[1]:""}function k(ne,S){return new RegExp((S?"^":"")+"","i")}function I(ne,S){for(var R in ne)for(var A=S[R]||(S[R]=[]),V=ne[R],ue=V.length-1;ue>=0;ue--)A.unshift(V[ue])}function Y(ne,S){for(var R=0;R=0;O--)A.script.unshift(["type",ue[O].matches,ue[O].mode]);function w(M,N){var z=R.token(M,N.htmlState),X=/\btag\b/.test(z),q;if(X&&!/[<>\s\/]/.test(M.current())&&(q=N.htmlState.tagName&&N.htmlState.tagName.toLowerCase())&&A.hasOwnProperty(q))N.inTag=q+" ";else if(N.inTag&&X&&/>$/.test(M.current())){var p=/^([\S]+) (.*)/.exec(N.inTag);N.inTag=null;var W=M.current()==">"&&Y(A[p[1]],p[2]),J=b.getMode(ne,W),P=k(p[1],!0),$=k(p[1],!1);N.token=function(F,G){return F.match(P,!1)?(G.token=w,G.localState=G.localMode=null,null):_(F,$,G.localMode.token(F,G.localState))},N.localMode=J,N.localState=b.startState(J,R.indent(N.htmlState,"",""))}else N.inTag&&(N.inTag+=M.current(),M.eol()&&(N.inTag+=" "));return z}return{startState:function(){var M=b.startState(R);return{token:w,inTag:null,localMode:null,localState:null,htmlState:M}},copyState:function(M){var N;return M.localState&&(N=b.copyState(M.localMode,M.localState)),{token:M.token,inTag:M.inTag,localMode:M.localMode,localState:N,htmlState:b.copyState(R,M.htmlState)}},token:function(M,N){return N.token(M,N)},indent:function(M,N,z){return!M.localMode||/^\s*<\//.test(N)?R.indent(M.htmlState,N,z):M.localMode.indent?M.localMode.indent(M.localState,N,z):b.Pass},innerMode:function(M){return{state:M.localState||M.htmlState,mode:M.localMode||R}}}},"xml","javascript","css"),b.defineMIME("text/html","htmlmixed")})})()),ma.exports}$u();Qa();var Sa={exports:{}},La;function ef(){return La||(La=1,(function(ct,xt){(function(b){b(mt())})(function(b){function pe(I){return new RegExp("^(("+I.join(")|(")+"))\\b")}var _=pe(["and","or","not","is"]),te=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],oe=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];b.registerHelper("hintWords","python",te.concat(oe).concat(["exec","print"]));function Q(I){return I.scopes[I.scopes.length-1]}b.defineMode("python",function(I,Y){for(var ne="error",S=Y.delimiters||Y.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,R=[Y.singleOperators,Y.doubleOperators,Y.doubleDelimiters,Y.tripleDelimiters,Y.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],A=0;Ay?P(C):j0&&F(T,C)&&(de+=" "+ne),de}}return p(T,C)}function p(T,C,g){if(T.eatSpace())return null;if(!g&&T.match(/^#.*/))return"comment";if(T.match(/^[0-9\.]/,!1)){var y=!1;if(T.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(y=!0),T.match(/^[\d_]+\.\d*/)&&(y=!0),T.match(/^\.\d+/)&&(y=!0),y)return T.eat(/J/i),"number";var j=!1;if(T.match(/^0x[0-9a-f_]+/i)&&(j=!0),T.match(/^0b[01_]+/i)&&(j=!0),T.match(/^0o[0-7_]+/i)&&(j=!0),T.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(T.eat(/J/i),j=!0),T.match(/^0(?![\dx])/i)&&(j=!0),j)return T.eat(/L/i),"number"}if(T.match(N)){var de=T.current().toLowerCase().indexOf("f")!==-1;return de?(C.tokenize=W(T.current(),C.tokenize),C.tokenize(T,C)):(C.tokenize=J(T.current(),C.tokenize),C.tokenize(T,C))}for(var v=0;v=0;)T=T.substr(1);var g=T.length==1,y="string";function j(v){return function(d,fe){var Te=p(d,fe,!0);return Te=="punctuation"&&(d.current()=="{"?fe.tokenize=j(v+1):d.current()=="}"&&(v>1?fe.tokenize=j(v-1):fe.tokenize=de)),Te}}function de(v,d){for(;!v.eol();)if(v.eatWhile(/[^'"\{\}\\]/),v.eat("\\")){if(v.next(),g&&v.eol())return y}else{if(v.match(T))return d.tokenize=C,y;if(v.match("{{"))return y;if(v.match("{",!1))return d.tokenize=j(0),v.current()?y:d.tokenize(v,d);if(v.match("}}"))return y;if(v.match("}"))return ne;v.eat(/['"]/)}if(g){if(Y.singleLineStringErrors)return ne;d.tokenize=C}return y}return de.isString=!0,de}function J(T,C){for(;"rubf".indexOf(T.charAt(0).toLowerCase())>=0;)T=T.substr(1);var g=T.length==1,y="string";function j(de,v){for(;!de.eol();)if(de.eatWhile(/[^'"\\]/),de.eat("\\")){if(de.next(),g&&de.eol())return y}else{if(de.match(T))return v.tokenize=C,y;de.eat(/['"]/)}if(g){if(Y.singleLineStringErrors)return ne;v.tokenize=C}return y}return j.isString=!0,j}function P(T){for(;Q(T).type!="py";)T.scopes.pop();T.scopes.push({offset:Q(T).offset+I.indentUnit,type:"py",align:null})}function $(T,C,g){var y=T.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:T.column()+1;C.scopes.push({offset:C.indent+V,type:g,align:y})}function F(T,C){for(var g=T.indentation();C.scopes.length>1&&Q(C).offset>g;){if(Q(C).type!="py")return!0;C.scopes.pop()}return Q(C).offset!=g}function G(T,C){T.sol()&&(C.beginningOfLine=!0,C.dedent=!1);var g=C.tokenize(T,C),y=T.current();if(C.beginningOfLine&&y=="@")return T.match(M,!1)?"meta":w?"operator":ne;if(/\S/.test(y)&&(C.beginningOfLine=!1),(g=="variable"||g=="builtin")&&C.lastToken=="meta"&&(g="meta"),(y=="pass"||y=="return")&&(C.dedent=!0),y=="lambda"&&(C.lambda=!0),y==":"&&!C.lambda&&Q(C).type=="py"&&T.match(/^\s*(?:#|$)/,!1)&&P(C),y.length==1&&!/string|comment/.test(g)){var j="[({".indexOf(y);if(j!=-1&&$(T,C,"])}".slice(j,j+1)),j="])}".indexOf(y),j!=-1)if(Q(C).type==y)C.indent=C.scopes.pop().offset-V;else return ne}return C.dedent&&T.eol()&&Q(C).type=="py"&&C.scopes.length>1&&C.scopes.pop(),g}var c={startState:function(T){return{tokenize:q,scopes:[{offset:T||0,type:"py",align:null}],indent:T||0,lastToken:null,lambda:!1,dedent:0}},token:function(T,C){var g=C.errorToken;g&&(C.errorToken=!1);var y=G(T,C);return y&&y!="comment"&&(C.lastToken=y=="keyword"||y=="punctuation"?T.current():y),y=="punctuation"&&(y=null),T.eol()&&C.lambda&&(C.lambda=!1),g?y+" "+ne:y},indent:function(T,C){if(T.tokenize!=q)return T.tokenize.isString?b.Pass:0;var g=Q(T),y=g.type==C.charAt(0)||g.type=="py"&&!T.dedent&&/^(else:|elif |except |finally:)/.test(C);return g.align!=null?g.align-(y?1:0):g.offset-(y?V:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),b.defineMIME("text/x-python","python");var k=function(I){return I.split(" ")};b.defineMIME("text/x-cython",{name:"python",extra_keywords:k("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})()),Sa.exports}ef();var Ta={exports:{}},Ca;function tf(){return Ca||(Ca=1,(function(ct,xt){(function(b){b(mt())})(function(b){function pe(g,y,j,de,v,d){this.indented=g,this.column=y,this.type=j,this.info=de,this.align=v,this.prev=d}function _(g,y,j,de){var v=g.indented;return g.context&&g.context.type=="statement"&&j!="statement"&&(v=g.context.indented),g.context=new pe(v,y,j,de,null,g.context)}function te(g){var y=g.context.type;return(y==")"||y=="]"||y=="}")&&(g.indented=g.context.indented),g.context=g.context.prev}function oe(g,y,j){if(y.prevToken=="variable"||y.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(g.string.slice(0,j))||y.typeAtEndOfLine&&g.column()==g.indentation())return!0}function Q(g){for(;;){if(!g||g.type=="top")return!0;if(g.type=="}"&&g.prev.info!="namespace")return!1;g=g.prev}}b.defineMode("clike",function(g,y){var j=g.indentUnit,de=y.statementIndentUnit||j,v=y.dontAlignCalls,d=y.keywords||{},fe=y.types||{},Te=y.builtin||{},le=y.blockKeywords||{},xe=y.defKeywords||{},Me=y.atoms||{},Fe=y.hooks||{},Ce=y.multiLineStrings,ve=y.indentStatements!==!1,Oe=y.indentSwitch!==!1,qe=y.namespaceSeparator,Ve=y.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,dt=y.numberStart||/[\d\.]/,Pe=y.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,_e=y.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ue=y.isIdentifierChar||/[\w\$_\xa1-\uffff]/,et=y.isReservedIdentifier||!1,we,Ie;function E(me,De){var be=me.next();if(Fe[be]){var Be=Fe[be](me,De);if(Be!==!1)return Be}if(be=='"'||be=="'")return De.tokenize=ee(be),De.tokenize(me,De);if(dt.test(be)){if(me.backUp(1),me.match(Pe))return"number";me.next()}if(Ve.test(be))return we=be,null;if(be=="/"){if(me.eat("*"))return De.tokenize=K,K(me,De);if(me.eat("/"))return me.skipToEnd(),"comment"}if(_e.test(be)){for(;!me.match(/^\/[\/*]/,!1)&&me.eat(_e););return"operator"}if(me.eatWhile(Ue),qe)for(;me.match(qe);)me.eatWhile(Ue);var Ne=me.current();return I(d,Ne)?(I(le,Ne)&&(we="newstatement"),I(xe,Ne)&&(Ie=!0),"keyword"):I(fe,Ne)?"type":I(Te,Ne)||et&&et(Ne)?(I(le,Ne)&&(we="newstatement"),"builtin"):I(Me,Ne)?"atom":"variable"}function ee(me){return function(De,be){for(var Be=!1,Ne,Mt=!1;(Ne=De.next())!=null;){if(Ne==me&&!Be){Mt=!0;break}Be=!Be&&Ne=="\\"}return(Mt||!(Be||Ce))&&(be.tokenize=null),"string"}}function K(me,De){for(var be=!1,Be;Be=me.next();){if(Be=="/"&&be){De.tokenize=null;break}be=Be=="*"}return"comment"}function ze(me,De){y.typeFirstDefinitions&&me.eol()&&Q(De.context)&&(De.typeAtEndOfLine=oe(me,De,me.pos))}return{startState:function(me){return{tokenize:null,context:new pe((me||0)-j,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(me,De){var be=De.context;if(me.sol()&&(be.align==null&&(be.align=!1),De.indented=me.indentation(),De.startOfLine=!0),me.eatSpace())return ze(me,De),null;we=Ie=null;var Be=(De.tokenize||E)(me,De);if(Be=="comment"||Be=="meta")return Be;if(be.align==null&&(be.align=!0),we==";"||we==":"||we==","&&me.match(/^\s*(?:\/\/.*)?$/,!1))for(;De.context.type=="statement";)te(De);else if(we=="{")_(De,me.column(),"}");else if(we=="[")_(De,me.column(),"]");else if(we=="(")_(De,me.column(),")");else if(we=="}"){for(;be.type=="statement";)be=te(De);for(be.type=="}"&&(be=te(De));be.type=="statement";)be=te(De)}else we==be.type?te(De):ve&&((be.type=="}"||be.type=="top")&&we!=";"||be.type=="statement"&&we=="newstatement")&&_(De,me.column(),"statement",me.current());if(Be=="variable"&&(De.prevToken=="def"||y.typeFirstDefinitions&&oe(me,De,me.start)&&Q(De.context)&&me.match(/^\s*\(/,!1))&&(Be="def"),Fe.token){var Ne=Fe.token(me,De,Be);Ne!==void 0&&(Be=Ne)}return Be=="def"&&y.styleDefs===!1&&(Be="variable"),De.startOfLine=!1,De.prevToken=Ie?"def":Be||we,ze(me,De),Be},indent:function(me,De){if(me.tokenize!=E&&me.tokenize!=null||me.typeAtEndOfLine&&Q(me.context))return b.Pass;var be=me.context,Be=De&&De.charAt(0),Ne=Be==be.type;if(be.type=="statement"&&Be=="}"&&(be=be.prev),y.dontIndentStatements)for(;be.type=="statement"&&y.dontIndentStatements.test(be.info);)be=be.prev;if(Fe.indent){var Mt=Fe.indent(me,be,De,j);if(typeof Mt=="number")return Mt}var Pt=be.prev&&be.prev.info=="switch";if(y.allmanIndentation&&/[{(]/.test(Be)){for(;be.type!="top"&&be.type!="}";)be=be.prev;return be.indented}return be.type=="statement"?be.indented+(Be=="{"?0:de):be.align&&(!v||be.type!=")")?be.column+(Ne?0:1):be.type==")"&&!Ne?be.indented+de:be.indented+(Ne?0:j)+(!Ne&&Pt&&!/^(?:case|default)\b/.test(De)?j:0)},electricInput:Oe?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function k(g){for(var y={},j=g.split(" "),de=0;de!?|\/#:@]/,hooks:{"@":function(g){return g.eatWhile(/[\w\$_]/),"meta"},'"':function(g,y){return g.match('""')?(y.tokenize=F,y.tokenize(g,y)):!1},"'":function(g){return g.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(g.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(g,y){var j=y.context;return j.type=="}"&&j.align&&g.eat(">")?(y.context=new pe(j.indented,j.column,j.type,j.info,null,j.prev),"operator"):!1},"/":function(g,y){return g.eat("*")?(y.tokenize=G(1),y.tokenize(g,y)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(g){return function(y,j){for(var de=!1,v,d=!1;!y.eol();){if(!g&&!de&&y.match('"')){d=!0;break}if(g&&y.match('"""')){d=!0;break}v=y.next(),!de&&v=="$"&&y.match("{")&&y.skipTo("}"),de=!de&&v=="\\"&&!g}return(d||!g)&&(j.tokenize=null),"string"}}$("text/x-kotlin",{name:"clike",keywords:k("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:k("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:k("catch class do else finally for if where try while enum"),defKeywords:k("class val var object interface fun"),atoms:k("true false null this"),hooks:{"@":function(g){return g.eatWhile(/[\w\$_]/),"meta"},"*":function(g,y){return y.prevToken=="."?"variable":"operator"},'"':function(g,y){return y.tokenize=c(g.match('""')),y.tokenize(g,y)},"/":function(g,y){return g.eat("*")?(y.tokenize=G(1),y.tokenize(g,y)):!1},indent:function(g,y,j,de){var v=j&&j.charAt(0);if((g.prevToken=="}"||g.prevToken==")")&&j=="")return g.indented;if(g.prevToken=="operator"&&j!="}"&&g.context.type!="}"||g.prevToken=="variable"&&v=="."||(g.prevToken=="}"||g.prevToken==")")&&v==".")return de*2+y.indented;if(y.align&&y.type=="}")return y.indented+(g.context.type==(j||"").charAt(0)?0:de)}},modeProps:{closeBrackets:{triples:'"'}}}),$(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:k("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:k("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:k("for while do if else struct"),builtin:k("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:k("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":N},modeProps:{fold:["brace","include"]}}),$("text/x-nesc",{name:"clike",keywords:k(Y+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:ue,blockKeywords:k(w),atoms:k("null true false"),hooks:{"#":N},modeProps:{fold:["brace","include"]}}),$("text/x-objectivec",{name:"clike",keywords:k(Y+" "+S),types:O,builtin:k(R),blockKeywords:k(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:k(M+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:k("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:X,hooks:{"#":N,"*":z},modeProps:{fold:["brace","include"]}}),$("text/x-objectivec++",{name:"clike",keywords:k(Y+" "+S+" "+ne),types:O,builtin:k(R),blockKeywords:k(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:k(M+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:k("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:X,hooks:{"#":N,"*":z,u:p,U:p,L:p,R:p,0:q,1:q,2:q,3:q,4:q,5:q,6:q,7:q,8:q,9:q,token:function(g,y,j){if(j=="variable"&&g.peek()=="("&&(y.prevToken==";"||y.prevToken==null||y.prevToken=="}")&&W(g.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),$("text/x-squirrel",{name:"clike",keywords:k("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:ue,blockKeywords:k("case catch class else for foreach if switch try while"),defKeywords:k("function local class"),typeFirstDefinitions:!0,atoms:k("true false null"),hooks:{"#":N},modeProps:{fold:["brace","include"]}});var T=null;function C(g){return function(y,j){for(var de=!1,v,d=!1;!y.eol();){if(!de&&y.match('"')&&(g=="single"||y.match('""'))){d=!0;break}if(!de&&y.match("``")){T=C(g),d=!0;break}v=y.next(),de=g=="single"&&!de&&v=="\\"}return d&&(j.tokenize=null),"string"}}$("text/x-ceylon",{name:"clike",keywords:k("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(g){var y=g.charAt(0);return y===y.toUpperCase()&&y!==y.toLowerCase()},blockKeywords:k("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:k("class dynamic function interface module object package value"),builtin:k("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:k("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(g){return g.eatWhile(/[\w\$_]/),"meta"},'"':function(g,y){return y.tokenize=C(g.match('""')?"triple":"single"),y.tokenize(g,y)},"`":function(g,y){return!T||!g.match("`")?!1:(y.tokenize=T,T=null,y.tokenize(g,y))},"'":function(g){return g.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(g,y,j){if((j=="variable"||j=="type")&&y.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})()),Ta.exports}tf();var Da={exports:{}},Ma={exports:{}},Fa;function rf(){return Fa||(Fa=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var pe=0;pe-1&&te.substring(k+1,te.length);if(I)return b.findModeByExtension(I)},b.findModeByName=function(te){te=te.toLowerCase();for(var oe=0;oe` "'(~:]+/,ue=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,O=/^\s*\[[^\]]+?\]:.*$/,w=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,M=" ";function N(v,d,fe){return d.f=d.inline=fe,fe(v,d)}function z(v,d,fe){return d.f=d.block=fe,fe(v,d)}function X(v){return!v||!/\S/.test(v.string)}function q(v){if(v.linkTitle=!1,v.linkHref=!1,v.linkText=!1,v.em=!1,v.strong=!1,v.strikethrough=!1,v.quote=0,v.indentedCode=!1,v.f==W){var d=oe;if(!d){var fe=b.innerMode(te,v.htmlState);d=fe.mode.name=="xml"&&fe.state.tagStart===null&&!fe.state.context&&fe.state.tokenize.isInText}d&&(v.f=F,v.block=p,v.htmlState=null)}return v.trailingSpace=0,v.trailingSpaceNewLine=!1,v.prevLine=v.thisLine,v.thisLine={stream:null},null}function p(v,d){var fe=v.column()===d.indentation,Te=X(d.prevLine.stream),le=d.indentedCode,xe=d.prevLine.hr,Me=d.list!==!1,Fe=(d.listStack[d.listStack.length-1]||0)+3;d.indentedCode=!1;var Ce=d.indentation;if(d.indentationDiff===null&&(d.indentationDiff=d.indentation,Me)){for(d.list=null;Ce=4&&(le||d.prevLine.fencedCodeEnd||d.prevLine.header||Te))return v.skipToEnd(),d.indentedCode=!0,k.code;if(v.eatSpace())return null;if(fe&&d.indentation<=Fe&&(qe=v.match(R))&&qe[1].length<=6)return d.quote=0,d.header=qe[1].length,d.thisLine.header=!0,_.highlightFormatting&&(d.formatting="header"),d.f=d.inline,P(d);if(d.indentation<=Fe&&v.eat(">"))return d.quote=fe?1:d.quote+1,_.highlightFormatting&&(d.formatting="quote"),v.eatSpace(),P(d);if(!Oe&&!d.setext&&fe&&d.indentation<=Fe&&(qe=v.match(ne))){var Ve=qe[1]?"ol":"ul";return d.indentation=Ce+v.current().length,d.list=!0,d.quote=0,d.listStack.push(d.indentation),d.em=!1,d.strong=!1,d.code=!1,d.strikethrough=!1,_.taskLists&&v.match(S,!1)&&(d.taskList=!0),d.f=d.inline,_.highlightFormatting&&(d.formatting=["list","list-"+Ve]),P(d)}else{if(fe&&d.indentation<=Fe&&(qe=v.match(ue,!0)))return d.quote=0,d.fencedEndRE=new RegExp(qe[1]+"+ *$"),d.localMode=_.fencedCodeBlockHighlighting&&Q(qe[2]||_.fencedCodeBlockDefaultMode),d.localMode&&(d.localState=b.startState(d.localMode)),d.f=d.block=J,_.highlightFormatting&&(d.formatting="code-block"),d.code=-1,P(d);if(d.setext||(!ve||!Me)&&!d.quote&&d.list===!1&&!d.code&&!Oe&&!O.test(v.string)&&(qe=v.lookAhead(1))&&(qe=qe.match(A)))return d.setext?(d.header=d.setext,d.setext=0,v.skipToEnd(),_.highlightFormatting&&(d.formatting="header")):(d.header=qe[0].charAt(0)=="="?1:2,d.setext=d.header),d.thisLine.header=!0,d.f=d.inline,P(d);if(Oe)return v.skipToEnd(),d.hr=!0,d.thisLine.hr=!0,k.hr;if(v.peek()==="[")return N(v,d,g)}return N(v,d,d.inline)}function W(v,d){var fe=te.token(v,d.htmlState);if(!oe){var Te=b.innerMode(te,d.htmlState);(Te.mode.name=="xml"&&Te.state.tagStart===null&&!Te.state.context&&Te.state.tokenize.isInText||d.md_inside&&v.current().indexOf(">")>-1)&&(d.f=F,d.block=p,d.htmlState=null)}return fe}function J(v,d){var fe=d.listStack[d.listStack.length-1]||0,Te=d.indentation=v.quote?d.push(k.formatting+"-"+v.formatting[fe]+"-"+v.quote):d.push("error"))}if(v.taskOpen)return d.push("meta"),d.length?d.join(" "):null;if(v.taskClosed)return d.push("property"),d.length?d.join(" "):null;if(v.linkHref?d.push(k.linkHref,"url"):(v.strong&&d.push(k.strong),v.em&&d.push(k.em),v.strikethrough&&d.push(k.strikethrough),v.emoji&&d.push(k.emoji),v.linkText&&d.push(k.linkText),v.code&&d.push(k.code),v.image&&d.push(k.image),v.imageAltText&&d.push(k.imageAltText,"link"),v.imageMarker&&d.push(k.imageMarker)),v.header&&d.push(k.header,k.header+"-"+v.header),v.quote&&(d.push(k.quote),!_.maxBlockquoteDepth||_.maxBlockquoteDepth>=v.quote?d.push(k.quote+"-"+v.quote):d.push(k.quote+"-"+_.maxBlockquoteDepth)),v.list!==!1){var Te=(v.listStack.length-1)%3;Te?Te===1?d.push(k.list2):d.push(k.list3):d.push(k.list1)}return v.trailingSpaceNewLine?d.push("trailing-space-new-line"):v.trailingSpace&&d.push("trailing-space-"+(v.trailingSpace%2?"a":"b")),d.length?d.join(" "):null}function $(v,d){if(v.match(V,!0))return P(d)}function F(v,d){var fe=d.text(v,d);if(typeof fe<"u")return fe;if(d.list)return d.list=null,P(d);if(d.taskList){var Te=v.match(S,!0)[1]===" ";return Te?d.taskOpen=!0:d.taskClosed=!0,_.highlightFormatting&&(d.formatting="task"),d.taskList=!1,P(d)}if(d.taskOpen=!1,d.taskClosed=!1,d.header&&v.match(/^#+$/,!0))return _.highlightFormatting&&(d.formatting="header"),P(d);var le=v.next();if(d.linkTitle){d.linkTitle=!1;var xe=le;le==="("&&(xe=")"),xe=(xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Me="^\\s*(?:[^"+xe+"\\\\]+|\\\\\\\\|\\\\.)"+xe;if(v.match(new RegExp(Me),!0))return k.linkHref}if(le==="`"){var Fe=d.formatting;_.highlightFormatting&&(d.formatting="code"),v.eatWhile("`");var Ce=v.current().length;if(d.code==0&&(!d.quote||Ce==1))return d.code=Ce,P(d);if(Ce==d.code){var ve=P(d);return d.code=0,ve}else return d.formatting=Fe,P(d)}else if(d.code)return P(d);if(le==="\\"&&(v.next(),_.highlightFormatting)){var Oe=P(d),qe=k.formatting+"-escape";return Oe?Oe+" "+qe:qe}if(le==="!"&&v.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return d.imageMarker=!0,d.image=!0,_.highlightFormatting&&(d.formatting="image"),P(d);if(le==="["&&d.imageMarker&&v.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return d.imageMarker=!1,d.imageAltText=!0,_.highlightFormatting&&(d.formatting="image"),P(d);if(le==="]"&&d.imageAltText){_.highlightFormatting&&(d.formatting="image");var Oe=P(d);return d.imageAltText=!1,d.image=!1,d.inline=d.f=c,Oe}if(le==="["&&!d.image)return d.linkText&&v.match(/^.*?\]/)||(d.linkText=!0,_.highlightFormatting&&(d.formatting="link")),P(d);if(le==="]"&&d.linkText){_.highlightFormatting&&(d.formatting="link");var Oe=P(d);return d.linkText=!1,d.inline=d.f=v.match(/\(.*?\)| ?\[.*?\]/,!1)?c:F,Oe}if(le==="<"&&v.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){d.f=d.inline=G,_.highlightFormatting&&(d.formatting="link");var Oe=P(d);return Oe?Oe+=" ":Oe="",Oe+k.linkInline}if(le==="<"&&v.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){d.f=d.inline=G,_.highlightFormatting&&(d.formatting="link");var Oe=P(d);return Oe?Oe+=" ":Oe="",Oe+k.linkEmail}if(_.xml&&le==="<"&&v.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=v.string.indexOf(">",v.pos);if(Ve!=-1){var dt=v.string.substring(v.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(dt)&&(d.md_inside=!0)}return v.backUp(1),d.htmlState=b.startState(te),z(v,d,W)}if(_.xml&&le==="<"&&v.match(/^\/\w*?>/))return d.md_inside=!1,"tag";if(le==="*"||le==="_"){for(var Pe=1,_e=v.pos==1?" ":v.string.charAt(v.pos-2);Pe<3&&v.eat(le);)Pe++;var Ue=v.peek()||" ",et=!/\s/.test(Ue)&&(!w.test(Ue)||/\s/.test(_e)||w.test(_e)),we=!/\s/.test(_e)&&(!w.test(_e)||/\s/.test(Ue)||w.test(Ue)),Ie=null,E=null;if(Pe%2&&(!d.em&&et&&(le==="*"||!we||w.test(_e))?Ie=!0:d.em==le&&we&&(le==="*"||!et||w.test(Ue))&&(Ie=!1)),Pe>1&&(!d.strong&&et&&(le==="*"||!we||w.test(_e))?E=!0:d.strong==le&&we&&(le==="*"||!et||w.test(Ue))&&(E=!1)),E!=null||Ie!=null){_.highlightFormatting&&(d.formatting=Ie==null?"strong":E==null?"em":"strong em"),Ie===!0&&(d.em=le),E===!0&&(d.strong=le);var ve=P(d);return Ie===!1&&(d.em=!1),E===!1&&(d.strong=!1),ve}}else if(le===" "&&(v.eat("*")||v.eat("_"))){if(v.peek()===" ")return P(d);v.backUp(1)}if(_.strikethrough){if(le==="~"&&v.eatWhile(le)){if(d.strikethrough){_.highlightFormatting&&(d.formatting="strikethrough");var ve=P(d);return d.strikethrough=!1,ve}else if(v.match(/^[^\s]/,!1))return d.strikethrough=!0,_.highlightFormatting&&(d.formatting="strikethrough"),P(d)}else if(le===" "&&v.match("~~",!0)){if(v.peek()===" ")return P(d);v.backUp(2)}}if(_.emoji&&le===":"&&v.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){d.emoji=!0,_.highlightFormatting&&(d.formatting="emoji");var ee=P(d);return d.emoji=!1,ee}return le===" "&&(v.match(/^ +$/,!1)?d.trailingSpace++:d.trailingSpace&&(d.trailingSpaceNewLine=!0)),P(d)}function G(v,d){var fe=v.next();if(fe===">"){d.f=d.inline=F,_.highlightFormatting&&(d.formatting="link");var Te=P(d);return Te?Te+=" ":Te="",Te+k.linkInline}return v.match(/^[^>]+/,!0),k.linkInline}function c(v,d){if(v.eatSpace())return null;var fe=v.next();return fe==="("||fe==="["?(d.f=d.inline=C(fe==="("?")":"]"),_.highlightFormatting&&(d.formatting="link-string"),d.linkHref=!0,P(d)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function C(v){return function(d,fe){var Te=d.next();if(Te===v){fe.f=fe.inline=F,_.highlightFormatting&&(fe.formatting="link-string");var le=P(fe);return fe.linkHref=!1,le}return d.match(T[v]),fe.linkHref=!0,P(fe)}}function g(v,d){return v.match(/^([^\]\\]|\\.)*\]:/,!1)?(d.f=y,v.next(),_.highlightFormatting&&(d.formatting="link"),d.linkText=!0,P(d)):N(v,d,F)}function y(v,d){if(v.match("]:",!0)){d.f=d.inline=j,_.highlightFormatting&&(d.formatting="link");var fe=P(d);return d.linkText=!1,fe}return v.match(/^([^\]\\]|\\.)+/,!0),k.linkText}function j(v,d){return v.eatSpace()?null:(v.match(/^[^\s]+/,!0),v.peek()===void 0?d.linkTitle=!0:v.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),d.f=d.inline=F,k.linkHref+" url")}var de={startState:function(){return{f:p,prevLine:{stream:null},thisLine:{stream:null},block:p,htmlState:null,indentation:0,inline:F,text:$,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(v){return{f:v.f,prevLine:v.prevLine,thisLine:v.thisLine,block:v.block,htmlState:v.htmlState&&b.copyState(te,v.htmlState),indentation:v.indentation,localMode:v.localMode,localState:v.localMode?b.copyState(v.localMode,v.localState):null,inline:v.inline,text:v.text,formatting:!1,linkText:v.linkText,linkTitle:v.linkTitle,linkHref:v.linkHref,code:v.code,em:v.em,strong:v.strong,strikethrough:v.strikethrough,emoji:v.emoji,header:v.header,setext:v.setext,hr:v.hr,taskList:v.taskList,list:v.list,listStack:v.listStack.slice(0),quote:v.quote,indentedCode:v.indentedCode,trailingSpace:v.trailingSpace,trailingSpaceNewLine:v.trailingSpaceNewLine,md_inside:v.md_inside,fencedEndRE:v.fencedEndRE}},token:function(v,d){if(d.formatting=!1,v!=d.thisLine.stream){if(d.header=0,d.hr=!1,v.match(/^\s*$/,!0))return q(d),null;if(d.prevLine=d.thisLine,d.thisLine={stream:v},d.taskList=!1,d.trailingSpace=0,d.trailingSpaceNewLine=!1,!d.localState&&(d.f=d.block,d.f!=W)){var fe=v.match(/^\s*/,!0)[0].replace(/\t/g,M).length;if(d.indentation=fe,d.indentationDiff=null,fe>0)return null}}return d.f(v,d)},innerMode:function(v){return v.block==W?{state:v.htmlState,mode:te}:v.localState?{state:v.localState,mode:v.localMode}:{state:v,mode:de}},indent:function(v,d,fe){return v.block==W&&te.indent?te.indent(v.htmlState,d,fe):v.localState&&v.localMode.indent?v.localMode.indent(v.localState,d,fe):b.Pass},blankLine:q,getType:P,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return de},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})})()),Da.exports}nf();var Na={exports:{}},Ea;function of(){return Ea||(Ea=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineOption("placeholder","",function(I,Y,ne){var S=ne&&ne!=b.Init;if(Y&&!S)I.on("blur",oe),I.on("change",Q),I.on("swapDoc",Q),b.on(I.getInputField(),"compositionupdate",I.state.placeholderCompose=function(){te(I)}),Q(I);else if(!Y&&S){I.off("blur",oe),I.off("change",Q),I.off("swapDoc",Q),b.off(I.getInputField(),"compositionupdate",I.state.placeholderCompose),pe(I);var R=I.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}Y&&!I.hasFocus()&&oe(I)});function pe(I){I.state.placeholder&&(I.state.placeholder.parentNode.removeChild(I.state.placeholder),I.state.placeholder=null)}function _(I){pe(I);var Y=I.state.placeholder=document.createElement("pre");Y.style.cssText="height: 0; overflow: visible",Y.style.direction=I.getOption("direction"),Y.className="CodeMirror-placeholder CodeMirror-line-like";var ne=I.getOption("placeholder");typeof ne=="string"&&(ne=document.createTextNode(ne)),Y.appendChild(ne),I.display.lineSpace.insertBefore(Y,I.display.lineSpace.firstChild)}function te(I){setTimeout(function(){var Y=!1;if(I.lineCount()==1){var ne=I.getInputField();Y=ne.nodeName=="TEXTAREA"?!I.getLine(0).length:!/[^\u200b]/.test(ne.querySelector(".CodeMirror-line").textContent)}Y?_(I):pe(I)},20)}function oe(I){k(I)&&_(I)}function Q(I){var Y=I.getWrapperElement(),ne=k(I);Y.className=Y.className.replace(" CodeMirror-empty","")+(ne?" CodeMirror-empty":""),ne?_(I):pe(I)}function k(I){return I.lineCount()===1&&I.getLine(0)===""}})})()),Na.exports}of();var Oa={exports:{}},Pa;function lf(){return Pa||(Pa=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineSimpleMode=function(S,R){b.defineMode(S,function(A){return b.simpleMode(A,R)})},b.simpleMode=function(S,R){pe(R,"start");var A={},V=R.meta||{},ue=!1;for(var O in R)if(O!=V&&R.hasOwnProperty(O))for(var w=A[O]=[],M=R[O],N=0;N2&&z.token&&typeof z.token!="string"){for(var p=2;p-1)return b.Pass;var O=A.indent.length-1,w=S[A.state];e:for(;;){for(var M=0;M",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function oe(S){return S&&S.bracketRegex||/[(){}[\]]/}function Q(S,R,A){var V=S.getLineHandle(R.line),ue=R.ch-1,O=A&&A.afterCursor;O==null&&(O=/(^| )cm-fat-cursor($| )/.test(S.getWrapperElement().className));var w=oe(A),M=!O&&ue>=0&&w.test(V.text.charAt(ue))&&te[V.text.charAt(ue)]||w.test(V.text.charAt(ue+1))&&te[V.text.charAt(++ue)];if(!M)return null;var N=M.charAt(1)==">"?1:-1;if(A&&A.strict&&N>0!=(ue==R.ch))return null;var z=S.getTokenTypeAt(_(R.line,ue+1)),X=k(S,_(R.line,ue+(N>0?1:0)),N,z,A);return X==null?null:{from:_(R.line,ue),to:X&&X.pos,match:X&&X.ch==M.charAt(0),forward:N>0}}function k(S,R,A,V,ue){for(var O=ue&&ue.maxScanLineLength||1e4,w=ue&&ue.maxScanLines||1e3,M=[],N=oe(ue),z=A>0?Math.min(R.line+w,S.lastLine()+1):Math.max(S.firstLine()-1,R.line-w),X=R.line;X!=z;X+=A){var q=S.getLine(X);if(q){var p=A>0?0:q.length-1,W=A>0?q.length:-1;if(!(q.length>O))for(X==R.line&&(p=R.ch-(A<0?1:0));p!=W;p+=A){var J=q.charAt(p);if(N.test(J)&&(V===void 0||(S.getTokenTypeAt(_(X,p+1))||"")==(V||""))){var P=te[J];if(P&&P.charAt(1)==">"==A>0)M.push(J);else if(M.length)M.pop();else return{pos:_(X,p),ch:J}}}}}return X-A==(A>0?S.lastLine():S.firstLine())?!1:null}function I(S,R,A){for(var V=S.state.matchBrackets.maxHighlightLineLength||1e3,ue=A&&A.highlightNonMatching,O=[],w=S.listSelections(),M=0;M`,triples:"",explode:"[]{}"},_=b.Pos;b.defineOption("autoCloseBrackets",!1,function(O,w,M){M&&M!=b.Init&&(O.removeKeyMap(oe),O.state.closeBrackets=null),w&&(Q(te(w,"pairs")),O.state.closeBrackets=w,O.addKeyMap(oe))});function te(O,w){return w=="pairs"&&typeof O=="string"?O:typeof O=="object"&&O[w]!=null?O[w]:pe[w]}var oe={Backspace:Y,Enter:ne};function Q(O){for(var w=0;w=0;z--){var q=N[z].head;O.replaceRange("",_(q.line,q.ch-1),_(q.line,q.ch+1),"+delete")}}function ne(O){var w=I(O),M=w&&te(w,"explode");if(!M||O.getOption("disableInput"))return b.Pass;for(var N=O.listSelections(),z=0;z0?{line:q.head.line,ch:q.head.ch+w}:{line:q.head.line-1};M.push({anchor:p,head:p})}O.setSelections(M,z)}function R(O){var w=b.cmpPos(O.anchor,O.head)>0;return{anchor:new _(O.anchor.line,O.anchor.ch+(w?-1:1)),head:new _(O.head.line,O.head.ch+(w?1:-1))}}function A(O,w){var M=I(O);if(!M||O.getOption("disableInput"))return b.Pass;var N=te(M,"pairs"),z=N.indexOf(w);if(z==-1)return b.Pass;for(var X=te(M,"closeBefore"),q=te(M,"triples"),p=N.charAt(z+1)==w,W=O.listSelections(),J=z%2==0,P,$=0;$=0&&O.getRange(G,_(G.line,G.ch+3))==w+w+w?c="skipThree":c="skip";else if(p&&G.ch>1&&q.indexOf(w)>=0&&O.getRange(_(G.line,G.ch-2),G)==w+w){if(G.ch>2&&/\bstring/.test(O.getTokenTypeAt(_(G.line,G.ch-2))))return b.Pass;c="addFour"}else if(p){var C=G.ch==0?" ":O.getRange(_(G.line,G.ch-1),G);if(!b.isWordChar(T)&&C!=w&&!b.isWordChar(C))c="both";else return b.Pass}else if(J&&(T.length===0||/\s/.test(T)||X.indexOf(T)>-1))c="both";else return b.Pass;if(!P)P=c;else if(P!=c)return b.Pass}var g=z%2?N.charAt(z-1):w,y=z%2?w:N.charAt(z+1);O.operation(function(){if(P=="skip")S(O,1);else if(P=="skipThree")S(O,3);else if(P=="surround"){for(var j=O.getSelections(),de=0;dep);W++){var J=w.getLine(q++);z=z==null?J:z+` -`+J}X=X*2,M.lastIndex=N.ch;var P=M.exec(z);if(P){var $=z.slice(0,P.index).split(` -`),F=P[0].split(` -`),G=N.line+$.length-1,c=$[$.length-1].length;return{from:pe(G,c),to:pe(G+F.length-1,F.length==1?c+F[0].length:F[F.length-1].length),match:P}}}}function I(w,M,N){for(var z,X=0;X<=w.length;){M.lastIndex=X;var q=M.exec(w);if(!q)break;var p=q.index+q[0].length;if(p>w.length-N)break;(!z||p>z.index+z[0].length)&&(z=q),X=q.index+1}return z}function Y(w,M,N){M=te(M,"g");for(var z=N.line,X=N.ch,q=w.firstLine();z>=q;z--,X=-1){var p=w.getLine(z),W=I(p,M,X<0?0:p.length-X);if(W)return{from:pe(z,W.index),to:pe(z,W.index+W[0].length),match:W}}}function ne(w,M,N){if(!oe(M))return Y(w,M,N);M=te(M,"gm");for(var z,X=1,q=w.getLine(N.line).length-N.ch,p=N.line,W=w.firstLine();p>=W;){for(var J=0;J=W;J++){var P=w.getLine(p--);z=z==null?P:P+` -`+z}X*=2;var $=I(z,M,q);if($){var F=z.slice(0,$.index).split(` -`),G=$[0].split(` -`),c=p+F.length,T=F[F.length-1].length;return{from:pe(c,T),to:pe(c+G.length-1,G.length==1?T+G[0].length:G[G.length-1].length),match:$}}}}var S,R;String.prototype.normalize?(S=function(w){return w.normalize("NFD").toLowerCase()},R=function(w){return w.normalize("NFD")}):(S=function(w){return w.toLowerCase()},R=function(w){return w});function A(w,M,N,z){if(w.length==M.length)return N;for(var X=0,q=N+Math.max(0,w.length-M.length);;){if(X==q)return X;var p=X+q>>1,W=z(w.slice(0,p)).length;if(W==N)return p;W>N?q=p:X=p+1}}function V(w,M,N,z){if(!M.length)return null;var X=z?S:R,q=X(M).split(/\r|\n\r?/);e:for(var p=N.line,W=N.ch,J=w.lastLine()+1-q.length;p<=J;p++,W=0){var P=w.getLine(p).slice(W),$=X(P);if(q.length==1){var F=$.indexOf(q[0]);if(F==-1)continue e;var N=A(P,$,F,X)+W;return{from:pe(p,A(P,$,F,X)+W),to:pe(p,A(P,$,F+q[0].length,X)+W)}}else{var G=$.length-q[0].length;if($.slice(G)!=q[0])continue e;for(var c=1;c=J;p--,W=-1){var P=w.getLine(p);W>-1&&(P=P.slice(0,W));var $=X(P);if(q.length==1){var F=$.lastIndexOf(q[0]);if(F==-1)continue e;return{from:pe(p,A(P,$,F,X)),to:pe(p,A(P,$,F+q[0].length,X))}}else{var G=q[q.length-1];if($.slice(0,G.length)!=G)continue e;for(var c=1,N=p-q.length+1;c(this.doc.getLine(M.line)||"").length&&(M.ch=0,M.line++)),b.cmpPos(M,this.doc.clipPos(M))!=0))return this.atOccurrence=!1;var N=this.matches(w,M);if(this.afterEmptyMatch=N&&b.cmpPos(N.from,N.to)==0,N)return this.pos=N,this.atOccurrence=!0,this.pos.match||!0;var z=pe(w?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:z,to:z},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(w,M){if(this.atOccurrence){var N=b.splitLines(w);this.doc.replaceRange(N,this.pos.from,this.pos.to,M),this.pos.to=pe(this.pos.from.line+N.length-1,N[N.length-1].length+(N.length==1?this.pos.from.ch:0))}}},b.defineExtension("getSearchCursor",function(w,M,N){return new O(this.doc,w,M,N)}),b.defineDocExtension("getSearchCursor",function(w,M,N){return new O(this,w,M,N)}),b.defineExtension("selectMatches",function(w,M){for(var N=[],z=this.getSearchCursor(w,this.getCursor("from"),M);z.findNext()&&!(b.cmpPos(z.to(),this.getCursor("to"))>0);)N.push({anchor:z.from(),head:z.to()});N.length&&this.setSelections(N,0)})})})()),Ha.exports}var qa={exports:{}},ja;function po(){return ja||(ja=1,(function(ct,xt){(function(b){b(mt())})(function(b){function pe(te,oe,Q){var k=te.getWrapperElement(),I;return I=k.appendChild(document.createElement("div")),Q?I.className="CodeMirror-dialog CodeMirror-dialog-bottom":I.className="CodeMirror-dialog CodeMirror-dialog-top",typeof oe=="string"?I.innerHTML=oe:I.appendChild(oe),b.addClass(k,"dialog-opened"),I}function _(te,oe){te.state.currentNotificationClose&&te.state.currentNotificationClose(),te.state.currentNotificationClose=oe}b.defineExtension("openDialog",function(te,oe,Q){Q||(Q={}),_(this,null);var k=pe(this,te,Q.bottom),I=!1,Y=this;function ne(A){if(typeof A=="string")S.value=A;else{if(I)return;I=!0,b.rmClass(k.parentNode,"dialog-opened"),k.parentNode.removeChild(k),Y.focus(),Q.onClose&&Q.onClose(k)}}var S=k.getElementsByTagName("input")[0],R;return S?(S.focus(),Q.value&&(S.value=Q.value,Q.selectValueOnOpen!==!1&&S.select()),Q.onInput&&b.on(S,"input",function(A){Q.onInput(A,S.value,ne)}),Q.onKeyUp&&b.on(S,"keyup",function(A){Q.onKeyUp(A,S.value,ne)}),b.on(S,"keydown",function(A){Q&&Q.onKeyDown&&Q.onKeyDown(A,S.value,ne)||((A.keyCode==27||Q.closeOnEnter!==!1&&A.keyCode==13)&&(S.blur(),b.e_stop(A),ne()),A.keyCode==13&&oe(S.value,A))}),Q.closeOnBlur!==!1&&b.on(k,"focusout",function(A){A.relatedTarget!==null&&ne()})):(R=k.getElementsByTagName("button")[0])&&(b.on(R,"click",function(){ne(),Y.focus()}),Q.closeOnBlur!==!1&&b.on(R,"blur",ne),R.focus()),ne}),b.defineExtension("openConfirm",function(te,oe,Q){_(this,null);var k=pe(this,te,Q&&Q.bottom),I=k.getElementsByTagName("button"),Y=!1,ne=this,S=1;function R(){Y||(Y=!0,b.rmClass(k.parentNode,"dialog-opened"),k.parentNode.removeChild(k),ne.focus())}I[0].focus();for(var A=0;Ap.cursorCoords(y,"window").top&&((G=j).style.opacity=.4)}))};k(p,w(p),F,c,function(T,C){var g=b.keyName(T),y=p.getOption("extraKeys"),j=y&&y[g]||b.keyMap[p.getOption("keyMap")][g];j=="findNext"||j=="findPrev"||j=="findPersistentNext"||j=="findPersistentPrev"?(b.e_stop(T),R(p,te(p),C),p.execCommand(j)):(j=="find"||j=="findPersistent")&&(b.e_stop(T),c(C,T))}),P&&F&&(R(p,$,F),V(p,W))}else I(p,w(p),"Search for:",F,function(T){T&&!$.query&&p.operation(function(){R(p,$,T),$.posFrom=$.posTo=p.getCursor(),V(p,W)})})}function V(p,W,J){p.operation(function(){var P=te(p),$=Q(p,P.query,W?P.posFrom:P.posTo);!$.find(W)&&($=Q(p,P.query,W?b.Pos(p.lastLine()):b.Pos(p.firstLine(),0)),!$.find(W))||(p.setSelection($.from(),$.to()),p.scrollIntoView({from:$.from(),to:$.to()},20),P.posFrom=$.from(),P.posTo=$.to(),J&&J($.from(),$.to()))})}function ue(p){p.operation(function(){var W=te(p);W.lastQuery=W.query,W.query&&(W.query=W.queryText=null,p.removeOverlay(W.overlay),W.annotate&&(W.annotate.clear(),W.annotate=null))})}function O(p,W){var J=p?document.createElement(p):document.createDocumentFragment();for(var P in W)J[P]=W[P];for(var $=2;$ '+oe.phrase("(Use line:column or scroll% syntax)")+""}function te(oe,Q){var k=Number(Q);return/^[-+]/.test(Q)?oe.getCursor().line+k:k-1}b.commands.jumpToLine=function(oe){var Q=oe.getCursor();pe(oe,_(oe),oe.phrase("Jump to line:"),Q.line+1+":"+Q.ch,function(k){if(k){var I;if(I=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(k))oe.setCursor(te(oe,I[1]),Number(I[2]));else if(I=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(k)){var Y=Math.round(oe.lineCount()*Number(I[1])/100);/^[-+]/.test(I[1])&&(Y=Q.line+Y+1),oe.setCursor(Y-1,Q.ch)}else(I=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(k))&&oe.setCursor(te(oe,I[1]),Q.ch)}})},b.keyMap.default["Alt-G"]="jumpToLine"})})()),Ua.exports}ff();po();export{df as default}; diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf deleted file mode 100644 index 27ee4c6..0000000 Binary files a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf and /dev/null differ diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css deleted file mode 100644 index acc7881..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css +++ /dev/null @@ -1 +0,0 @@ -:root{color-scheme:light dark}body{--transparent-blue: #2196F355;--light-pink: #ff69b460;--gray: #888888;--sidebar-width: 250px;--box-shadow: rgba(0, 0, 0, .133) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, .11) 0px .3px .9px 0px}html,body{width:100%;height:100%;padding:0;margin:0;overflow:hidden;display:flex;overscroll-behavior-x:none}#root{width:100%;height:100%;display:flex}body,dialog{background-color:var(--vscode-panel-background);color:var(--vscode-foreground);font-family:var(--vscode-font-family);font-weight:var(--vscode-font-weight);font-size:var(--vscode-font-size);-webkit-font-smoothing:antialiased}a{color:var(--vscode-textLink-foreground)}dialog{border:none;padding:0;box-shadow:var(--box-shadow);line-height:28px;max-width:400px}dialog .title{display:flex;align-items:center;margin:0;padding:0 5px;height:32px;background-color:var(--vscode-sideBar-background);max-width:400px}dialog .title .codicon{margin-right:3px}dialog .body{padding:10px;text-align:center}.button{color:var(--vscode-button-foreground);background:var(--vscode-button-background);margin:10px;border:none;height:28px;min-width:40px;cursor:pointer;-webkit-user-select:none;user-select:none}.button:focus{outline:1px solid var(--vscode-focusBorder)}.button:hover{background:var(--vscode-button-hoverBackground)}.button.secondary{color:var(--vscode-button-secondaryForeground);background:var(--vscode-button-secondaryBackground)}.button.secondary:hover{background:var(--vscode-button-secondaryHoverBackground)}*{box-sizing:border-box;min-width:0;min-height:0}*[hidden],.hidden{display:none!important}.invisible{visibility:hidden!important}svg{fill:currentColor}.vbox{display:flex;flex-direction:column;flex:auto;position:relative}.fill{position:absolute;top:0;right:0;bottom:0;left:0}.hbox{display:flex;flex:auto;position:relative}.spacer{flex:auto}.codicon-check{color:var(--vscode-charts-green)}.codicon-error{color:var(--vscode-errorForeground)}.codicon-warning{color:var(--vscode-list-warningForeground)}.codicon-circle-outline{color:var(--vscode-disabledForeground)}input[type=text],input[type=search]{color:var(--vscode-input-foreground);background-color:var(--vscode-input-background);border:none;outline:none}.codicon-loading{animation:spin 1s infinite linear}::placeholder{color:var(--vscode-input-placeholderForeground)}@keyframes spin{to{transform:rotate(360deg)}}@font-face{font-family:codicon;src:url(/assets/codicon-DCmgc-ay.ttf) format("truetype")}.codicon{font: 16px/1 codicon;flex:none;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.codicon-add:before{content:""}.codicon-plus:before{content:""}.codicon-gist-new:before{content:""}.codicon-repo-create:before{content:""}.codicon-lightbulb:before{content:""}.codicon-light-bulb:before{content:""}.codicon-repo:before{content:""}.codicon-repo-delete:before{content:""}.codicon-gist-fork:before{content:""}.codicon-repo-forked:before{content:""}.codicon-git-pull-request:before{content:""}.codicon-git-pull-request-abandoned:before{content:""}.codicon-record-keys:before{content:""}.codicon-keyboard:before{content:""}.codicon-tag:before{content:""}.codicon-git-pull-request-label:before{content:""}.codicon-tag-add:before{content:""}.codicon-tag-remove:before{content:""}.codicon-person:before{content:""}.codicon-person-follow:before{content:""}.codicon-person-outline:before{content:""}.codicon-person-filled:before{content:""}.codicon-git-branch:before{content:""}.codicon-git-branch-create:before{content:""}.codicon-git-branch-delete:before{content:""}.codicon-source-control:before{content:""}.codicon-mirror:before{content:""}.codicon-mirror-public:before{content:""}.codicon-star:before{content:""}.codicon-star-add:before{content:""}.codicon-star-delete:before{content:""}.codicon-star-empty:before{content:""}.codicon-comment:before{content:""}.codicon-comment-add:before{content:""}.codicon-alert:before{content:""}.codicon-warning:before{content:""}.codicon-search:before{content:""}.codicon-search-save:before{content:""}.codicon-log-out:before{content:""}.codicon-sign-out:before{content:""}.codicon-log-in:before{content:""}.codicon-sign-in:before{content:""}.codicon-eye:before{content:""}.codicon-eye-unwatch:before{content:""}.codicon-eye-watch:before{content:""}.codicon-circle-filled:before{content:""}.codicon-primitive-dot:before{content:""}.codicon-close-dirty:before{content:""}.codicon-debug-breakpoint:before{content:""}.codicon-debug-breakpoint-disabled:before{content:""}.codicon-debug-hint:before{content:""}.codicon-terminal-decoration-success:before{content:""}.codicon-primitive-square:before{content:""}.codicon-edit:before{content:""}.codicon-pencil:before{content:""}.codicon-info:before{content:""}.codicon-issue-opened:before{content:""}.codicon-gist-private:before{content:""}.codicon-git-fork-private:before{content:""}.codicon-lock:before{content:""}.codicon-mirror-private:before{content:""}.codicon-close:before{content:""}.codicon-remove-close:before{content:""}.codicon-x:before{content:""}.codicon-repo-sync:before{content:""}.codicon-sync:before{content:""}.codicon-clone:before{content:""}.codicon-desktop-download:before{content:""}.codicon-beaker:before{content:""}.codicon-microscope:before{content:""}.codicon-vm:before{content:""}.codicon-device-desktop:before{content:""}.codicon-file:before{content:""}.codicon-file-text:before{content:""}.codicon-more:before{content:""}.codicon-ellipsis:before{content:""}.codicon-kebab-horizontal:before{content:""}.codicon-mail-reply:before{content:""}.codicon-reply:before{content:""}.codicon-organization:before{content:""}.codicon-organization-filled:before{content:""}.codicon-organization-outline:before{content:""}.codicon-new-file:before{content:""}.codicon-file-add:before{content:""}.codicon-new-folder:before{content:""}.codicon-file-directory-create:before{content:""}.codicon-trash:before{content:""}.codicon-trashcan:before{content:""}.codicon-history:before{content:""}.codicon-clock:before{content:""}.codicon-folder:before{content:""}.codicon-file-directory:before{content:""}.codicon-symbol-folder:before{content:""}.codicon-logo-github:before{content:""}.codicon-mark-github:before{content:""}.codicon-github:before{content:""}.codicon-terminal:before{content:""}.codicon-console:before{content:""}.codicon-repl:before{content:""}.codicon-zap:before{content:""}.codicon-symbol-event:before{content:""}.codicon-error:before{content:""}.codicon-stop:before{content:""}.codicon-variable:before{content:""}.codicon-symbol-variable:before{content:""}.codicon-array:before{content:""}.codicon-symbol-array:before{content:""}.codicon-symbol-module:before{content:""}.codicon-symbol-package:before{content:""}.codicon-symbol-namespace:before{content:""}.codicon-symbol-object:before{content:""}.codicon-symbol-method:before{content:""}.codicon-symbol-function:before{content:""}.codicon-symbol-constructor:before{content:""}.codicon-symbol-boolean:before{content:""}.codicon-symbol-null:before{content:""}.codicon-symbol-numeric:before{content:""}.codicon-symbol-number:before{content:""}.codicon-symbol-structure:before{content:""}.codicon-symbol-struct:before{content:""}.codicon-symbol-parameter:before{content:""}.codicon-symbol-type-parameter:before{content:""}.codicon-symbol-key:before{content:""}.codicon-symbol-text:before{content:""}.codicon-symbol-reference:before{content:""}.codicon-go-to-file:before{content:""}.codicon-symbol-enum:before{content:""}.codicon-symbol-value:before{content:""}.codicon-symbol-ruler:before{content:""}.codicon-symbol-unit:before{content:""}.codicon-activate-breakpoints:before{content:""}.codicon-archive:before{content:""}.codicon-arrow-both:before{content:""}.codicon-arrow-down:before{content:""}.codicon-arrow-left:before{content:""}.codicon-arrow-right:before{content:""}.codicon-arrow-small-down:before{content:""}.codicon-arrow-small-left:before{content:""}.codicon-arrow-small-right:before{content:""}.codicon-arrow-small-up:before{content:""}.codicon-arrow-up:before{content:""}.codicon-bell:before{content:""}.codicon-bold:before{content:""}.codicon-book:before{content:""}.codicon-bookmark:before{content:""}.codicon-debug-breakpoint-conditional-unverified:before{content:""}.codicon-debug-breakpoint-conditional:before{content:""}.codicon-debug-breakpoint-conditional-disabled:before{content:""}.codicon-debug-breakpoint-data-unverified:before{content:""}.codicon-debug-breakpoint-data:before{content:""}.codicon-debug-breakpoint-data-disabled:before{content:""}.codicon-debug-breakpoint-log-unverified:before{content:""}.codicon-debug-breakpoint-log:before{content:""}.codicon-debug-breakpoint-log-disabled:before{content:""}.codicon-briefcase:before{content:""}.codicon-broadcast:before{content:""}.codicon-browser:before{content:""}.codicon-bug:before{content:""}.codicon-calendar:before{content:""}.codicon-case-sensitive:before{content:""}.codicon-check:before{content:""}.codicon-checklist:before{content:""}.codicon-chevron-down:before{content:""}.codicon-chevron-left:before{content:""}.codicon-chevron-right:before{content:""}.codicon-chevron-up:before{content:""}.codicon-chrome-close:before{content:""}.codicon-chrome-maximize:before{content:""}.codicon-chrome-minimize:before{content:""}.codicon-chrome-restore:before{content:""}.codicon-circle-outline:before{content:""}.codicon-circle:before{content:""}.codicon-debug-breakpoint-unverified:before{content:""}.codicon-terminal-decoration-incomplete:before{content:""}.codicon-circle-slash:before{content:""}.codicon-circuit-board:before{content:""}.codicon-clear-all:before{content:""}.codicon-clippy:before{content:""}.codicon-close-all:before{content:""}.codicon-cloud-download:before{content:""}.codicon-cloud-upload:before{content:""}.codicon-code:before{content:""}.codicon-collapse-all:before{content:""}.codicon-color-mode:before{content:""}.codicon-comment-discussion:before{content:""}.codicon-credit-card:before{content:""}.codicon-dash:before{content:""}.codicon-dashboard:before{content:""}.codicon-database:before{content:""}.codicon-debug-continue:before{content:""}.codicon-debug-disconnect:before{content:""}.codicon-debug-pause:before{content:""}.codicon-debug-restart:before{content:""}.codicon-debug-start:before{content:""}.codicon-debug-step-into:before{content:""}.codicon-debug-step-out:before{content:""}.codicon-debug-step-over:before{content:""}.codicon-debug-stop:before{content:""}.codicon-debug:before{content:""}.codicon-device-camera-video:before{content:""}.codicon-device-camera:before{content:""}.codicon-device-mobile:before{content:""}.codicon-diff-added:before{content:""}.codicon-diff-ignored:before{content:""}.codicon-diff-modified:before{content:""}.codicon-diff-removed:before{content:""}.codicon-diff-renamed:before{content:""}.codicon-diff:before{content:""}.codicon-diff-sidebyside:before{content:""}.codicon-discard:before{content:""}.codicon-editor-layout:before{content:""}.codicon-empty-window:before{content:""}.codicon-exclude:before{content:""}.codicon-extensions:before{content:""}.codicon-eye-closed:before{content:""}.codicon-file-binary:before{content:""}.codicon-file-code:before{content:""}.codicon-file-media:before{content:""}.codicon-file-pdf:before{content:""}.codicon-file-submodule:before{content:""}.codicon-file-symlink-directory:before{content:""}.codicon-file-symlink-file:before{content:""}.codicon-file-zip:before{content:""}.codicon-files:before{content:""}.codicon-filter:before{content:""}.codicon-flame:before{content:""}.codicon-fold-down:before{content:""}.codicon-fold-up:before{content:""}.codicon-fold:before{content:""}.codicon-folder-active:before{content:""}.codicon-folder-opened:before{content:""}.codicon-gear:before{content:""}.codicon-gift:before{content:""}.codicon-gist-secret:before{content:""}.codicon-gist:before{content:""}.codicon-git-commit:before{content:""}.codicon-git-compare:before{content:""}.codicon-compare-changes:before{content:""}.codicon-git-merge:before{content:""}.codicon-github-action:before{content:""}.codicon-github-alt:before{content:""}.codicon-globe:before{content:""}.codicon-grabber:before{content:""}.codicon-graph:before{content:""}.codicon-gripper:before{content:""}.codicon-heart:before{content:""}.codicon-home:before{content:""}.codicon-horizontal-rule:before{content:""}.codicon-hubot:before{content:""}.codicon-inbox:before{content:""}.codicon-issue-reopened:before{content:""}.codicon-issues:before{content:""}.codicon-italic:before{content:""}.codicon-jersey:before{content:""}.codicon-json:before{content:""}.codicon-kebab-vertical:before{content:""}.codicon-key:before{content:""}.codicon-law:before{content:""}.codicon-lightbulb-autofix:before{content:""}.codicon-link-external:before{content:""}.codicon-link:before{content:""}.codicon-list-ordered:before{content:""}.codicon-list-unordered:before{content:""}.codicon-live-share:before{content:""}.codicon-loading:before{content:""}.codicon-location:before{content:""}.codicon-mail-read:before{content:""}.codicon-mail:before{content:""}.codicon-markdown:before{content:""}.codicon-megaphone:before{content:""}.codicon-mention:before{content:""}.codicon-milestone:before{content:""}.codicon-git-pull-request-milestone:before{content:""}.codicon-mortar-board:before{content:""}.codicon-move:before{content:""}.codicon-multiple-windows:before{content:""}.codicon-mute:before{content:""}.codicon-no-newline:before{content:""}.codicon-note:before{content:""}.codicon-octoface:before{content:""}.codicon-open-preview:before{content:""}.codicon-package:before{content:""}.codicon-paintcan:before{content:""}.codicon-pin:before{content:""}.codicon-play:before{content:""}.codicon-run:before{content:""}.codicon-plug:before{content:""}.codicon-preserve-case:before{content:""}.codicon-preview:before{content:""}.codicon-project:before{content:""}.codicon-pulse:before{content:""}.codicon-question:before{content:""}.codicon-quote:before{content:""}.codicon-radio-tower:before{content:""}.codicon-reactions:before{content:""}.codicon-references:before{content:""}.codicon-refresh:before{content:""}.codicon-regex:before{content:""}.codicon-remote-explorer:before{content:""}.codicon-remote:before{content:""}.codicon-remove:before{content:""}.codicon-replace-all:before{content:""}.codicon-replace:before{content:""}.codicon-repo-clone:before{content:""}.codicon-repo-force-push:before{content:""}.codicon-repo-pull:before{content:""}.codicon-repo-push:before{content:""}.codicon-report:before{content:""}.codicon-request-changes:before{content:""}.codicon-rocket:before{content:""}.codicon-root-folder-opened:before{content:""}.codicon-root-folder:before{content:""}.codicon-rss:before{content:""}.codicon-ruby:before{content:""}.codicon-save-all:before{content:""}.codicon-save-as:before{content:""}.codicon-save:before{content:""}.codicon-screen-full:before{content:""}.codicon-screen-normal:before{content:""}.codicon-search-stop:before{content:""}.codicon-server:before{content:""}.codicon-settings-gear:before{content:""}.codicon-settings:before{content:""}.codicon-shield:before{content:""}.codicon-smiley:before{content:""}.codicon-sort-precedence:before{content:""}.codicon-split-horizontal:before{content:""}.codicon-split-vertical:before{content:""}.codicon-squirrel:before{content:""}.codicon-star-full:before{content:""}.codicon-star-half:before{content:""}.codicon-symbol-class:before{content:""}.codicon-symbol-color:before{content:""}.codicon-symbol-constant:before{content:""}.codicon-symbol-enum-member:before{content:""}.codicon-symbol-field:before{content:""}.codicon-symbol-file:before{content:""}.codicon-symbol-interface:before{content:""}.codicon-symbol-keyword:before{content:""}.codicon-symbol-misc:before{content:""}.codicon-symbol-operator:before{content:""}.codicon-symbol-property:before{content:""}.codicon-wrench:before{content:""}.codicon-wrench-subaction:before{content:""}.codicon-symbol-snippet:before{content:""}.codicon-tasklist:before{content:""}.codicon-telescope:before{content:""}.codicon-text-size:before{content:""}.codicon-three-bars:before{content:""}.codicon-thumbsdown:before{content:""}.codicon-thumbsup:before{content:""}.codicon-tools:before{content:""}.codicon-triangle-down:before{content:""}.codicon-triangle-left:before{content:""}.codicon-triangle-right:before{content:""}.codicon-triangle-up:before{content:""}.codicon-twitter:before{content:""}.codicon-unfold:before{content:""}.codicon-unlock:before{content:""}.codicon-unmute:before{content:""}.codicon-unverified:before{content:""}.codicon-verified:before{content:""}.codicon-versions:before{content:""}.codicon-vm-active:before{content:""}.codicon-vm-outline:before{content:""}.codicon-vm-running:before{content:""}.codicon-watch:before{content:""}.codicon-whitespace:before{content:""}.codicon-whole-word:before{content:""}.codicon-window:before{content:""}.codicon-word-wrap:before{content:""}.codicon-zoom-in:before{content:""}.codicon-zoom-out:before{content:""}.codicon-list-filter:before{content:""}.codicon-list-flat:before{content:""}.codicon-list-selection:before{content:""}.codicon-selection:before{content:""}.codicon-list-tree:before{content:""}.codicon-debug-breakpoint-function-unverified:before{content:""}.codicon-debug-breakpoint-function:before{content:""}.codicon-debug-breakpoint-function-disabled:before{content:""}.codicon-debug-stackframe-active:before{content:""}.codicon-circle-small-filled:before{content:""}.codicon-debug-stackframe-dot:before{content:""}.codicon-terminal-decoration-mark:before{content:""}.codicon-debug-stackframe:before{content:""}.codicon-debug-stackframe-focused:before{content:""}.codicon-debug-breakpoint-unsupported:before{content:""}.codicon-symbol-string:before{content:""}.codicon-debug-reverse-continue:before{content:""}.codicon-debug-step-back:before{content:""}.codicon-debug-restart-frame:before{content:""}.codicon-debug-alt:before{content:""}.codicon-call-incoming:before{content:""}.codicon-call-outgoing:before{content:""}.codicon-menu:before{content:""}.codicon-expand-all:before{content:""}.codicon-feedback:before{content:""}.codicon-git-pull-request-reviewer:before{content:""}.codicon-group-by-ref-type:before{content:""}.codicon-ungroup-by-ref-type:before{content:""}.codicon-account:before{content:""}.codicon-git-pull-request-assignee:before{content:""}.codicon-bell-dot:before{content:""}.codicon-debug-console:before{content:""}.codicon-library:before{content:""}.codicon-output:before{content:""}.codicon-run-all:before{content:""}.codicon-sync-ignored:before{content:""}.codicon-pinned:before{content:""}.codicon-github-inverted:before{content:""}.codicon-server-process:before{content:""}.codicon-server-environment:before{content:""}.codicon-pass:before{content:""}.codicon-issue-closed:before{content:""}.codicon-stop-circle:before{content:""}.codicon-play-circle:before{content:""}.codicon-record:before{content:""}.codicon-debug-alt-small:before{content:""}.codicon-vm-connect:before{content:""}.codicon-cloud:before{content:""}.codicon-merge:before{content:""}.codicon-export:before{content:""}.codicon-graph-left:before{content:""}.codicon-magnet:before{content:""}.codicon-notebook:before{content:""}.codicon-redo:before{content:""}.codicon-check-all:before{content:""}.codicon-pinned-dirty:before{content:""}.codicon-pass-filled:before{content:""}.codicon-circle-large-filled:before{content:""}.codicon-circle-large:before{content:""}.codicon-circle-large-outline:before{content:""}.codicon-combine:before{content:""}.codicon-gather:before{content:""}.codicon-table:before{content:""}.codicon-variable-group:before{content:""}.codicon-type-hierarchy:before{content:""}.codicon-type-hierarchy-sub:before{content:""}.codicon-type-hierarchy-super:before{content:""}.codicon-git-pull-request-create:before{content:""}.codicon-run-above:before{content:""}.codicon-run-below:before{content:""}.codicon-notebook-template:before{content:""}.codicon-debug-rerun:before{content:""}.codicon-workspace-trusted:before{content:""}.codicon-workspace-untrusted:before{content:""}.codicon-workspace-unknown:before{content:""}.codicon-terminal-cmd:before{content:""}.codicon-terminal-debian:before{content:""}.codicon-terminal-linux:before{content:""}.codicon-terminal-powershell:before{content:""}.codicon-terminal-tmux:before{content:""}.codicon-terminal-ubuntu:before{content:""}.codicon-terminal-bash:before{content:""}.codicon-arrow-swap:before{content:""}.codicon-copy:before{content:""}.codicon-person-add:before{content:""}.codicon-filter-filled:before{content:""}.codicon-wand:before{content:""}.codicon-debug-line-by-line:before{content:""}.codicon-inspect:before{content:""}.codicon-layers:before{content:""}.codicon-layers-dot:before{content:""}.codicon-layers-active:before{content:""}.codicon-compass:before{content:""}.codicon-compass-dot:before{content:""}.codicon-compass-active:before{content:""}.codicon-azure:before{content:""}.codicon-issue-draft:before{content:""}.codicon-git-pull-request-closed:before{content:""}.codicon-git-pull-request-draft:before{content:""}.codicon-debug-all:before{content:""}.codicon-debug-coverage:before{content:""}.codicon-run-errors:before{content:""}.codicon-folder-library:before{content:""}.codicon-debug-continue-small:before{content:""}.codicon-beaker-stop:before{content:""}.codicon-graph-line:before{content:""}.codicon-graph-scatter:before{content:""}.codicon-pie-chart:before{content:""}.codicon-bracket:before{content:""}.codicon-bracket-dot:before{content:""}.codicon-bracket-error:before{content:""}.codicon-lock-small:before{content:""}.codicon-azure-devops:before{content:""}.codicon-verified-filled:before{content:""}.codicon-newline:before{content:""}.codicon-layout:before{content:""}.codicon-layout-activitybar-left:before{content:""}.codicon-layout-activitybar-right:before{content:""}.codicon-layout-panel-left:before{content:""}.codicon-layout-panel-center:before{content:""}.codicon-layout-panel-justify:before{content:""}.codicon-layout-panel-right:before{content:""}.codicon-layout-panel:before{content:""}.codicon-layout-sidebar-left:before{content:""}.codicon-layout-sidebar-right:before{content:""}.codicon-layout-statusbar:before{content:""}.codicon-layout-menubar:before{content:""}.codicon-layout-centered:before{content:""}.codicon-target:before{content:""}.codicon-indent:before{content:""}.codicon-record-small:before{content:""}.codicon-error-small:before{content:""}.codicon-terminal-decoration-error:before{content:""}.codicon-arrow-circle-down:before{content:""}.codicon-arrow-circle-left:before{content:""}.codicon-arrow-circle-right:before{content:""}.codicon-arrow-circle-up:before{content:""}.codicon-layout-sidebar-right-off:before{content:""}.codicon-layout-panel-off:before{content:""}.codicon-layout-sidebar-left-off:before{content:""}.codicon-blank:before{content:""}.codicon-heart-filled:before{content:""}.codicon-map:before{content:""}.codicon-map-horizontal:before{content:""}.codicon-fold-horizontal:before{content:""}.codicon-map-filled:before{content:""}.codicon-map-horizontal-filled:before{content:""}.codicon-fold-horizontal-filled:before{content:""}.codicon-circle-small:before{content:""}.codicon-bell-slash:before{content:""}.codicon-bell-slash-dot:before{content:""}.codicon-comment-unresolved:before{content:""}.codicon-git-pull-request-go-to-changes:before{content:""}.codicon-git-pull-request-new-changes:before{content:""}.codicon-search-fuzzy:before{content:""}.codicon-comment-draft:before{content:""}.codicon-send:before{content:""}.codicon-sparkle:before{content:""}.codicon-insert:before{content:""}.codicon-mic:before{content:""}.codicon-thumbsdown-filled:before{content:""}.codicon-thumbsup-filled:before{content:""}.codicon-coffee:before{content:""}.codicon-snake:before{content:""}.codicon-game:before{content:""}.codicon-vr:before{content:""}.codicon-chip:before{content:""}.codicon-piano:before{content:""}.codicon-music:before{content:""}.codicon-mic-filled:before{content:""}.codicon-repo-fetch:before{content:""}.codicon-copilot:before{content:""}.codicon-lightbulb-sparkle:before{content:""}.codicon-robot:before{content:""}.codicon-sparkle-filled:before{content:""}.codicon-diff-single:before{content:""}.codicon-diff-multiple:before{content:""}.codicon-surround-with:before{content:""}.codicon-share:before{content:""}.codicon-git-stash:before{content:""}.codicon-git-stash-apply:before{content:""}.codicon-git-stash-pop:before{content:""}.codicon-vscode:before{content:""}.codicon-vscode-insiders:before{content:""}.codicon-code-oss:before{content:""}.codicon-run-coverage:before{content:""}.codicon-run-all-coverage:before{content:""}.codicon-coverage:before{content:""}.codicon-github-project:before{content:""}.codicon-map-vertical:before{content:""}.codicon-fold-vertical:before{content:""}.codicon-map-vertical-filled:before{content:""}.codicon-fold-vertical-filled:before{content:""}.codicon-go-to-search:before{content:""}.codicon-percentage:before{content:""}.codicon-sort-percentage:before{content:""}.codicon-attach:before{content:""}.codicon-git-fetch:before{content:""}:root{--vscode-font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif;--vscode-font-weight: normal;--vscode-font-size: 13px;--vscode-editor-font-family: "Droid Sans Mono", "monospace", monospace;--vscode-editor-font-weight: normal;--vscode-editor-font-size: 14px;--vscode-foreground: #616161;--vscode-disabledForeground: rgba(97, 97, 97, .5);--vscode-errorForeground: #a1260d;--vscode-descriptionForeground: #717171;--vscode-icon-foreground: #424242;--vscode-focusBorder: #0090f1;--vscode-textSeparator-foreground: rgba(0, 0, 0, .18);--vscode-textLink-foreground: #006ab1;--vscode-textLink-activeForeground: #006ab1;--vscode-textPreformat-foreground: #a31515;--vscode-textBlockQuote-background: rgba(127, 127, 127, .1);--vscode-textBlockQuote-border: rgba(0, 122, 204, .5);--vscode-textCodeBlock-background: rgba(220, 220, 220, .4);--vscode-widget-shadow: rgba(0, 0, 0, .16);--vscode-input-background: #ffffff;--vscode-input-foreground: #616161;--vscode-inputOption-activeBorder: #007acc;--vscode-inputOption-hoverBackground: rgba(184, 184, 184, .31);--vscode-inputOption-activeBackground: rgba(0, 144, 241, .2);--vscode-inputOption-activeForeground: #000000;--vscode-input-placeholderForeground: #767676;--vscode-inputValidation-infoBackground: #d6ecf2;--vscode-inputValidation-infoBorder: #007acc;--vscode-inputValidation-warningBackground: #f6f5d2;--vscode-inputValidation-warningBorder: #b89500;--vscode-inputValidation-errorBackground: #f2dede;--vscode-inputValidation-errorBorder: #be1100;--vscode-dropdown-background: #ffffff;--vscode-dropdown-border: #cecece;--vscode-checkbox-background: #ffffff;--vscode-checkbox-border: #cecece;--vscode-button-foreground: #ffffff;--vscode-button-separator: rgba(255, 255, 255, .4);--vscode-button-background: #007acc;--vscode-button-hoverBackground: #0062a3;--vscode-button-secondaryForeground: #ffffff;--vscode-button-secondaryBackground: #5f6a79;--vscode-button-secondaryHoverBackground: #4c5561;--vscode-badge-background: #c4c4c4;--vscode-badge-foreground: #333333;--vscode-scrollbar-shadow: #dddddd;--vscode-scrollbarSlider-background: rgba(100, 100, 100, .4);--vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-scrollbarSlider-activeBackground: rgba(0, 0, 0, .6);--vscode-progressBar-background: #0e70c0;--vscode-editorError-foreground: #e51400;--vscode-editorWarning-foreground: #bf8803;--vscode-editorInfo-foreground: #1a85ff;--vscode-editorHint-foreground: #6c6c6c;--vscode-sash-hoverBorder: #0090f1;--vscode-editor-background: #ffffff;--vscode-editor-foreground: #000000;--vscode-editorStickyScroll-background: #ffffff;--vscode-editorStickyScrollHover-background: #f0f0f0;--vscode-editorWidget-background: #f3f3f3;--vscode-editorWidget-foreground: #616161;--vscode-editorWidget-border: #c8c8c8;--vscode-quickInput-background: #f3f3f3;--vscode-quickInput-foreground: #616161;--vscode-quickInputTitle-background: rgba(0, 0, 0, .06);--vscode-pickerGroup-foreground: #0066bf;--vscode-pickerGroup-border: #cccedb;--vscode-keybindingLabel-background: rgba(221, 221, 221, .4);--vscode-keybindingLabel-foreground: #555555;--vscode-keybindingLabel-border: rgba(204, 204, 204, .4);--vscode-keybindingLabel-bottomBorder: rgba(187, 187, 187, .4);--vscode-editor-selectionBackground: #add6ff;--vscode-editor-inactiveSelectionBackground: #e5ebf1;--vscode-editor-selectionHighlightBackground: rgba(173, 214, 255, .5);--vscode-editor-findMatchBackground: #a8ac94;--vscode-editor-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-editor-findRangeHighlightBackground: rgba(180, 180, 180, .3);--vscode-searchEditor-findMatchBackground: rgba(234, 92, 0, .22);--vscode-editor-hoverHighlightBackground: rgba(173, 214, 255, .15);--vscode-editorHoverWidget-background: #f3f3f3;--vscode-editorHoverWidget-foreground: #616161;--vscode-editorHoverWidget-border: #c8c8c8;--vscode-editorHoverWidget-statusBarBackground: #e7e7e7;--vscode-editorLink-activeForeground: #0000ff;--vscode-editorInlayHint-foreground: rgba(51, 51, 51, .8);--vscode-editorInlayHint-background: rgba(196, 196, 196, .3);--vscode-editorInlayHint-typeForeground: rgba(51, 51, 51, .8);--vscode-editorInlayHint-typeBackground: rgba(196, 196, 196, .3);--vscode-editorInlayHint-parameterForeground: rgba(51, 51, 51, .8);--vscode-editorInlayHint-parameterBackground: rgba(196, 196, 196, .3);--vscode-editorLightBulb-foreground: #ddb100;--vscode-editorLightBulbAutoFix-foreground: #007acc;--vscode-diffEditor-insertedTextBackground: rgba(156, 204, 44, .4);--vscode-diffEditor-removedTextBackground: rgba(255, 0, 0, .3);--vscode-diffEditor-insertedLineBackground: rgba(155, 185, 85, .2);--vscode-diffEditor-removedLineBackground: rgba(255, 0, 0, .2);--vscode-diffEditor-diagonalFill: rgba(34, 34, 34, .2);--vscode-list-focusOutline: #0090f1;--vscode-list-focusAndSelectionOutline: #90c2f9;--vscode-list-activeSelectionBackground: #0060c0;--vscode-list-activeSelectionForeground: #ffffff;--vscode-list-activeSelectionIconForeground: #ffffff;--vscode-list-inactiveSelectionBackground: #e4e6f1;--vscode-list-hoverBackground: #e8e8e8;--vscode-list-dropBackground: #d6ebff;--vscode-list-highlightForeground: #0066bf;--vscode-list-focusHighlightForeground: #bbe7ff;--vscode-list-invalidItemForeground: #b89500;--vscode-list-errorForeground: #b01011;--vscode-list-warningForeground: #855f00;--vscode-listFilterWidget-background: #f3f3f3;--vscode-listFilterWidget-outline: rgba(0, 0, 0, 0);--vscode-listFilterWidget-noMatchesOutline: #be1100;--vscode-listFilterWidget-shadow: rgba(0, 0, 0, .16);--vscode-list-filterMatchBackground: rgba(234, 92, 0, .33);--vscode-tree-indentGuidesStroke: #a9a9a9;--vscode-tree-tableColumnsBorder: rgba(97, 97, 97, .13);--vscode-tree-tableOddRowsBackground: rgba(97, 97, 97, .04);--vscode-list-deemphasizedForeground: #8e8e90;--vscode-quickInputList-focusForeground: #ffffff;--vscode-quickInputList-focusIconForeground: #ffffff;--vscode-quickInputList-focusBackground: #0060c0;--vscode-menu-foreground: #616161;--vscode-menu-background: #ffffff;--vscode-menu-selectionForeground: #ffffff;--vscode-menu-selectionBackground: #0060c0;--vscode-menu-separatorBackground: #d4d4d4;--vscode-toolbar-hoverBackground: rgba(184, 184, 184, .31);--vscode-toolbar-activeBackground: rgba(166, 166, 166, .31);--vscode-editor-snippetTabstopHighlightBackground: rgba(10, 50, 100, .2);--vscode-editor-snippetFinalTabstopHighlightBorder: rgba(10, 50, 100, .5);--vscode-breadcrumb-foreground: rgba(97, 97, 97, .8);--vscode-breadcrumb-background: #ffffff;--vscode-breadcrumb-focusForeground: #4e4e4e;--vscode-breadcrumb-activeSelectionForeground: #4e4e4e;--vscode-breadcrumbPicker-background: #f3f3f3;--vscode-merge-currentHeaderBackground: rgba(64, 200, 174, .5);--vscode-merge-currentContentBackground: rgba(64, 200, 174, .2);--vscode-merge-incomingHeaderBackground: rgba(64, 166, 255, .5);--vscode-merge-incomingContentBackground: rgba(64, 166, 255, .2);--vscode-merge-commonHeaderBackground: rgba(96, 96, 96, .4);--vscode-merge-commonContentBackground: rgba(96, 96, 96, .16);--vscode-editorOverviewRuler-currentContentForeground: rgba(64, 200, 174, .5);--vscode-editorOverviewRuler-incomingContentForeground: rgba(64, 166, 255, .5);--vscode-editorOverviewRuler-commonContentForeground: rgba(96, 96, 96, .4);--vscode-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-editorOverviewRuler-selectionHighlightForeground: rgba(160, 160, 160, .8);--vscode-minimap-findMatchHighlight: #d18616;--vscode-minimap-selectionOccurrenceHighlight: #c9c9c9;--vscode-minimap-selectionHighlight: #add6ff;--vscode-minimap-errorHighlight: rgba(255, 18, 18, .7);--vscode-minimap-warningHighlight: #bf8803;--vscode-minimap-foregroundOpacity: #000000;--vscode-minimapSlider-background: rgba(100, 100, 100, .2);--vscode-minimapSlider-hoverBackground: rgba(100, 100, 100, .35);--vscode-minimapSlider-activeBackground: rgba(0, 0, 0, .3);--vscode-problemsErrorIcon-foreground: #e51400;--vscode-problemsWarningIcon-foreground: #bf8803;--vscode-problemsInfoIcon-foreground: #1a85ff;--vscode-charts-foreground: #616161;--vscode-charts-lines: rgba(97, 97, 97, .5);--vscode-charts-red: #e51400;--vscode-charts-blue: #1a85ff;--vscode-charts-yellow: #bf8803;--vscode-charts-orange: #d18616;--vscode-charts-green: #388a34;--vscode-charts-purple: #652d90;--vscode-editor-lineHighlightBorder: #eeeeee;--vscode-editor-rangeHighlightBackground: rgba(253, 255, 0, .2);--vscode-editor-symbolHighlightBackground: rgba(234, 92, 0, .33);--vscode-editorCursor-foreground: #000000;--vscode-editorWhitespace-foreground: rgba(51, 51, 51, .2);--vscode-editorIndentGuide-background: #d3d3d3;--vscode-editorIndentGuide-activeBackground: #939393;--vscode-editorLineNumber-foreground: #237893;--vscode-editorActiveLineNumber-foreground: #0b216f;--vscode-editorLineNumber-activeForeground: #0b216f;--vscode-editorRuler-foreground: #d3d3d3;--vscode-editorCodeLens-foreground: #919191;--vscode-editorBracketMatch-background: rgba(0, 100, 0, .1);--vscode-editorBracketMatch-border: #b9b9b9;--vscode-editorOverviewRuler-border: rgba(127, 127, 127, .3);--vscode-editorGutter-background: #ffffff;--vscode-editorUnnecessaryCode-opacity: rgba(0, 0, 0, .47);--vscode-editorGhostText-foreground: rgba(0, 0, 0, .47);--vscode-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, .6);--vscode-editorOverviewRuler-errorForeground: rgba(255, 18, 18, .7);--vscode-editorOverviewRuler-warningForeground: #bf8803;--vscode-editorOverviewRuler-infoForeground: #1a85ff;--vscode-editorBracketHighlight-foreground1: #0431fa;--vscode-editorBracketHighlight-foreground2: #319331;--vscode-editorBracketHighlight-foreground3: #7b3814;--vscode-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-unexpectedBracket\.foreground: rgba(255, 18, 18, .8);--vscode-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);--vscode-editorUnicodeHighlight-border: #cea33d;--vscode-editorUnicodeHighlight-background: rgba(206, 163, 61, .08);--vscode-symbolIcon-arrayForeground: #616161;--vscode-symbolIcon-booleanForeground: #616161;--vscode-symbolIcon-classForeground: #d67e00;--vscode-symbolIcon-colorForeground: #616161;--vscode-symbolIcon-constantForeground: #616161;--vscode-symbolIcon-constructorForeground: #652d90;--vscode-symbolIcon-enumeratorForeground: #d67e00;--vscode-symbolIcon-enumeratorMemberForeground: #007acc;--vscode-symbolIcon-eventForeground: #d67e00;--vscode-symbolIcon-fieldForeground: #007acc;--vscode-symbolIcon-fileForeground: #616161;--vscode-symbolIcon-folderForeground: #616161;--vscode-symbolIcon-functionForeground: #652d90;--vscode-symbolIcon-interfaceForeground: #007acc;--vscode-symbolIcon-keyForeground: #616161;--vscode-symbolIcon-keywordForeground: #616161;--vscode-symbolIcon-methodForeground: #652d90;--vscode-symbolIcon-moduleForeground: #616161;--vscode-symbolIcon-namespaceForeground: #616161;--vscode-symbolIcon-nullForeground: #616161;--vscode-symbolIcon-numberForeground: #616161;--vscode-symbolIcon-objectForeground: #616161;--vscode-symbolIcon-operatorForeground: #616161;--vscode-symbolIcon-packageForeground: #616161;--vscode-symbolIcon-propertyForeground: #616161;--vscode-symbolIcon-referenceForeground: #616161;--vscode-symbolIcon-snippetForeground: #616161;--vscode-symbolIcon-stringForeground: #616161;--vscode-symbolIcon-structForeground: #616161;--vscode-symbolIcon-textForeground: #616161;--vscode-symbolIcon-typeParameterForeground: #616161;--vscode-symbolIcon-unitForeground: #616161;--vscode-symbolIcon-variableForeground: #007acc;--vscode-editorHoverWidget-highlightForeground: #0066bf;--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;--vscode-editor-foldBackground: rgba(173, 214, 255, .3);--vscode-editorGutter-foldingControlForeground: #424242;--vscode-editor-linkedEditingBackground: rgba(255, 0, 0, .3);--vscode-editor-wordHighlightBackground: rgba(87, 87, 87, .25);--vscode-editor-wordHighlightStrongBackground: rgba(14, 99, 156, .25);--vscode-editorOverviewRuler-wordHighlightForeground: rgba(160, 160, 160, .8);--vscode-editorOverviewRuler-wordHighlightStrongForeground: rgba(192, 160, 192, .8);--vscode-peekViewTitle-background: rgba(26, 133, 255, .1);--vscode-peekViewTitleLabel-foreground: #000000;--vscode-peekViewTitleDescription-foreground: #616161;--vscode-peekView-border: #1a85ff;--vscode-peekViewResult-background: #f3f3f3;--vscode-peekViewResult-lineForeground: #646465;--vscode-peekViewResult-fileForeground: #1e1e1e;--vscode-peekViewResult-selectionBackground: rgba(51, 153, 255, .2);--vscode-peekViewResult-selectionForeground: #6c6c6c;--vscode-peekViewEditor-background: #f2f8fc;--vscode-peekViewEditorGutter-background: #f2f8fc;--vscode-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, .3);--vscode-peekViewEditor-matchHighlightBackground: rgba(245, 216, 2, .87);--vscode-editorMarkerNavigationError-background: #e51400;--vscode-editorMarkerNavigationError-headerBackground: rgba(229, 20, 0, .1);--vscode-editorMarkerNavigationWarning-background: #bf8803;--vscode-editorMarkerNavigationWarning-headerBackground: rgba(191, 136, 3, .1);--vscode-editorMarkerNavigationInfo-background: #1a85ff;--vscode-editorMarkerNavigationInfo-headerBackground: rgba(26, 133, 255, .1);--vscode-editorMarkerNavigation-background: #ffffff;--vscode-editorSuggestWidget-background: #f3f3f3;--vscode-editorSuggestWidget-border: #c8c8c8;--vscode-editorSuggestWidget-foreground: #000000;--vscode-editorSuggestWidget-selectedForeground: #ffffff;--vscode-editorSuggestWidget-selectedIconForeground: #ffffff;--vscode-editorSuggestWidget-selectedBackground: #0060c0;--vscode-editorSuggestWidget-highlightForeground: #0066bf;--vscode-editorSuggestWidget-focusHighlightForeground: #bbe7ff;--vscode-editorSuggestWidgetStatus-foreground: rgba(0, 0, 0, .5);--vscode-tab-activeBackground: #ffffff;--vscode-tab-unfocusedActiveBackground: #ffffff;--vscode-tab-inactiveBackground: #ececec;--vscode-tab-unfocusedInactiveBackground: #ececec;--vscode-tab-activeForeground: #333333;--vscode-tab-inactiveForeground: rgba(51, 51, 51, .7);--vscode-tab-unfocusedActiveForeground: rgba(51, 51, 51, .7);--vscode-tab-unfocusedInactiveForeground: rgba(51, 51, 51, .35);--vscode-tab-border: #f3f3f3;--vscode-tab-lastPinnedBorder: rgba(97, 97, 97, .19);--vscode-tab-activeModifiedBorder: #33aaee;--vscode-tab-inactiveModifiedBorder: rgba(51, 170, 238, .5);--vscode-tab-unfocusedActiveModifiedBorder: rgba(51, 170, 238, .7);--vscode-tab-unfocusedInactiveModifiedBorder: rgba(51, 170, 238, .25);--vscode-editorPane-background: #ffffff;--vscode-editorGroupHeader-tabsBackground: #f3f3f3;--vscode-editorGroupHeader-noTabsBackground: #ffffff;--vscode-editorGroup-border: #e7e7e7;--vscode-editorGroup-dropBackground: rgba(38, 119, 203, .18);--vscode-editorGroup-dropIntoPromptForeground: #616161;--vscode-editorGroup-dropIntoPromptBackground: #f3f3f3;--vscode-sideBySideEditor-horizontalBorder: #e7e7e7;--vscode-sideBySideEditor-verticalBorder: #e7e7e7;--vscode-panel-background: #ffffff;--vscode-panel-border: rgba(128, 128, 128, .35);--vscode-panelTitle-activeForeground: #424242;--vscode-panelTitle-inactiveForeground: rgba(66, 66, 66, .75);--vscode-panelTitle-activeBorder: #424242;--vscode-panelInput-border: #dddddd;--vscode-panel-dropBorder: #424242;--vscode-panelSection-dropBackground: rgba(38, 119, 203, .18);--vscode-panelSectionHeader-background: rgba(128, 128, 128, .2);--vscode-panelSection-border: rgba(128, 128, 128, .35);--vscode-banner-background: #004386;--vscode-banner-foreground: #ffffff;--vscode-banner-iconForeground: #1a85ff;--vscode-statusBar-foreground: #ffffff;--vscode-statusBar-noFolderForeground: #ffffff;--vscode-statusBar-background: #007acc;--vscode-statusBar-noFolderBackground: #68217a;--vscode-statusBar-focusBorder: #ffffff;--vscode-statusBarItem-activeBackground: rgba(255, 255, 255, .18);--vscode-statusBarItem-focusBorder: #ffffff;--vscode-statusBarItem-hoverBackground: rgba(255, 255, 255, .12);--vscode-statusBarItem-compactHoverBackground: rgba(255, 255, 255, .2);--vscode-statusBarItem-prominentForeground: #ffffff;--vscode-statusBarItem-prominentBackground: rgba(0, 0, 0, .5);--vscode-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, .3);--vscode-statusBarItem-errorBackground: #c72e0f;--vscode-statusBarItem-errorForeground: #ffffff;--vscode-statusBarItem-warningBackground: #725102;--vscode-statusBarItem-warningForeground: #ffffff;--vscode-activityBar-background: #2c2c2c;--vscode-activityBar-foreground: #ffffff;--vscode-activityBar-inactiveForeground: rgba(255, 255, 255, .4);--vscode-activityBar-activeBorder: #ffffff;--vscode-activityBar-dropBorder: #ffffff;--vscode-activityBarBadge-background: #007acc;--vscode-activityBarBadge-foreground: #ffffff;--vscode-statusBarItem-remoteBackground: #16825d;--vscode-statusBarItem-remoteForeground: #ffffff;--vscode-extensionBadge-remoteBackground: #007acc;--vscode-extensionBadge-remoteForeground: #ffffff;--vscode-sideBar-background: #f3f3f3;--vscode-sideBarTitle-foreground: #6f6f6f;--vscode-sideBar-dropBackground: rgba(38, 119, 203, .18);--vscode-sideBarSectionHeader-background: rgba(0, 0, 0, 0);--vscode-sideBarSectionHeader-border: rgba(97, 97, 97, .19);--vscode-titleBar-activeForeground: #333333;--vscode-titleBar-inactiveForeground: rgba(51, 51, 51, .6);--vscode-titleBar-activeBackground: #dddddd;--vscode-titleBar-inactiveBackground: rgba(221, 221, 221, .6);--vscode-menubar-selectionForeground: #333333;--vscode-menubar-selectionBackground: rgba(184, 184, 184, .31);--vscode-notifications-foreground: #616161;--vscode-notifications-background: #f3f3f3;--vscode-notificationLink-foreground: #006ab1;--vscode-notificationCenterHeader-background: #e7e7e7;--vscode-notifications-border: #e7e7e7;--vscode-notificationsErrorIcon-foreground: #e51400;--vscode-notificationsWarningIcon-foreground: #bf8803;--vscode-notificationsInfoIcon-foreground: #1a85ff;--vscode-commandCenter-foreground: #333333;--vscode-commandCenter-activeForeground: #333333;--vscode-commandCenter-activeBackground: rgba(184, 184, 184, .31);--vscode-commandCenter-border: rgba(128, 128, 128, .35);--vscode-editorCommentsWidget-resolvedBorder: rgba(97, 97, 97, .5);--vscode-editorCommentsWidget-unresolvedBorder: #1a85ff;--vscode-editorCommentsWidget-rangeBackground: rgba(26, 133, 255, .1);--vscode-editorCommentsWidget-rangeBorder: rgba(26, 133, 255, .4);--vscode-editorCommentsWidget-rangeActiveBackground: rgba(26, 133, 255, .1);--vscode-editorCommentsWidget-rangeActiveBorder: rgba(26, 133, 255, .4);--vscode-editorGutter-commentRangeForeground: #d5d8e9;--vscode-debugToolBar-background: #f3f3f3;--vscode-debugIcon-startForeground: #388a34;--vscode-editor-stackFrameHighlightBackground: rgba(255, 255, 102, .45);--vscode-editor-focusedStackFrameHighlightBackground: rgba(206, 231, 206, .45);--vscode-mergeEditor-change\.background: rgba(155, 185, 85, .2);--vscode-mergeEditor-change\.word\.background: rgba(156, 204, 44, .4);--vscode-mergeEditor-conflict\.unhandledUnfocused\.border: rgba(255, 166, 0, .48);--vscode-mergeEditor-conflict\.unhandledFocused\.border: #ffa600;--vscode-mergeEditor-conflict\.handledUnfocused\.border: rgba(134, 134, 134, .29);--vscode-mergeEditor-conflict\.handledFocused\.border: rgba(193, 193, 193, .8);--vscode-mergeEditor-conflict\.handled\.minimapOverViewRuler: rgba(173, 172, 168, .93);--vscode-mergeEditor-conflict\.unhandled\.minimapOverViewRuler: #fcba03;--vscode-mergeEditor-conflictingLines\.background: rgba(255, 234, 0, .28);--vscode-settings-headerForeground: #444444;--vscode-settings-modifiedItemIndicator: #66afe0;--vscode-settings-headerBorder: rgba(128, 128, 128, .35);--vscode-settings-sashBorder: rgba(128, 128, 128, .35);--vscode-settings-dropdownBackground: #ffffff;--vscode-settings-dropdownBorder: #cecece;--vscode-settings-dropdownListBorder: #c8c8c8;--vscode-settings-checkboxBackground: #ffffff;--vscode-settings-checkboxBorder: #cecece;--vscode-settings-textInputBackground: #ffffff;--vscode-settings-textInputForeground: #616161;--vscode-settings-textInputBorder: #cecece;--vscode-settings-numberInputBackground: #ffffff;--vscode-settings-numberInputForeground: #616161;--vscode-settings-numberInputBorder: #cecece;--vscode-settings-focusedRowBackground: rgba(232, 232, 232, .6);--vscode-settings-rowHoverBackground: rgba(232, 232, 232, .3);--vscode-settings-focusedRowBorder: rgba(0, 0, 0, .12);--vscode-terminal-foreground: #333333;--vscode-terminal-selectionBackground: #add6ff;--vscode-terminal-inactiveSelectionBackground: #e5ebf1;--vscode-terminalCommandDecoration-defaultBackground: rgba(0, 0, 0, .25);--vscode-terminalCommandDecoration-successBackground: #2090d3;--vscode-terminalCommandDecoration-errorBackground: #e51400;--vscode-terminalOverviewRuler-cursorForeground: rgba(160, 160, 160, .8);--vscode-terminal-border: rgba(128, 128, 128, .35);--vscode-terminal-findMatchBackground: #a8ac94;--vscode-terminal-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-terminalOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-terminal-dropBackground: rgba(38, 119, 203, .18);--vscode-testing-iconFailed: #f14c4c;--vscode-testing-iconErrored: #f14c4c;--vscode-testing-iconPassed: #73c991;--vscode-testing-runAction: #73c991;--vscode-testing-iconQueued: #cca700;--vscode-testing-iconUnset: #848484;--vscode-testing-iconSkipped: #848484;--vscode-testing-peekBorder: #e51400;--vscode-testing-peekHeaderBackground: rgba(229, 20, 0, .1);--vscode-testing-message\.error\.decorationForeground: #e51400;--vscode-testing-message\.error\.lineBackground: rgba(255, 0, 0, .2);--vscode-testing-message\.info\.decorationForeground: rgba(0, 0, 0, .5);--vscode-welcomePage-tileBackground: #f3f3f3;--vscode-welcomePage-tileHoverBackground: #dbdbdb;--vscode-welcomePage-tileShadow: rgba(0, 0, 0, .16);--vscode-welcomePage-progress\.background: #ffffff;--vscode-welcomePage-progress\.foreground: #006ab1;--vscode-debugExceptionWidget-border: #a31515;--vscode-debugExceptionWidget-background: #f1dfde;--vscode-ports-iconRunningProcessForeground: #369432;--vscode-statusBar-debuggingBackground: #cc6633;--vscode-statusBar-debuggingForeground: #ffffff;--vscode-editor-inlineValuesForeground: rgba(0, 0, 0, .5);--vscode-editor-inlineValuesBackground: rgba(255, 200, 0, .2);--vscode-editorGutter-modifiedBackground: #2090d3;--vscode-editorGutter-addedBackground: #48985d;--vscode-editorGutter-deletedBackground: #e51400;--vscode-minimapGutter-modifiedBackground: #2090d3;--vscode-minimapGutter-addedBackground: #48985d;--vscode-minimapGutter-deletedBackground: #e51400;--vscode-editorOverviewRuler-modifiedForeground: rgba(32, 144, 211, .6);--vscode-editorOverviewRuler-addedForeground: rgba(72, 152, 93, .6);--vscode-editorOverviewRuler-deletedForeground: rgba(229, 20, 0, .6);--vscode-debugIcon-breakpointForeground: #e51400;--vscode-debugIcon-breakpointDisabledForeground: #848484;--vscode-debugIcon-breakpointUnverifiedForeground: #848484;--vscode-debugIcon-breakpointCurrentStackframeForeground: #be8700;--vscode-debugIcon-breakpointStackframeForeground: #89d185;--vscode-notebook-cellBorderColor: #e8e8e8;--vscode-notebook-focusedEditorBorder: #0090f1;--vscode-notebookStatusSuccessIcon-foreground: #388a34;--vscode-notebookStatusErrorIcon-foreground: #a1260d;--vscode-notebookStatusRunningIcon-foreground: #616161;--vscode-notebook-cellToolbarSeparator: rgba(128, 128, 128, .35);--vscode-notebook-selectedCellBackground: rgba(200, 221, 241, .31);--vscode-notebook-selectedCellBorder: #e8e8e8;--vscode-notebook-focusedCellBorder: #0090f1;--vscode-notebook-inactiveFocusedCellBorder: #e8e8e8;--vscode-notebook-cellStatusBarItemHoverBackground: rgba(0, 0, 0, .08);--vscode-notebook-cellInsertionIndicator: #0090f1;--vscode-notebookScrollbarSlider-background: rgba(100, 100, 100, .4);--vscode-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-notebookScrollbarSlider-activeBackground: rgba(0, 0, 0, .6);--vscode-notebook-symbolHighlightBackground: rgba(253, 255, 0, .2);--vscode-notebook-cellEditorBackground: #f3f3f3;--vscode-notebook-editorBackground: #ffffff;--vscode-keybindingTable-headerBackground: rgba(97, 97, 97, .04);--vscode-keybindingTable-rowsBackground: rgba(97, 97, 97, .04);--vscode-scm-providerBorder: #c8c8c8;--vscode-searchEditor-textInputBorder: #cecece;--vscode-debugTokenExpression-name: #9b46b0;--vscode-debugTokenExpression-value: rgba(108, 108, 108, .8);--vscode-debugTokenExpression-string: #a31515;--vscode-debugTokenExpression-boolean: #0000ff;--vscode-debugTokenExpression-number: #098658;--vscode-debugTokenExpression-error: #e51400;--vscode-debugView-exceptionLabelForeground: #ffffff;--vscode-debugView-exceptionLabelBackground: #a31515;--vscode-debugView-stateLabelForeground: #616161;--vscode-debugView-stateLabelBackground: rgba(136, 136, 136, .27);--vscode-debugView-valueChangedHighlight: #569cd6;--vscode-debugConsole-infoForeground: #1a85ff;--vscode-debugConsole-warningForeground: #bf8803;--vscode-debugConsole-errorForeground: #a1260d;--vscode-debugConsole-sourceForeground: #616161;--vscode-debugConsoleInputIcon-foreground: #616161;--vscode-debugIcon-pauseForeground: #007acc;--vscode-debugIcon-stopForeground: #a1260d;--vscode-debugIcon-disconnectForeground: #a1260d;--vscode-debugIcon-restartForeground: #388a34;--vscode-debugIcon-stepOverForeground: #007acc;--vscode-debugIcon-stepIntoForeground: #007acc;--vscode-debugIcon-stepOutForeground: #007acc;--vscode-debugIcon-continueForeground: #007acc;--vscode-debugIcon-stepBackForeground: #007acc;--vscode-extensionButton-prominentBackground: #007acc;--vscode-extensionButton-prominentForeground: #ffffff;--vscode-extensionButton-prominentHoverBackground: #0062a3;--vscode-extensionIcon-starForeground: #df6100;--vscode-extensionIcon-verifiedForeground: #006ab1;--vscode-extensionIcon-preReleaseForeground: #1d9271;--vscode-extensionIcon-sponsorForeground: #b51e78;--vscode-terminal-ansiBlack: #000000;--vscode-terminal-ansiRed: #cd3131;--vscode-terminal-ansiGreen: #00bc00;--vscode-terminal-ansiYellow: #949800;--vscode-terminal-ansiBlue: #0451a5;--vscode-terminal-ansiMagenta: #bc05bc;--vscode-terminal-ansiCyan: #0598bc;--vscode-terminal-ansiWhite: #555555;--vscode-terminal-ansiBrightBlack: #666666;--vscode-terminal-ansiBrightRed: #cd3131;--vscode-terminal-ansiBrightGreen: #14ce14;--vscode-terminal-ansiBrightYellow: #b5ba00;--vscode-terminal-ansiBrightBlue: #0451a5;--vscode-terminal-ansiBrightMagenta: #bc05bc;--vscode-terminal-ansiBrightCyan: #0598bc;--vscode-terminal-ansiBrightWhite: #a5a5a5;--vscode-interactive-activeCodeBorder: #1a85ff;--vscode-interactive-inactiveCodeBorder: #e4e6f1;--vscode-gitDecoration-addedResourceForeground: #587c0c;--vscode-gitDecoration-modifiedResourceForeground: #895503;--vscode-gitDecoration-deletedResourceForeground: #ad0707;--vscode-gitDecoration-renamedResourceForeground: #007100;--vscode-gitDecoration-untrackedResourceForeground: #007100;--vscode-gitDecoration-ignoredResourceForeground: #8e8e90;--vscode-gitDecoration-stageModifiedResourceForeground: #895503;--vscode-gitDecoration-stageDeletedResourceForeground: #ad0707;--vscode-gitDecoration-conflictingResourceForeground: #ad0707;--vscode-gitDecoration-submoduleResourceForeground: #1258a7}:root.light-mode{color-scheme:light}:root.dark-mode{color-scheme:dark;--vscode-font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif;--vscode-font-weight: normal;--vscode-font-size: 13px;--vscode-editor-font-family: "Droid Sans Mono", "monospace", monospace;--vscode-editor-font-weight: normal;--vscode-editor-font-size: 14px;--vscode-foreground: #cccccc;--vscode-disabledForeground: rgba(204, 204, 204, .5);--vscode-errorForeground: #f48771;--vscode-descriptionForeground: rgba(204, 204, 204, .7);--vscode-icon-foreground: #c5c5c5;--vscode-focusBorder: #007fd4;--vscode-textSeparator-foreground: rgba(255, 255, 255, .18);--vscode-textLink-foreground: #3794ff;--vscode-textLink-activeForeground: #3794ff;--vscode-textPreformat-foreground: #d7ba7d;--vscode-textBlockQuote-background: rgba(127, 127, 127, .1);--vscode-textBlockQuote-border: rgba(0, 122, 204, .5);--vscode-textCodeBlock-background: rgba(10, 10, 10, .4);--vscode-widget-shadow: rgba(0, 0, 0, .36);--vscode-input-background: #3c3c3c;--vscode-input-foreground: #cccccc;--vscode-inputOption-activeBorder: #007acc;--vscode-inputOption-hoverBackground: rgba(90, 93, 94, .5);--vscode-inputOption-activeBackground: rgba(0, 127, 212, .4);--vscode-inputOption-activeForeground: #ffffff;--vscode-input-placeholderForeground: #a6a6a6;--vscode-inputValidation-infoBackground: #063b49;--vscode-inputValidation-infoBorder: #007acc;--vscode-inputValidation-warningBackground: #352a05;--vscode-inputValidation-warningBorder: #b89500;--vscode-inputValidation-errorBackground: #5a1d1d;--vscode-inputValidation-errorBorder: #be1100;--vscode-dropdown-background: #3c3c3c;--vscode-dropdown-foreground: #f0f0f0;--vscode-dropdown-border: #3c3c3c;--vscode-checkbox-background: #3c3c3c;--vscode-checkbox-foreground: #f0f0f0;--vscode-checkbox-border: #3c3c3c;--vscode-button-foreground: #ffffff;--vscode-button-separator: rgba(255, 255, 255, .4);--vscode-button-background: #0e639c;--vscode-button-hoverBackground: #1177bb;--vscode-button-secondaryForeground: #ffffff;--vscode-button-secondaryBackground: #3a3d41;--vscode-button-secondaryHoverBackground: #45494e;--vscode-badge-background: #4d4d4d;--vscode-badge-foreground: #ffffff;--vscode-scrollbar-shadow: #000000;--vscode-scrollbarSlider-background: rgba(121, 121, 121, .4);--vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-scrollbarSlider-activeBackground: rgba(191, 191, 191, .4);--vscode-progressBar-background: #0e70c0;--vscode-editorError-foreground: #f14c4c;--vscode-editorWarning-foreground: #cca700;--vscode-editorInfo-foreground: #3794ff;--vscode-editorHint-foreground: rgba(238, 238, 238, .7);--vscode-sash-hoverBorder: #007fd4;--vscode-editor-background: #1e1e1e;--vscode-editor-foreground: #d4d4d4;--vscode-editorStickyScroll-background: #1e1e1e;--vscode-editorStickyScrollHover-background: #2a2d2e;--vscode-editorWidget-background: #252526;--vscode-editorWidget-foreground: #cccccc;--vscode-editorWidget-border: #454545;--vscode-quickInput-background: #252526;--vscode-quickInput-foreground: #cccccc;--vscode-quickInputTitle-background: rgba(255, 255, 255, .1);--vscode-pickerGroup-foreground: #3794ff;--vscode-pickerGroup-border: #3f3f46;--vscode-keybindingLabel-background: rgba(128, 128, 128, .17);--vscode-keybindingLabel-foreground: #cccccc;--vscode-keybindingLabel-border: rgba(51, 51, 51, .6);--vscode-keybindingLabel-bottomBorder: rgba(68, 68, 68, .6);--vscode-editor-selectionBackground: #264f78;--vscode-editor-inactiveSelectionBackground: #3a3d41;--vscode-editor-selectionHighlightBackground: rgba(173, 214, 255, .15);--vscode-editor-findMatchBackground: #515c6a;--vscode-editor-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-editor-findRangeHighlightBackground: rgba(58, 61, 65, .4);--vscode-searchEditor-findMatchBackground: rgba(234, 92, 0, .22);--vscode-editor-hoverHighlightBackground: rgba(38, 79, 120, .25);--vscode-editorHoverWidget-background: #252526;--vscode-editorHoverWidget-foreground: #cccccc;--vscode-editorHoverWidget-border: #454545;--vscode-editorHoverWidget-statusBarBackground: #2c2c2d;--vscode-editorLink-activeForeground: #4e94ce;--vscode-editorInlayHint-foreground: rgba(255, 255, 255, .8);--vscode-editorInlayHint-background: rgba(77, 77, 77, .6);--vscode-editorInlayHint-typeForeground: rgba(255, 255, 255, .8);--vscode-editorInlayHint-typeBackground: rgba(77, 77, 77, .6);--vscode-editorInlayHint-parameterForeground: rgba(255, 255, 255, .8);--vscode-editorInlayHint-parameterBackground: rgba(77, 77, 77, .6);--vscode-editorLightBulb-foreground: #ffcc00;--vscode-editorLightBulbAutoFix-foreground: #75beff;--vscode-diffEditor-insertedTextBackground: rgba(156, 204, 44, .2);--vscode-diffEditor-removedTextBackground: rgba(255, 0, 0, .4);--vscode-diffEditor-insertedLineBackground: rgba(155, 185, 85, .2);--vscode-diffEditor-removedLineBackground: rgba(255, 0, 0, .2);--vscode-diffEditor-diagonalFill: rgba(204, 204, 204, .2);--vscode-list-focusOutline: #007fd4;--vscode-list-activeSelectionBackground: #04395e;--vscode-list-activeSelectionForeground: #ffffff;--vscode-list-activeSelectionIconForeground: #ffffff;--vscode-list-inactiveSelectionBackground: #37373d;--vscode-list-hoverBackground: #2a2d2e;--vscode-list-dropBackground: #383b3d;--vscode-list-highlightForeground: #2aaaff;--vscode-list-focusHighlightForeground: #2aaaff;--vscode-list-invalidItemForeground: #b89500;--vscode-list-errorForeground: #f88070;--vscode-list-warningForeground: #cca700;--vscode-listFilterWidget-background: #252526;--vscode-listFilterWidget-outline: rgba(0, 0, 0, 0);--vscode-listFilterWidget-noMatchesOutline: #be1100;--vscode-listFilterWidget-shadow: rgba(0, 0, 0, .36);--vscode-list-filterMatchBackground: rgba(234, 92, 0, .33);--vscode-tree-indentGuidesStroke: #585858;--vscode-tree-tableColumnsBorder: rgba(204, 204, 204, .13);--vscode-tree-tableOddRowsBackground: rgba(204, 204, 204, .04);--vscode-list-deemphasizedForeground: #8c8c8c;--vscode-quickInputList-focusForeground: #ffffff;--vscode-quickInputList-focusIconForeground: #ffffff;--vscode-quickInputList-focusBackground: #04395e;--vscode-menu-foreground: #cccccc;--vscode-menu-background: #303031;--vscode-menu-selectionForeground: #ffffff;--vscode-menu-selectionBackground: #04395e;--vscode-menu-separatorBackground: #606060;--vscode-toolbar-hoverBackground: rgba(90, 93, 94, .31);--vscode-toolbar-activeBackground: rgba(99, 102, 103, .31);--vscode-editor-snippetTabstopHighlightBackground: rgba(124, 124, 124, .3);--vscode-editor-snippetFinalTabstopHighlightBorder: #525252;--vscode-breadcrumb-foreground: rgba(204, 204, 204, .8);--vscode-breadcrumb-background: #1e1e1e;--vscode-breadcrumb-focusForeground: #e0e0e0;--vscode-breadcrumb-activeSelectionForeground: #e0e0e0;--vscode-breadcrumbPicker-background: #252526;--vscode-merge-currentHeaderBackground: rgba(64, 200, 174, .5);--vscode-merge-currentContentBackground: rgba(64, 200, 174, .2);--vscode-merge-incomingHeaderBackground: rgba(64, 166, 255, .5);--vscode-merge-incomingContentBackground: rgba(64, 166, 255, .2);--vscode-merge-commonHeaderBackground: rgba(96, 96, 96, .4);--vscode-merge-commonContentBackground: rgba(96, 96, 96, .16);--vscode-editorOverviewRuler-currentContentForeground: rgba(64, 200, 174, .5);--vscode-editorOverviewRuler-incomingContentForeground: rgba(64, 166, 255, .5);--vscode-editorOverviewRuler-commonContentForeground: rgba(96, 96, 96, .4);--vscode-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-editorOverviewRuler-selectionHighlightForeground: rgba(160, 160, 160, .8);--vscode-minimap-findMatchHighlight: #d18616;--vscode-minimap-selectionOccurrenceHighlight: #676767;--vscode-minimap-selectionHighlight: #264f78;--vscode-minimap-errorHighlight: rgba(255, 18, 18, .7);--vscode-minimap-warningHighlight: #cca700;--vscode-minimap-foregroundOpacity: #000000;--vscode-minimapSlider-background: rgba(121, 121, 121, .2);--vscode-minimapSlider-hoverBackground: rgba(100, 100, 100, .35);--vscode-minimapSlider-activeBackground: rgba(191, 191, 191, .2);--vscode-problemsErrorIcon-foreground: #f14c4c;--vscode-problemsWarningIcon-foreground: #cca700;--vscode-problemsInfoIcon-foreground: #3794ff;--vscode-charts-foreground: #cccccc;--vscode-charts-lines: rgba(204, 204, 204, .5);--vscode-charts-red: #f14c4c;--vscode-charts-blue: #3794ff;--vscode-charts-yellow: #cca700;--vscode-charts-orange: #d18616;--vscode-charts-green: #89d185;--vscode-charts-purple: #b180d7;--vscode-editor-lineHighlightBorder: #282828;--vscode-editor-rangeHighlightBackground: rgba(255, 255, 255, .04);--vscode-editor-symbolHighlightBackground: rgba(234, 92, 0, .33);--vscode-editorCursor-foreground: #aeafad;--vscode-editorWhitespace-foreground: rgba(227, 228, 226, .16);--vscode-editorIndentGuide-background: #404040;--vscode-editorIndentGuide-activeBackground: #707070;--vscode-editorLineNumber-foreground: #858585;--vscode-editorActiveLineNumber-foreground: #c6c6c6;--vscode-editorLineNumber-activeForeground: #c6c6c6;--vscode-editorRuler-foreground: #5a5a5a;--vscode-editorCodeLens-foreground: #999999;--vscode-editorBracketMatch-background: rgba(0, 100, 0, .1);--vscode-editorBracketMatch-border: #888888;--vscode-editorOverviewRuler-border: rgba(127, 127, 127, .3);--vscode-editorGutter-background: #1e1e1e;--vscode-editorUnnecessaryCode-opacity: rgba(0, 0, 0, .67);--vscode-editorGhostText-foreground: rgba(255, 255, 255, .34);--vscode-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, .6);--vscode-editorOverviewRuler-errorForeground: rgba(255, 18, 18, .7);--vscode-editorOverviewRuler-warningForeground: #cca700;--vscode-editorOverviewRuler-infoForeground: #3794ff;--vscode-editorBracketHighlight-foreground1: #ffd700;--vscode-editorBracketHighlight-foreground2: #da70d6;--vscode-editorBracketHighlight-foreground3: #179fff;--vscode-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-unexpectedBracket\.foreground: rgba(255, 18, 18, .8);--vscode-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);--vscode-editorUnicodeHighlight-border: #bd9b03;--vscode-editorUnicodeHighlight-background: rgba(189, 155, 3, .15);--vscode-symbolIcon-arrayForeground: #cccccc;--vscode-symbolIcon-booleanForeground: #cccccc;--vscode-symbolIcon-classForeground: #ee9d28;--vscode-symbolIcon-colorForeground: #cccccc;--vscode-symbolIcon-constantForeground: #cccccc;--vscode-symbolIcon-constructorForeground: #b180d7;--vscode-symbolIcon-enumeratorForeground: #ee9d28;--vscode-symbolIcon-enumeratorMemberForeground: #75beff;--vscode-symbolIcon-eventForeground: #ee9d28;--vscode-symbolIcon-fieldForeground: #75beff;--vscode-symbolIcon-fileForeground: #cccccc;--vscode-symbolIcon-folderForeground: #cccccc;--vscode-symbolIcon-functionForeground: #b180d7;--vscode-symbolIcon-interfaceForeground: #75beff;--vscode-symbolIcon-keyForeground: #cccccc;--vscode-symbolIcon-keywordForeground: #cccccc;--vscode-symbolIcon-methodForeground: #b180d7;--vscode-symbolIcon-moduleForeground: #cccccc;--vscode-symbolIcon-namespaceForeground: #cccccc;--vscode-symbolIcon-nullForeground: #cccccc;--vscode-symbolIcon-numberForeground: #cccccc;--vscode-symbolIcon-objectForeground: #cccccc;--vscode-symbolIcon-operatorForeground: #cccccc;--vscode-symbolIcon-packageForeground: #cccccc;--vscode-symbolIcon-propertyForeground: #cccccc;--vscode-symbolIcon-referenceForeground: #cccccc;--vscode-symbolIcon-snippetForeground: #cccccc;--vscode-symbolIcon-stringForeground: #cccccc;--vscode-symbolIcon-structForeground: #cccccc;--vscode-symbolIcon-textForeground: #cccccc;--vscode-symbolIcon-typeParameterForeground: #cccccc;--vscode-symbolIcon-unitForeground: #cccccc;--vscode-symbolIcon-variableForeground: #75beff;--vscode-editorHoverWidget-highlightForeground: #2aaaff;--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;--vscode-editor-foldBackground: rgba(38, 79, 120, .3);--vscode-editorGutter-foldingControlForeground: #c5c5c5;--vscode-editor-linkedEditingBackground: rgba(255, 0, 0, .3);--vscode-editor-wordHighlightBackground: rgba(87, 87, 87, .72);--vscode-editor-wordHighlightStrongBackground: rgba(0, 73, 114, .72);--vscode-editorOverviewRuler-wordHighlightForeground: rgba(160, 160, 160, .8);--vscode-editorOverviewRuler-wordHighlightStrongForeground: rgba(192, 160, 192, .8);--vscode-peekViewTitle-background: rgba(55, 148, 255, .1);--vscode-peekViewTitleLabel-foreground: #ffffff;--vscode-peekViewTitleDescription-foreground: rgba(204, 204, 204, .7);--vscode-peekView-border: #3794ff;--vscode-peekViewResult-background: #252526;--vscode-peekViewResult-lineForeground: #bbbbbb;--vscode-peekViewResult-fileForeground: #ffffff;--vscode-peekViewResult-selectionBackground: rgba(51, 153, 255, .2);--vscode-peekViewResult-selectionForeground: #ffffff;--vscode-peekViewEditor-background: #001f33;--vscode-peekViewEditorGutter-background: #001f33;--vscode-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, .3);--vscode-peekViewEditor-matchHighlightBackground: rgba(255, 143, 0, .6);--vscode-editorMarkerNavigationError-background: #f14c4c;--vscode-editorMarkerNavigationError-headerBackground: rgba(241, 76, 76, .1);--vscode-editorMarkerNavigationWarning-background: #cca700;--vscode-editorMarkerNavigationWarning-headerBackground: rgba(204, 167, 0, .1);--vscode-editorMarkerNavigationInfo-background: #3794ff;--vscode-editorMarkerNavigationInfo-headerBackground: rgba(55, 148, 255, .1);--vscode-editorMarkerNavigation-background: #1e1e1e;--vscode-editorSuggestWidget-background: #252526;--vscode-editorSuggestWidget-border: #454545;--vscode-editorSuggestWidget-foreground: #d4d4d4;--vscode-editorSuggestWidget-selectedForeground: #ffffff;--vscode-editorSuggestWidget-selectedIconForeground: #ffffff;--vscode-editorSuggestWidget-selectedBackground: #04395e;--vscode-editorSuggestWidget-highlightForeground: #2aaaff;--vscode-editorSuggestWidget-focusHighlightForeground: #2aaaff;--vscode-editorSuggestWidgetStatus-foreground: rgba(212, 212, 212, .5);--vscode-tab-activeBackground: #1e1e1e;--vscode-tab-unfocusedActiveBackground: #1e1e1e;--vscode-tab-inactiveBackground: #2d2d2d;--vscode-tab-unfocusedInactiveBackground: #2d2d2d;--vscode-tab-activeForeground: #ffffff;--vscode-tab-inactiveForeground: rgba(255, 255, 255, .5);--vscode-tab-unfocusedActiveForeground: rgba(255, 255, 255, .5);--vscode-tab-unfocusedInactiveForeground: rgba(255, 255, 255, .25);--vscode-tab-border: #252526;--vscode-tab-lastPinnedBorder: rgba(204, 204, 204, .2);--vscode-tab-activeModifiedBorder: #3399cc;--vscode-tab-inactiveModifiedBorder: rgba(51, 153, 204, .5);--vscode-tab-unfocusedActiveModifiedBorder: rgba(51, 153, 204, .5);--vscode-tab-unfocusedInactiveModifiedBorder: rgba(51, 153, 204, .25);--vscode-editorPane-background: #1e1e1e;--vscode-editorGroupHeader-tabsBackground: #252526;--vscode-editorGroupHeader-noTabsBackground: #1e1e1e;--vscode-editorGroup-border: #444444;--vscode-editorGroup-dropBackground: rgba(83, 89, 93, .5);--vscode-editorGroup-dropIntoPromptForeground: #cccccc;--vscode-editorGroup-dropIntoPromptBackground: #252526;--vscode-sideBySideEditor-horizontalBorder: #444444;--vscode-sideBySideEditor-verticalBorder: #444444;--vscode-panel-background: #1e1e1e;--vscode-panel-border: rgba(128, 128, 128, .35);--vscode-panelTitle-activeForeground: #e7e7e7;--vscode-panelTitle-inactiveForeground: rgba(231, 231, 231, .6);--vscode-panelTitle-activeBorder: #e7e7e7;--vscode-panel-dropBorder: #e7e7e7;--vscode-panelSection-dropBackground: rgba(83, 89, 93, .5);--vscode-panelSectionHeader-background: rgba(128, 128, 128, .2);--vscode-panelSection-border: rgba(128, 128, 128, .35);--vscode-banner-background: #04395e;--vscode-banner-foreground: #ffffff;--vscode-banner-iconForeground: #3794ff;--vscode-statusBar-foreground: #ffffff;--vscode-statusBar-noFolderForeground: #ffffff;--vscode-statusBar-background: #007acc;--vscode-statusBar-noFolderBackground: #68217a;--vscode-statusBar-focusBorder: #ffffff;--vscode-statusBarItem-activeBackground: rgba(255, 255, 255, .18);--vscode-statusBarItem-focusBorder: #ffffff;--vscode-statusBarItem-hoverBackground: rgba(255, 255, 255, .12);--vscode-statusBarItem-compactHoverBackground: rgba(255, 255, 255, .2);--vscode-statusBarItem-prominentForeground: #ffffff;--vscode-statusBarItem-prominentBackground: rgba(0, 0, 0, .5);--vscode-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, .3);--vscode-statusBarItem-errorBackground: #c72e0f;--vscode-statusBarItem-errorForeground: #ffffff;--vscode-statusBarItem-warningBackground: #7a6400;--vscode-statusBarItem-warningForeground: #ffffff;--vscode-activityBar-background: #333333;--vscode-activityBar-foreground: #ffffff;--vscode-activityBar-inactiveForeground: rgba(255, 255, 255, .4);--vscode-activityBar-activeBorder: #ffffff;--vscode-activityBar-dropBorder: #ffffff;--vscode-activityBarBadge-background: #007acc;--vscode-activityBarBadge-foreground: #ffffff;--vscode-statusBarItem-remoteBackground: #16825d;--vscode-statusBarItem-remoteForeground: #ffffff;--vscode-extensionBadge-remoteBackground: #007acc;--vscode-extensionBadge-remoteForeground: #ffffff;--vscode-sideBar-background: #252526;--vscode-sideBarTitle-foreground: #bbbbbb;--vscode-sideBar-dropBackground: rgba(83, 89, 93, .5);--vscode-sideBarSectionHeader-background: rgba(0, 0, 0, 0);--vscode-sideBarSectionHeader-border: rgba(204, 204, 204, .2);--vscode-titleBar-activeForeground: #cccccc;--vscode-titleBar-inactiveForeground: rgba(204, 204, 204, .6);--vscode-titleBar-activeBackground: #3c3c3c;--vscode-titleBar-inactiveBackground: rgba(60, 60, 60, .6);--vscode-menubar-selectionForeground: #cccccc;--vscode-menubar-selectionBackground: rgba(90, 93, 94, .31);--vscode-notifications-foreground: #cccccc;--vscode-notifications-background: #252526;--vscode-notificationLink-foreground: #3794ff;--vscode-notificationCenterHeader-background: #303031;--vscode-notifications-border: #303031;--vscode-notificationsErrorIcon-foreground: #f14c4c;--vscode-notificationsWarningIcon-foreground: #cca700;--vscode-notificationsInfoIcon-foreground: #3794ff;--vscode-commandCenter-foreground: #cccccc;--vscode-commandCenter-activeForeground: #cccccc;--vscode-commandCenter-activeBackground: rgba(90, 93, 94, .31);--vscode-commandCenter-border: rgba(128, 128, 128, .35);--vscode-editorCommentsWidget-resolvedBorder: rgba(204, 204, 204, .5);--vscode-editorCommentsWidget-unresolvedBorder: #3794ff;--vscode-editorCommentsWidget-rangeBackground: rgba(55, 148, 255, .1);--vscode-editorCommentsWidget-rangeBorder: rgba(55, 148, 255, .4);--vscode-editorCommentsWidget-rangeActiveBackground: rgba(55, 148, 255, .1);--vscode-editorCommentsWidget-rangeActiveBorder: rgba(55, 148, 255, .4);--vscode-editorGutter-commentRangeForeground: #37373d;--vscode-debugToolBar-background: #333333;--vscode-debugIcon-startForeground: #89d185;--vscode-editor-stackFrameHighlightBackground: rgba(255, 255, 0, .2);--vscode-editor-focusedStackFrameHighlightBackground: rgba(122, 189, 122, .3);--vscode-mergeEditor-change\.background: rgba(155, 185, 85, .2);--vscode-mergeEditor-change\.word\.background: rgba(156, 204, 44, .2);--vscode-mergeEditor-conflict\.unhandledUnfocused\.border: rgba(255, 166, 0, .48);--vscode-mergeEditor-conflict\.unhandledFocused\.border: #ffa600;--vscode-mergeEditor-conflict\.handledUnfocused\.border: rgba(134, 134, 134, .29);--vscode-mergeEditor-conflict\.handledFocused\.border: rgba(193, 193, 193, .8);--vscode-mergeEditor-conflict\.handled\.minimapOverViewRuler: rgba(173, 172, 168, .93);--vscode-mergeEditor-conflict\.unhandled\.minimapOverViewRuler: #fcba03;--vscode-mergeEditor-conflictingLines\.background: rgba(255, 234, 0, .28);--vscode-settings-headerForeground: #e7e7e7;--vscode-settings-modifiedItemIndicator: #0c7d9d;--vscode-settings-headerBorder: rgba(128, 128, 128, .35);--vscode-settings-sashBorder: rgba(128, 128, 128, .35);--vscode-settings-dropdownBackground: #3c3c3c;--vscode-settings-dropdownForeground: #f0f0f0;--vscode-settings-dropdownBorder: #3c3c3c;--vscode-settings-dropdownListBorder: #454545;--vscode-settings-checkboxBackground: #3c3c3c;--vscode-settings-checkboxForeground: #f0f0f0;--vscode-settings-checkboxBorder: #3c3c3c;--vscode-settings-textInputBackground: #3c3c3c;--vscode-settings-textInputForeground: #cccccc;--vscode-settings-numberInputBackground: #3c3c3c;--vscode-settings-numberInputForeground: #cccccc;--vscode-settings-focusedRowBackground: rgba(42, 45, 46, .6);--vscode-settings-rowHoverBackground: rgba(42, 45, 46, .3);--vscode-settings-focusedRowBorder: rgba(255, 255, 255, .12);--vscode-terminal-foreground: #cccccc;--vscode-terminal-selectionBackground: #264f78;--vscode-terminal-inactiveSelectionBackground: #3a3d41;--vscode-terminalCommandDecoration-defaultBackground: rgba(255, 255, 255, .25);--vscode-terminalCommandDecoration-successBackground: #1b81a8;--vscode-terminalCommandDecoration-errorBackground: #f14c4c;--vscode-terminalOverviewRuler-cursorForeground: rgba(160, 160, 160, .8);--vscode-terminal-border: rgba(128, 128, 128, .35);--vscode-terminal-findMatchBackground: #515c6a;--vscode-terminal-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-terminalOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-terminal-dropBackground: rgba(83, 89, 93, .5);--vscode-testing-iconFailed: #f14c4c;--vscode-testing-iconErrored: #f14c4c;--vscode-testing-iconPassed: #73c991;--vscode-testing-runAction: #73c991;--vscode-testing-iconQueued: #cca700;--vscode-testing-iconUnset: #848484;--vscode-testing-iconSkipped: #848484;--vscode-testing-peekBorder: #f14c4c;--vscode-testing-peekHeaderBackground: rgba(241, 76, 76, .1);--vscode-testing-message\.error\.decorationForeground: #f14c4c;--vscode-testing-message\.error\.lineBackground: rgba(255, 0, 0, .2);--vscode-testing-message\.info\.decorationForeground: rgba(212, 212, 212, .5);--vscode-welcomePage-tileBackground: #252526;--vscode-welcomePage-tileHoverBackground: #2c2c2d;--vscode-welcomePage-tileShadow: rgba(0, 0, 0, .36);--vscode-welcomePage-progress\.background: #3c3c3c;--vscode-welcomePage-progress\.foreground: #3794ff;--vscode-debugExceptionWidget-border: #a31515;--vscode-debugExceptionWidget-background: #420b0d;--vscode-ports-iconRunningProcessForeground: #369432;--vscode-statusBar-debuggingBackground: #cc6633;--vscode-statusBar-debuggingForeground: #ffffff;--vscode-editor-inlineValuesForeground: rgba(255, 255, 255, .5);--vscode-editor-inlineValuesBackground: rgba(255, 200, 0, .2);--vscode-editorGutter-modifiedBackground: #1b81a8;--vscode-editorGutter-addedBackground: #487e02;--vscode-editorGutter-deletedBackground: #f14c4c;--vscode-minimapGutter-modifiedBackground: #1b81a8;--vscode-minimapGutter-addedBackground: #487e02;--vscode-minimapGutter-deletedBackground: #f14c4c;--vscode-editorOverviewRuler-modifiedForeground: rgba(27, 129, 168, .6);--vscode-editorOverviewRuler-addedForeground: rgba(72, 126, 2, .6);--vscode-editorOverviewRuler-deletedForeground: rgba(241, 76, 76, .6);--vscode-debugIcon-breakpointForeground: #e51400;--vscode-debugIcon-breakpointDisabledForeground: #848484;--vscode-debugIcon-breakpointUnverifiedForeground: #848484;--vscode-debugIcon-breakpointCurrentStackframeForeground: #ffcc00;--vscode-debugIcon-breakpointStackframeForeground: #89d185;--vscode-notebook-cellBorderColor: #37373d;--vscode-notebook-focusedEditorBorder: #007fd4;--vscode-notebookStatusSuccessIcon-foreground: #89d185;--vscode-notebookStatusErrorIcon-foreground: #f48771;--vscode-notebookStatusRunningIcon-foreground: #cccccc;--vscode-notebook-cellToolbarSeparator: rgba(128, 128, 128, .35);--vscode-notebook-selectedCellBackground: #37373d;--vscode-notebook-selectedCellBorder: #37373d;--vscode-notebook-focusedCellBorder: #007fd4;--vscode-notebook-inactiveFocusedCellBorder: #37373d;--vscode-notebook-cellStatusBarItemHoverBackground: rgba(255, 255, 255, .15);--vscode-notebook-cellInsertionIndicator: #007fd4;--vscode-notebookScrollbarSlider-background: rgba(121, 121, 121, .4);--vscode-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-notebookScrollbarSlider-activeBackground: rgba(191, 191, 191, .4);--vscode-notebook-symbolHighlightBackground: rgba(255, 255, 255, .04);--vscode-notebook-cellEditorBackground: #252526;--vscode-notebook-editorBackground: #1e1e1e;--vscode-keybindingTable-headerBackground: rgba(204, 204, 204, .04);--vscode-keybindingTable-rowsBackground: rgba(204, 204, 204, .04);--vscode-scm-providerBorder: #454545;--vscode-debugTokenExpression-name: #c586c0;--vscode-debugTokenExpression-value: rgba(204, 204, 204, .6);--vscode-debugTokenExpression-string: #ce9178;--vscode-debugTokenExpression-boolean: #4e94ce;--vscode-debugTokenExpression-number: #b5cea8;--vscode-debugTokenExpression-error: #f48771;--vscode-debugView-exceptionLabelForeground: #cccccc;--vscode-debugView-exceptionLabelBackground: #6c2022;--vscode-debugView-stateLabelForeground: #cccccc;--vscode-debugView-stateLabelBackground: rgba(136, 136, 136, .27);--vscode-debugView-valueChangedHighlight: #569cd6;--vscode-debugConsole-infoForeground: #3794ff;--vscode-debugConsole-warningForeground: #cca700;--vscode-debugConsole-errorForeground: #f48771;--vscode-debugConsole-sourceForeground: #cccccc;--vscode-debugConsoleInputIcon-foreground: #cccccc;--vscode-debugIcon-pauseForeground: #75beff;--vscode-debugIcon-stopForeground: #f48771;--vscode-debugIcon-disconnectForeground: #f48771;--vscode-debugIcon-restartForeground: #89d185;--vscode-debugIcon-stepOverForeground: #75beff;--vscode-debugIcon-stepIntoForeground: #75beff;--vscode-debugIcon-stepOutForeground: #75beff;--vscode-debugIcon-continueForeground: #75beff;--vscode-debugIcon-stepBackForeground: #75beff;--vscode-extensionButton-prominentBackground: #0e639c;--vscode-extensionButton-prominentForeground: #ffffff;--vscode-extensionButton-prominentHoverBackground: #1177bb;--vscode-extensionIcon-starForeground: #ff8e00;--vscode-extensionIcon-verifiedForeground: #3794ff;--vscode-extensionIcon-preReleaseForeground: #1d9271;--vscode-extensionIcon-sponsorForeground: #d758b3;--vscode-terminal-ansiBlack: #000000;--vscode-terminal-ansiRed: #cd3131;--vscode-terminal-ansiGreen: #0dbc79;--vscode-terminal-ansiYellow: #e5e510;--vscode-terminal-ansiBlue: #2472c8;--vscode-terminal-ansiMagenta: #bc3fbc;--vscode-terminal-ansiCyan: #11a8cd;--vscode-terminal-ansiWhite: #e5e5e5;--vscode-terminal-ansiBrightBlack: #666666;--vscode-terminal-ansiBrightRed: #f14c4c;--vscode-terminal-ansiBrightGreen: #23d18b;--vscode-terminal-ansiBrightYellow: #f5f543;--vscode-terminal-ansiBrightBlue: #3b8eea;--vscode-terminal-ansiBrightMagenta: #d670d6;--vscode-terminal-ansiBrightCyan: #29b8db;--vscode-terminal-ansiBrightWhite: #e5e5e5;--vscode-interactive-activeCodeBorder: #3794ff;--vscode-interactive-inactiveCodeBorder: #37373d;--vscode-gitDecoration-addedResourceForeground: #81b88b;--vscode-gitDecoration-modifiedResourceForeground: #e2c08d;--vscode-gitDecoration-deletedResourceForeground: #c74e39;--vscode-gitDecoration-renamedResourceForeground: #73c991;--vscode-gitDecoration-untrackedResourceForeground: #73c991;--vscode-gitDecoration-ignoredResourceForeground: #8c8c8c;--vscode-gitDecoration-stageModifiedResourceForeground: #e2c08d;--vscode-gitDecoration-stageDeletedResourceForeground: #c74e39;--vscode-gitDecoration-conflictingResourceForeground: #e4676b;--vscode-gitDecoration-submoduleResourceForeground: #8db9e2}.cm-wrapper{line-height:18px}.cm-wrapper,.cm-wrapper>div{width:100%;height:100%}.CodeMirror span.cm-meta{color:var(--vscode-editor-foreground)}.CodeMirror span.cm-number{color:var(--vscode-debugTokenExpression-number)}.CodeMirror span.cm-keyword,.CodeMirror span.cm-builtin{color:var(--vscode-debugTokenExpression-name)}.CodeMirror span.cm-operator{color:var(--vscode-editor-foreground)}.CodeMirror span.cm-string,.CodeMirror span.cm-string-2{color:var(--vscode-debugTokenExpression-string)}.CodeMirror span.cm-error{color:var(--vscode-errorForeground)}.CodeMirror span.cm-def,.CodeMirror span.cm-tag{color:#0070c1}.CodeMirror span.cm-comment,.CodeMirror span.cm-link{color:green}.CodeMirror span.cm-variable,.CodeMirror span.cm-variable-2,.CodeMirror span.cm-atom{color:#0070c1}.CodeMirror span.cm-property{color:#795e26}.CodeMirror span.cm-qualifier,.CodeMirror span.cm-attribute{color:#001080}.CodeMirror span.cm-variable-3,.CodeMirror span.cm-type{color:#267f99}:root.dark-mode .CodeMirror span.cm-def,:root.dark-mode .CodeMirror span.cm-tag{color:var(--vscode-debugView-valueChangedHighlight)}:root.dark-mode .CodeMirror span.cm-comment,:root.dark-mode .CodeMirror span.cm-link{color:#6a9955}:root.dark-mode .CodeMirror span.cm-variable,:root.dark-mode .CodeMirror span.cm-variable-2,:root.dark-mode .CodeMirror span.cm-atom{color:#4fc1ff}:root.dark-mode .CodeMirror span.cm-property{color:#dcdcaa}:root.dark-mode .CodeMirror span.cm-qualifier,:root.dark-mode .CodeMirror span.cm-attribute{color:#9cdcfe}:root.dark-mode .CodeMirror span.cm-variable-3,:root.dark-mode .CodeMirror span.cm-type{color:#4ec9b0}.CodeMirror span.cm-bracket{color:var(--vscode-editorBracketHighlight-foreground3)}.CodeMirror-cursor{border-left:1px solid var(--vscode-editor-foreground)!important}.CodeMirror div.CodeMirror-selected{background:var(--vscode-terminal-inactiveSelectionBackground)}.CodeMirror .CodeMirror-gutters{z-index:0;background:1px solid var(--vscode-editorGroup-border);border-right:none}.CodeMirror .CodeMirror-gutter-elt{background-color:var(--vscode-editorGutter-background)}.CodeMirror .CodeMirror-gutterwrapper{border-right:1px solid var(--vscode-editorGroup-border);color:var(--vscode-editorLineNumber-foreground)}.CodeMirror .CodeMirror-matchingbracket{background-color:var(--vscode-editorBracketPairGuide-background1);color:var(--vscode-editorBracketHighlight-foreground1)!important}.CodeMirror{font-family:var(--vscode-editor-font-family)!important;color:var(--vscode-editor-foreground)!important;background-color:var(--vscode-editor-background)!important;font-weight:var(--vscode-editor-font-weight)!important;font-size:var(--vscode-editor-font-size)!important}.CodeMirror .source-line-running{background-color:var(--vscode-editor-selectionBackground);z-index:2}.CodeMirror .source-line-paused{background-color:var(--vscode-editor-selectionHighlightBackground);z-index:2}.CodeMirror .source-line-error-widget{background-color:var(--vscode-inputValidation-errorBackground);white-space:pre-wrap;margin:3px 10px;padding:5px}.CodeMirror span.cm-link,span.cm-linkified{color:var(--vscode-textLink-foreground);text-decoration:underline;cursor:pointer}.CodeMirror .source-line-error-underline{text-decoration:underline;text-decoration-color:var(--vscode-errorForeground);text-decoration-style:wavy}.CodeMirror-placeholder{color:var(--vscode-input-placeholderForeground)!important}.CodeMirror-dialog-top{padding-top:8px!important}.split-view{display:flex;flex:auto;position:relative}.split-view.vertical{flex-direction:column}.split-view.vertical.sidebar-first{flex-direction:column-reverse}.split-view.horizontal{flex-direction:row}.split-view.horizontal.sidebar-first{flex-direction:row-reverse}.split-view-main{display:flex;flex:auto}.split-view-sidebar{display:flex;flex:none}.split-view.vertical:not(.sidebar-first)>.split-view-sidebar{border-top:1px solid var(--vscode-panel-border)}.split-view.horizontal:not(.sidebar-first)>.split-view-sidebar{border-left:1px solid var(--vscode-panel-border)}.split-view.vertical.sidebar-first>.split-view-sidebar{border-bottom:1px solid var(--vscode-panel-border)}.split-view.horizontal.sidebar-first>.split-view-sidebar{border-right:1px solid var(--vscode-panel-border)}.split-view-resizer{position:absolute;z-index:100}.split-view.vertical>.split-view-resizer{left:0;right:0;height:12px;cursor:ns-resize}.split-view.horizontal>.split-view-resizer{top:0;bottom:0;width:12px;cursor:ew-resize}.tabbed-pane{display:flex;flex:auto;overflow:hidden}.tabbed-pane .toolbar{background-color:var(--vscode-sideBar-background)}.tabbed-pane .tab-content{display:flex;flex:auto;overflow:hidden;position:relative;flex-direction:column}.tabbed-pane-tab{padding:2px 6px 0;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;border-bottom:2px solid transparent;outline:none;height:100%}.tabbed-pane-tab-label{max-width:250px;white-space:pre;overflow:hidden;text-overflow:ellipsis;display:inline-block}.tabbed-pane-tab.selected{background-color:var(--vscode-tab-activeBackground)}.tabbed-pane-tab-counter{padding:0 4px;background:var(--vscode-menu-separatorBackground);border-radius:8px;height:16px;margin-left:4px;line-height:16px;min-width:18px;display:flex;align-items:center;justify-content:center}.tabbed-pane-tab-counter.error{background:var(--vscode-list-errorForeground);color:var(--vscode-button-foreground)}.toolbar{position:relative;display:flex;color:var(--vscode-sideBarTitle-foreground);min-height:30px;align-items:center;flex:none;padding-right:4px}.toolbar.toolbar-sidebar-background{background-color:var(--vscode-sideBar-background)}.toolbar:after{content:"";display:block;position:absolute;pointer-events:none;top:0;bottom:0;left:-2px;right:-2px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px;z-index:100}.toolbar.no-shadow:after{box-shadow:none}.toolbar.no-min-height{min-height:0}.toolbar input{padding:0 5px;line-height:24px;outline:none;margin:0 4px}.toolbar select{background:none;outline:none;padding:3px;margin:2px}.toolbar option{background-color:var(--vscode-tab-activeBackground)}.toolbar input,.toolbar select{border:none;color:var(--vscode-input-foreground);background-color:var(--vscode-input-background)}.toolbar-button{flex:none;border:none;outline:none;color:var(--vscode-sideBarTitle-foreground);background:transparent;padding:4px;cursor:pointer;display:inline-flex;align-items:center}.toolbar-button:disabled{color:var(--vscode-disabledForeground)!important;cursor:default}.toolbar-button:not(:disabled):hover{background-color:var(--vscode-toolbar-hoverBackground)}.toolbar-button:not(:disabled):active{background-color:var(--vscode-toolbar-activeBackground)}.toolbar-button.toggled{color:var(--vscode-notificationLink-foreground)}.toolbar-separator{flex:none;background-color:var(--vscode-menu-separatorBackground);width:1px;padding:0;margin:5px 4px;height:16px}.call-log{display:flex;flex-direction:column;flex:auto;line-height:20px;white-space:pre;overflow:auto}.call-log-message{flex:none;padding:3px 0 3px 36px;display:flex;align-items:center}.call-log-call{display:flex;flex:none;flex-direction:column;border-top:1px solid var(--vscode-panel-border)}.call-log-call-header{height:24px;display:flex;align-items:center;padding:0 2px;z-index:2}.call-log-call .codicon{padding:0 4px;flex:none}.call-log .codicon-check{color:#21a945;font-weight:700}.call-log-call.error{background-color:var(--vscode-inputValidation-errorBackground);border-top:1px solid var(--vscode-panel-border)}.call-log-call.error .call-log-call-header,.call-log-message.error,.call-log .codicon-error{color:var(--vscode-errorForeground)}.call-log-details{flex:0 1 auto;overflow-x:hidden;text-overflow:ellipsis}.call-log-url{color:var(--vscode-charts-blue)}.call-log-selector{color:var(--vscode-charts-orange);white-space:nowrap}.call-log-time{flex:none;margin-left:4px;color:var(--gray)}.call-log-call .codicon.preview{visibility:hidden;color:var(--vscode-sideBarTitle-foreground);cursor:pointer}.call-log-call .codicon.preview:hover{color:inherit}.call-log-call:hover .codicon.preview{visibility:visible}.recorder{display:flex;flex-direction:column;flex:auto}.recorder-chooser{border:none;background:none;outline:none;color:var(--vscode-sideBarTitle-foreground);min-width:100px}.recorder .codicon{font-size:16px}.recorder .codicon.circle-large-filled,.recorder .codicon.stop-circle{font-size:15px}.recorder .toolbar-button.toggled.stop-circle{color:#a1260d}:root.dark-mode .recorder .toolbar-button.toggled.stop-circle{color:#f48771}.recorder .toolbar-button:not([disabled]) .codicon-debug-continue,.recorder .toolbar-button:not([disabled]) .codicon-debug-step-over{color:#01bb01}.recorder .toolbar-button:not([disabled]):hover .codicon-debug-continue,.recorder .toolbar-button:not([disabled]):hover .codicon-debug-step-over{color:#41ca1e}.recorder .selector-input{flex:auto}.setting{display:flex;align-items:center}.setting-theme{display:grid;margin-left:22px}.setting label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.setting input{margin-right:5px;flex-shrink:0} diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js deleted file mode 100644 index 0fbeec3..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js +++ /dev/null @@ -1,193 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-DadYNm1I.js","assets/codeMirrorModule-DYBRYzYX.css"])))=>i.map(i=>d[i]); -(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const o of c)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function i(c){const o={};return c.integrity&&(o.integrity=c.integrity),c.referrerPolicy&&(o.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?o.credentials="include":c.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function u(c){if(c.ep)return;c.ep=!0;const o=i(c);fetch(c.href,o)}})();function v1(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var lf={exports:{}},Oi={};/** - * @license React - * react-jsx-runtime.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Wm;function b1(){if(Wm)return Oi;Wm=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(u,c,o){var h=null;if(o!==void 0&&(h=""+o),c.key!==void 0&&(h=""+c.key),"key"in c){o={};for(var m in c)m!=="key"&&(o[m]=c[m])}else o=c;return c=o.ref,{$$typeof:s,type:u,key:h,ref:c!==void 0?c:null,props:o}}return Oi.Fragment=l,Oi.jsx=i,Oi.jsxs=i,Oi}var Fm;function S1(){return Fm||(Fm=1,lf.exports=b1()),lf.exports}var Z=S1(),af={exports:{}},se={};/** - * @license React - * react.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Im;function T1(){if(Im)return se;Im=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function A(O){return O===null||typeof O!="object"?null:(O=_&&O[_]||O["@@iterator"],typeof O=="function"?O:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function x(O,$,J){this.props=O,this.context=$,this.refs=T,this.updater=J||z}x.prototype.isReactComponent={},x.prototype.setState=function(O,$){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,$,"setState")},x.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function j(){}j.prototype=x.prototype;function Y(O,$,J){this.props=O,this.context=$,this.refs=T,this.updater=J||z}var X=Y.prototype=new j;X.constructor=Y,S(X,x.prototype),X.isPureReactComponent=!0;var W=Array.isArray;function K(){}var G={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function B(O,$,J){var I=J.ref;return{$$typeof:s,type:O,key:$,ref:I!==void 0?I:null,props:J}}function he(O,$){return B(O.type,$,O.props)}function ne(O){return typeof O=="object"&&O!==null&&O.$$typeof===s}function q(O){var $={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(J){return $[J]})}var le=/\/+/g;function ze(O,$){return typeof O=="object"&&O!==null&&O.key!=null?q(""+O.key):$.toString(36)}function ie(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(K,K):(O.status="pending",O.then(function($){O.status==="pending"&&(O.status="fulfilled",O.value=$)},function($){O.status==="pending"&&(O.status="rejected",O.reason=$)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function D(O,$,J,I,ce){var me=typeof O;(me==="undefined"||me==="boolean")&&(O=null);var Ae=!1;if(O===null)Ae=!0;else switch(me){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(O.$$typeof){case s:case l:Ae=!0;break;case E:return Ae=O._init,D(Ae(O._payload),$,J,I,ce)}}if(Ae)return ce=ce(O),Ae=I===""?"."+ze(O,0):I,W(ce)?(J="",Ae!=null&&(J=Ae.replace(le,"$&/")+"/"),D(ce,$,J,"",function(Da){return Da})):ce!=null&&(ne(ce)&&(ce=he(ce,J+(ce.key==null||O&&O.key===ce.key?"":(""+ce.key).replace(le,"$&/")+"/")+Ae)),$.push(ce)),1;Ae=0;var rt=I===""?".":I+":";if(W(O))for(var $e=0;$e{const c=s==null?void 0:s.current;c&&i(c.getBoundingClientRect())},[s]);return wn.useLayoutEffect(()=>{const c=s==null?void 0:s.current;if(!c)return;u();const o=new ResizeObserver(u);return o.observe(c),window.addEventListener("resize",u),()=>{o.disconnect(),window.removeEventListener("resize",u)}},[u,s]),[l,u]}function E1(s){if(s<0||!isFinite(s))return"-";if(s===0)return"0";if(s<1e3)return s.toFixed(0)+"ms";const l=s/1e3;if(l<60)return l.toFixed(1)+"s";const i=l/60;if(i<60)return i.toFixed(1)+"m";const u=i/60;return u<24?u.toFixed(1)+"h":(u/24).toFixed(1)+"d"}function eg(s){const l=document.createElement("textarea");l.style.position="absolute",l.style.zIndex="-1000",l.value=s,document.body.appendChild(l),l.select(),document.execCommand("copy"),l.remove()}function pu(s,l){s&&(l=bl.getObject(s,l));const[i,u]=wn.useState(l),c=wn.useCallback(o=>{s?bl.setObject(s,o):u(o)},[s,u]);return wn.useEffect(()=>{if(s){const o=()=>u(bl.getObject(s,l));return bl.onChangeEmitter.addEventListener(s,o),()=>bl.onChangeEmitter.removeEventListener(s,o)}},[l,s]),[i,c]}class A1{constructor(){this.onChangeEmitter=new EventTarget}getString(l,i){return localStorage[l]||i}setString(l,i){var u;localStorage[l]=i,this.onChangeEmitter.dispatchEvent(new Event(l)),(u=window.saveSettings)==null||u.call(window)}getObject(l,i){if(!localStorage[l])return i;try{return JSON.parse(localStorage[l])}catch{return i}}setObject(l,i){var u;localStorage[l]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(l)),(u=window.saveSettings)==null||u.call(window)}}const bl=new A1;function wl(...s){return s.filter(Boolean).join(" ")}const tg="\\u0000-\\u0020\\u007f-\\u009f",w1=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+tg+'"]{2,}[^\\s'+tg+`"')}\\],:;.!?]`,"ug"),O1="system",Cg="theme",_1=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],zg=window.matchMedia("(prefers-color-scheme: dark)");function N1(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",s=>{s.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",s=>{document.body.classList.add("inactive")},!1),Tf(Ef()),zg.addEventListener("change",()=>{Tf(Ef())}))}const M1=new Set;function Tf(s){const l=C1(),i=s==="system"?zg.matches?"dark-mode":"light-mode":s;if(l!==i){l&&document.documentElement.classList.remove(l),document.documentElement.classList.add(i);for(const u of M1)u(i)}}function Ef(){return bl.getString(Cg,O1)}function C1(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function z1(){const[s,l]=wn.useState(Ef());return wn.useEffect(()=>{bl.setString(Cg,s),Tf(s)},[s]),[s,l]}var sf={exports:{}},_i={},uf={exports:{}},cf={};/** - * @license React - * scheduler.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ng;function x1(){return ng||(ng=1,(function(s){function l(D,Q){var ee=D.length;D.push(Q);e:for(;0>>1,_e=D[de];if(0>>1;dec(J,ee))I<_e&&0>c(ce,J)?(D[de]=ce,D[I]=ee,de=I):(D[de]=J,D[$]=ee,de=$);else if(I<_e&&0>c(ce,ee))D[de]=ce,D[I]=ee,de=I;else break e}}return Q}function c(D,Q){var ee=D.sortIndex-Q.sortIndex;return ee!==0?ee:D.id-Q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;s.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();s.unstable_now=function(){return h.now()-m}}var g=[],p=[],E=1,v=null,_=3,A=!1,z=!1,S=!1,T=!1,x=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function X(D){for(var Q=i(p);Q!==null;){if(Q.callback===null)u(p);else if(Q.startTime<=D)u(p),Q.sortIndex=Q.expirationTime,l(g,Q);else break;Q=i(p)}}function W(D){if(S=!1,X(D),!z)if(i(g)!==null)z=!0,K||(K=!0,q());else{var Q=i(p);Q!==null&&ie(W,Q.startTime-D)}}var K=!1,G=-1,V=5,B=-1;function he(){return T?!0:!(s.unstable_now()-BD&&he());){var de=v.callback;if(typeof de=="function"){v.callback=null,_=v.priorityLevel;var _e=de(v.expirationTime<=D);if(D=s.unstable_now(),typeof _e=="function"){v.callback=_e,X(D),Q=!0;break t}v===i(g)&&u(g),X(D)}else u(g);v=i(g)}if(v!==null)Q=!0;else{var O=i(p);O!==null&&ie(W,O.startTime-D),Q=!1}}break e}finally{v=null,_=ee,A=!1}Q=void 0}}finally{Q?q():K=!1}}}var q;if(typeof Y=="function")q=function(){Y(ne)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ze=le.port2;le.port1.onmessage=ne,q=function(){ze.postMessage(null)}}else q=function(){x(ne,0)};function ie(D,Q){G=x(function(){D(s.unstable_now())},Q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(D){D.callback=null},s.unstable_forceFrameRate=function(D){0>D||125de?(D.sortIndex=ee,l(p,D),i(g)===null&&D===i(p)&&(S?(j(G),G=-1):S=!0,ie(W,ee-de))):(D.sortIndex=_e,l(g,D),z||A||(z=!0,K||(K=!0,q()))),D},s.unstable_shouldYield=he,s.unstable_wrapCallback=function(D){var Q=_;return function(){var ee=_;_=Q;try{return D.apply(this,arguments)}finally{_=ee}}}})(cf)),cf}var lg;function D1(){return lg||(lg=1,uf.exports=x1()),uf.exports}var rf={exports:{}},st={};/** - * @license React - * react-dom.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ag;function L1(){if(ag)return st;ag=1;var s=xf();function l(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),rf.exports=L1(),rf.exports}/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var sg;function j1(){if(sg)return _i;sg=1;var s=D1(),l=xf(),i=U1();function u(e){var t="https://react.dev/errors/"+e;if(1_e||(e.current=de[_e],de[_e]=null,_e--)}function J(e,t){_e++,de[_e]=e.current,e.current=t}var I=O(null),ce=O(null),me=O(null),Ae=O(null);function rt(e,t){switch(J(me,t),J(ce,e),J(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bm(t),e=Sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(I),J(I,e)}function $e(){$(I),$(ce),$(me)}function Da(e){e.memoizedState!==null&&J(Ae,e);var t=I.current,n=Sm(t,e.type);t!==n&&(J(ce,e),J(I,n))}function ki(e){ce.current===e&&($(I),$(ce)),Ae.current===e&&($(Ae),Ti._currentValue=ee)}var qu,Zf;function el(e){if(qu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qu=t&&t[1]||"",Zf=-1)":-1r||b[a]!==C[r]){var R=` -`+b[a].replace(" at new "," at ");return e.displayName&&R.includes("")&&(R=R.replace("",e.displayName)),R}while(1<=a&&0<=r);break}}}finally{Hu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?el(n):""}function Jp(e,t){switch(e.tag){case 26:case 27:case 5:return el(e.type);case 16:return el("Lazy");case 13:return e.child!==t&&t!==null?el("Suspense Fallback"):el("Suspense");case 19:return el("SuspenseList");case 0:case 15:return $u(e.type,!1);case 11:return $u(e.type.render,!1);case 1:return $u(e.type,!0);case 31:return el("Activity");default:return""}}function Jf(e){try{var t="",n=null;do t+=Jp(e,n),n=e,e=e.return;while(e);return t}catch(a){return` -Error generating stack: `+a.message+` -`+a.stack}}var Yu=Object.prototype.hasOwnProperty,Gu=s.unstable_scheduleCallback,Ku=s.unstable_cancelCallback,Wp=s.unstable_shouldYield,Fp=s.unstable_requestPaint,Et=s.unstable_now,Ip=s.unstable_getCurrentPriorityLevel,Wf=s.unstable_ImmediatePriority,Ff=s.unstable_UserBlockingPriority,qi=s.unstable_NormalPriority,Pp=s.unstable_LowPriority,If=s.unstable_IdlePriority,ey=s.log,ty=s.unstable_setDisableYieldValue,La=null,At=null;function _n(e){if(typeof ey=="function"&&ty(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(La,e)}catch{}}var wt=Math.clz32?Math.clz32:ay,ny=Math.log,ly=Math.LN2;function ay(e){return e>>>=0,e===0?32:31-(ny(e)/ly|0)|0}var Hi=256,$i=262144,Yi=4194304;function tl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,f=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~f,a!==0?r=tl(a):(d&=y,d!==0?r=tl(d):n||(n=y&~e,n!==0&&(r=tl(n))))):(y=a&~f,y!==0?r=tl(y):d!==0?r=tl(d):n||(n=a&~e,n!==0&&(r=tl(n)))),r===0?0:t!==0&&t!==r&&(t&f)===0&&(f=r&-r,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:r}function Ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function iy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pf(){var e=Yi;return Yi<<=1,(Yi&62914560)===0&&(Yi=4194304),e}function Vu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sy(e,t,n,a,r,f){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,b=e.expirationTimes,C=e.hiddenUpdates;for(n=d&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hy=/[\n"\\]/g;function jt(e){return e.replace(hy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fu(e,t,n,a,r,f,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,d,Ut(t)):n!=null?Iu(e,d,Ut(n)):a!=null&&e.removeAttribute("value"),r==null&&f!=null&&(e.defaultChecked=!!f),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Ut(y):e.removeAttribute("name")}function ho(e,t,n,a,r,f,d,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Wu(e);return}n=n!=null?""+Ut(n):"",t=t!=null?""+Ut(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Wu(e)}function Iu(e,t,n){t==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ll(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=!1;if(sn)try{var qa={};Object.defineProperty(qa,"passive",{get:function(){lc=!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{lc=!1}var Mn=null,ac=null,Zi=null;function So(){if(Zi)return Zi;var e,t=ac,n=t.length,a,r="value"in Mn?Mn.value:Mn.textContent,f=r.length;for(e=0;e=Ya),_o=" ",No=!1;function Mo(e,t){switch(e){case"keyup":return Hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Co(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rl=!1;function Yy(e,t){switch(e){case"compositionend":return Co(t);case"keypress":return t.which!==32?null:(No=!0,_o);case"textInput":return e=t.data,e===_o&&No?null:e;default:return null}}function Gy(e,t){if(Rl)return e==="compositionend"||!rc&&Mo(e,t)?(e=So(),Zi=ac=Mn=null,Rl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ro(n)}}function qo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ho(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Fy=sn&&"documentMode"in document&&11>=document.documentMode,kl=null,dc=null,Qa=null,mc=!1;function $o(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mc||kl==null||kl!==Qi(a)||(a=kl,"selectionStart"in a&&hc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Qa&&Va(Qa,a)||(Qa=a,a=$s(dc,"onSelect"),0>=d,r-=d,Ft=1<<32-wt(t)+r|n<fe?(ve=P,P=null):ve=P.sibling;var Te=L(N,P,M[fe],k);if(Te===null){P===null&&(P=ve);break}e&&P&&Te.alternate===null&&t(N,P),w=f(Te,w,fe),Se===null?te=Te:Se.sibling=Te,Se=Te,P=ve}if(fe===M.length)return n(N,P),be&&cn(N,fe),te;if(P===null){for(;fefe?(ve=P,P=null):ve=P.sibling;var Wn=L(N,P,Te.value,k);if(Wn===null){P===null&&(P=ve);break}e&&P&&Wn.alternate===null&&t(N,P),w=f(Wn,w,fe),Se===null?te=Wn:Se.sibling=Wn,Se=Wn,P=ve}if(Te.done)return n(N,P),be&&cn(N,fe),te;if(P===null){for(;!Te.done;fe++,Te=M.next())Te=H(N,Te.value,k),Te!==null&&(w=f(Te,w,fe),Se===null?te=Te:Se.sibling=Te,Se=Te);return be&&cn(N,fe),te}for(P=a(P);!Te.done;fe++,Te=M.next())Te=U(P,N,fe,Te.value,k),Te!==null&&(e&&Te.alternate!==null&&P.delete(Te.key===null?fe:Te.key),w=f(Te,w,fe),Se===null?te=Te:Se.sibling=Te,Se=Te);return e&&P.forEach(function(y1){return t(N,y1)}),be&&cn(N,fe),te}function Ce(N,w,M,k){if(typeof M=="object"&&M!==null&&M.type===S&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case A:e:{for(var te=M.key;w!==null;){if(w.key===te){if(te=M.type,te===S){if(w.tag===7){n(N,w.sibling),k=r(w,M.props.children),k.return=N,N=k;break e}}else if(w.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===V&&hl(te)===w.type){n(N,w.sibling),k=r(w,M.props),Ia(k,M),k.return=N,N=k;break e}n(N,w);break}else t(N,w);w=w.sibling}M.type===S?(k=ul(M.props.children,N.mode,k,M.key),k.return=N,N=k):(k=as(M.type,M.key,M.props,null,N.mode,k),Ia(k,M),k.return=N,N=k)}return d(N);case z:e:{for(te=M.key;w!==null;){if(w.key===te)if(w.tag===4&&w.stateNode.containerInfo===M.containerInfo&&w.stateNode.implementation===M.implementation){n(N,w.sibling),k=r(w,M.children||[]),k.return=N,N=k;break e}else{n(N,w);break}else t(N,w);w=w.sibling}k=Tc(M,N.mode,k),k.return=N,N=k}return d(N);case V:return M=hl(M),Ce(N,w,M,k)}if(ie(M))return F(N,w,M,k);if(q(M)){if(te=q(M),typeof te!="function")throw Error(u(150));return M=te.call(M),ae(N,w,M,k)}if(typeof M.then=="function")return Ce(N,w,os(M),k);if(M.$$typeof===Y)return Ce(N,w,us(N,M),k);hs(N,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,w!==null&&w.tag===6?(n(N,w.sibling),k=r(w,M),k.return=N,N=k):(n(N,w),k=Sc(M,N.mode,k),k.return=N,N=k),d(N)):n(N,w)}return function(N,w,M,k){try{Fa=0;var te=Ce(N,w,M,k);return Jl=null,te}catch(P){if(P===Zl||P===rs)throw P;var Se=_t(29,P,null,N.mode);return Se.lanes=k,Se.return=N,Se}finally{}}}var ml=fh(!0),oh=fh(!1),Ln=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Un(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ee&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=ls(e),Zo(e,null,n),t}return ns(e,a,t,n),ls(e)}function Pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,to(e,n)}}function jc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?r=f=d:f=f.next=d,n=n.next}while(n!==null);f===null?r=f=t:f=f.next=t}else r=f=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:f,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Bc=!1;function ei(){if(Bc){var e=Xl;if(e!==null)throw e}}function ti(e,t,n,a){Bc=!1;var r=e.updateQueue;Ln=!1;var f=r.firstBaseUpdate,d=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var b=y,C=b.next;b.next=null,d===null?f=C:d.next=C,d=b;var R=e.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==d&&(y===null?R.firstBaseUpdate=C:y.next=C,R.lastBaseUpdate=b))}if(f!==null){var H=r.baseState;d=0,R=C=b=null,y=f;do{var L=y.lane&-536870913,U=L!==y.lane;if(U?(ye&L)===L:(a&L)===L){L!==0&&L===Ql&&(Bc=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var F=e,ae=y;L=t;var Ce=n;switch(ae.tag){case 1:if(F=ae.payload,typeof F=="function"){H=F.call(Ce,H,L);break e}H=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ae.payload,L=typeof F=="function"?F.call(Ce,H,L):F,L==null)break e;H=v({},H,L);break e;case 2:Ln=!0}}L=y.callback,L!==null&&(e.flags|=64,U&&(e.flags|=8192),U=r.callbacks,U===null?r.callbacks=[L]:U.push(L))}else U={lane:L,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(C=R=U,b=H):R=R.next=U,d|=L;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;U=y,y=U.next,U.next=null,r.lastBaseUpdate=U,r.shared.pending=null}}while(!0);R===null&&(b=H),r.baseState=b,r.firstBaseUpdate=C,r.lastBaseUpdate=R,f===null&&(r.shared.lanes=0),Hn|=d,e.lanes=d,e.memoizedState=H}}function hh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function dh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ef?f:8;var d=D.T,y={};D.T=y,tr(e,!1,t,n);try{var b=r(),C=D.S;if(C!==null&&C(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=s0(b,a);ai(e,t,R,xt(e))}else ai(e,t,a,xt(e))}catch(H){ai(e,t,{then:function(){},status:"rejected",reason:H},xt())}finally{Q.p=f,d!==null&&y.types!==null&&(d.types=y.types),D.T=d}}function h0(){}function Pc(e,t,n,a){if(e.tag!==5)throw Error(u(476));var r=Vh(e).queue;Kh(e,r,t,ee,n===null?h0:function(){return Qh(e),n(a)})}function Vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qh(e){var t=Vh(e);t.next===null&&(t=e.alternate.memoizedState),ai(e,t.next.queue,{},xt())}function er(){return nt(Ti)}function Xh(){return Ge().memoizedState}function Zh(){return Ge().memoizedState}function d0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xt();e=Un(n);var a=jn(t,e,n);a!==null&&(vt(a,t,n),Pa(a,t,n)),t={cache:Cc()},e.payload=t;return}t=t.return}}function m0(e,t,n){var a=xt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Wh(t,n):(n=vc(e,t,n,a),n!==null&&(vt(n,e,a),Fh(n,t,a)))}function Jh(e,t,n){var a=xt();ai(e,t,n,a)}function ai(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Wh(t,r);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var d=t.lastRenderedState,y=f(d,n);if(r.hasEagerState=!0,r.eagerState=y,Ot(y,d))return ns(e,t,r,0),xe===null&&ts(),!1}catch{}finally{}if(n=vc(e,t,r,a),n!==null)return vt(n,e,a),Fh(n,t,a),!0}return!1}function tr(e,t,n,a){if(a={lane:2,revertLane:Lr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(u(479))}else t=vc(e,n,a,2),t!==null&&vt(t,e,2)}function Es(e){var t=e.alternate;return e===re||t!==null&&t===re}function Wh(e,t){Fl=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,to(e,n)}}var ii={readContext:nt,use:vs,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};ii.useEffectEvent=qe;var Ih={readContext:nt,use:vs,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:jh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ss(4194308,4,qh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){Ss(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var a=e();if(gl){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ft();if(n!==void 0){var r=n(t);if(gl){_n(!0);try{n(t)}finally{_n(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=m0.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Zc(e);var t=e.queue,n=Jh.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Fc,useDeferredValue:function(e,t){var n=ft();return Ic(n,e,t)},useTransition:function(){var e=Zc(!1);return e=Kh.bind(null,re,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=re,r=ft();if(be){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),xe===null)throw Error(u(349));(ye&127)!==0||bh(a,t,n)}r.memoizedState=n;var f={value:n,getSnapshot:t};return r.queue=f,jh(Th.bind(null,a,f,e),[e]),a.flags|=2048,Pl(9,{destroy:void 0},Sh.bind(null,a,f,n,t),null),n},useId:function(){var e=ft(),t=xe.identifierPrefix;if(be){var n=It,a=Ft;n=(a&~(1<<32-wt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ps++,0<\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?f.multiple=!0:a.size&&(f.size=a.size);break;default:f=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}f[et]=t,f[ht]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)f.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=f;e:switch(at(f,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&mn(t)}}return Ue(t),gr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&mn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=me.current,Kl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=tt,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||ym(e.nodeValue,n)),e||xn(t,!0)}else e=Ys(e).createTextNode(a),e[et]=t,t.stateNode=e}return Ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Kl(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[et]=t}else cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else n=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Kl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(u(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[et]=t}else cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),r=!1}else r=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ns(t,t.updateQueue),Ue(t),null);case 4:return $e(),e===null&&Rr(t.stateNode.containerInfo),Ue(t),null;case 10:return fn(t.type),Ue(t),null;case 19:if($(Ye),a=t.memoizedState,a===null)return Ue(t),null;if(r=(t.flags&128)!==0,f=a.rendering,f===null)if(r)ui(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ms(e),f!==null){for(t.flags|=128,ui(a,!1),e=f.updateQueue,t.updateQueue=e,Ns(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jo(n,e),n=n.sibling;return J(Ye,Ye.current&1|2),be&&cn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Et()>Ds&&(t.flags|=128,r=!0,ui(a,!1),t.lanes=4194304)}else{if(!r)if(e=ms(f),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ns(t,e),ui(a,!0),a.tail===null&&a.tailMode==="hidden"&&!f.alternate&&!be)return Ue(t),null}else 2*Et()-a.renderingStartTime>Ds&&n!==536870912&&(t.flags|=128,r=!0,ui(a,!1),t.lanes=4194304);a.isBackwards?(f.sibling=t.child,t.child=f):(e=a.last,e!==null?e.sibling=f:t.child=f,a.last=f)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Et(),e.sibling=null,n=Ye.current,J(Ye,r?n&1|2:n&1),be&&cn(t,a.treeForkCount),e):(Ue(t),null);case 22:case 23:return Mt(t),kc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),n=t.updateQueue,n!==null&&Ns(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&$(ol),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Ve),Ue(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function b0(e,t){switch(Ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Ve),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ki(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(u(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Ye),null;case 4:return $e(),null;case 10:return fn(t.type),null;case 22:case 23:return Mt(t),kc(),e!==null&&$(ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Ve),null;case 25:return null;default:return null}}function Ed(e,t){switch(Ac(t),t.tag){case 3:fn(Ve),$e();break;case 26:case 27:case 5:ki(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:$(Ye);break;case 10:fn(t.type);break;case 22:case 23:Mt(t),kc(),e!==null&&$(ol);break;case 24:fn(Ve)}}function ci(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var f=n.create,d=n.inst;a=f(),d.destroy=a}n=n.next}while(n!==r)}}catch(y){Oe(t,t.return,y)}}function kn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var f=r.next;a=f;do{if((a.tag&e)===e){var d=a.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,r=t;var b=n,C=y;try{C()}catch(R){Oe(r,b,R)}}}a=a.next}while(a!==f)}}catch(R){Oe(t,t.return,R)}}function Ad(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{dh(t,n)}catch(a){Oe(e,e.return,a)}}}function wd(e,t,n){n.props=pl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Oe(e,t,a)}}function ri(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){Oe(e,t,r)}}function Pt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){Oe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function Od(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){Oe(e,e.return,r)}}function pr(e,t,n){try{var a=e.stateNode;$0(a,e.type,n,t),a[ht]=t}catch(r){Oe(e,e.return,r)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vn(e.type)||e.tag===4}function yr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Vn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(a!==4&&(a===27&&Vn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(vr(e,t,n),e=e.sibling;e!==null;)vr(e,t,n),e=e.sibling}function Ms(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Vn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function Nd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);at(t,a,n),t[et]=e,t[ht]=n}catch(f){Oe(e,e.return,f)}}var gn=!1,Ze=!1,br=!1,Md=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function S0(e,t){if(e=e.containerInfo,Hr=Js,e=Ho(e),hc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var d=0,y=-1,b=-1,C=0,R=0,H=e,L=null;t:for(;;){for(var U;H!==n||r!==0&&H.nodeType!==3||(y=d+r),H!==f||a!==0&&H.nodeType!==3||(b=d+a),H.nodeType===3&&(d+=H.nodeValue.length),(U=H.firstChild)!==null;)L=H,H=U;for(;;){if(H===e)break t;if(L===n&&++C===r&&(y=d),L===f&&++R===a&&(b=d),(U=H.nextSibling)!==null)break;H=L,L=H.parentNode}H=U}n=y===-1||b===-1?null:{start:y,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for($r={focusedElem:e,selectionRange:n},Js=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n title"))),at(f,a,n),f[et]=e,Ie(f),a=f;break e;case"link":var d=Um("link","href",r).get(a+(n.href||""));if(d){for(var y=0;yCe&&(d=Ce,Ce=ae,ae=d);var N=ko(y,ae),w=ko(y,Ce);if(N&&w&&(U.rangeCount!==1||U.anchorNode!==N.node||U.anchorOffset!==N.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var M=H.createRange();M.setStart(N.node,N.offset),U.removeAllRanges(),ae>Ce?(U.addRange(M),U.extend(w.node,w.offset)):(M.setEnd(w.node,w.offset),U.addRange(M))}}}}for(H=[],U=y;U=U.parentNode;)U.nodeType===1&&H.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;yn?32:n,D.T=null,n=_r,_r=null;var f=Yn,d=Sn;if(We=0,aa=Yn=null,Sn=0,(Ee&6)!==0)throw Error(u(331));var y=Ee;if(Ee|=4,qd(f.current),Bd(f,f.current,d,n),Ee=y,gi(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(La,f)}catch{}return!0}finally{Q.p=r,D.T=a,lm(e,t)}}function im(e,t,n){t=Rt(n,t),t=ir(e.stateNode,t,2),e=jn(e,t,2),e!==null&&(ja(e,2),en(e))}function Oe(e,t,n){if(e.tag===3)im(e,e,n);else for(;t!==null;){if(t.tag===3){im(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&($n===null||!$n.has(a))){e=Rt(n,e),n=sd(2),a=jn(t,n,2),a!==null&&(ud(n,a,t,e),ja(a,2),en(a));break}}t=t.return}}function zr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new A0;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(Er=!0,r.add(n),e=M0.bind(null,e,t,n),t.then(e,e))}function M0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xe===e&&(ye&n)===n&&(He===4||He===3&&(ye&62914560)===ye&&300>Et()-xs?(Ee&2)===0&&ia(e,0):Ar|=n,la===ye&&(la=0)),en(e)}function sm(e,t){t===0&&(t=Pf()),e=sl(e,t),e!==null&&(ja(e,t),en(e))}function C0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sm(e,n)}function z0(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),sm(e,n)}function x0(e,t){return Gu(e,t)}var ks=null,ua=null,xr=!1,qs=!1,Dr=!1,Kn=0;function en(e){e!==ua&&e.next===null&&(ua===null?ks=ua=e:ua=ua.next=e),qs=!0,xr||(xr=!0,L0())}function gi(e,t){if(!Dr&&qs){Dr=!0;do for(var n=!1,a=ks;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var f=0;else{var d=a.suspendedLanes,y=a.pingedLanes;f=(1<<31-wt(42|e)+1)-1,f&=r&~(d&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,fm(a,f))}else f=ye,f=Gi(a,a===xe?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(f&3)===0||Ua(a,f)||(n=!0,fm(a,f));a=a.next}while(n);Dr=!1}}function D0(){um()}function um(){qs=xr=!1;var e=0;Kn!==0&&G0()&&(e=Kn);for(var t=Et(),n=null,a=ks;a!==null;){var r=a.next,f=cm(a,t);f===0?(a.next=null,n===null?ks=r:n.next=r,r===null&&(ua=n)):(n=a,(e!==0||(f&3)!==0)&&(qs=!0)),a=r}We!==0&&We!==5||gi(e),Kn!==0&&(Kn=0)}function cm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,f=e.pendingLanes&-62914561;0y)break;var R=b.transferSize,H=b.initiatorType;R&&vm(H)&&(b=b.responseEnd,d+=R*(b"u"?null:document;function zm(e,t,n){var a=ca;if(a&&typeof t=="string"&&t){var r=jt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Cm.has(r)||(Cm.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),at(t,"link",e),Ie(t),a.head.appendChild(t)))}}function I0(e){Tn.D(e),zm("dns-prefetch",e,null)}function P0(e,t){Tn.C(e,t),zm("preconnect",e,t)}function e1(e,t,n){Tn.L(e,t,n);var a=ca;if(a&&e&&t){var r='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+jt(n.imageSizes)+'"]')):r+='[href="'+jt(e)+'"]';var f=r;switch(t){case"style":f=ra(e);break;case"script":f=fa(e)}Gt.has(f)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(f,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(bi(f))||t==="script"&&a.querySelector(Si(f))||(t=a.createElement("link"),at(t,"link",e),Ie(t),a.head.appendChild(t)))}}function t1(e,t){Tn.m(e,t);var n=ca;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',f=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=fa(e)}if(!Gt.has(f)&&(e=v({rel:"modulepreload",href:e},t),Gt.set(f,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Si(f)))return}a=n.createElement("link"),at(a,"link",e),Ie(a),n.head.appendChild(a)}}}function n1(e,t,n){Tn.S(e,t,n);var a=ca;if(a&&e){var r=xl(a).hoistableStyles,f=ra(e);t=t||"default";var d=r.get(f);if(!d){var y={loading:0,preload:null};if(d=a.querySelector(bi(f)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(f))&&Zr(e,n);var b=d=a.createElement("link");Ie(b),at(b,"link",e),b._p=new Promise(function(C,R){b.onload=C,b.onerror=R}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ks(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:y},r.set(f,d)}}}function l1(e,t){Tn.X(e,t);var n=ca;if(n&&e){var a=xl(n).hoistableScripts,r=fa(e),f=a.get(r);f||(f=n.querySelector(Si(r)),f||(e=v({src:e,async:!0},t),(t=Gt.get(r))&&Jr(e,t),f=n.createElement("script"),Ie(f),at(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(r,f))}}function a1(e,t){Tn.M(e,t);var n=ca;if(n&&e){var a=xl(n).hoistableScripts,r=fa(e),f=a.get(r);f||(f=n.querySelector(Si(r)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Gt.get(r))&&Jr(e,t),f=n.createElement("script"),Ie(f),at(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(r,f))}}function xm(e,t,n,a){var r=(r=me.current)?Gs(r):null;if(!r)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ra(n.href),n=xl(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ra(n.href);var f=xl(r).hoistableStyles,d=f.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,d),(f=r.querySelector(bi(e)))&&!f._p&&(d.instance=f,d.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),f||i1(r,e,n,d.state))),t&&a===null)throw Error(u(528,""));return d}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=fa(n),n=xl(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ra(e){return'href="'+jt(e)+'"'}function bi(e){return'link[rel="stylesheet"]['+e+"]"}function Dm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function i1(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),at(t,"link",n),Ie(t),e.head.appendChild(t))}function fa(e){return'[src="'+jt(e)+'"]'}function Si(e){return"script[async]"+e}function Lm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(n.href)+'"]');if(a)return t.instance=a,Ie(a),a;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ie(a),at(a,"style",r),Ks(a,n.precedence,e),t.instance=a;case"stylesheet":r=ra(n.href);var f=e.querySelector(bi(r));if(f)return t.state.loading|=4,t.instance=f,Ie(f),f;a=Dm(n),(r=Gt.get(r))&&Zr(a,r),f=(e.ownerDocument||e).createElement("link"),Ie(f);var d=f;return d._p=new Promise(function(y,b){d.onload=y,d.onerror=b}),at(f,"link",a),t.state.loading|=4,Ks(f,n.precedence,e),t.instance=f;case"script":return f=fa(n.src),(r=e.querySelector(Si(f)))?(t.instance=r,Ie(r),r):(a=n,(r=Gt.get(f))&&(a=v({},n),Jr(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ie(r),at(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ks(a,n.precedence,e));return t.instance}function Ks(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,f=r,d=0;d title"):null)}function s1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function u1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=ra(a.href),f=t.querySelector(bi(r));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=f,Ie(f);return}f=t.ownerDocument||t,a=Dm(a),(r=Gt.get(r))&&Zr(a,r),f=f.createElement("link"),Ie(f);var d=f;d._p=new Promise(function(y,b){d.onload=y,d.onerror=b}),at(f,"link",a),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wr=0;function c1(e,t){return e.stylesheets&&e.count===0&&Zs(e,e.stylesheets),0Wr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function Qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xs=null;function Zs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xs=new Map,t.forEach(r1,e),Xs=null,Qs.call(e))}function r1(e,t){if(!(t.state.loading&4)){var n=Xs.get(e);if(n)var a=n.get(null);else{n=new Map,Xs.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),sf.exports=j1(),sf.exports}var R1=B1();const k1="modulepreload",q1=function(s){return"/"+s},cg={},H1=function(l,i,u){let c=Promise.resolve();if(i&&i.length>0){let h=function(p){return Promise.all(p.map(E=>Promise.resolve(E).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));c=h(i.map(p=>{if(p=q1(p),p in cg)return;cg[p]=!0;const E=p.endsWith(".css"),v=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=E?"stylesheet":k1,E||(_.as="script"),_.crossOrigin="",_.href=p,g&&_.setAttribute("nonce",g),document.head.appendChild(_),E)return new Promise((A,z)=>{_.addEventListener("load",A),_.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return l().catch(o)})};function $1(s,l){const i=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,u=[];let c,o={},h=!1,m=l==null?void 0:l.fg,g=l==null?void 0:l.bg;for(;(c=i.exec(s))!==null;){const[,,p,,E]=c;if(p){const v=+p;switch(v){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:h=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:h=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:m=rg[v-30];break;case 39:m=l==null?void 0:l.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:g=rg[v-40];break;case 49:g=l==null?void 0:l.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:m=fg[v-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:g=fg[v-100];break}}else if(E){const v={...o},_=h?g:m;_!==void 0&&(v.color=_);const A=h?m:g;A!==void 0&&(v["background-color"]=A),u.push(`${Y1(E)}`)}}return u.join("")}const rg={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},fg={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function Y1(s){return s.replace(/[&"<>]/g,l=>({"&":"&",'"':""","<":"<",">":">"})[l])}function G1(s){return Object.entries(s).map(([l,i])=>`${l}: ${i}`).join("; ")}const ff=({text:s,highlighter:l,mimeType:i,linkify:u,readOnly:c,highlight:o,revealLine:h,lineNumbers:m,isFocused:g,focusOnChange:p,wrapLines:E,onChange:v,dataTestId:_,placeholder:A})=>{const[z,S]=Mg(),[T]=oe.useState(H1(()=>import("./codeMirrorModule-DadYNm1I.js"),__vite__mapDeps([0,1])).then(X=>X.default)),x=oe.useRef(null),[j,Y]=oe.useState();return oe.useEffect(()=>{(async()=>{var V,B;const X=await T;V1(X);const W=S.current;if(!W)return;const K=X1(l)||Q1(i)||(u?"text/linkified":"");if(x.current&&K===x.current.cm.getOption("mode")&&!!c===x.current.cm.getOption("readOnly")&&m===x.current.cm.getOption("lineNumbers")&&E===x.current.cm.getOption("lineWrapping")&&A===x.current.cm.getOption("placeholder"))return;(B=(V=x.current)==null?void 0:V.cm)==null||B.getWrapperElement().remove();const G=X(W,{value:"",mode:K,readOnly:!!c,lineNumbers:m,lineWrapping:E,placeholder:A,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return x.current={cm:G},g&&G.focus(),Y(G),G})()},[T,j,S,l,i,u,m,E,c,g,A]),oe.useEffect(()=>{x.current&&x.current.cm.setSize(z.width,z.height)},[z]),oe.useLayoutEffect(()=>{var K;if(!j)return;let X=!1;if(j.getValue()!==s&&(j.setValue(s),X=!0,p&&(j.execCommand("selectAll"),j.focus())),X||JSON.stringify(o)!==JSON.stringify(x.current.highlight)){for(const B of x.current.highlight||[])j.removeLineClass(B.line-1,"wrap");for(const B of o||[])j.addLineClass(B.line-1,"wrap",`source-line-${B.type}`);for(const B of x.current.widgets||[])j.removeLineWidget(B);for(const B of x.current.markers||[])B.clear();const G=[],V=[];for(const B of o||[]){if(B.type!=="subtle-error"&&B.type!=="error")continue;const he=(K=x.current)==null?void 0:K.cm.getLine(B.line-1);if(he){const ne={};ne.title=B.message||"",V.push(j.markText({line:B.line-1,ch:0},{line:B.line-1,ch:B.column||he.length},{className:"source-line-error-underline",attributes:ne}))}if(B.type==="error"){const ne=document.createElement("div");ne.innerHTML=$1(B.message||""),ne.className="source-line-error-widget",G.push(j.addLineWidget(B.line,ne,{above:!0,coverGutter:!1}))}}x.current.highlight=o,x.current.widgets=G,x.current.markers=V}typeof h=="number"&&x.current.cm.lineCount()>=h&&j.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let W;return v&&(W=()=>v(j.getValue()),j.on("change",W)),()=>{W&&j.off("change",W)}},[j,s,o,h,p,v]),Z.jsx("div",{"data-testid":_,className:"cm-wrapper",ref:S,onClick:K1})};function K1(s){var i;if(!(s.target instanceof HTMLElement))return;let l;s.target.classList.contains("cm-linkified")?l=s.target.textContent:s.target.classList.contains("cm-link")&&((i=s.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(l=s.target.nextElementSibling.textContent.slice(1,-1)),l&&(s.preventDefault(),s.stopPropagation(),window.open(l,"_blank"))}let og=!1;function V1(s){og||(og=!0,s.defineSimpleMode("text/linkified",{start:[{regex:w1,token:"linkified"}]}))}function Q1(s){if(s){if(s.includes("javascript")||s.includes("json"))return"javascript";if(s.includes("python"))return"python";if(s.includes("csharp"))return"text/x-csharp";if(s.includes("java"))return"text/x-java";if(s.includes("markdown"))return"markdown";if(s.includes("html")||s.includes("svg"))return"htmlmixed";if(s.includes("css"))return"css"}}function X1(s){if(s)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[s]}const Z1=50,J1=({sidebarSize:s,sidebarHidden:l=!1,sidebarIsFirst:i=!1,orientation:u="vertical",minSidebarSize:c=Z1,settingName:o,sidebar:h,main:m})=>{const g=Math.max(c,s)*window.devicePixelRatio,[p,E]=pu(o?o+"."+u+":size":void 0,g),[v,_]=pu(o?o+"."+u+":size":void 0,g),[A,z]=oe.useState(null),[S,T]=Mg();let x;u==="vertical"?(x=v/window.devicePixelRatio,S&&S.heightz({offset:u==="vertical"?Y.clientY:Y.clientX,size:x}),onMouseUp:()=>z(null),onMouseMove:Y=>{if(!Y.buttons)z(null);else if(A){const W=(u==="vertical"?Y.clientY:Y.clientX)-A.offset,K=i?A.size+W:A.size-W,V=Y.target.parentElement.getBoundingClientRect(),B=Math.min(Math.max(c,K),(u==="vertical"?V.height:V.width)-c);u==="vertical"?_(B*window.devicePixelRatio):E(B*window.devicePixelRatio)}}})]})},xg=({noShadow:s,children:l,noMinHeight:i,className:u,sidebarBackground:c,onClick:o})=>Z.jsx("div",{className:wl("toolbar",s&&"no-shadow",i&&"no-min-height",u,c&&"toolbar-sidebar-background"),onClick:o,children:l}),W1=({tabs:s,selectedTab:l,setSelectedTab:i,leftToolbar:u,rightToolbar:c,dataTestId:o,mode:h})=>{const m=oe.useId();return l||(l=s[0].id),h||(h="default"),Z.jsx("div",{className:"tabbed-pane","data-testid":o,children:Z.jsxs("div",{className:"vbox",children:[Z.jsxs(xg,{children:[u&&Z.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...u]}),h==="default"&&Z.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...s.map(g=>Z.jsx(F1,{id:g.id,ariaControls:`${m}-${g.id}`,title:g.title,count:g.count,errorCount:g.errorCount,selected:l===g.id,onSelect:i},g.id))]}),h==="select"&&Z.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:Z.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:l,onChange:g=>{i==null||i(s[g.currentTarget.selectedIndex].id)},children:s.map(g=>{let p="";return g.count&&(p=` (${g.count})`),g.errorCount&&(p=` (${g.errorCount})`),Z.jsxs("option",{value:g.id,role:"tab","aria-controls":`${m}-${g.id}`,children:[g.title,p]},g.id)})})}),c&&Z.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...c]})]}),s.map(g=>{const p="tab-content tab-"+g.id;if(g.component)return Z.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,style:{display:l===g.id?"inherit":"none"},children:g.component},g.id);if(l===g.id)return Z.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,children:g.render()},g.id)})]})})},F1=({id:s,title:l,count:i,errorCount:u,selected:c,onSelect:o,ariaControls:h})=>Z.jsxs("div",{className:wl("tabbed-pane-tab",c&&"selected"),onClick:()=>o==null?void 0:o(s),role:"tab",title:l,"aria-controls":h,"aria-selected":c,children:[Z.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!i&&Z.jsx("div",{className:"tabbed-pane-tab-counter",children:i}),!!u&&Z.jsx("div",{className:"tabbed-pane-tab-counter error",children:u})]}),I1=({sources:s,fileId:l,setFileId:i})=>Z.jsx("select",{className:"source-chooser",hidden:!s.length,title:"Source chooser",value:l,onChange:u=>{i(u.target.selectedOptions[0].value)},children:P1(s)});function P1(s){const l=c=>c.replace(/.*[/\\]([^/\\]+)/,"$1"),i=c=>Z.jsx("option",{value:c.id,children:l(c.label)},c.id),u=new Map;for(const c of s){let o=u.get(c.group||"Debugger");o||(o=[],u.set(c.group||"Debugger",o)),o.push(c)}return[...u.entries()].map(([c,o])=>Z.jsx("optgroup",{label:c,children:o.filter(h=>(h.group||"Debugger")===c).map(h=>i(h))},c))}function ev(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const Dt=oe.forwardRef(function({children:l,title:i="",icon:u,disabled:c=!1,toggled:o=!1,onClick:h=()=>{},style:m,testId:g,className:p,ariaLabel:E},v){return Z.jsxs("button",{ref:v,className:wl(p,"toolbar-button",u,o&&"toggled"),onMouseDown:dg,onClick:h,onDoubleClick:dg,title:i,disabled:!!c,style:m,"data-testid":g,"aria-label":E||i,children:[u&&Z.jsx("span",{className:`codicon codicon-${u}`,style:l?{marginRight:5}:{}}),l]})}),hg=({style:s})=>Z.jsx("div",{className:"toolbar-separator",style:s}),dg=s=>{s.stopPropagation(),s.preventDefault()},Je=function(s,l,i){return s>=l&&s<=i};function bt(s){return Je(s,48,57)}function mg(s){return bt(s)||Je(s,65,70)||Je(s,97,102)}function tv(s){return Je(s,65,90)}function nv(s){return Je(s,97,122)}function lv(s){return tv(s)||nv(s)}function av(s){return s>=128}function uu(s){return lv(s)||av(s)||s===95}function gg(s){return uu(s)||bt(s)||s===45}function iv(s){return Je(s,0,8)||s===11||Je(s,14,31)||s===127}function cu(s){return s===10}function En(s){return cu(s)||s===9||s===32}const sv=1114111;class Df extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function uv(s){const l=[];for(let i=0;i=l.length?-1:l[q]},h=function(q){if(q===void 0&&(q=1),q>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+q)},m=function(q){return q===void 0&&(q=1),i+=q,c=o(i),!0},g=function(){return i-=1,!0},p=function(q){return q===void 0&&(q=c),q===-1},E=function(){if(v(),m(),En(c)){for(;En(h());)m();return new Af}else{if(c===34)return z();if(c===35)if(gg(h())||x(h(1),h(2))){const q=new Qg("");return Y(h(1),h(2),h(3))&&(q.type="id"),q.value=G(),q}else return new ut(c);else return c===36?h()===61?(m(),new hv):new ut(c):c===39?z():c===40?new $g:c===41?new Yg:c===42?h()===61?(m(),new dv):new ut(c):c===43?K()?(g(),_()):new ut(c):c===44?new Rg:c===45?K()?(g(),_()):h(1)===45&&h(2)===62?(m(2),new Ug):X()?(g(),A()):new ut(c):c===46?K()?(g(),_()):new ut(c):c===58?new jg:c===59?new Bg:c===60?h(1)===33&&h(2)===45&&h(3)===45?(m(3),new Lg):new ut(c):c===64?Y(h(1),h(2),h(3))?new Vg(G()):new ut(c):c===91?new Hg:c===92?j()?(g(),A()):new ut(c):c===93?new wf:c===94?h()===61?(m(),new ov):new ut(c):c===123?new kg:c===124?h()===61?(m(),new fv):h()===124?(m(),new Gg):new ut(c):c===125?new qg:c===126?h()===61?(m(),new rv):new ut(c):bt(c)?(g(),_()):uu(c)?(g(),A()):p()?new fu:new ut(c)}},v=function(){for(;h(1)===47&&h(2)===42;)for(m(2);;)if(m(),c===42&&h()===47){m();break}else if(p())return},_=function(){const q=V();if(Y(h(1),h(2),h(3))){const le=new mv;return le.value=q.value,le.repr=q.repr,le.type=q.type,le.unit=G(),le}else if(h()===37){m();const le=new Wg;return le.value=q.value,le.repr=q.repr,le}else{const le=new Jg;return le.value=q.value,le.repr=q.repr,le.type=q.type,le}},A=function(){const q=G();if(q.toLowerCase()==="url"&&h()===40){for(m();En(h(1))&&En(h(2));)m();return h()===34||h()===39?new ou(q):En(h())&&(h(2)===34||h(2)===39)?new ou(q):S()}else return h()===40?(m(),new ou(q)):new Kg(q)},z=function(q){q===void 0&&(q=c);let le="";for(;m();){if(c===q||p())return new Xg(le);if(cu(c))return g(),new Dg;c===92?p(h())||(cu(h())?m():le+=Fe(T())):le+=Fe(c)}throw new Error("Internal error")},S=function(){const q=new Zg("");for(;En(h());)m();if(p(h()))return q;for(;m();){if(c===41||p())return q;if(En(c)){for(;En(h());)m();return h()===41||p(h())?(m(),q):(he(),new ru)}else{if(c===34||c===39||c===40||iv(c))return he(),new ru;if(c===92)if(j())q.value+=Fe(T());else return he(),new ru;else q.value+=Fe(c)}}throw new Error("Internal error")},T=function(){if(m(),mg(c)){const q=[c];for(let ze=0;ze<5&&mg(h());ze++)m(),q.push(c);En(h())&&m();let le=parseInt(q.map(function(ze){return String.fromCharCode(ze)}).join(""),16);return le>sv&&(le=65533),le}else return p()?65533:c},x=function(q,le){return!(q!==92||cu(le))},j=function(){return x(c,h())},Y=function(q,le,ze){return q===45?uu(le)||le===45||x(le,ze):uu(q)?!0:q===92?x(q,le):!1},X=function(){return Y(c,h(1),h(2))},W=function(q,le,ze){return q===43||q===45?!!(bt(le)||le===46&&bt(ze)):q===46?!!bt(le):!!bt(q)},K=function(){return W(c,h(1),h(2))},G=function(){let q="";for(;m();)if(gg(c))q+=Fe(c);else if(j())q+=Fe(T());else return g(),q;throw new Error("Internal parse error")},V=function(){let q="",le="integer";for((h()===43||h()===45)&&(m(),q+=Fe(c));bt(h());)m(),q+=Fe(c);if(h(1)===46&&bt(h(2)))for(m(),q+=Fe(c),m(),q+=Fe(c),le="number";bt(h());)m(),q+=Fe(c);const ze=h(1),ie=h(2),D=h(3);if((ze===69||ze===101)&&bt(ie))for(m(),q+=Fe(c),m(),q+=Fe(c),le="number";bt(h());)m(),q+=Fe(c);else if((ze===69||ze===101)&&(ie===43||ie===45)&&bt(D))for(m(),q+=Fe(c),m(),q+=Fe(c),m(),q+=Fe(c),le="number";bt(h());)m(),q+=Fe(c);const Q=B(q);return{type:le,value:Q,repr:q}},B=function(q){return+q},he=function(){for(;m();){if(c===41||p())return;j()&&T()}};let ne=0;for(;!p(h());)if(u.push(E()),ne++,ne>l.length*2)throw new Error("I'm infinite-looping!");return u}class Ke{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Dg extends Ke{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class ru extends Ke{constructor(){super(...arguments),this.tokenType="BADURL"}}class Af extends Ke{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Lg extends Ke{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return""}}class jg extends Ke{constructor(){super(...arguments),this.tokenType=":"}}class Bg extends Ke{constructor(){super(...arguments),this.tokenType=";"}}class Rg extends Ke{constructor(){super(...arguments),this.tokenType=","}}class wa extends Ke{constructor(){super(...arguments),this.value="",this.mirror=""}}class kg extends wa{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class qg extends wa{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Hg extends wa{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class wf extends wa{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class $g extends wa{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Yg extends wa{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class rv extends Ke{constructor(){super(...arguments),this.tokenType="~="}}class fv extends Ke{constructor(){super(...arguments),this.tokenType="|="}}class ov extends Ke{constructor(){super(...arguments),this.tokenType="^="}}class hv extends Ke{constructor(){super(...arguments),this.tokenType="$="}}class dv extends Ke{constructor(){super(...arguments),this.tokenType="*="}}class Gg extends Ke{constructor(){super(...arguments),this.tokenType="||"}}class fu extends Ke{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class ut extends Ke{constructor(l){super(),this.tokenType="DELIM",this.value="",this.value=Fe(l)}toString(){return"DELIM("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}toSource(){return this.value==="\\"?`\\ -`:this.value}}class Oa extends Ke{constructor(){super(...arguments),this.value=""}ASCIIMatch(l){return this.value.toLowerCase()===l.toLowerCase()}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}}class Kg extends Oa{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return Ui(this.value)}}class ou extends Oa{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Ui(this.value)+"("}}class Vg extends Oa{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+Ui(this.value)}}class Qg extends Oa{constructor(l){super(),this.tokenType="HASH",this.value=l,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l}toSource(){return this.type==="id"?"#"+Ui(this.value):"#"+gv(this.value)}}class Xg extends Oa{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Fg(this.value)+'"'}}class Zg extends Oa{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Fg(this.value)+'")'}}class Jg extends Ke{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const l=super.toJSON();return l.value=this.value,l.type=this.type,l.repr=this.repr,l}toSource(){return this.repr}}class Wg extends Ke{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.repr=this.repr,l}toSource(){return this.repr+"%"}}class mv extends Ke{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l.repr=this.repr,l.unit=this.unit,l}toSource(){const l=this.repr;let i=Ui(this.unit);return i[0].toLowerCase()==="e"&&(i[1]==="-"||Je(i.charCodeAt(1),48,57))&&(i="\\65 "+i.slice(1,i.length)),l+i}}function Ui(s){s=""+s;let l="";const i=s.charCodeAt(0);for(let u=0;u=128||c===45||c===95||Je(c,48,57)||Je(c,65,90)||Je(c,97,122)?l+=s[u]:l+="\\"+s[u]}return l}function gv(s){s=""+s;let l="";for(let i=0;i=128||u===45||u===95||Je(u,48,57)||Je(u,65,90)||Je(u,97,122)?l+=s[i]:l+="\\"+u.toString(16)+" "}return l}function Fg(s){s=""+s;let l="";for(let i=0;iB instanceof Vg||B instanceof Dg||B instanceof ru||B instanceof Gg||B instanceof Lg||B instanceof Ug||B instanceof Bg||B instanceof kg||B instanceof qg||B instanceof Zg||B instanceof Wg);if(u)throw new St(`Unsupported token "${u.toSource()}" while parsing css selector "${s}". Did you mean to CSS.escape it?`);let c=0;const o=new Set;function h(){return new St(`Unexpected token "${i[c].toSource()}" while parsing css selector "${s}". Did you mean to CSS.escape it?`)}function m(){for(;i[c]instanceof Af;)c++}function g(B=c){return i[B]instanceof Kg}function p(B=c){return i[B]instanceof Xg}function E(B=c){return i[B]instanceof Jg}function v(B=c){return i[B]instanceof Rg}function _(B=c){return i[B]instanceof $g}function A(B=c){return i[B]instanceof Yg}function z(B=c){return i[B]instanceof ou}function S(B=c){return i[B]instanceof ut&&i[B].value==="*"}function T(B=c){return i[B]instanceof fu}function x(B=c){return i[B]instanceof ut&&[">","+","~"].includes(i[B].value)}function j(B=c){return v(B)||A(B)||T(B)||x(B)||i[B]instanceof Af}function Y(){const B=[X()];for(;m(),!!v();)c++,B.push(X());return B}function X(){return m(),E()||p()?i[c++].value:W()}function W(){const B={simples:[]};for(m(),x()?B.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):B.simples.push({selector:K(),combinator:""});;){if(m(),x())B.simples[B.simples.length-1].combinator=i[c++].value,m();else if(j())break;B.simples.push({combinator:"",selector:K()})}return B}function K(){let B="";const he=[];for(;!j();)if(g()||S())B+=i[c++].toSource();else if(i[c]instanceof Qg)B+=i[c++].toSource();else if(i[c]instanceof ut&&i[c].value===".")if(c++,g())B+="."+i[c++].toSource();else throw h();else if(i[c]instanceof jg)if(c++,g())if(!l.has(i[c].value.toLowerCase()))B+=":"+i[c++].toSource();else{const ne=i[c++].value.toLowerCase();he.push({name:ne,args:[]}),o.add(ne)}else if(z()){const ne=i[c++].value.toLowerCase();if(l.has(ne)?(he.push({name:ne,args:Y()}),o.add(ne)):B+=`:${ne}(${G()})`,m(),!A())throw h();c++}else throw h();else if(i[c]instanceof Hg){for(B+="[",c++;!(i[c]instanceof wf)&&!T();)B+=i[c++].toSource();if(!(i[c]instanceof wf))throw h();B+="]",c++}else throw h();if(!B&&!he.length)throw h();return{css:B||void 0,functions:he}}function G(){let B="",he=1;for(;!T()&&((_()||z())&&he++,A()&&he--,!!he);)B+=i[c++].toSource();return B}const V=Y();if(!T())throw h();if(V.some(B=>typeof B!="object"||!("simples"in B)))throw new St(`Error while parsing css selector "${s}". Did you mean to CSS.escape it?`);return{selector:V,names:Array.from(o)}}const pg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),yv=new Set(["left-of","right-of","above","below","near"]),vv=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Ig(s){const l=Sv(s),i=[];for(const u of l.parts){if(u.name==="css"||u.name==="css:light"){u.name==="css:light"&&(u.body=":light("+u.body+")");const c=pv(u.body,vv);i.push({name:"css",body:c.selector,source:u.body});continue}if(pg.has(u.name)){let c,o;try{const p=JSON.parse("["+u.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new St(`Malformed selector: ${u.name}=`+u.body);if(c=p[0],p.length===2){if(typeof p[1]!="number"||!yv.has(u.name))throw new St(`Malformed selector: ${u.name}=`+u.body);o=p[1]}}catch{throw new St(`Malformed selector: ${u.name}=`+u.body)}const h={name:u.name,source:u.body,body:{parsed:Ig(c),distance:o}},m=[...h.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),g=m?h.body.parsed.parts.indexOf(m):-1;g!==-1&&bv(h.body.parsed.parts.slice(0,g+1),i.slice(0,g+1))&&h.body.parsed.parts.splice(0,g+1),i.push(h);continue}i.push({...u,source:u.body})}if(pg.has(i[0].name))throw new St(`"${i[0].name}" selector cannot be first`);return{capture:l.capture,parts:i}}function bv(s,l){return ga({parts:s})===ga({parts:l})}function ga(s,l){return typeof s=="string"?s:s.parts.map((i,u)=>{let c=!0;!l&&u!==s.capture&&(i.name==="css"||i.name==="xpath"&&i.source.startsWith("//")||i.source.startsWith(".."))&&(c=!1);const o=c?i.name+"=":"";return`${u===s.capture?"*":""}${o}${i.source}`}).join(" >> ")}function Sv(s){let l=0,i,u=0;const c={parts:[]},o=()=>{const m=s.substring(u,l).trim(),g=m.indexOf("=");let p,E;g!==-1&&m.substring(0,g).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=m.substring(0,g).trim(),E=m.substring(g+1)):m.length>1&&m[0]==='"'&&m[m.length-1]==='"'||m.length>1&&m[0]==="'"&&m[m.length-1]==="'"?(p="text",E=m):/^\(*\/\//.test(m)||m.startsWith("..")?(p="xpath",E=m):(p="css",E=m);let v=!1;if(p[0]==="*"&&(v=!0,p=p.substring(1)),c.parts.push({name:p,body:E}),v){if(c.capture!==void 0)throw new St("Only one of the selectors can capture using * modifier");c.capture=c.parts.length-1}};if(!s.includes(">>"))return l=s.length,o(),c;const h=()=>{const g=s.substring(u,l).match(/^\s*text\s*=(.*)$/);return!!g&&!!g[1]};for(;l"&&s[l+1]===">"?(o(),l+=2,u=l):l++}return o(),c}function of(s,l){let i=0,u=s.length===0;const c=()=>s[i]||"",o=()=>{const T=c();return++i,u=i>=s.length,T},h=T=>{throw u?new St(`Unexpected end of selector while parsing selector \`${s}\``):new St(`Error while parsing selector \`${s}\` - unexpected symbol "${c()}" at position ${i}`+(T?" during "+T:""))};function m(){for(;!u&&/\s/.test(c());)o()}function g(T){return T>="€"||T>="0"&&T<="9"||T>="A"&&T<="Z"||T>="a"&&T<="z"||T>="0"&&T<="9"||T==="_"||T==="-"}function p(){let T="";for(m();!u&&g(c());)T+=o();return T}function E(T){let x=o();for(x!==T&&h("parsing quoted string");!u&&c()!==T;)c()==="\\"&&o(),x+=o();return c()!==T&&h("parsing quoted string"),x+=o(),x}function v(){o()!=="/"&&h("parsing regular expression");let T="",x=!1;for(;!u;){if(c()==="\\")T+=o(),u&&h("parsing regular expression");else if(x&&c()==="]")x=!1;else if(!x&&c()==="[")x=!0;else if(!x&&c()==="/")break;T+=o()}o()!=="/"&&h("parsing regular expression");let j="";for(;!u&&c().match(/[dgimsuy]/);)j+=o();try{return new RegExp(T,j)}catch(Y){throw new St(`Error while parsing selector \`${s}\`: ${Y.message}`)}}function _(){let T="";return m(),c()==="'"||c()==='"'?T=E(c()).slice(1,-1):T=p(),T||h("parsing property path"),T}function A(){m();let T="";return u||(T+=o()),!u&&T!=="="&&(T+=o()),["=","*=","^=","$=","|=","~="].includes(T)||h("parsing operator"),T}function z(){o();const T=[];for(T.push(_()),m();c()===".";)o(),T.push(_()),m();if(c()==="]")return o(),{name:T.join("."),jsonPath:T,op:"",value:null,caseSensitive:!1};const x=A();let j,Y=!0;if(m(),c()==="/"){if(x!=="=")throw new St(`Error while parsing selector \`${s}\` - cannot use ${x} in attribute with regular expression`);j=v()}else if(c()==="'"||c()==='"')j=E(c()).slice(1,-1),m(),c()==="i"||c()==="I"?(Y=!1,o()):(c()==="s"||c()==="S")&&(Y=!0,o());else{for(j="";!u&&(g(c())||c()==="+"||c()===".");)j+=o();j==="true"?j=!0:j==="false"&&(j=!1)}if(m(),c()!=="]"&&h("parsing attribute value"),o(),x!=="="&&typeof j!="string")throw new St(`Error while parsing selector \`${s}\` - cannot use ${x} in attribute with non-string matching value - ${j}`);return{name:T.join("."),jsonPath:T,op:x,value:j,caseSensitive:Y}}const S={name:"",attributes:[]};for(S.name=p(),m();c()==="[";)S.attributes.push(z()),m();if(u||h(void 0),!S.name&&!S.attributes.length)throw new St(`Error while parsing selector \`${s}\` - selector cannot be empty`);return S}function Au(s,l="'"){const i=JSON.stringify(s),u=i.substring(1,i.length-1).replace(/\\"/g,'"');if(l==="'")return l+u.replace(/[']/g,"\\'")+l;if(l==='"')return l+u.replace(/["]/g,'\\"')+l;if(l==="`")return l+u.replace(/[`]/g,"\\`")+l;throw new Error("Invalid escape char")}function yu(s){return s.charAt(0).toUpperCase()+s.substring(1)}function Pg(s){return s.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function wu(s){return s.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function ep(s,l,i=!1){return Tv(s,l,i,1)[0]}function Tv(s,l,i=!1,u=20,c){try{return ma(new Mv[s](c),Ig(l),i,u)}catch{return[l]}}function ma(s,l,i=!1,u=20){const c=[...l.parts],o=[];let h=i?"frame-locator":"page";for(let m=0;ms.generateLocator(p,"has",S)));continue}if(g.name==="internal:has-not"){const z=ma(s,g.body.parsed,!1,u);o.push(z.map(S=>s.generateLocator(p,"hasNot",S)));continue}if(g.name==="internal:and"){const z=ma(s,g.body.parsed,!1,u);o.push(z.map(S=>s.generateLocator(p,"and",S)));continue}if(g.name==="internal:or"){const z=ma(s,g.body.parsed,!1,u);o.push(z.map(S=>s.generateLocator(p,"or",S)));continue}if(g.name==="internal:chain"){const z=ma(s,g.body.parsed,!1,u);o.push(z.map(S=>s.generateLocator(p,"chain",S)));continue}if(g.name==="internal:label"){const{exact:z,text:S}=Ni(g.body);o.push([s.generateLocator(p,"label",S,{exact:z})]);continue}if(g.name==="internal:role"){const z=of(g.body),S={attrs:[]};for(const T of z.attributes)T.name==="name"?(S.exact=T.caseSensitive,S.name=T.value):(T.name==="level"&&typeof T.value=="string"&&(T.value=+T.value),S.attrs.push({name:T.name==="include-hidden"?"includeHidden":T.name,value:T.value}));o.push([s.generateLocator(p,"role",z.name,S)]);continue}if(g.name==="internal:testid"){const z=of(g.body),{value:S}=z.attributes[0];o.push([s.generateLocator(p,"test-id",S)]);continue}if(g.name==="internal:attr"){const z=of(g.body),{name:S,value:T,caseSensitive:x}=z.attributes[0],j=T,Y=!!x;if(S==="placeholder"){o.push([s.generateLocator(p,"placeholder",j,{exact:Y})]);continue}if(S==="alt"){o.push([s.generateLocator(p,"alt",j,{exact:Y})]);continue}if(S==="title"){o.push([s.generateLocator(p,"title",j,{exact:Y})]);continue}}if(g.name==="internal:control"&&g.body==="enter-frame"){const z=o[o.length-1],S=c[m-1],T=z.map(x=>s.chainLocators([x,s.generateLocator(p,"frame","")]));["xpath","css"].includes(S.name)&&T.push(s.generateLocator(p,"frame-locator",ga({parts:[S]})),s.generateLocator(p,"frame-locator",ga({parts:[S]},!0))),z.splice(0,z.length,...T),h="frame-locator";continue}const E=c[m+1],v=ga({parts:[g]}),_=s.generateLocator(p,"default",v);if(E&&["internal:has-text","internal:has-not-text"].includes(E.name)){const{exact:z,text:S}=Ni(E.body);if(!z){const T=s.generateLocator("locator",E.name==="internal:has-text"?"has-text":"has-not-text",S,{exact:z}),x={};E.name==="internal:has-text"?x.hasText=S:x.hasNotText=S;const j=s.generateLocator(p,"default",v,x);o.push([s.chainLocators([_,T]),j]),m++;continue}}let A;if(["xpath","css"].includes(g.name)){const z=ga({parts:[g]},!0);A=s.generateLocator(p,"default",z)}o.push([_,A].filter(Boolean))}return Ev(s,o,u)}function Ev(s,l,i){const u=l.map(()=>""),c=[],o=h=>{if(h===l.length)return c.push(s.chainLocators(u)),c.lengthJSON.parse(u));for(let u=0;u{const i=oe.useRef(null),[u,c]=oe.useState(new Map);return oe.useLayoutEffect(()=>{var o;l.find(h=>h.reveal)&&((o=i.current)==null||o.scrollIntoView({block:"center",inline:"nearest"}))},[i,l]),Z.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(o=>{const h=u.get(o.id),m=typeof h=="boolean"?h:o.status!=="done",g=o.params.selector?ep(s,o.params.selector):null;let p=o.title,E="";return o.title.startsWith("expect.to")||o.title.startsWith("expect.not.to")?(p="expect(",E=`).${o.title.substring(7)}()`):o.title.startsWith("locator.")?(p="",E=`.${o.title.substring(8)}()`):(g||o.params.url)&&(p=o.title+"(",E=")"),Z.jsxs("div",{className:wl("call-log-call",o.status),children:[Z.jsxs("div",{className:"call-log-call-header",children:[Z.jsx("span",{className:wl("codicon",`codicon-chevron-${m?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const v=new Map(u);v.set(o.id,!m),c(v)}}),p,o.params.url?Z.jsx("span",{className:"call-log-details",children:Z.jsx("span",{className:"call-log-url",title:o.params.url,children:o.params.url})}):void 0,g?Z.jsx("span",{className:"call-log-details",children:Z.jsx("span",{className:"call-log-selector",title:`page.${g}`,children:`page.${g}`})}):void 0,E,Z.jsx("span",{className:wl("codicon",zv(o))}),typeof o.duration=="number"?Z.jsxs("span",{className:"call-log-time",children:["— ",E1(o.duration)]}):void 0]}),(m?o.messages:[]).map((v,_)=>Z.jsx("div",{className:"call-log-message",children:v.trim()},_)),!!o.error&&Z.jsx("div",{className:"call-log-message error",hidden:!m,children:o.error})]},o.id)}),Z.jsx("div",{ref:i})]})};function zv(s){switch(s.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const Lf=Symbol.for("yaml.alias"),Of=Symbol.for("yaml.document"),Fn=Symbol.for("yaml.map"),tp=Symbol.for("yaml.pair"),nn=Symbol.for("yaml.scalar"),_a=Symbol.for("yaml.seq"),Vt=Symbol.for("yaml.node.type"),_l=s=>!!s&&typeof s=="object"&&s[Vt]===Lf,Nl=s=>!!s&&typeof s=="object"&&s[Vt]===Of,Na=s=>!!s&&typeof s=="object"&&s[Vt]===Fn,Be=s=>!!s&&typeof s=="object"&&s[Vt]===tp,De=s=>!!s&&typeof s=="object"&&s[Vt]===nn,Ma=s=>!!s&&typeof s=="object"&&s[Vt]===_a;function Re(s){if(s&&typeof s=="object")switch(s[Vt]){case Fn:case _a:return!0}return!1}function ke(s){if(s&&typeof s=="object")switch(s[Vt]){case Lf:case Fn:case nn:case _a:return!0}return!1}const xv=s=>(De(s)||Re(s))&&!!s.anchor,Tt=Symbol("break visit"),np=Symbol("skip children"),tn=Symbol("remove node");function In(s,l){const i=lp(l);Nl(s)?pa(null,s.contents,i,Object.freeze([s]))===tn&&(s.contents=null):pa(null,s,i,Object.freeze([]))}In.BREAK=Tt;In.SKIP=np;In.REMOVE=tn;function pa(s,l,i,u){const c=ap(s,l,i,u);if(ke(c)||Be(c))return ip(s,u,c),pa(s,c,i,u);if(typeof c!="symbol"){if(Re(l)){u=Object.freeze(u.concat(l));for(let o=0;os.replace(/[!,[\]{}]/g,l=>Dv[l]);class ot{constructor(l,i){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ot.defaultYaml,l),this.tags=Object.assign({},ot.defaultTags,i)}clone(){const l=new ot(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new ot(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ot.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ot.defaultTags);break}return l}add(l,i){this.atNextDocument&&(this.yaml={explicit:ot.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ot.defaultTags),this.atNextDocument=!1);const u=l.trim().split(/[ \t]+/),c=u.shift();switch(c){case"%TAG":{if(u.length!==2&&(i(0,"%TAG directive should contain exactly two parts"),u.length<2))return!1;const[o,h]=u;return this.tags[o]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,u.length!==1)return i(0,"%YAML directive should contain exactly one part"),!1;const[o]=u;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const h=/^\d+\.\d+$/.test(o);return i(6,`Unsupported YAML version ${o}`,h),!1}}default:return i(0,`Unknown directive ${c}`,!0),!1}}tagName(l,i){if(l==="!")return"!";if(l[0]!=="!")return i(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const h=l.slice(2,-1);return h==="!"||h==="!!"?(i(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&i("Verbatim tags must end with a >"),h)}const[,u,c]=l.match(/^(.*!)([^!]*)$/s);c||i(`The ${l} tag has no suffix`);const o=this.tags[u];if(o)try{return o+decodeURIComponent(c)}catch(h){return i(String(h)),null}return u==="!"?l:(i(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[i,u]of Object.entries(this.tags))if(l.startsWith(u))return i+Lv(l.substring(u.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const i=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],u=Object.entries(this.tags);let c;if(l&&u.length>0&&ke(l.contents)){const o={};In(l.contents,(h,m)=>{ke(m)&&m.tag&&(o[m.tag]=!0)}),c=Object.keys(o)}else c=[];for(const[o,h]of u)o==="!!"&&h==="tag:yaml.org,2002:"||(!l||c.some(m=>m.startsWith(h)))&&i.push(`%TAG ${o} ${h}`);return i.join(` -`)}}ot.defaultYaml={explicit:!1,version:"1.2"};ot.defaultTags={"!!":"tag:yaml.org,2002:"};function sp(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){const i=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(i)}return!0}function up(s){const l=new Set;return In(s,{Value(i,u){u.anchor&&l.add(u.anchor)}}),l}function cp(s,l){for(let i=1;;++i){const u=`${s}${i}`;if(!l.has(u))return u}}function Uv(s,l){const i=[],u=new Map;let c=null;return{onAnchor:o=>{i.push(o),c||(c=up(s));const h=cp(l,c);return c.add(h),h},setAnchors:()=>{for(const o of i){const h=u.get(o);if(typeof h=="object"&&h.anchor&&(De(h.node)||Re(h.node)))h.node.anchor=h.anchor;else{const m=new Error("Failed to resolve repeated object (this should not happen)");throw m.source=o,m}}},sourceObjects:u}}function va(s,l,i,u){if(u&&typeof u=="object")if(Array.isArray(u))for(let c=0,o=u.length;cKt(u,String(c),i));if(s&&typeof s.toJSON=="function"){if(!i||!xv(s))return s.toJSON(l,i);const u={aliasCount:0,count:1,res:void 0};i.anchors.set(s,u),i.onCreate=o=>{u.res=o,delete i.onCreate};const c=s.toJSON(l,i);return i.onCreate&&i.onCreate(c),c}return typeof s=="bigint"&&!(i!=null&&i.keep)?Number(s):s}class Uf{constructor(l){Object.defineProperty(this,Vt,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:i,maxAliasCount:u,onAnchor:c,reviver:o}={}){if(!Nl(l))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:l,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof u=="number"?u:100},m=Kt(this,"",h);if(typeof c=="function")for(const{count:g,res:p}of h.anchors.values())c(p,g);return typeof o=="function"?va(o,{"":m},"",m):m}}class _u extends Uf{constructor(l){super(Lf),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l){let i;return In(l,{Node:(u,c)=>{if(c===this)return In.BREAK;c.anchor===this.source&&(i=c)}}),i}toJSON(l,i){if(!i)return{source:this.source};const{anchors:u,doc:c,maxAliasCount:o}=i,h=this.resolve(c);if(!h){const g=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(g)}let m=u.get(h);if(m||(Kt(h,null,i),m=u.get(h)),!m||m.res===void 0){const g="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(g)}if(o>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=hu(c,h,u)),m.count*m.aliasCount>o)){const g="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(g)}return m.res}toString(l,i,u){const c=`*${this.source}`;if(l){if(sp(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(l.implicitKey)return`${c} `}return c}}function hu(s,l,i){if(_l(l)){const u=l.resolve(s),c=i&&u&&i.get(u);return c?c.count*c.aliasCount:0}else if(Re(l)){let u=0;for(const c of l.items){const o=hu(s,c,i);o>u&&(u=o)}return u}else if(Be(l)){const u=hu(s,l.key,i),c=hu(s,l.value,i);return Math.max(u,c)}return 1}const rp=s=>!s||typeof s!="function"&&typeof s!="object";class ue extends Uf{constructor(l){super(nn),this.value=l}toJSON(l,i){return i!=null&&i.keep?this.value:Kt(this.value,l,i)}toString(){return String(this.value)}}ue.BLOCK_FOLDED="BLOCK_FOLDED";ue.BLOCK_LITERAL="BLOCK_LITERAL";ue.PLAIN="PLAIN";ue.QUOTE_DOUBLE="QUOTE_DOUBLE";ue.QUOTE_SINGLE="QUOTE_SINGLE";const jv="tag:yaml.org,2002:";function Bv(s,l,i){if(l){const u=i.filter(o=>o.tag===l),c=u.find(o=>!o.format)??u[0];if(!c)throw new Error(`Tag ${l} not found`);return c}return i.find(u=>{var c;return((c=u.identify)==null?void 0:c.call(u,s))&&!u.format})}function xi(s,l,i){var v,_,A;if(Nl(s)&&(s=s.contents),ke(s))return s;if(Be(s)){const z=(_=(v=i.schema[Fn]).createNode)==null?void 0:_.call(v,i.schema,null,i);return z.items.push(s),z}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());const{aliasDuplicateObjects:u,onAnchor:c,onTagObj:o,schema:h,sourceObjects:m}=i;let g;if(u&&s&&typeof s=="object"){if(g=m.get(s),g)return g.anchor||(g.anchor=c(s)),new _u(g.anchor);g={anchor:null,node:null},m.set(s,g)}l!=null&&l.startsWith("!!")&&(l=jv+l.slice(2));let p=Bv(s,l,h.tags);if(!p){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){const z=new ue(s);return g&&(g.node=z),z}p=s instanceof Map?h[Fn]:Symbol.iterator in Object(s)?h[_a]:h[Fn]}o&&(o(p),delete i.onTagObj);const E=p!=null&&p.createNode?p.createNode(i.schema,s,i):typeof((A=p==null?void 0:p.nodeClass)==null?void 0:A.from)=="function"?p.nodeClass.from(i.schema,s,i):new ue(s);return l?E.tag=l:p.default||(E.tag=p.tag),g&&(g.node=E),E}function vu(s,l,i){let u=i;for(let c=l.length-1;c>=0;--c){const o=l[c];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const h=[];h[o]=u,u=h}else u=new Map([[o,u]])}return xi(u,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}const Ci=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done;class fp extends Uf{constructor(l,i){super(l),Object.defineProperty(this,"schema",{value:i,configurable:!0,enumerable:!1,writable:!0})}clone(l){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return l&&(i.schema=l),i.items=i.items.map(u=>ke(u)||Be(u)?u.clone(l):u),this.range&&(i.range=this.range.slice()),i}addIn(l,i){if(Ci(l))this.add(i);else{const[u,...c]=l,o=this.get(u,!0);if(Re(o))o.addIn(c,i);else if(o===void 0&&this.schema)this.set(u,vu(this.schema,c,i));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${c}`)}}deleteIn(l){const[i,...u]=l;if(u.length===0)return this.delete(i);const c=this.get(i,!0);if(Re(c))return c.deleteIn(u);throw new Error(`Expected YAML collection at ${i}. Remaining path: ${u}`)}getIn(l,i){const[u,...c]=l,o=this.get(u,!0);return c.length===0?!i&&De(o)?o.value:o:Re(o)?o.getIn(c,i):void 0}hasAllNullValues(l){return this.items.every(i=>{if(!Be(i))return!1;const u=i.value;return u==null||l&&De(u)&&u.value==null&&!u.commentBefore&&!u.comment&&!u.tag})}hasIn(l){const[i,...u]=l;if(u.length===0)return this.has(i);const c=this.get(i,!0);return Re(c)?c.hasIn(u):!1}setIn(l,i){const[u,...c]=l;if(c.length===0)this.set(u,i);else{const o=this.get(u,!0);if(Re(o))o.setIn(c,i);else if(o===void 0&&this.schema)this.set(u,vu(this.schema,c,i));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${c}`)}}}const Rv=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function An(s,l){return/^\n+$/.test(s)?s.substring(1):l?s.replace(/^(?! *$)/gm,l):s}const Tl=(s,l,i)=>s.endsWith(` -`)?An(i,l):i.includes(` -`)?` -`+An(i,l):(s.endsWith(" ")?"":" ")+i,op="flow",_f="block",du="quoted";function Nu(s,l,i="flow",{indentAtStart:u,lineWidth:c=80,minContentWidth:o=20,onFold:h,onOverflow:m}={}){if(!c||c<0)return s;cc-Math.max(2,o)?p.push(0):v=c-u);let _,A,z=!1,S=-1,T=-1,x=-1;i===_f&&(S=yg(s,S,l.length),S!==-1&&(v=S+g));for(let Y;Y=s[S+=1];){if(i===du&&Y==="\\"){switch(T=S,s[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}x=S}if(Y===` -`)i===_f&&(S=yg(s,S,l.length)),v=S+l.length+g,_=void 0;else{if(Y===" "&&A&&A!==" "&&A!==` -`&&A!==" "){const X=s[S+1];X&&X!==" "&&X!==` -`&&X!==" "&&(_=S)}if(S>=v)if(_)p.push(_),v=_+g,_=void 0;else if(i===du){for(;A===" "||A===" ";)A=Y,Y=s[S+=1],z=!0;const X=S>x+1?S-2:T-1;if(E[X])return s;p.push(X),E[X]=!0,v=X+g,_=void 0}else z=!0}A=Y}if(z&&m&&m(),p.length===0)return s;h&&h();let j=s.slice(0,p[0]);for(let Y=0;Y({indentAtStart:l?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),Cu=s=>/^(%|---|\.\.\.)/m.test(s);function kv(s,l,i){if(!l||l<0)return!1;const u=l-i,c=s.length;if(c<=u)return!1;for(let o=0,h=0;ou)return!0;if(h=o+1,c-h<=u)return!1}return!0}function zi(s,l){const i=JSON.stringify(s);if(l.options.doubleQuotedAsJSON)return i;const{implicitKey:u}=l,c=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(Cu(s)?" ":"");let h="",m=0;for(let g=0,p=i[g];p;p=i[++g])if(p===" "&&i[g+1]==="\\"&&i[g+2]==="n"&&(h+=i.slice(m,g)+"\\ ",g+=1,m=g,p="\\"),p==="\\")switch(i[g+1]){case"u":{h+=i.slice(m,g);const E=i.substr(g+2,4);switch(E){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:E.substr(0,2)==="00"?h+="\\x"+E.substr(2):h+=i.substr(g,6)}g+=5,m=g+1}break;case"n":if(u||i[g+2]==='"'||i.length -`;let v,_;for(_=i.length;_>0;--_){const K=i[_-1];if(K!==` -`&&K!==" "&&K!==" ")break}let A=i.substring(_);const z=A.indexOf(` -`);z===-1?v="-":i===A||z!==A.length-1?(v="+",o&&o()):v="",A&&(i=i.slice(0,-A.length),A[A.length-1]===` -`&&(A=A.slice(0,-1)),A=A.replace(Mf,`$&${p}`));let S=!1,T,x=-1;for(T=0;T")+(S?p?"2":"1":"")+v;if(s&&(X+=" "+m(s.replace(/ ?[\r\n]+/g," ")),c&&c()),E)return i=i.replace(/\n+/g,`$&${p}`),`${X} -${p}${j}${i}${A}`;i=i.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);const W=Nu(`${j}${i}${A}`,p,_f,Mu(u,!0));return`${X} -${p}${W}`}function qv(s,l,i,u){const{type:c,value:o}=s,{actualString:h,implicitKey:m,indent:g,indentStep:p,inFlow:E}=l;if(m&&o.includes(` -`)||E&&/[[\]{},]/.test(o))return ba(o,l);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return m||E||!o.includes(` -`)?ba(o,l):mu(s,l,i,u);if(!m&&!E&&c!==ue.PLAIN&&o.includes(` -`))return mu(s,l,i,u);if(Cu(o)){if(g==="")return l.forceBlockIndent=!0,mu(s,l,i,u);if(m&&g===p)return ba(o,l)}const v=o.replace(/\n+/g,`$& -${g}`);if(h){const _=S=>{var T;return S.default&&S.tag!=="tag:yaml.org,2002:str"&&((T=S.test)==null?void 0:T.test(v))},{compat:A,tags:z}=l.doc.schema;if(z.some(_)||A!=null&&A.some(_))return ba(o,l)}return m?v:Nu(v,g,op,Mu(l,!1))}function ji(s,l,i,u){const{implicitKey:c,inFlow:o}=l,h=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)});let{type:m}=s;m!==ue.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=ue.QUOTE_DOUBLE);const g=E=>{switch(E){case ue.BLOCK_FOLDED:case ue.BLOCK_LITERAL:return c||o?ba(h.value,l):mu(h,l,i,u);case ue.QUOTE_DOUBLE:return zi(h.value,l);case ue.QUOTE_SINGLE:return Nf(h.value,l);case ue.PLAIN:return qv(h,l,i,u);default:return null}};let p=g(m);if(p===null){const{defaultKeyType:E,defaultStringType:v}=l.options,_=c&&E||v;if(p=g(_),p===null)throw new Error(`Unsupported default string type ${_}`)}return p}function hp(s,l){const i=Object.assign({blockQuote:!0,commentString:Rv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,l);let u;switch(i.collectionStyle){case"block":u=!1;break;case"flow":u=!0;break;default:u=null}return{anchors:new Set,doc:s,flowCollectionPadding:i.flowCollectionPadding?" ":"",indent:"",indentStep:typeof i.indent=="number"?" ".repeat(i.indent):" ",inFlow:u,options:i}}function Hv(s,l){var c;if(l.tag){const o=s.filter(h=>h.tag===l.tag);if(o.length>0)return o.find(h=>h.format===l.format)??o[0]}let i,u;if(De(l)){u=l.value;let o=s.filter(h=>{var m;return(m=h.identify)==null?void 0:m.call(h,u)});if(o.length>1){const h=o.filter(m=>m.test);h.length>0&&(o=h)}i=o.find(h=>h.format===l.format)??o.find(h=>!h.format)}else u=l,i=s.find(o=>o.nodeClass&&u instanceof o.nodeClass);if(!i){const o=((c=u==null?void 0:u.constructor)==null?void 0:c.name)??typeof u;throw new Error(`Tag not resolved for ${o} value`)}return i}function $v(s,l,{anchors:i,doc:u}){if(!u.directives)return"";const c=[],o=(De(s)||Re(s))&&s.anchor;o&&sp(o)&&(i.add(o),c.push(`&${o}`));const h=s.tag?s.tag:l.default?null:l.tag;return h&&c.push(u.directives.tagString(h)),c.join(" ")}function Ea(s,l,i,u){var g;if(Be(s))return s.toString(l,i,u);if(_l(s)){if(l.doc.directives)return s.toString(l);if((g=l.resolvedAliases)!=null&&g.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");l.resolvedAliases?l.resolvedAliases.add(s):l.resolvedAliases=new Set([s]),s=s.resolve(l.doc)}let c;const o=ke(s)?s:l.doc.createNode(s,{onTagObj:p=>c=p});c||(c=Hv(l.doc.schema.tags,o));const h=$v(o,c,l);h.length>0&&(l.indentAtStart=(l.indentAtStart??0)+h.length+1);const m=typeof c.stringify=="function"?c.stringify(o,l,i,u):De(o)?ji(o,l,i,u):o.toString(l,i,u);return h?De(o)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h} -${l.indent}${m}`:m}function Yv({key:s,value:l},i,u,c){const{allNullValues:o,doc:h,indent:m,indentStep:g,options:{commentString:p,indentSeq:E,simpleKeys:v}}=i;let _=ke(s)&&s.comment||null;if(v){if(_)throw new Error("With simple keys, key nodes cannot have comments");if(Re(s)||!ke(s)&&typeof s=="object"){const G="With simple keys, collection cannot be used as a key value";throw new Error(G)}}let A=!v&&(!s||_&&l==null&&!i.inFlow||Re(s)||(De(s)?s.type===ue.BLOCK_FOLDED||s.type===ue.BLOCK_LITERAL:typeof s=="object"));i=Object.assign({},i,{allNullValues:!1,implicitKey:!A&&(v||!o),indent:m+g});let z=!1,S=!1,T=Ea(s,i,()=>z=!0,()=>S=!0);if(!A&&!i.inFlow&&T.length>1024){if(v)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");A=!0}if(i.inFlow){if(o||l==null)return z&&u&&u(),T===""?"?":A?`? ${T}`:T}else if(o&&!v||l==null&&A)return T=`? ${T}`,_&&!z?T+=Tl(T,i.indent,p(_)):S&&c&&c(),T;z&&(_=null),A?(_&&(T+=Tl(T,i.indent,p(_))),T=`? ${T} -${m}:`):(T=`${T}:`,_&&(T+=Tl(T,i.indent,p(_))));let x,j,Y;ke(l)?(x=!!l.spaceBefore,j=l.commentBefore,Y=l.comment):(x=!1,j=null,Y=null,l&&typeof l=="object"&&(l=h.createNode(l))),i.implicitKey=!1,!A&&!_&&De(l)&&(i.indentAtStart=T.length+1),S=!1,!E&&g.length>=2&&!i.inFlow&&!A&&Ma(l)&&!l.flow&&!l.tag&&!l.anchor&&(i.indent=i.indent.substring(2));let X=!1;const W=Ea(l,i,()=>X=!0,()=>S=!0);let K=" ";if(_||x||j){if(K=x?` -`:"",j){const G=p(j);K+=` -${An(G,i.indent)}`}W===""&&!i.inFlow?K===` -`&&(K=` - -`):K+=` -${i.indent}`}else if(!A&&Re(l)){const G=W[0],V=W.indexOf(` -`),B=V!==-1,he=i.inFlow??l.flow??l.items.length===0;if(B||!he){let ne=!1;if(B&&(G==="&"||G==="!")){let q=W.indexOf(" ");G==="&"&&q!==-1&&qs===nu||typeof s=="symbol"&&s.description===nu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ue(Symbol(nu)),{addToJSMap:mp}),stringify:()=>nu},Gv=(s,l)=>(On.identify(l)||De(l)&&(!l.type||l.type===ue.PLAIN)&&On.identify(l.value))&&(s==null?void 0:s.doc.schema.tags.some(i=>i.tag===On.tag&&i.default));function mp(s,l,i){if(i=s&&_l(i)?i.resolve(s.doc):i,Ma(i))for(const u of i.items)hf(s,l,u);else if(Array.isArray(i))for(const u of i)hf(s,l,u);else hf(s,l,i)}function hf(s,l,i){const u=s&&_l(i)?i.resolve(s.doc):i;if(!Na(u))throw new Error("Merge sources must be maps or map aliases");const c=u.toJSON(null,s,Map);for(const[o,h]of c)l instanceof Map?l.has(o)||l.set(o,h):l instanceof Set?l.add(o):Object.prototype.hasOwnProperty.call(l,o)||Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0});return l}function gp(s,l,{key:i,value:u}){if(ke(i)&&i.addToJSMap)i.addToJSMap(s,l,u);else if(Gv(s,i))mp(s,l,u);else{const c=Kt(i,"",s);if(l instanceof Map)l.set(c,Kt(u,c,s));else if(l instanceof Set)l.add(c);else{const o=Kv(i,c,s),h=Kt(u,o,s);o in l?Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0}):l[o]=h}}return l}function Kv(s,l,i){if(l===null)return"";if(typeof l!="object")return String(l);if(ke(s)&&(i!=null&&i.doc)){const u=hp(i.doc,{});u.anchors=new Set;for(const o of i.anchors.keys())u.anchors.add(o.anchor);u.inFlow=!0,u.inStringifyKey=!0;const c=s.toString(u);if(!i.mapKeyWarned){let o=JSON.stringify(c);o.length>40&&(o=o.substring(0,36)+'..."'),dp(i.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),i.mapKeyWarned=!0}return c}return JSON.stringify(l)}function jf(s,l,i){const u=xi(s,void 0,i),c=xi(l,void 0,i);return new ct(u,c)}class ct{constructor(l,i=null){Object.defineProperty(this,Vt,{value:tp}),this.key=l,this.value=i}clone(l){let{key:i,value:u}=this;return ke(i)&&(i=i.clone(l)),ke(u)&&(u=u.clone(l)),new ct(i,u)}toJSON(l,i){const u=i!=null&&i.mapAsMap?new Map:{};return gp(i,u,this)}toString(l,i,u){return l!=null&&l.doc?Yv(this,l,i,u):JSON.stringify(this)}}function pp(s,l,i){return(l.inFlow??s.flow?Qv:Vv)(s,l,i)}function Vv({comment:s,items:l},i,{blockItemPrefix:u,flowChars:c,itemIndent:o,onChompKeep:h,onComment:m}){const{indent:g,options:{commentString:p}}=i,E=Object.assign({},i,{indent:o,type:null});let v=!1;const _=[];for(let z=0;zT=null,()=>v=!0);T&&(x+=Tl(x,o,p(T))),v&&T&&(v=!1),_.push(u+x)}let A;if(_.length===0)A=c.start+c.end;else{A=_[0];for(let z=1;z<_.length;++z){const S=_[z];A+=S?` -${g}${S}`:` -`}}return s?(A+=` -`+An(p(s),g),m&&m()):v&&h&&h(),A}function Qv({items:s},l,{flowChars:i,itemIndent:u}){const{indent:c,indentStep:o,flowCollectionPadding:h,options:{commentString:m}}=l;u+=o;const g=Object.assign({},l,{indent:u,inFlow:!0,type:null});let p=!1,E=0;const v=[];for(let z=0;zT=null);zE||x.includes(` -`))&&(p=!0),v.push(x),E=v.length}const{start:_,end:A}=i;if(v.length===0)return _+A;if(!p){const z=v.reduce((S,T)=>S+T.length+2,2);p=l.options.lineWidth>0&&z>l.options.lineWidth}if(p){let z=_;for(const S of v)z+=S?` -${o}${c}${S}`:` -`;return`${z} -${c}${A}`}else return`${_}${h}${v.join(" ")}${h}${A}`}function bu({indent:s,options:{commentString:l}},i,u,c){if(u&&c&&(u=u.replace(/^\n+/,"")),u){const o=An(l(u),s);i.push(o.trimStart())}}function El(s,l){const i=De(l)?l.value:l;for(const u of s)if(Be(u)&&(u.key===l||u.key===i||De(u.key)&&u.key.value===i))return u}class Lt extends fp{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(Fn,l),this.items=[]}static from(l,i,u){const{keepUndefined:c,replacer:o}=u,h=new this(l),m=(g,p)=>{if(typeof o=="function")p=o.call(i,g,p);else if(Array.isArray(o)&&!o.includes(g))return;(p!==void 0||c)&&h.items.push(jf(g,p,u))};if(i instanceof Map)for(const[g,p]of i)m(g,p);else if(i&&typeof i=="object")for(const g of Object.keys(i))m(g,i[g]);return typeof l.sortMapEntries=="function"&&h.items.sort(l.sortMapEntries),h}add(l,i){var h;let u;Be(l)?u=l:!l||typeof l!="object"||!("key"in l)?u=new ct(l,l==null?void 0:l.value):u=new ct(l.key,l.value);const c=El(this.items,u.key),o=(h=this.schema)==null?void 0:h.sortMapEntries;if(c){if(!i)throw new Error(`Key ${u.key} already set`);De(c.value)&&rp(u.value)?c.value.value=u.value:c.value=u.value}else if(o){const m=this.items.findIndex(g=>o(u,g)<0);m===-1?this.items.push(u):this.items.splice(m,0,u)}else this.items.push(u)}delete(l){const i=El(this.items,l);return i?this.items.splice(this.items.indexOf(i),1).length>0:!1}get(l,i){const u=El(this.items,l),c=u==null?void 0:u.value;return(!i&&De(c)?c.value:c)??void 0}has(l){return!!El(this.items,l)}set(l,i){this.add(new ct(l,i),!0)}toJSON(l,i,u){const c=u?new u:i!=null&&i.mapAsMap?new Map:{};i!=null&&i.onCreate&&i.onCreate(c);for(const o of this.items)gp(i,c,o);return c}toString(l,i,u){if(!l)return JSON.stringify(this);for(const c of this.items)if(!Be(c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(c)} instead`);return!l.allNullValues&&this.hasAllNullValues(!1)&&(l=Object.assign({},l,{allNullValues:!0})),pp(this,l,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:l.indent||"",onChompKeep:u,onComment:i})}}const Ca={collection:"map",default:!0,nodeClass:Lt,tag:"tag:yaml.org,2002:map",resolve(s,l){return Na(s)||l("Expected a mapping for this tag"),s},createNode:(s,l,i)=>Lt.from(s,l,i)};class Pn extends fp{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(_a,l),this.items=[]}add(l){this.items.push(l)}delete(l){const i=lu(l);return typeof i!="number"?!1:this.items.splice(i,1).length>0}get(l,i){const u=lu(l);if(typeof u!="number")return;const c=this.items[u];return!i&&De(c)?c.value:c}has(l){const i=lu(l);return typeof i=="number"&&i=0?l:null}const za={collection:"seq",default:!0,nodeClass:Pn,tag:"tag:yaml.org,2002:seq",resolve(s,l){return Ma(s)||l("Expected a sequence for this tag"),s},createNode:(s,l,i)=>Pn.from(s,l,i)},zu={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,l,i,u){return l=Object.assign({actualString:!0},l),ji(s,l,i,u)}},xu={identify:s=>s==null,createNode:()=>new ue(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ue(null),stringify:({source:s},l)=>typeof s=="string"&&xu.test.test(s)?s:l.options.nullStr},Bf={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new ue(s[0]==="t"||s[0]==="T"),stringify({source:s,value:l},i){if(s&&Bf.test.test(s)){const u=s[0]==="t"||s[0]==="T";if(l===u)return s}return l?i.options.trueStr:i.options.falseStr}};function Wt({format:s,minFractionDigits:l,tag:i,value:u}){if(typeof u=="bigint")return String(u);const c=typeof u=="number"?u:Number(u);if(!isFinite(c))return isNaN(c)?".nan":c<0?"-.inf":".inf";let o=JSON.stringify(u);if(!s&&l&&(!i||i==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let h=o.indexOf(".");h<0&&(h=o.length,o+=".");let m=l-(o.length-h-1);for(;m-- >0;)o+="0"}return o}const yp={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},vp={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){const l=Number(s.value);return isFinite(l)?l.toExponential():Wt(s)}},bp={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){const l=new ue(parseFloat(s)),i=s.indexOf(".");return i!==-1&&s[s.length-1]==="0"&&(l.minFractionDigits=s.length-i-1),l},stringify:Wt},Du=s=>typeof s=="bigint"||Number.isInteger(s),Rf=(s,l,i,{intAsBigInt:u})=>u?BigInt(s):parseInt(s.substring(l),i);function Sp(s,l,i){const{value:u}=s;return Du(u)&&u>=0?i+u.toString(l):Wt(s)}const Tp={identify:s=>Du(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,l,i)=>Rf(s,2,8,i),stringify:s=>Sp(s,8,"0o")},Ep={identify:Du,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,l,i)=>Rf(s,0,10,i),stringify:Wt},Ap={identify:s=>Du(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,l,i)=>Rf(s,2,16,i),stringify:s=>Sp(s,16,"0x")},Xv=[Ca,za,zu,xu,Bf,Tp,Ep,Ap,yp,vp,bp];function vg(s){return typeof s=="bigint"||Number.isInteger(s)}const au=({value:s})=>JSON.stringify(s),Zv=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:au},{identify:s=>s==null,createNode:()=>new ue(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:au},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:s=>s==="true",stringify:au},{identify:vg,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,l,{intAsBigInt:i})=>i?BigInt(s):parseInt(s,10),stringify:({value:s})=>vg(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:au}],Jv={default:!0,tag:"",test:/^/,resolve(s,l){return l(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},Wv=[Ca,za].concat(Zv,Jv),kf={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,l){if(typeof Buffer=="function")return Buffer.from(s,"base64");if(typeof atob=="function"){const i=atob(s.replace(/[\n\r]/g,"")),u=new Uint8Array(i.length);for(let c=0;c1&&l("Each pair must have its own sequence indicator");const c=u.items[0]||new ct(new ue(null));if(u.commentBefore&&(c.key.commentBefore=c.key.commentBefore?`${u.commentBefore} -${c.key.commentBefore}`:u.commentBefore),u.comment){const o=c.value??c.key;o.comment=o.comment?`${u.comment} -${o.comment}`:u.comment}u=c}s.items[i]=Be(u)?u:new ct(u)}}else l("Expected a sequence for this tag");return s}function Op(s,l,i){const{replacer:u}=i,c=new Pn(s);c.tag="tag:yaml.org,2002:pairs";let o=0;if(l&&Symbol.iterator in Object(l))for(let h of l){typeof u=="function"&&(h=u.call(l,String(o++),h));let m,g;if(Array.isArray(h))if(h.length===2)m=h[0],g=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const p=Object.keys(h);if(p.length===1)m=p[0],g=h[m];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else m=h;c.items.push(jf(m,g,i))}return c}const qf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:wp,createNode:Op};class Sa extends Pn{constructor(){super(),this.add=Lt.prototype.add.bind(this),this.delete=Lt.prototype.delete.bind(this),this.get=Lt.prototype.get.bind(this),this.has=Lt.prototype.has.bind(this),this.set=Lt.prototype.set.bind(this),this.tag=Sa.tag}toJSON(l,i){if(!i)return super.toJSON(l);const u=new Map;i!=null&&i.onCreate&&i.onCreate(u);for(const c of this.items){let o,h;if(Be(c)?(o=Kt(c.key,"",i),h=Kt(c.value,o,i)):o=Kt(c,"",i),u.has(o))throw new Error("Ordered maps must not include duplicate keys");u.set(o,h)}return u}static from(l,i,u){const c=Op(l,i,u),o=new this;return o.items=c.items,o}}Sa.tag="tag:yaml.org,2002:omap";const Hf={collection:"seq",identify:s=>s instanceof Map,nodeClass:Sa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,l){const i=wp(s,l),u=[];for(const{key:c}of i.items)De(c)&&(u.includes(c.value)?l(`Ordered maps must not include duplicate keys: ${c.value}`):u.push(c.value));return Object.assign(new Sa,i)},createNode:(s,l,i)=>Sa.from(s,l,i)};function _p({value:s,source:l},i){return l&&(s?Np:Mp).test.test(l)?l:s?i.options.trueStr:i.options.falseStr}const Np={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ue(!0),stringify:_p},Mp={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ue(!1),stringify:_p},Fv={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},Iv={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){const l=Number(s.value);return isFinite(l)?l.toExponential():Wt(s)}},Pv={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){const l=new ue(parseFloat(s.replace(/_/g,""))),i=s.indexOf(".");if(i!==-1){const u=s.substring(i+1).replace(/_/g,"");u[u.length-1]==="0"&&(l.minFractionDigits=u.length)}return l},stringify:Wt},Bi=s=>typeof s=="bigint"||Number.isInteger(s);function Lu(s,l,i,{intAsBigInt:u}){const c=s[0];if((c==="-"||c==="+")&&(l+=1),s=s.substring(l).replace(/_/g,""),u){switch(i){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}const h=BigInt(s);return c==="-"?BigInt(-1)*h:h}const o=parseInt(s,i);return c==="-"?-1*o:o}function $f(s,l,i){const{value:u}=s;if(Bi(u)){const c=u.toString(l);return u<0?"-"+i+c.substr(1):i+c}return Wt(s)}const eb={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,l,i)=>Lu(s,2,2,i),stringify:s=>$f(s,2,"0b")},tb={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,l,i)=>Lu(s,1,8,i),stringify:s=>$f(s,8,"0")},nb={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,l,i)=>Lu(s,0,10,i),stringify:Wt},lb={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,l,i)=>Lu(s,2,16,i),stringify:s=>$f(s,16,"0x")};class Ta extends Lt{constructor(l){super(l),this.tag=Ta.tag}add(l){let i;Be(l)?i=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?i=new ct(l.key,null):i=new ct(l,null),El(this.items,i.key)||this.items.push(i)}get(l,i){const u=El(this.items,l);return!i&&Be(u)?De(u.key)?u.key.value:u.key:u}set(l,i){if(typeof i!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);const u=El(this.items,l);u&&!i?this.items.splice(this.items.indexOf(u),1):!u&&i&&this.items.push(new ct(l))}toJSON(l,i){return super.toJSON(l,i,Set)}toString(l,i,u){if(!l)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},l,{allNullValues:!0}),i,u);throw new Error("Set items must all have null values")}static from(l,i,u){const{replacer:c}=u,o=new this(l);if(i&&Symbol.iterator in Object(i))for(let h of i)typeof c=="function"&&(h=c.call(i,h,h)),o.items.push(jf(h,null,u));return o}}Ta.tag="tag:yaml.org,2002:set";const Yf={collection:"map",identify:s=>s instanceof Set,nodeClass:Ta,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,l,i)=>Ta.from(s,l,i),resolve(s,l){if(Na(s)){if(s.hasAllNullValues(!0))return Object.assign(new Ta,s);l("Set items must all have null values")}else l("Expected a mapping for this tag");return s}};function Gf(s,l){const i=s[0],u=i==="-"||i==="+"?s.substring(1):s,c=h=>l?BigInt(h):Number(h),o=u.replace(/_/g,"").split(":").reduce((h,m)=>h*c(60)+c(m),c(0));return i==="-"?c(-1)*o:o}function Cp(s){let{value:l}=s,i=h=>h;if(typeof l=="bigint")i=h=>BigInt(h);else if(isNaN(l)||!isFinite(l))return Wt(s);let u="";l<0&&(u="-",l*=i(-1));const c=i(60),o=[l%c];return l<60?o.unshift(0):(l=(l-o[0])/c,o.unshift(l%c),l>=60&&(l=(l-o[0])/c,o.unshift(l))),u+o.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const zp={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,l,{intAsBigInt:i})=>Gf(s,i),stringify:Cp},xp={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Gf(s,!1),stringify:Cp},Uu={identify:s=>s instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(s){const l=s.match(Uu.test);if(!l)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,i,u,c,o,h,m]=l.map(Number),g=l[7]?Number((l[7]+"00").substr(1,3)):0;let p=Date.UTC(i,u-1,c,o||0,h||0,m||0,g);const E=l[8];if(E&&E!=="Z"){let v=Gf(E,!1);Math.abs(v)<30&&(v*=60),p-=6e4*v}return new Date(p)},stringify:({value:s})=>s.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},bg=[Ca,za,zu,xu,Np,Mp,eb,tb,nb,lb,Fv,Iv,Pv,kf,On,Hf,qf,Yf,zp,xp,Uu],Sg=new Map([["core",Xv],["failsafe",[Ca,za,zu]],["json",Wv],["yaml11",bg],["yaml-1.1",bg]]),Tg={binary:kf,bool:Bf,float:bp,floatExp:vp,floatNaN:yp,floatTime:xp,int:Ep,intHex:Ap,intOct:Tp,intTime:zp,map:Ca,merge:On,null:xu,omap:Hf,pairs:qf,seq:za,set:Yf,timestamp:Uu},ab={"tag:yaml.org,2002:binary":kf,"tag:yaml.org,2002:merge":On,"tag:yaml.org,2002:omap":Hf,"tag:yaml.org,2002:pairs":qf,"tag:yaml.org,2002:set":Yf,"tag:yaml.org,2002:timestamp":Uu};function df(s,l,i){const u=Sg.get(l);if(u&&!s)return i&&!u.includes(On)?u.concat(On):u.slice();let c=u;if(!c)if(Array.isArray(s))c=[];else{const o=Array.from(Sg.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${o} or define customTags array`)}if(Array.isArray(s))for(const o of s)c=c.concat(o);else typeof s=="function"&&(c=s(c.slice()));return i&&(c=c.concat(On)),c.reduce((o,h)=>{const m=typeof h=="string"?Tg[h]:h;if(!m){const g=JSON.stringify(h),p=Object.keys(Tg).map(E=>JSON.stringify(E)).join(", ");throw new Error(`Unknown custom tag ${g}; use one of ${p}`)}return o.includes(m)||o.push(m),o},[])}const ib=(s,l)=>s.keyl.key?1:0;class ju{constructor({compat:l,customTags:i,merge:u,resolveKnownTags:c,schema:o,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(l)?df(l,"compat"):l?df(null,l):null,this.name=typeof o=="string"&&o||"core",this.knownTags=c?ab:{},this.tags=df(i,this.name,u),this.toStringOptions=m??null,Object.defineProperty(this,Fn,{value:Ca}),Object.defineProperty(this,nn,{value:zu}),Object.defineProperty(this,_a,{value:za}),this.sortMapEntries=typeof h=="function"?h:h===!0?ib:null}clone(){const l=Object.create(ju.prototype,Object.getOwnPropertyDescriptors(this));return l.tags=this.tags.slice(),l}}function sb(s,l){var g;const i=[];let u=l.directives===!0;if(l.directives!==!1&&s.directives){const p=s.directives.toString(s);p?(i.push(p),u=!0):s.directives.docStart&&(u=!0)}u&&i.push("---");const c=hp(s,l),{commentString:o}=c.options;if(s.commentBefore){i.length!==1&&i.unshift("");const p=o(s.commentBefore);i.unshift(An(p,""))}let h=!1,m=null;if(s.contents){if(ke(s.contents)){if(s.contents.spaceBefore&&u&&i.push(""),s.contents.commentBefore){const v=o(s.contents.commentBefore);i.push(An(v,""))}c.forceBlockIndent=!!s.comment,m=s.contents.comment}const p=m?void 0:()=>h=!0;let E=Ea(s.contents,c,()=>m=null,p);m&&(E+=Tl(E,"",o(m))),(E[0]==="|"||E[0]===">")&&i[i.length-1]==="---"?i[i.length-1]=`--- ${E}`:i.push(E)}else i.push(Ea(s.contents,c));if((g=s.directives)!=null&&g.docEnd)if(s.comment){const p=o(s.comment);p.includes(` -`)?(i.push("..."),i.push(An(p,""))):i.push(`... ${p}`)}else i.push("...");else{let p=s.comment;p&&h&&(p=p.replace(/^\n+/,"")),p&&((!h||m)&&i[i.length-1]!==""&&i.push(""),i.push(An(o(p),"")))}return i.join(` -`)+` -`}class xa{constructor(l,i,u){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Vt,{value:Of});let c=null;typeof i=="function"||Array.isArray(i)?c=i:u===void 0&&i&&(u=i,i=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},u);this.options=o;let{version:h}=o;u!=null&&u._directives?(this.directives=u._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new ot({version:h}),this.setSchema(h,u),this.contents=l===void 0?null:this.createNode(l,c,u)}clone(){const l=Object.create(xa.prototype,{[Vt]:{value:Of}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=ke(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){ha(this.contents)&&this.contents.add(l)}addIn(l,i){ha(this.contents)&&this.contents.addIn(l,i)}createAlias(l,i){if(!l.anchor){const u=up(this);l.anchor=!i||u.has(i)?cp(i||"a",u):i}return new _u(l.anchor)}createNode(l,i,u){let c;if(typeof i=="function")l=i.call({"":l},"",l),c=i;else if(Array.isArray(i)){const T=j=>typeof j=="number"||j instanceof String||j instanceof Number,x=i.filter(T).map(String);x.length>0&&(i=i.concat(x)),c=i}else u===void 0&&i&&(u=i,i=void 0);const{aliasDuplicateObjects:o,anchorPrefix:h,flow:m,keepUndefined:g,onTagObj:p,tag:E}=u??{},{onAnchor:v,setAnchors:_,sourceObjects:A}=Uv(this,h||"a"),z={aliasDuplicateObjects:o??!0,keepUndefined:g??!1,onAnchor:v,onTagObj:p,replacer:c,schema:this.schema,sourceObjects:A},S=xi(l,E,z);return m&&Re(S)&&(S.flow=!0),_(),S}createPair(l,i,u={}){const c=this.createNode(l,null,u),o=this.createNode(i,null,u);return new ct(c,o)}delete(l){return ha(this.contents)?this.contents.delete(l):!1}deleteIn(l){return Ci(l)?this.contents==null?!1:(this.contents=null,!0):ha(this.contents)?this.contents.deleteIn(l):!1}get(l,i){return Re(this.contents)?this.contents.get(l,i):void 0}getIn(l,i){return Ci(l)?!i&&De(this.contents)?this.contents.value:this.contents:Re(this.contents)?this.contents.getIn(l,i):void 0}has(l){return Re(this.contents)?this.contents.has(l):!1}hasIn(l){return Ci(l)?this.contents!==void 0:Re(this.contents)?this.contents.hasIn(l):!1}set(l,i){this.contents==null?this.contents=vu(this.schema,[l],i):ha(this.contents)&&this.contents.set(l,i)}setIn(l,i){Ci(l)?this.contents=i:this.contents==null?this.contents=vu(this.schema,Array.from(l),i):ha(this.contents)&&this.contents.setIn(l,i)}setSchema(l,i={}){typeof l=="number"&&(l=String(l));let u;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ot({version:"1.1"}),u={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new ot({version:l}),u={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,u=null;break;default:{const c=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${c}`)}}if(i.schema instanceof Object)this.schema=i.schema;else if(u)this.schema=new ju(Object.assign(u,i));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:i,mapAsMap:u,maxAliasCount:c,onAnchor:o,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!l,mapAsMap:u===!0,mapKeyWarned:!1,maxAliasCount:typeof c=="number"?c:100},g=Kt(this.contents,i??"",m);if(typeof o=="function")for(const{count:p,res:E}of m.anchors.values())o(E,p);return typeof h=="function"?va(h,{"":g},"",g):g}toJSON(l,i){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:i})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){const i=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${i}`)}return sb(this,l)}}function ha(s){if(Re(s))return!0;throw new Error("Expected a YAML collection as document contents")}class Kf extends Error{constructor(l,i,u,c){super(),this.name=l,this.code=u,this.message=c,this.pos=i}}class Al extends Kf{constructor(l,i,u){super("YAMLParseError",l,i,u)}}class Dp extends Kf{constructor(l,i,u){super("YAMLWarning",l,i,u)}}const Su=(s,l)=>i=>{if(i.pos[0]===-1)return;i.linePos=i.pos.map(m=>l.linePos(m));const{line:u,col:c}=i.linePos[0];i.message+=` at line ${u}, column ${c}`;let o=c-1,h=s.substring(l.lineStarts[u-1],l.lineStarts[u]).replace(/[\n\r]+$/,"");if(o>=60&&h.length>80){const m=Math.min(o-39,h.length-79);h="…"+h.substring(m),o-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),u>1&&/^ *$/.test(h.substring(0,o))){let m=s.substring(l.lineStarts[u-2],l.lineStarts[u-1]);m.length>80&&(m=m.substring(0,79)+`… -`),h=m+h}if(/[^ ]/.test(h)){let m=1;const g=i.linePos[1];g&&g.line===u&&g.col>c&&(m=Math.max(1,Math.min(g.col-c,80-o)));const p=" ".repeat(o)+"^".repeat(m);i.message+=`: - -${h} -${p} -`}};function Aa(s,{flow:l,indicator:i,next:u,offset:c,onError:o,parentIndent:h,startOnNewline:m}){let g=!1,p=m,E=m,v="",_="",A=!1,z=!1,S=null,T=null,x=null,j=null,Y=null,X=null,W=null;for(const V of s)switch(z&&(V.type!=="space"&&V.type!=="newline"&&V.type!=="comma"&&o(V.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),z=!1),S&&(p&&V.type!=="comment"&&V.type!=="newline"&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),V.type){case"space":!l&&(i!=="doc-start"||(u==null?void 0:u.type)!=="flow-collection")&&V.source.includes(" ")&&(S=V),E=!0;break;case"comment":{E||o(V,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const B=V.source.substring(1)||" ";v?v+=_+B:v=B,_="",p=!1;break}case"newline":p?v?v+=V.source:g=!0:_+=V.source,p=!0,A=!0,(T||x)&&(j=V),E=!0;break;case"anchor":T&&o(V,"MULTIPLE_ANCHORS","A node can have at most one anchor"),V.source.endsWith(":")&&o(V.offset+V.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),T=V,W===null&&(W=V.offset),p=!1,E=!1,z=!0;break;case"tag":{x&&o(V,"MULTIPLE_TAGS","A node can have at most one tag"),x=V,W===null&&(W=V.offset),p=!1,E=!1,z=!0;break}case i:(T||x)&&o(V,"BAD_PROP_ORDER",`Anchors and tags must be after the ${V.source} indicator`),X&&o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.source} in ${l??"collection"}`),X=V,p=i==="seq-item-ind"||i==="explicit-key-ind",E=!1;break;case"comma":if(l){Y&&o(V,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),Y=V,p=!1,E=!1;break}default:o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.type} token`),p=!1,E=!1}const K=s[s.length-1],G=K?K.offset+K.source.length:c;return z&&u&&u.type!=="space"&&u.type!=="newline"&&u.type!=="comma"&&(u.type!=="scalar"||u.source!=="")&&o(u.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=h||(u==null?void 0:u.type)==="block-map"||(u==null?void 0:u.type)==="block-seq")&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:Y,found:X,spaceBefore:g,comment:v,hasNewline:A,anchor:T,tag:x,newlineAfterProp:j,end:G,start:W??G}}function Di(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(` -`))return!0;if(s.end){for(const l of s.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of s.items){for(const i of l.start)if(i.type==="newline")return!0;if(l.sep){for(const i of l.sep)if(i.type==="newline")return!0}if(Di(l.key)||Di(l.value))return!0}return!1;default:return!0}}function Cf(s,l,i){if((l==null?void 0:l.type)==="flow-collection"){const u=l.end[0];u.indent===s&&(u.source==="]"||u.source==="}")&&Di(l)&&i(u,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Lp(s,l,i){const{uniqueKeys:u}=s.options;if(u===!1)return!1;const c=typeof u=="function"?u:(o,h)=>o===h||De(o)&&De(h)&&o.value===h.value;return l.some(o=>c(o.key,i))}const Eg="All mapping items must start at the same column";function ub({composeNode:s,composeEmptyNode:l},i,u,c,o){var E;const h=(o==null?void 0:o.nodeClass)??Lt,m=new h(i.schema);i.atRoot&&(i.atRoot=!1);let g=u.offset,p=null;for(const v of u.items){const{start:_,key:A,sep:z,value:S}=v,T=Aa(_,{indicator:"explicit-key-ind",next:A??(z==null?void 0:z[0]),offset:g,onError:c,parentIndent:u.indent,startOnNewline:!0}),x=!T.found;if(x){if(A&&(A.type==="block-seq"?c(g,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in A&&A.indent!==u.indent&&c(g,"BAD_INDENT",Eg)),!T.anchor&&!T.tag&&!z){p=T.end,T.comment&&(m.comment?m.comment+=` -`+T.comment:m.comment=T.comment);continue}(T.newlineAfterProp||Di(A))&&c(A??_[_.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((E=T.found)==null?void 0:E.indent)!==u.indent&&c(g,"BAD_INDENT",Eg);i.atKey=!0;const j=T.end,Y=A?s(i,A,T,c):l(i,j,_,null,T,c);i.schema.compat&&Cf(u.indent,A,c),i.atKey=!1,Lp(i,m.items,Y)&&c(j,"DUPLICATE_KEY","Map keys must be unique");const X=Aa(z??[],{indicator:"map-value-ind",next:S,offset:Y.range[2],onError:c,parentIndent:u.indent,startOnNewline:!A||A.type==="block-scalar"});if(g=X.end,X.found){x&&((S==null?void 0:S.type)==="block-map"&&!X.hasNewline&&c(g,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),i.options.strict&&T.starts&&(s.type==="block-map"||s.type==="block-seq");function rb({composeNode:s,composeEmptyNode:l},i,u,c,o){const h=u.start.source==="{",m=h?"flow map":"flow sequence",g=(o==null?void 0:o.nodeClass)??(h?Lt:Pn),p=new g(i.schema);p.flow=!0;const E=i.atRoot;E&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let v=u.offset+u.start.source.length;for(let T=0;T0){const T=Ri(z,S,i.options.strict,c);T.comment&&(p.comment?p.comment+=` -`+T.comment:p.comment=T.comment),p.range=[u.offset,S,T.offset]}else p.range=[u.offset,S,S];return p}function pf(s,l,i,u,c,o){const h=i.type==="block-map"?ub(s,l,i,u,o):i.type==="block-seq"?cb(s,l,i,u,o):rb(s,l,i,u,o),m=h.constructor;return c==="!"||c===m.tagName?(h.tag=m.tagName,h):(c&&(h.tag=c),h)}function fb(s,l,i,u,c){var _;const o=u.tag,h=o?l.directives.tagName(o.source,A=>c(o,"TAG_RESOLVE_FAILED",A)):null;if(i.type==="block-seq"){const{anchor:A,newlineAfterProp:z}=u,S=A&&o?A.offset>o.offset?A:o:A??o;S&&(!z||z.offsetA.tag===h&&A.collection===m);if(!g){const A=l.schema.knownTags[h];if(A&&A.collection===m)l.schema.tags.push(Object.assign({},A,{default:!1})),g=A;else return A!=null&&A.collection?c(o,"BAD_COLLECTION_TYPE",`${A.tag} used for ${m} collection, but expects ${A.collection}`,!0):c(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),pf(s,l,i,c,h)}const p=pf(s,l,i,c,h,g),E=((_=g.resolve)==null?void 0:_.call(g,p,A=>c(o,"TAG_RESOLVE_FAILED",A),l.options))??p,v=ke(E)?E:new ue(E);return v.range=p.range,v.tag=h,g!=null&&g.format&&(v.format=g.format),v}function Up(s,l,i){const u=l.offset,c=ob(l,s.options.strict,i);if(!c)return{value:"",type:null,comment:"",range:[u,u,u]};const o=c.mode===">"?ue.BLOCK_FOLDED:ue.BLOCK_LITERAL,h=l.source?hb(l.source):[];let m=h.length;for(let S=h.length-1;S>=0;--S){const T=h[S][1];if(T===""||T==="\r")m=S;else break}if(m===0){const S=c.chomp==="+"&&h.length>0?` -`.repeat(Math.max(1,h.length-1)):"";let T=u+c.length;return l.source&&(T+=l.source.length),{value:S,type:o,comment:c.comment,range:[u,T,T]}}let g=l.indent+c.indent,p=l.offset+c.length,E=0;for(let S=0;Sg&&(g=T.length);else{T.length=m;--S)h[S][0].length>g&&(m=S+1);let v="",_="",A=!1;for(let S=0;Sg||x[0]===" "?(_===" "?_=` -`:!A&&_===` -`&&(_=` - -`),v+=_+T.slice(g)+x,_=` -`,A=!0):x===""?_===` -`?v+=` -`:_=` -`:(v+=_+x,_=" ",A=!1)}switch(c.chomp){case"-":break;case"+":for(let S=m;Si(u+_,A,z);switch(c){case"scalar":m=ue.PLAIN,g=db(o,p);break;case"single-quoted-scalar":m=ue.QUOTE_SINGLE,g=mb(o,p);break;case"double-quoted-scalar":m=ue.QUOTE_DOUBLE,g=gb(o,p);break;default:return i(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${c}`),{value:"",type:null,comment:"",range:[u,u+o.length,u+o.length]}}const E=u+o.length,v=Ri(h,E,l,i);return{value:g,type:m,comment:v.comment,range:[u,E,v.offset]}}function db(s,l){let i="";switch(s[0]){case" ":i="a tab character";break;case",":i="flow indicator character ,";break;case"%":i="directive indicator character %";break;case"|":case">":{i=`block scalar indicator ${s[0]}`;break}case"@":case"`":{i=`reserved character ${s[0]}`;break}}return i&&l(0,"BAD_SCALAR_START",`Plain value cannot start with ${i}`),Bp(s)}function mb(s,l){return(s[s.length-1]!=="'"||s.length===1)&&l(s.length,"MISSING_CHAR","Missing closing 'quote"),Bp(s.slice(1,-1)).replace(/''/g,"'")}function Bp(s){let l,i;try{l=new RegExp(`(.*?)(?o?s.slice(o,u+1):c)}else i+=c}return(s[s.length-1]!=='"'||s.length===1)&&l(s.length,"MISSING_CHAR",'Missing closing "quote'),i}function pb(s,l){let i="",u=s[l+1];for(;(u===" "||u===" "||u===` -`||u==="\r")&&!(u==="\r"&&s[l+2]!==` -`);)u===` -`&&(i+=` -`),l+=1,u=s[l+1];return i||(i=" "),{fold:i,offset:l}}const yb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` -`,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function vb(s,l,i,u){const c=s.substr(l,i),h=c.length===i&&/^[0-9a-fA-F]+$/.test(c)?parseInt(c,16):NaN;if(isNaN(h)){const m=s.substr(l-2,i+2);return u(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),m}return String.fromCodePoint(h)}function Rp(s,l,i,u){const{value:c,type:o,comment:h,range:m}=l.type==="block-scalar"?Up(s,l,u):jp(l,s.options.strict,u),g=i?s.directives.tagName(i.source,v=>u(i,"TAG_RESOLVE_FAILED",v)):null;let p;s.options.stringKeys&&s.atKey?p=s.schema[nn]:g?p=bb(s.schema,c,g,i,u):l.type==="scalar"?p=Sb(s,c,l,u):p=s.schema[nn];let E;try{const v=p.resolve(c,_=>u(i??l,"TAG_RESOLVE_FAILED",_),s.options);E=De(v)?v:new ue(v)}catch(v){const _=v instanceof Error?v.message:String(v);u(i??l,"TAG_RESOLVE_FAILED",_),E=new ue(c)}return E.range=m,E.source=c,o&&(E.type=o),g&&(E.tag=g),p.format&&(E.format=p.format),h&&(E.comment=h),E}function bb(s,l,i,u,c){var m;if(i==="!")return s[nn];const o=[];for(const g of s.tags)if(!g.collection&&g.tag===i)if(g.default&&g.test)o.push(g);else return g;for(const g of o)if((m=g.test)!=null&&m.test(l))return g;const h=s.knownTags[i];return h&&!h.collection?(s.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(c(u,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,i!=="tag:yaml.org,2002:str"),s[nn])}function Sb({atKey:s,directives:l,schema:i},u,c,o){const h=i.tags.find(m=>{var g;return(m.default===!0||s&&m.default==="key")&&((g=m.test)==null?void 0:g.test(u))})||i[nn];if(i.compat){const m=i.compat.find(g=>{var p;return g.default&&((p=g.test)==null?void 0:p.test(u))})??i[nn];if(h.tag!==m.tag){const g=l.tagString(h.tag),p=l.tagString(m.tag),E=`Value may be parsed as either ${g} or ${p}`;o(c,"TAG_RESOLVE_FAILED",E,!0)}}return h}function Tb(s,l,i){if(l){i===null&&(i=l.length);for(let u=i-1;u>=0;--u){let c=l[u];switch(c.type){case"space":case"comment":case"newline":s-=c.source.length;continue}for(c=l[++u];(c==null?void 0:c.type)==="space";)s+=c.source.length,c=l[++u];break}}return s}const Eb={composeNode:kp,composeEmptyNode:Vf};function kp(s,l,i,u){const c=s.atKey,{spaceBefore:o,comment:h,anchor:m,tag:g}=i;let p,E=!0;switch(l.type){case"alias":p=Ab(s,l,u),(m||g)&&u(l,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=Rp(s,l,g,u),m&&(p.anchor=m.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=fb(Eb,s,l,i,u),m&&(p.anchor=m.source.substring(1));break;default:{const v=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;u(l,"UNEXPECTED_TOKEN",v),p=Vf(s,l.offset,void 0,null,i,u),E=!1}}return m&&p.anchor===""&&u(m,"BAD_ALIAS","Anchor cannot be an empty string"),c&&s.options.stringKeys&&(!De(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&u(g??l,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(p.spaceBefore=!0),h&&(l.type==="scalar"&&l.source===""?p.comment=h:p.commentBefore=h),s.options.keepSourceTokens&&E&&(p.srcToken=l),p}function Vf(s,l,i,u,{spaceBefore:c,comment:o,anchor:h,tag:m,end:g},p){const E={type:"scalar",offset:Tb(l,i,u),indent:-1,source:""},v=Rp(s,E,m,p);return h&&(v.anchor=h.source.substring(1),v.anchor===""&&p(h,"BAD_ALIAS","Anchor cannot be an empty string")),c&&(v.spaceBefore=!0),o&&(v.comment=o,v.range[2]=g),v}function Ab({options:s},{offset:l,source:i,end:u},c){const o=new _u(i.substring(1));o.source===""&&c(l,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&c(l+i.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=l+i.length,m=Ri(u,h,s.strict,c);return o.range=[l,h,m.offset],m.comment&&(o.comment=m.comment),o}function wb(s,l,{offset:i,start:u,value:c,end:o},h){const m=Object.assign({_directives:l},s),g=new xa(void 0,m),p={atKey:!1,atRoot:!0,directives:g.directives,options:g.options,schema:g.schema},E=Aa(u,{indicator:"doc-start",next:c??(o==null?void 0:o[0]),offset:i,onError:h,parentIndent:0,startOnNewline:!0});E.found&&(g.directives.docStart=!0,c&&(c.type==="block-map"||c.type==="block-seq")&&!E.hasNewline&&h(E.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),g.contents=c?kp(p,c,E,h):Vf(p,E.end,u,null,E,h);const v=g.contents.range[2],_=Ri(o,v,!1,h);return _.comment&&(g.comment=_.comment),g.range=[i,v,_.offset],g}function Mi(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];const{offset:l,source:i}=s;return[l,l+(typeof i=="string"?i.length:1)]}function Ag(s){var c;let l="",i=!1,u=!1;for(let o=0;o{const h=Mi(i);o?this.warnings.push(new Dp(h,u,c)):this.errors.push(new Al(h,u,c))},this.directives=new ot({version:l.version||"1.2"}),this.options=l}decorate(l,i){const{comment:u,afterEmptyLine:c}=Ag(this.prelude);if(u){const o=l.contents;if(i)l.comment=l.comment?`${l.comment} -${u}`:u;else if(c||l.directives.docStart||!o)l.commentBefore=u;else if(Re(o)&&!o.flow&&o.items.length>0){let h=o.items[0];Be(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${u} -${m}`:u}else{const h=o.commentBefore;o.commentBefore=h?`${u} -${h}`:u}}i?(Array.prototype.push.apply(l.errors,this.errors),Array.prototype.push.apply(l.warnings,this.warnings)):(l.errors=this.errors,l.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ag(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(l,i=!1,u=-1){for(const c of l)yield*this.next(c);yield*this.end(i,u)}*next(l){switch(l.type){case"directive":this.directives.add(l.source,(i,u,c)=>{const o=Mi(l);o[0]+=i,this.onError(o,"BAD_DIRECTIVE",u,c)}),this.prelude.push(l.source),this.atDirectives=!0;break;case"document":{const i=wb(this.options,this.directives,l,this.onError);this.atDirectives&&!i.directives.docStart&&this.onError(l,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(i,!1),this.doc&&(yield this.doc),this.doc=i,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(l.source);break;case"error":{const i=l.source?`${l.message}: ${JSON.stringify(l.source)}`:l.message,u=new Al(Mi(l),"UNEXPECTED_TOKEN",i);this.atDirectives||!this.doc?this.errors.push(u):this.doc.errors.push(u);break}case"doc-end":{if(!this.doc){const u="Unexpected doc-end without preceding document";this.errors.push(new Al(Mi(l),"UNEXPECTED_TOKEN",u));break}this.doc.directives.docEnd=!0;const i=Ri(l.end,l.offset+l.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),i.comment){const u=this.doc.comment;this.doc.comment=u?`${u} -${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.push(new Al(Mi(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,i=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const u=Object.assign({_directives:this.directives},this.options),c=new xa(void 0,u);this.atDirectives&&this.onError(i,"MISSING_CHAR","Missing directives-end indicator line"),c.range=[0,i,i],this.decorate(c,!1),yield c}}}function Ob(s,l=!0,i){if(s){const u=(c,o,h)=>{const m=typeof c=="number"?c:Array.isArray(c)?c[0]:c.offset;if(i)i(m,o,h);else throw new Al([m,m+1],o,h)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return jp(s,l,u);case"block-scalar":return Up({options:{strict:l}},s,u)}}return null}function _b(s,l){const{implicitKey:i=!1,indent:u,inFlow:c=!1,offset:o=-1,type:h="PLAIN"}=l,m=ji({type:h,value:s},{implicitKey:i,indent:u>0?" ".repeat(u):"",inFlow:c,options:{blockQuote:!0,lineWidth:-1}}),g=l.end??[{type:"newline",offset:-1,indent:u,source:` -`}];switch(m[0]){case"|":case">":{const p=m.indexOf(` -`),E=m.substring(0,p),v=m.substring(p+1)+` -`,_=[{type:"block-scalar-header",offset:o,indent:u,source:E}];return qp(_,g)||_.push({type:"newline",offset:-1,indent:u,source:` -`}),{type:"block-scalar",offset:o,indent:u,props:_,source:v}}case'"':return{type:"double-quoted-scalar",offset:o,indent:u,source:m,end:g};case"'":return{type:"single-quoted-scalar",offset:o,indent:u,source:m,end:g};default:return{type:"scalar",offset:o,indent:u,source:m,end:g}}}function Nb(s,l,i={}){let{afterKey:u=!1,implicitKey:c=!1,inFlow:o=!1,type:h}=i,m="indent"in s?s.indent:null;if(u&&typeof m=="number"&&(m+=2),!h)switch(s.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{const p=s.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}const g=ji({type:h,value:l},{implicitKey:c||m===null,indent:m!==null&&m>0?" ".repeat(m):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(g[0]){case"|":case">":Mb(s,g);break;case'"':yf(s,g,"double-quoted-scalar");break;case"'":yf(s,g,"single-quoted-scalar");break;default:yf(s,g,"scalar")}}function Mb(s,l){const i=l.indexOf(` -`),u=l.substring(0,i),c=l.substring(i+1)+` -`;if(s.type==="block-scalar"){const o=s.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=u,s.source=c}else{const{offset:o}=s,h="indent"in s?s.indent:-1,m=[{type:"block-scalar-header",offset:o,indent:h,source:u}];qp(m,"end"in s?s.end:void 0)||m.push({type:"newline",offset:-1,indent:h,source:` -`});for(const g of Object.keys(s))g!=="type"&&g!=="offset"&&delete s[g];Object.assign(s,{type:"block-scalar",indent:h,props:m,source:c})}}function qp(s,l){if(l)for(const i of l)switch(i.type){case"space":case"comment":s.push(i);break;case"newline":return s.push(i),!0}return!1}function yf(s,l,i){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=i,s.source=l;break;case"block-scalar":{const u=s.props.slice(1);let c=l.length;s.props[0].type==="block-scalar-header"&&(c-=s.props[0].source.length);for(const o of u)o.offset+=c;delete s.props,Object.assign(s,{type:i,source:l,end:u});break}case"block-map":case"block-seq":{const c={type:"newline",offset:s.offset+l.length,indent:s.indent,source:` -`};delete s.items,Object.assign(s,{type:i,source:l,end:[c]});break}default:{const u="indent"in s?s.indent:-1,c="end"in s&&Array.isArray(s.end)?s.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(const o of Object.keys(s))o!=="type"&&o!=="offset"&&delete s[o];Object.assign(s,{type:i,indent:u,source:l,end:c})}}}const Cb=s=>"type"in s?Tu(s):gu(s);function Tu(s){switch(s.type){case"block-scalar":{let l="";for(const i of s.props)l+=Tu(i);return l+s.source}case"block-map":case"block-seq":{let l="";for(const i of s.items)l+=gu(i);return l}case"flow-collection":{let l=s.start.source;for(const i of s.items)l+=gu(i);for(const i of s.end)l+=i.source;return l}case"document":{let l=gu(s);if(s.end)for(const i of s.end)l+=i.source;return l}default:{let l=s.source;if("end"in s&&s.end)for(const i of s.end)l+=i.source;return l}}}function gu({start:s,key:l,sep:i,value:u}){let c="";for(const o of s)c+=o.source;if(l&&(c+=Tu(l)),i)for(const o of i)c+=o.source;return u&&(c+=Tu(u)),c}const zf=Symbol("break visit"),zb=Symbol("skip children"),Hp=Symbol("remove item");function Ol(s,l){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),$p(Object.freeze([]),s,l)}Ol.BREAK=zf;Ol.SKIP=zb;Ol.REMOVE=Hp;Ol.itemAtPath=(s,l)=>{let i=s;for(const[u,c]of l){const o=i==null?void 0:i[u];if(o&&"items"in o)i=o.items[c];else return}return i};Ol.parentCollection=(s,l)=>{const i=Ol.itemAtPath(s,l.slice(0,-1)),u=l[l.length-1][0],c=i==null?void 0:i[u];if(c&&"items"in c)return c;throw new Error("Parent collection not found")};function $p(s,l,i){let u=i(l,s);if(typeof u=="symbol")return u;for(const c of["key","value"]){const o=l[c];if(o&&"items"in o){for(let h=0;h!!s&&"items"in s,Db=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function Lb(s){switch(s){case Bu:return"";case Ru:return"";case ku:return"";case Li:return"";default:return JSON.stringify(s)}}function Yp(s){switch(s){case Bu:return"byte-order-mark";case Ru:return"doc-mode";case ku:return"flow-error-end";case Li:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` -`:case`\r -`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(s[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Ub=Object.freeze(Object.defineProperty({__proto__:null,BOM:Bu,DOCUMENT:Ru,FLOW_END:ku,SCALAR:Li,createScalarToken:_b,isCollection:xb,isScalar:Db,prettyToken:Lb,resolveAsScalar:Ob,setScalarValue:Nb,stringify:Cb,tokenType:Yp,visit:Ol},Symbol.toStringTag,{value:"Module"}));function Jt(s){switch(s){case void 0:case" ":case` -`:case"\r":case" ":return!0;default:return!1}}const wg=new Set("0123456789ABCDEFabcdef"),jb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),iu=new Set(",[]{}"),Bb=new Set(` ,[]{} -\r `),vf=s=>!s||Bb.has(s);class Gp{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(l,i=!1){if(l){if(typeof l!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+l:l,this.lineEndPos=null}this.atEnd=!i;let u=this.next??"stream";for(;u&&(i||this.hasChars(1));)u=yield*this.parseNext(u)}atLineEnd(){let l=this.pos,i=this.buffer[l];for(;i===" "||i===" ";)i=this.buffer[++l];return!i||i==="#"||i===` -`?!0:i==="\r"?this.buffer[l+1]===` -`:!1}charAt(l){return this.buffer[this.pos+l]}continueScalar(l){let i=this.buffer[l];if(this.indentNext>0){let u=0;for(;i===" ";)i=this.buffer[++u+l];if(i==="\r"){const c=this.buffer[u+l+1];if(c===` -`||!c&&!this.atEnd)return l+u+1}return i===` -`||u>=this.indentNext||!i&&!this.atEnd?l+u:-1}if(i==="-"||i==="."){const u=this.buffer.substr(l,3);if((u==="---"||u==="...")&&Jt(this.buffer[l+3]))return-1}return l}getLine(){let l=this.lineEndPos;return(typeof l!="number"||l!==-1&&lthis.indentValue&&!Jt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[l,i]=this.peek(2);if(!i&&!this.atEnd)return this.setNext("block-start");if((l==="-"||l==="?"||l===":")&&Jt(i)){const u=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=u,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const l=this.getLine();if(l===null)return this.setNext("doc");let i=yield*this.pushIndicators();switch(l[i]){case"#":yield*this.pushCount(l.length-i);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(vf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return i+=yield*this.parseBlockScalarHeader(),i+=yield*this.pushSpaces(!0),yield*this.pushCount(l.length-i),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let l,i,u=-1;do l=yield*this.pushNewline(),l>0?(i=yield*this.pushSpaces(!1),this.indentValue=u=i):i=0,i+=yield*this.pushSpaces(!0);while(l+i>0);const c=this.getLine();if(c===null)return this.setNext("flow");if((u!==-1&&u"0"&&i<="9")this.blockScalarIndent=Number(i)-1;else if(i!=="-")break}return yield*this.pushUntil(i=>Jt(i)||i==="#")}*parseBlockScalar(){let l=this.pos-1,i=0,u;e:for(let o=this.pos;u=this.buffer[o];++o)switch(u){case" ":i+=1;break;case` -`:l=o,i=0;break;case"\r":{const h=this.buffer[o+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===` -`)break}default:break e}if(!u&&!this.atEnd)return this.setNext("block-scalar");if(i>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=i:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(l+1);if(o===-1)break;l=this.buffer.indexOf(` -`,o)}while(l!==-1);if(l===-1){if(!this.atEnd)return this.setNext("block-scalar");l=this.buffer.length}}let c=l+1;for(u=this.buffer[c];u===" ";)u=this.buffer[++c];if(u===" "){for(;u===" "||u===" "||u==="\r"||u===` -`;)u=this.buffer[++c];l=c-1}else if(!this.blockScalarKeep)do{let o=l-1,h=this.buffer[o];h==="\r"&&(h=this.buffer[--o]);const m=o;for(;h===" ";)h=this.buffer[--o];if(h===` -`&&o>=this.pos&&o+1+i>m)l=o;else break}while(!0);return yield Li,yield*this.pushToIndex(l+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const l=this.flowLevel>0;let i=this.pos-1,u=this.pos-1,c;for(;c=this.buffer[++u];)if(c===":"){const o=this.buffer[u+1];if(Jt(o)||l&&iu.has(o))break;i=u}else if(Jt(c)){let o=this.buffer[u+1];if(c==="\r"&&(o===` -`?(u+=1,c=` -`,o=this.buffer[u+1]):i=u),o==="#"||l&&iu.has(o))break;if(c===` -`){const h=this.continueScalar(u+1);if(h===-1)break;u=Math.max(u,h-2)}}else{if(l&&iu.has(c))break;i=u}return!c&&!this.atEnd?this.setNext("plain-scalar"):(yield Li,yield*this.pushToIndex(i+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,i){const u=this.buffer.slice(this.pos,l);return u?(yield u,this.pos+=u.length,u.length):(i&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(vf))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,i=this.charAt(1);if(Jt(i)||l&&iu.has(i))return l?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let l=this.pos+2,i=this.buffer[l];for(;!Jt(i)&&i!==">";)i=this.buffer[++l];return yield*this.pushToIndex(i===">"?l+1:l,!1)}else{let l=this.pos+1,i=this.buffer[l];for(;i;)if(jb.has(i))i=this.buffer[++l];else if(i==="%"&&wg.has(this.buffer[l+1])&&wg.has(this.buffer[l+2]))i=this.buffer[l+=3];else break;return yield*this.pushToIndex(l,!1)}}*pushNewline(){const l=this.buffer[this.pos];return l===` -`?yield*this.pushCount(1):l==="\r"&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(l){let i=this.pos-1,u;do u=this.buffer[++i];while(u===" "||l&&u===" ");const c=i-this.pos;return c>0&&(yield this.buffer.substr(this.pos,c),this.pos=i),c}*pushUntil(l){let i=this.pos,u=this.buffer[i];for(;!l(u);)u=this.buffer[++i];return yield*this.pushToIndex(i,!1)}}class Kp{constructor(){this.lineStarts=[],this.addNewLine=l=>this.lineStarts.push(l),this.linePos=l=>{let i=0,u=this.lineStarts.length;for(;i>1;this.lineStarts[o]=0;)switch(s[l].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((i=s[++l])==null?void 0:i.type)==="space";);return s.splice(l,s.length)}function _g(s){if(s.start.type==="flow-seq-start")for(const l of s.items)l.sep&&!l.value&&!Sl(l.start,"explicit-key-ind")&&!Sl(l.sep,"map-value-ind")&&(l.key&&(l.value=l.key),delete l.key,Vp(l.value)?l.value.end?Array.prototype.push.apply(l.value.end,l.sep):l.value.end=l.sep:Array.prototype.push.apply(l.start,l.sep),delete l.sep)}class Xf{constructor(l){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Gp,this.onNewLine=l}*parse(l,i=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const u of this.lexer.lex(l,i))yield*this.next(u);i||(yield*this.end())}*next(l){if(this.source=l,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=l.length;return}const i=Yp(l);if(i)if(i==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=i,yield*this.step(),i){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+l.length);break;case"space":this.atNewLine&&l[0]===" "&&(this.indent+=l.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=l.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=l.length}else{const u=`Not a YAML token: ${l}`;yield*this.pop({type:"error",offset:this.offset,message:u,source:l}),this.offset+=l.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const l=this.peek(1);if(this.type==="doc-end"&&(!l||l.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!l)return yield*this.stream();switch(l.type){case"document":return yield*this.document(l);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(l);case"block-scalar":return yield*this.blockScalar(l);case"block-map":return yield*this.blockMap(l);case"block-seq":return yield*this.blockSequence(l);case"flow-collection":return yield*this.flowCollection(l);case"doc-end":return yield*this.documentEnd(l)}yield*this.pop()}peek(l){return this.stack[this.stack.length-l]}*pop(l){const i=l??this.stack.pop();if(!i)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield i;else{const u=this.peek(1);switch(i.type==="block-scalar"?i.indent="indent"in u?u.indent:0:i.type==="flow-collection"&&u.type==="document"&&(i.indent=0),i.type==="flow-collection"&&_g(i),u.type){case"document":u.value=i;break;case"block-scalar":u.props.push(i);break;case"block-map":{const c=u.items[u.items.length-1];if(c.value){u.items.push({start:[],key:i,sep:[]}),this.onKeyLine=!0;return}else if(c.sep)c.value=i;else{Object.assign(c,{key:i,sep:[]}),this.onKeyLine=!c.explicitKey;return}break}case"block-seq":{const c=u.items[u.items.length-1];c.value?u.items.push({start:[],value:i}):c.value=i;break}case"flow-collection":{const c=u.items[u.items.length-1];!c||c.value?u.items.push({start:[],key:i,sep:[]}):c.sep?c.value=i:Object.assign(c,{key:i,sep:[]});return}default:yield*this.pop(),yield*this.pop(i)}if((u.type==="document"||u.type==="block-map"||u.type==="block-seq")&&(i.type==="block-map"||i.type==="block-seq")){const c=i.items[i.items.length-1];c&&!c.sep&&!c.value&&c.start.length>0&&Og(c.start)===-1&&(i.indent===0||c.start.every(o=>o.type!=="comment"||o.indent=l.indent){const c=!this.onKeyLine&&this.indent===l.indent,o=c&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(o&&i.sep&&!i.value){const m=[];for(let g=0;gl.indent&&(m.length=0);break;default:m.length=0}}m.length>=2&&(h=i.sep.splice(m[1]))}switch(this.type){case"anchor":case"tag":o||i.value?(h.push(this.sourceToken),l.items.push({start:h}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):o||i.value?(h.push(this.sourceToken),l.items.push({start:h,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(i.explicitKey)if(i.sep)if(i.value)l.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Sl(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]});else if(Vp(i.key)&&!Sl(i.sep,"newline")){const m=da(i.start),g=i.key,p=i.sep;p.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:g,sep:p}]})}else h.length>0?i.sep=i.sep.concat(h,this.sourceToken):i.sep.push(this.sourceToken);else if(Sl(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{const m=da(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||o?l.items.push({start:h,key:null,sep:[this.sourceToken]}):Sl(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const m=this.flowScalar(this.type);o||i.value?(l.items.push({start:h,key:m,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(m):(Object.assign(i,{key:m,sep:[]}),this.onKeyLine=!0);return}default:{const m=this.startBlockValue(l);if(m){c&&m.type!=="block-seq"&&l.items.push({start:h}),this.stack.push(m);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(l){var u;const i=l.items[l.items.length-1];switch(this.type){case"newline":if(i.value){const c="end"in i.value?i.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)l.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,l.indent)){const c=l.items[l.items.length-2],o=(u=c==null?void 0:c.value)==null?void 0:u.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),l.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=l.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==l.indent)break;i.value||Sl(i.start,"seq-item-ind")?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>l.indent){const c=this.startBlockValue(l);if(c){this.stack.push(c);return}}yield*this.pop(),yield*this.step()}*flowCollection(l){const i=l.items[l.items.length-1];if(this.type==="flow-error-end"){let u;do yield*this.pop(),u=this.peek(1);while(u&&u.type==="flow-collection")}else if(l.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?l.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?l.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const c=this.flowScalar(this.type);!i||i.value?l.items.push({start:[],key:c,sep:[]}):i.sep?this.stack.push(c):Object.assign(i,{key:c,sep:[]});return}case"flow-map-end":case"flow-seq-end":l.end.push(this.sourceToken);return}const u=this.startBlockValue(l);u?this.stack.push(u):(yield*this.pop(),yield*this.step())}else{const u=this.peek(2);if(u.type==="block-map"&&(this.type==="map-value-ind"&&u.indent===l.indent||this.type==="newline"&&!u.items[u.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&u.type!=="flow-collection"){const c=su(u),o=da(c);_g(l);const h=l.end.splice(1,l.end.length);h.push(this.sourceToken);const m={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:o,key:l,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(l)}}flowScalar(l){if(this.onNewLine){let i=this.source.indexOf(` -`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(` -`,i)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const i=su(l),u=da(i);return u.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const i=su(l),u=da(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,i){return this.type!=="comment"||this.indent<=i?!1:l.every(u=>u.type==="newline"||u.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Qp(s){const l=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||l&&new Kp||null,prettyErrors:l}}function Rb(s,l={}){const{lineCounter:i,prettyErrors:u}=Qp(l),c=new Xf(i==null?void 0:i.addNewLine),o=new Qf(l),h=Array.from(o.compose(c.parse(s)));if(u&&i)for(const m of h)m.errors.forEach(Su(s,i)),m.warnings.forEach(Su(s,i));return h.length>0?h:Object.assign([],{empty:!0},o.streamInfo())}function Xp(s,l={}){const{lineCounter:i,prettyErrors:u}=Qp(l),c=new Xf(i==null?void 0:i.addNewLine),o=new Qf(l);let h=null;for(const m of o.compose(c.parse(s),!0,s.length))if(!h)h=m;else if(h.options.logLevel!=="silent"){h.errors.push(new Al(m.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return u&&i&&(h.errors.forEach(Su(s,i)),h.warnings.forEach(Su(s,i))),h}function kb(s,l,i){let u;typeof l=="function"?u=l:i===void 0&&l&&typeof l=="object"&&(i=l);const c=Xp(s,i);if(!c)return null;if(c.warnings.forEach(o=>dp(c.options.logLevel,o)),c.errors.length>0){if(c.options.logLevel!=="silent")throw c.errors[0];c.errors=[]}return c.toJS(Object.assign({reviver:u},i))}function qb(s,l,i){let u=null;if(typeof l=="function"||Array.isArray(l)?u=l:i===void 0&&l&&(i=l),typeof i=="string"&&(i=i.length),typeof i=="number"){const c=Math.round(i);i=c<1?void 0:c>8?{indent:8}:{indent:c}}if(s===void 0){const{keepUndefined:c}=i??l??{};if(!c)return}return Nl(s)&&!u?s.toString(i):new xa(s,u,i).toString(i)}const Hb=Object.freeze(Object.defineProperty({__proto__:null,Alias:_u,CST:Ub,Composer:Qf,Document:xa,Lexer:Gp,LineCounter:Kp,Pair:ct,Parser:Xf,Scalar:ue,Schema:ju,YAMLError:Kf,YAMLMap:Lt,YAMLParseError:Al,YAMLSeq:Pn,YAMLWarning:Dp,isAlias:_l,isCollection:Re,isDocument:Nl,isMap:Na,isNode:ke,isPair:Be,isScalar:De,isSeq:Ma,parse:kb,parseAllDocuments:Rb,parseDocument:Xp,stringify:qb,visit:In,visitAsync:Ou},Symbol.toStringTag,{value:"Module"}));function $b(s,l,i={}){var _;const u=new s.LineCounter,c={keepSourceTokens:!0,lineCounter:u,...i},o=s.parseDocument(l,c),h=[],m=A=>[u.linePos(A[0]),u.linePos(A[1])],g=A=>{h.push({message:A.message,range:[u.linePos(A.pos[0]),u.linePos(A.pos[1])]})},p=(A,z)=>{for(const S of z.items){if(S instanceof s.Scalar&&typeof S.value=="string"){const j=Eu.parse(S,c,h);j&&(A.children=A.children||[],A.children.push(j));continue}if(S instanceof s.YAMLMap){E(A,S);continue}h.push({message:"Sequence items should be strings or maps",range:m(S.range||z.range)})}},E=(A,z)=>{for(const S of z.items){if(A.children=A.children||[],!(S.key instanceof s.Scalar&&typeof S.key.value=="string")){h.push({message:"Only string keys are supported",range:m(S.key.range||z.range)});continue}const x=S.key,j=S.value;if(x.value==="text"){if(!(j instanceof s.Scalar&&typeof j.value=="string")){h.push({message:"Text value should be a string",range:m(S.value.range||z.range)});continue}A.children.push({kind:"text",text:bf(j.value)});continue}if(x.value==="/children"){if(!(j instanceof s.Scalar&&typeof j.value=="string")||j.value!=="contain"&&j.value!=="equal"&&j.value!=="deep-equal"){h.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:m(S.value.range||z.range)});continue}A.containerMode=j.value;continue}if(x.value.startsWith("/")){if(!(j instanceof s.Scalar&&typeof j.value=="string")){h.push({message:"Property value should be a string",range:m(S.value.range||z.range)});continue}A.props=A.props??{},A.props[x.value.slice(1)]=bf(j.value);continue}const Y=Eu.parse(x,c,h);if(!Y)continue;if(j instanceof s.Scalar){const K=typeof j.value;if(K!=="string"&&K!=="number"&&K!=="boolean"){h.push({message:"Node value should be a string or a sequence",range:m(S.value.range||z.range)});continue}A.children.push({...Y,children:[{kind:"text",text:bf(String(j.value))}]});continue}if(j instanceof s.YAMLSeq){A.children.push(Y),p(Y,j);continue}h.push({message:"Map values should be strings or sequences",range:m(S.value.range||z.range)})}},v={kind:"role",role:"fragment"};return o.errors.forEach(g),h.length?{errors:h,fragment:v}:(o.contents instanceof s.YAMLSeq||h.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:o.contents?m(o.contents.range):[{line:0,col:0},{line:0,col:0}]}),h.length?{errors:h,fragment:v}:(p(v,o.contents),h.length?{errors:h,fragment:Yb}:((_=v.children)==null?void 0:_.length)===1&&(!v.containerMode||v.containerMode==="contain")?{fragment:v.children[0],errors:[]}:{fragment:v,errors:[]}))}const Yb={kind:"role",role:"fragment"};function Zp(s){return s.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function bf(s){return{raw:s,normalized:Zp(s)}}class Eu{static parse(l,i,u){try{return new Eu(l.value)._parse()}catch(c){if(c instanceof Ng){const o=i.prettyErrors===!1?c.message:c.message+`: - -`+l.value+` -`+" ".repeat(c.pos)+`^ -`;return u.push({message:o,range:[i.lineCounter.linePos(l.range[0]),i.lineCounter.linePos(l.range[0]+c.pos)]}),null}throw c}}constructor(l){this._input=l,this._pos=0,this._length=l.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(l){this._eof()&&this._throwError(`Unexpected end of input when expecting ${l}`);const i=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(i,this._pos)}_readString(){let l="",i=!1;for(;!this._eof();){const u=this._next();if(i)l+=u,i=!1;else if(u==="\\")i=!0;else{if(u==='"')return l;l+=u}}this._throwError("Unterminated string")}_throwError(l,i=0){throw new Ng(l,i||this._pos)}_readRegex(){let l="",i=!1,u=!1;for(;!this._eof();){const c=this._next();if(i)l+=c,i=!1;else if(c==="\\")i=!0,l+=c;else{if(c==="/"&&!u)return{pattern:l};c==="["?(u=!0,l+=c):c==="]"&&u?(l+=c,u=!1):l+=c}}this._throwError("Unterminated regex")}_readStringOrRegex(){const l=this._peek();return l==='"'?(this._next(),Zp(this._readString())):l==="/"?(this._next(),this._readRegex()):null}_readAttributes(l){let i=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),i=this._pos;const u=this._readIdentifier("attribute");this._skipWhitespace();let c="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),i=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)c+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(l,u,c||"true",i)}}_parse(){this._skipWhitespace();const l=this._readIdentifier("role");this._skipWhitespace();const i=this._readStringOrRegex()||"",u={kind:"role",role:l,name:i};return this._readAttributes(u),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),u}_applyAttribute(l,i,u,c){if(i==="checked"){this._assert(u==="true"||u==="false"||u==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',c),l.checked=u==="true"?!0:u==="false"?!1:"mixed";return}if(i==="disabled"){this._assert(u==="true"||u==="false",'Value of "disabled" attribute must be a boolean',c),l.disabled=u==="true";return}if(i==="expanded"){this._assert(u==="true"||u==="false",'Value of "expanded" attribute must be a boolean',c),l.expanded=u==="true";return}if(i==="active"){this._assert(u==="true"||u==="false",'Value of "active" attribute must be a boolean',c),l.active=u==="true";return}if(i==="level"){this._assert(!isNaN(Number(u)),'Value of "level" attribute must be a number',c),l.level=Number(u);return}if(i==="pressed"){this._assert(u==="true"||u==="false"||u==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',c),l.pressed=u==="true"?!0:u==="false"?!1:"mixed";return}if(i==="selected"){this._assert(u==="true"||u==="false",'Value of "selected" attribute must be a boolean',c),l.selected=u==="true";return}this._assert(!1,`Unsupported attribute [${i}]`,c)}_assert(l,i,u){l||this._throwError(i||"Assertion error",u)}}class Ng extends Error{constructor(l,i){super(l),this.pos=i}}const Gb=({className:s,style:l,open:i,isModal:u,minWidth:c,verticalOffset:o,requestClose:h,anchor:m,dataTestId:g,children:p})=>{const E=oe.useRef(null),[v,_]=oe.useState(0),[A]=Sf(E),[z,S]=Sf(m),T=m?Kb(A,z,o):void 0;return oe.useEffect(()=>{const x=Y=>{!E.current||!(Y.target instanceof Node)||E.current.contains(Y.target)||h==null||h()},j=Y=>{Y.key==="Escape"&&(h==null||h())};return i?(document.addEventListener("mousedown",x),document.addEventListener("keydown",j),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",j)}):()=>{}},[i,h]),oe.useLayoutEffect(()=>S(),[i,S]),oe.useEffect(()=>{const x=()=>_(j=>j+1);return window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)}},[]),oe.useLayoutEffect(()=>{E.current&&(i?u?E.current.showModal():E.current.show():E.current.close())},[i,u]),Z.jsx("dialog",{ref:E,style:{position:"fixed",margin:T?0:void 0,zIndex:110,top:T==null?void 0:T.top,left:T==null?void 0:T.left,minWidth:c||0,...l},className:s,"data-testid":g,children:p})};function Kb(s,l,i=4,u=4){let c=Math.max(u,l.left);c+s.width>window.innerWidth-u&&(c=window.innerWidth-s.width-u);let o=Math.max(0,l.bottom)+i;return o+s.height>window.innerHeight-i&&(Math.max(0,l.top)>s.height+i?o=Math.max(0,l.top)-s.height-i:o=window.innerHeight-i-s.height),{left:c,top:o}}const Vb=({})=>{const[s,l]=oe.useState([]),[i,u]=oe.useState(!1),[c,o]=oe.useState(new Map),[h,m]=oe.useState("none"),[g,p]=oe.useState(),[E,v]=pu("recorderPropertiesTab","log"),[_,A]=oe.useState(),[z,S]=oe.useState(),[T,x]=oe.useState(!1),[j,Y]=z1(),[X,W]=pu("autoExpect",!1),K=oe.useRef(null),G=oe.useMemo(Qb,[]),[V,B]=oe.useState(""),he=oe.useRef(null),ne=oe.useMemo(()=>s.find(D=>D.id===g)??ev(),[s,g]);oe.useLayoutEffect(()=>{const ie={modeChanged:({mode:D})=>m(D),sourcesUpdated:({sources:D})=>{l(D),window.playwrightSourcesEchoForTest=D},pageNavigated:({url:D})=>{document.title=D?`Playwright Inspector - ${D}`:"Playwright Inspector"},pauseStateChanged:({paused:D})=>u(D),callLogsUpdated:({callLogs:D})=>{o(Q=>{const ee=new Map(Q);for(const de of D)de.reveal=!Q.has(de.id),ee.set(de.id,de);return ee})},sourceRevealRequested:({sourceId:D})=>p(D),elementPicked:({elementInfo:D,userGesture:Q})=>{const ee=ne.language;B(ep(ee,D.selector)),A(D.ariaSnapshot),S([]),Q&&E!=="locator"&&E!=="aria"&&v("locator"),h==="inspecting"&&E==="aria"||G.setMode({mode:h==="inspecting"?"standby":"recording"}).catch(()=>{})}};window.dispatch=D=>{ie[D.method].call(ie,D.params)}},[G,h,E,v,ne]),oe.useEffect(()=>{G.setAutoExpect({autoExpect:X})},[X,G]),oe.useLayoutEffect(()=>{var ie;(ie=he.current)==null||ie.scrollIntoView({block:"center",inline:"nearest"})},[he]),oe.useLayoutEffect(()=>{const ie=D=>{switch(D.key){case"F8":D.preventDefault(),i?G.resume():G.pause();break;case"F10":D.preventDefault(),i&&G.step();break}};return document.addEventListener("keydown",ie),()=>document.removeEventListener("keydown",ie)},[i,G]);const q=oe.useCallback(ie=>{(h==="none"||h==="inspecting")&&G.setMode({mode:"standby"}),B(ie),G.highlightRequested({selector:ie})},[h,G]),le=oe.useCallback(ie=>{(h==="none"||h==="inspecting")&&G.setMode({mode:"standby"});const{fragment:D,errors:Q}=$b(Hb,ie,{prettyErrors:!1}),ee=Q.map(de=>({message:de.message,line:de.range[1].line,column:de.range[1].col,type:"subtle-error"}));S(ee),A(ie),Q.length||G.highlightRequested({ariaTemplate:D})},[h,G]),ze=h==="recording"||h==="recording-inspecting"||h==="assertingText"||h==="assertingVisibility";return Z.jsxs("div",{className:"recorder",children:[Z.jsxs(xg,{children:[Z.jsx(Dt,{icon:ze?"stop-circle":"circle-large-filled",title:ze?"Stop Recording":"Start Recording",toggled:ze,onClick:()=>{G.setMode({mode:h==="none"||h==="standby"||h==="inspecting"?"recording":"standby"})},children:"Record"}),Z.jsx(hg,{}),Z.jsx(Dt,{icon:"inspect",title:"Pick locator",toggled:h==="inspecting"||h==="recording-inspecting",onClick:()=>{const ie={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting"}[h];G.setMode({mode:ie}).catch(()=>{})}}),Z.jsx(Dt,{icon:"eye",title:"Assert visibility",toggled:h==="assertingVisibility",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingVisibility"?"recording":"assertingVisibility"})}}),Z.jsx(Dt,{icon:"whole-word",title:"Assert text",toggled:h==="assertingText",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingText"?"recording":"assertingText"})}}),Z.jsx(Dt,{icon:"symbol-constant",title:"Assert value",toggled:h==="assertingValue",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingValue"?"recording":"assertingValue"})}}),Z.jsx(Dt,{icon:"gist",title:"Assert snapshot",toggled:h==="assertingSnapshot",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingSnapshot"?"recording":"assertingSnapshot"})}}),Z.jsx(hg,{}),Z.jsx(Dt,{icon:"files",title:"Copy",disabled:!ne||!ne.text,onClick:()=>{eg(ne.text)}}),Z.jsx(Dt,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!i,onClick:()=>{G.resume()}}),Z.jsx(Dt,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:i,onClick:()=>{G.pause()}}),Z.jsx(Dt,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!i,onClick:()=>{G.step()}}),Z.jsx("div",{style:{flex:"auto"}}),Z.jsx("div",{children:"Target:"}),Z.jsx(I1,{fileId:ne.id,sources:s,setFileId:ie=>{p(ie),G.fileChanged({fileId:ie})}}),Z.jsx(Dt,{icon:"clear-all",title:"Clear",disabled:!ne||!ne.text,onClick:()=>{G.clear()}}),Z.jsx(Dt,{ref:K,icon:"settings-gear",title:"Settings",onClick:()=>x(ie=>!ie)}),Z.jsxs(Gb,{style:{padding:"4px 8px"},open:T,verticalOffset:8,requestClose:()=>x(!1),anchor:K,dataTestId:"settings-dialog",children:[Z.jsxs("div",{className:"setting setting-theme",children:[Z.jsx("label",{htmlFor:"dark-mode-setting",children:"Theme:"}),Z.jsx("select",{id:"dark-mode-setting",value:j,onChange:ie=>Y(ie.target.value),children:_1.map(ie=>Z.jsx("option",{value:ie.value,children:ie.label},ie.value))})]},"dark-mode-setting"),Z.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[Z.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:X,onChange:()=>{G.setAutoExpect({autoExpect:!X}),W(!X)}}),Z.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),Z.jsx(J1,{sidebarSize:200,main:Z.jsx(ff,{text:ne.text,highlighter:ne.language,highlight:ne.highlight,revealLine:ne.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:Z.jsx(W1,{rightToolbar:E==="locator"||E==="aria"?[Z.jsx(Dt,{icon:"files",title:"Copy",onClick:()=>eg((E==="locator"?V:_)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>Z.jsx(ff,{text:V,placeholder:"Type locator to inspect",highlighter:ne.language,focusOnChange:!0,onChange:q,wrapLines:!0})},{id:"log",title:"Log",render:()=>Z.jsx(Cv,{language:ne.language,log:Array.from(c.values())})},{id:"aria",title:"Aria",render:()=>Z.jsx(ff,{text:_||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:le,highlight:z,wrapLines:!0})}],selectedTab:E,setSelectedTab:v})})]})};function Qb(){return new Proxy({},{get:(s,l)=>{if(typeof l=="string")return i=>window.sendCommand({method:l,params:i})}})}(async()=>(N1(),R1.createRoot(document.querySelector("#root")).render(Z.jsx(Vb,{}))))();export{v1 as g}; diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/index.html b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/index.html deleted file mode 100644 index ef6bc52..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - Playwright Inspector - - - - -
- - diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg deleted file mode 100644 index 7b3ca7d..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-a5XoALAZ.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-a5XoALAZ.js deleted file mode 100644 index 67c257f..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-a5XoALAZ.js +++ /dev/null @@ -1,32 +0,0 @@ -import{v as Ju}from"./defaultSettingsView-CJSZINFr.js";var vi={exports:{}},Zu=vi.exports,pa;function mt(){return pa||(pa=1,(function(ct,xt){(function(b,pe){ct.exports=pe()})(Zu,(function(){var b=navigator.userAgent,pe=navigator.platform,_=/gecko\/\d/i.test(b),te=/MSIE \d/.test(b),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(b),Q=/Edge\/(\d+)/.exec(b),k=te||oe||Q,I=k&&(te?document.documentMode||6:+(Q||oe)[1]),Y=!Q&&/WebKit\//.test(b),ne=Y&&/Qt\/\d+\.\d+/.test(b),S=!Q&&/Chrome\/(\d+)/.exec(b),R=S&&+S[1],A=/Opera\//.test(b),V=/Apple Computer/.test(navigator.vendor),ue=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(b),O=/PhantomJS/.test(b),w=V&&(/Mobile\/\w+/.test(b)||navigator.maxTouchPoints>2),M=/Android/.test(b),N=w||M||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(b),z=w||/Mac/.test(pe),X=/\bCrOS\b/.test(b),q=/win/i.test(pe),p=A&&b.match(/Version\/(\d*\.\d*)/);p&&(p=Number(p[1])),p&&p>=15&&(A=!1,Y=!0);var W=z&&(ne||A&&(p==null||p<12.11)),J=_||k&&I>=9;function P(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var $=function(e,t){var n=e.className,r=P(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function F(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return F(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var Ce=function(){this.id=null,this.f=null,this.time=0,this.handler=xe(this.onTimeout,this)};Ce.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ce.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Ue=[""];function et(e){for(;Ue.length<=e;)Ue.push(we(Ue)+" ");return Ue[e]}function we(e){return e[e.length-1]}function Ie(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ze.test(e))}function De(e,t){return t?t.source.indexOf("\\w")>-1&&me(e)?!0:t.test(e):me(e)}function be(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ne(e){return e.charCodeAt(0)>=768&&Be.test(e)}function Mt(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function or(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var br=null;function lr(e,t,n){var r;br=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:br=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:br=i)}return r??br}var mi=(function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,x){this.level=u,this.from=h,this.to=x}return function(u,h){var x=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!r.test(u))return!1;for(var D=u.length,L=[],H=0;H-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ye(e,t){var n=Zt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Bt(e){e.prototype.on=function(t,n){Se(this,t,n)},e.prototype.off=function(t,n){ht(this,t,n)}}function pt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Er(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function kt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ar(e){pt(e),Er(e)}function ln(e){return e.target||e.srcElement}function Rt(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),z&&e.ctrlKey&&t==1&&(t=3),t}var xi=(function(){if(k&&I<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e})(),Or;function Rn(e){if(Or==null){var t=c("span","​");G(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Or=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&I<8))}var n=Or?c("span","​"):c("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var an;function sr(e){if(an!=null)return an;var t=G(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return F(e),!n||n.left==n.right?!1:an=r.right-n.right<3}var zt=` - -b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` -`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ur=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Wn=(function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),Wt=null;function yi(e){if(Wt!=null)return Wt;var t=G(e,c("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Wt=Math.abs(n.left-r.left)>1}var Pr={},Ht={};function _t(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pr[e]=t}function kr(e,t){Ht[e]=t}function Ir(e){if(typeof e=="string"&&Ht.hasOwnProperty(e))e=Ht[e];else if(e&&typeof e.name=="string"&&Ht.hasOwnProperty(e.name)){var t=Ht[e.name];typeof t=="string"&&(t={name:t}),e=K(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ir("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ir("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function zr(e,t){t=Ir(t);var n=Pr[t.name];if(!n)return zr(e,"text/plain");var r=n(e,t);if(fr.hasOwnProperty(t.name)){var i=fr[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var fr={};function Br(e,t){var n=fr.hasOwnProperty(e)?fr[e]:fr[e]={};Me(t,n)}function Gt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function sn(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Rr(e,t,n){return e.startState?e.startState(t,n):!0}var Je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Je.prototype.eol=function(){return this.pos>=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.post},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ye(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?B(n,ye(e,n).text.length):Za(t,ye(e,t.line).text.length)}function Za(e,t){var n=e.ch;return n==null||n>t?B(e.line,t):n<0?B(e.line,0):e}function vo(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Xt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xt.fromSaved=function(e,t,n){return t instanceof Hn?new Xt(e,Gt(e.mode,t.state),n,t.lookAhead):new Xt(e,Gt(e.mode,t),n)},Xt.prototype.save=function(e){var t=e!==!1?Gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(t,this.maxLookAhead):t};function mo(e,t,n,r){var i=[e.state.modeGen],o={};So(e,t.text,e.doc.mode,n,function(u,h){return i.push(u,h)},o,r);for(var l=n.state,a=function(u){n.baseTokens=i;var h=e.state.overlays[u],x=1,D=0;n.state=!0,So(e,t.text,h.mode,n,function(L,H){for(var Z=x;DL&&i.splice(x,1,L,i[x+1],ie),x+=2,D=Math.min(L,ie)}if(H)if(h.opaque)i.splice(Z,x-Z,L,"overlay "+H),x=Z+2;else for(;Ze.options.maxHighlightLength&&Gt(e.doc.mode,r.state),o=mo(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function fn(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Xt(r,!0,t);var o=Va(e,t,n),l=o>r.first&&ye(r,o-1).stateAfter,a=l?Xt.fromSaved(r,l,o):new Xt(r,Rr(r.mode),o);return r.iter(o,t,function(s){bi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var bo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function ko(e,t,n,r){var i=e.doc,o=i.mode,l;t=Ae(i,t);var a=ye(i,t.line),s=fn(e,t.line,n),u=new Je(a.text,e.options.tabSize,s),h;for(r&&(h=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&bi(e,t,r,h.pos),h.pos=t.length,x=null):x=wo(ki(n,h,r.state,D),o),D){var L=D[0].name;L&&(x="m-"+(x?L+" "+x:L))}if(!a||u!=x){for(;sl;--a){if(a<=o.first)return o.first;var s=ye(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Hn?u.lookAhead:0)<=o.modeFrontier))return a;var h=Fe(s.text,null,e.options.tabSize);(i==null||r>h)&&(i=a-1,r=h)}return i}function $a(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=ye(e,r).stateAfter;if(i&&(!(i instanceof Hn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new _n(l,o.from,s?null:o.to))}}return r}function os(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var ge=0;ge0)){var h=[s,1],x=ce(u.from,a.from),D=ce(u.to,a.to);(x<0||!l.inclusiveLeft&&!x)&&h.push({from:u.from,to:a.from}),(D>0||!l.inclusiveRight&&!D)&&h.push({from:a.to,to:u.to}),i.splice.apply(i,h),s+=h.length-3}}return i}function Co(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||Si(r,o.marker)<0)&&(r=o.marker)}return r}function Ao(e,t,n,r,i){var o=ye(e,t),l=$t&&o.markedSpans;if(l)for(var a=0;a=0&&x<=0||h<=0&&x>=0)&&(h<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.to,n)>=0:ce(u.to,n)>0)||h>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.from,r)<=0:ce(u.from,r)<0)))return!0}}}function qt(e){for(var t;t=Fo(e);)e=t.find(-1,!0).line;return e}function ss(e){for(var t;t=Kn(e);)e=t.find(1,!0).line;return e}function us(e){for(var t,n;t=Kn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Li(e,t){var n=ye(e,t),r=qt(n);return n==r?t:f(r)}function No(e,t){if(t>e.lastLine())return t;var n=ye(e,t),r;if(!cr(e,n))return t;for(;r=Kn(n);)n=r.find(1,!0).line;return f(n)+1}function cr(e,t){var n=$t&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Hr=function(e,t,n){this.text=e,Do(this,t),this.height=n?n(this):1};Hr.prototype.lineNo=function(){return f(this)},Bt(Hr);function fs(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Co(e),Do(e,n);var i=r?r(e):1;i!=e.height&&Et(e,i)}function cs(e){e.parent=null,Co(e)}var ds={},hs={};function Eo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hs:ds;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Oo(e,t){var n=T("span",null,null,Y?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=gs,sr(e.display.measure)&&(l=Re(o,e.doc.direction))&&(r.addToken=ms(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&f(o);xs(o,r,xo(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=de(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=de(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Rn(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Y){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=de(r.pre.className,r.textClass||"")),r}function ps(e){var t=c("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gs(e,t,n,r,i,o,l){if(t){var a=e.splitSpaces?vs(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),k&&I<9&&(u=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var x=0;;){s.lastIndex=x;var D=s.exec(t),L=D?D.index-x:t.length-x;if(L){var H=document.createTextNode(a.slice(x,x+L));k&&I<9?h.appendChild(c("span",[H])):h.appendChild(H),e.map.push(e.pos,e.pos+L,H),e.col+=L,e.pos+=L}if(!D)break;x+=L+1;var Z=void 0;if(D[0]==" "){var ie=e.cm.options.tabSize,ae=ie-e.col%ie;Z=h.appendChild(c("span",et(ae),"cm-tab")),Z.setAttribute("role","presentation"),Z.setAttribute("cm-text"," "),e.col+=ae}else D[0]=="\r"||D[0]==` -`?(Z=h.appendChild(c("span",D[0]=="\r"?"␍":"␤","cm-invalidchar")),Z.setAttribute("cm-text",D[0]),e.col+=1):(Z=e.cm.options.specialCharPlaceholder(D[0]),Z.setAttribute("cm-text",D[0]),k&&I<9?h.appendChild(c("span",[Z])):h.appendChild(Z),e.col+=1);e.map.push(e.pos,e.pos+1,Z),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||o||l){var he=n||"";r&&(he+=r),i&&(he+=i);var se=c("span",[h],he,o);if(l)for(var ge in l)l.hasOwnProperty(ge)&&ge!="style"&&ge!="class"&&se.setAttribute(ge,l[ge]);return e.content.appendChild(se)}e.content.appendChild(h)}}function vs(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&x.from<=u));D++);if(x.to>=h)return e(n,r,i,o,l,a,s);e(n,r.slice(0,x.to-u),i,o,null,a,s),o=null,r=r.slice(x.to-u),u=x.to}}}function Po(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function xs(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;ls||Ee.collapsed&&ke.to==s&&ke.from==s)){if(ke.to!=null&&ke.to!=s&&L>ke.to&&(L=ke.to,Z=""),Ee.className&&(H+=" "+Ee.className),Ee.css&&(D=(D?D+";":"")+Ee.css),Ee.startStyle&&ke.from==s&&(ie+=" "+Ee.startStyle),Ee.endStyle&&ke.to==L&&(ge||(ge=[])).push(Ee.endStyle,ke.to),Ee.title&&((he||(he={})).title=Ee.title),Ee.attributes)for(var Ke in Ee.attributes)(he||(he={}))[Ke]=Ee.attributes[Ke];Ee.collapsed&&(!ae||Si(ae.marker,Ee)<0)&&(ae=ke)}else ke.from>s&&L>ke.from&&(L=ke.from)}if(ge)for(var st=0;st=a)break;for(var Nt=Math.min(a,L);;){if(h){var Tt=s+h.length;if(!ae){var tt=Tt>Nt?h.slice(0,Nt-s):h;t.addToken(t,tt,x?x+H:H,ie,s+tt.length==L?Z:"",D,he)}if(Tt>=Nt){h=h.slice(Nt-s),s=Nt;break}s=Tt,ie=""}h=i.slice(o,o=n[u++]),x=Eo(n[u++],t.cm.options)}}}function Io(e,t,n){this.line=t,this.rest=us(t),this.size=this.rest?f(we(this.rest))-n+1:1,this.node=this.text=null,this.hidden=cr(e,t)}function Gn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function qo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Fs(e,t){t=qt(t);var n=f(t),r=e.display.externalMeasured=new Io(e.doc,t,n);r.lineN=n;var i=r.built=Oo(e,r);return r.text=i.pre,G(e.display.lineMeasure,i.pre),r}function jo(e,t,n,r){return Qt(e,qr(e,t),n,r)}function Ai(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Ns(e,t,n,r){var i=Uo(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var h=0;h<4;h++){for(;l&&Ne(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a0&&(s=r="right");var x;e.options.lineWrapping&&(x=o.getClientRects()).length>1?u=x[r=="right"?x.length-1:0]:u=o.getBoundingClientRect()}if(k&&I<9&&!l&&(!u||!u.left&&!u.right)){var D=o.parentNode.getClientRects()[0];D?u={left:D.left,right:D.left+Kr(e.display),top:D.top,bottom:D.bottom}:u=Ko}for(var L=u.top-t.rect.top,H=u.bottom-t.rect.top,Z=(L+H)/2,ie=t.view.measure.heights,ae=0;ae=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function h(H,Z,ie){var ae=a[Z],he=ae.level==1;return l(ie?H-1:H,he!=ie)}var x=lr(a,s,u),D=br,L=h(s,x,u=="before");return D!=null&&(L.other=h(s,D,u!="before")),L}function Zo(e,t){var n=0;t=Ae(e.doc,t),e.options.lineWrapping||(n=Kr(e.display)*t.ch);var r=ye(e.doc,t.line),i=er(r)+Xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ei(e,t,n,r,i){var o=B(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Oi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Ei(r.first,0,null,-1,-1);var i=m(r,n),o=r.first+r.size-1;if(i>o)return Ei(r.first+r.size-1,ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=ye(r,i);;){var a=Os(e,l,i,t,n),s=as(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=ye(r,i=u.line)}}function Vo(e,t,n,r){r-=Ni(t);var i=t.text.length,o=Pt(function(l){return Qt(e,n,l-1).bottom<=r},i,0);return i=Pt(function(l){return Qt(e,n,l).top>r},o,i),{begin:o,end:i}}function $o(e,t,n,r){n||(n=qr(e,t));var i=Yn(e,t,Qt(e,n,r),"line").top;return Vo(e,t,n,i)}function Pi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Os(e,t,n,r,i){i-=er(t);var o=qr(e,t),l=Ni(t),a=0,s=t.text.length,u=!0,h=Re(t,e.doc.direction);if(h){var x=(e.options.lineWrapping?Is:Ps)(e,t,n,o,h,r,i);u=x.level!=1,a=u?x.from:x.to-1,s=u?x.to:x.from-1}var D=null,L=null,H=Pt(function(Le){var ke=Qt(e,o,Le);return ke.top+=l,ke.bottom+=l,Pi(ke,r,i,!1)?(ke.top<=i&&ke.left<=r&&(D=Le,L=ke),!0):!1},a,s),Z,ie,ae=!1;if(L){var he=r-L.left=ge.bottom?1:0}return H=Mt(t.text,H,1),Ei(n,H,ie,ae,r-Z)}function Ps(e,t,n,r,i,o,l){var a=Pt(function(x){var D=i[x],L=D.level!=1;return Pi(jt(e,B(n,L?D.to:D.from,L?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,h=jt(e,B(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Pi(h,o,l,!0)&&h.top>l&&(s=i[a-1])}return s}function Is(e,t,n,r,i,o,l){var a=Vo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var h=null,x=null,D=0;D=u||L.to<=s)){var H=L.level!=1,Z=Qt(e,r,H?Math.min(u,L.to)-1:Math.max(s,L.from)).right,ie=Zie)&&(h=L,x=ie)}}return h||(h=i[i.length-1]),h.fromu&&(h={from:h.from,to:u,level:h.level}),h}var Sr;function jr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Sr==null){Sr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Sr.appendChild(document.createTextNode("x")),Sr.appendChild(c("br"));Sr.appendChild(document.createTextNode("x"))}G(e.measure,Sr);var n=Sr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),F(e.measure),n||1}function Kr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");G(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ii(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:zi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function zi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function el(e){var t=jr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Kr(e.display)-3);return function(i){if(cr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(u=ye(e.doc,s.line).text).length==s.ch){var h=Fe(u,u.length,e.options.tabSize)-u.length;s=B(s.line,Math.max(0,Math.round((o-_o(e.display).left)/Kr(e.display))-h))}return s}function Tr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)$t&&Li(e.doc,t)i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=Jn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var l=Jn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):hr(e)}else{var a=Jn(e,t,t,-1),s=Jn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Gn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):hr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Tr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);ve(l,n)==-1&&l.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Jn(e,t,n,r){var i=Tr(e,t),o,l=e.display.view;if(!$t||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;Li(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function zs(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Gn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Gn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Tr(e,n)))),r.viewTo=n}function tl(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(c("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Zn(e,t){return e.top-t.top||e.left-t.left}function Bs(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=_o(e.display),a=l.left,s=Math.max(r.sizerWidth,wr(e)-r.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function h(se,ge,Le,ke){ge<0&&(ge=0),ge=Math.round(ge),ke=Math.round(ke),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+se+`px; - top: `+ge+"px; width: "+(Le??s-se)+`px; - height: `+(ke-ge)+"px"))}function x(se,ge,Le){var ke=ye(i,se),Ee=ke.text.length,Ke,st;function Xe(tt,Ct){return Qn(e,B(se,tt),"div",ke,Ct)}function Nt(tt,Ct,ft){var nt=$o(e,ke,null,tt),rt=Ct=="ltr"==(ft=="after")?"left":"right",Ze=ft=="after"?nt.begin:nt.end-(/\s/.test(ke.text.charAt(nt.end-1))?2:1);return Xe(Ze,rt)[rt]}var Tt=Re(ke,i.direction);return or(Tt,ge||0,Le??Ee,function(tt,Ct,ft,nt){var rt=ft=="ltr",Ze=Xe(tt,rt?"left":"right"),Dt=Xe(Ct-1,rt?"right":"left"),nn=ge==null&&tt==0,yr=Le==null&&Ct==Ee,vt=nt==0,Jt=!Tt||nt==Tt.length-1;if(Dt.top-Ze.top<=3){var ut=(u?nn:yr)&&vt,co=(u?yr:nn)&&Jt,ir=ut?a:(rt?Ze:Dt).left,Ar=co?s:(rt?Dt:Ze).right;h(ir,Ze.top,Ar-ir,Ze.bottom)}else{var Nr,bt,on,ho;rt?(Nr=u&&nn&&vt?a:Ze.left,bt=u?s:Nt(tt,ft,"before"),on=u?a:Nt(Ct,ft,"after"),ho=u&&yr&&Jt?s:Dt.right):(Nr=u?Nt(tt,ft,"before"):a,bt=!u&&nn&&vt?s:Ze.right,on=!u&&yr&&Jt?a:Dt.left,ho=u?Nt(Ct,ft,"after"):s),h(Nr,Ze.top,bt-Nr,Ze.bottom),Ze.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Ur(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function nl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_i(e))}function Hi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ur(e))},100)}function _i(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ye(e,"focus",e,t),e.state.focused=!0,j(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),Y&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Wi(e))}function Ur(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ye(e,"blur",e,t),e.state.focused=!1,$(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Vn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||L<-.005)&&(ie.display.sizerWidth){var Z=Math.ceil(h/Kr(e.display));Z>e.display.maxLineLength&&(e.display.maxLineLength=Z,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function il(e){if(e.widgets)for(var t=0;t=l&&(o=m(t,er(ye(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Rs(e,t){if(!Qe(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!O){var l=c("div","​",null,`position: absolute; - top: `+(t.top-n.viewOffset-Xn(e.display))+`px; - height: `+(t.bottom-t.top+Yt(e)+n.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function Ws(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?B(t.line,t.ch+1,"before"):t,t=t.ch?B(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=jt(e,t),s=!n||n==t?a:jt(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=qi(e,i),h=e.doc.scrollTop,x=e.doc.scrollLeft;if(u.scrollTop!=null&&(xn(e,u.scrollTop),Math.abs(e.doc.scrollTop-h)>1&&(l=!0)),u.scrollLeft!=null&&(Cr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-x)>1&&(l=!0)),!l)break}return i}function Hs(e,t){var n=qi(e,t);n.scrollTop!=null&&xn(e,n.scrollTop),n.scrollLeft!=null&&Cr(e,n.scrollLeft)}function qi(e,t){var n=e.display,r=jr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Fi(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Mi(n),s=t.topa-r;if(t.topi+o){var h=Math.min(t.top,(u?a:t.bottom)-o);h!=i&&(l.scrollTop=h)}var x=e.options.fixedGutter?0:n.gutters.offsetWidth,D=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-x,L=wr(e)-n.gutters.offsetWidth,H=t.right-t.left>L;return H&&(t.right=t.left+L),t.left<10?l.scrollLeft=0:t.leftL+D-3&&(l.scrollLeft=t.right+(H?0:10)-L),l}function ji(e,t){t!=null&&(ei(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Gr(e){ei(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mn(e,t,n){(t!=null||n!=null)&&ei(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function _s(e,t){ei(e),e.curOp.scrollToPos=t}function ei(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Zo(e,t.from),r=Zo(e,t.to);ol(e,n,r,t.margin)}}function ol(e,t,n,r){var i=qi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});mn(e,i.scrollLeft,i.scrollTop)}function xn(e,t){Math.abs(e.doc.scrollTop-t)<2||(_||Ui(e,{top:t}),ll(e,t,!0),_&&Ui(e),kn(e,100))}function ll(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,cl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Mi(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Yt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Dr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),Se(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Se(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,k&&I<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Dr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Dr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Dr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Dr.prototype.zeroWidthHack=function(){var e=z&&!ue?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ce,this.disableVert=new Ce},Dr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Dr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var bn=function(){};bn.prototype.update=function(){return{bottom:0,right:0}},bn.prototype.setScrollLeft=function(){},bn.prototype.setScrollTop=function(){},bn.prototype.clear=function(){};function Xr(e,t){t||(t=yn(e));var n=e.display.barWidth,r=e.display.barHeight;al(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Vn(e),al(e,yn(e)),n=e.display.barWidth,r=e.display.barHeight}function al(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var sl={native:Dr,null:bn};function ul(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new sl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Se(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Cr(e,t):xn(e,t)},e),e.display.scrollbars.addClass&&j(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function Mr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qs,markArrays:null},ys(e.curOp)}function Fr(e){var t=e.curOp;t&&ks(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ti(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Us(e){e.updatedDisplay=e.mustUpdate&&Ki(e.cm,e.update)}function Gs(e){var t=e.cm,n=t.display;e.updatedDisplay&&Vn(t),e.barMeasure=yn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=jo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-wr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xs(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=fn(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Gt(t.mode,r.state):null,s=mo(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,h=s.classes;h?o.styleClasses=h:u&&(o.styleClasses=null);for(var x=!l||l.length!=o.styles.length||u!=h&&(!u||!h||u.bgClass!=h.bgClass||u.textClass!=h.textClass),D=0;!x&&Dn)return kn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&At(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&tl(e)==0)return!1;dl(e)&&(hr(e),t.dims=Ii(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),$t&&(o=Li(e.doc,o),l=No(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zs(e,o,l),n.viewOffset=er(ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=tl(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=Zs(e);return s>4&&(n.lineDiv.style.display="none"),$s(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Vs(u),F(n.cursorDiv),F(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,kn(e,400)),n.updateLineNumbers=null,!0}function fl(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==wr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Mi(e.display)-Fi(e),n.top)}),t.visible=$n(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=$n(e.display,e.doc,n));if(!Ki(e,t))break;Vn(e);var i=yn(e);vn(e),Xr(e,i),Xi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new ti(e,t);if(Ki(e,n)){Vn(e),fl(e,n);var r=yn(e);vn(e),Xr(e,r),Xi(e,r),n.finish()}}function $s(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(H){var Z=H.nextSibling;return Y&&z&&e.display.currentWheelTarget==H?H.style.display="none":H.parentNode.removeChild(H),Z}for(var s=r.view,u=r.viewFrom,h=0;h-1&&(L=!1),zo(e,x,u,n)),L&&(F(x.lineNumber),x.lineNumber.appendChild(document.createTextNode(re(e.options,u)))),l=x.node.nextSibling}u+=x.size}for(;l;)l=a(l)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ot(e,"gutterChanged",e)}function Xi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yt(e)+"px"}function cl(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=zi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),k&&I<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!Y&&!(_&&N)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Yi(r.gutters,r.lineNumbers),hl(i),n.init(i)}var ri=0,rr=null;k?rr=-.53:_?rr=15:S?rr=-.7:V&&(rr=-1/3);function pl(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function tu(e){var t=pl(e);return t.x*=rr,t.y*=rr,t}function gl(e,t){S&&R==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=pl(t),r=n.x,i=n.y,o=rr;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&z&&Y){e:for(var h=t.target,x=l.view;h!=a;h=h.parentNode)for(var D=0;D=0&&ce(e,r.to())<=0)return n}return-1};var He=function(e,t){this.anchor=e,this.head=t};He.prototype.from=function(){return Wr(this.anchor,this.head)},He.prototype.to=function(){return wt(this.anchor,this.head)},He.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Kt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(D,L){return ce(D.from(),L.from())}),n=ve(t,i);for(var o=1;o0:s>=0){var u=Wr(a.from(),l.from()),h=wt(a.to(),l.to()),x=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new He(x?h:u,x?u:h))}}return new Ot(t,n)}function pr(e,t){return new Ot([new He(e,t||e)],0)}function gr(e){return e.text?B(e.from.line+e.text.length-1,we(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function vl(e,t){if(ce(e,t.from)<0)return e;if(ce(e,t.to)<=0)return gr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=gr(t).ch-t.to.ch),B(n,r)}function Qi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,H-1),e.insert(a.line+1,ae)}ot(e,"change",e,t)}function vr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),we(e.done)}function wl(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=iu(i,i.lastOp==r)))a=we(l.changes),ce(t.from,t.to)==0&&ce(t.from,a.to)==0?a.to=gr(t):l.changes.push(Vi(e,t));else{var s=we(i.done);for((!s||!s.ranges)&&ii(e.sel,i.done),l={changes:[Vi(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Ye(e,"historyAdded")}function ou(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function lu(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ou(e,o,we(i.done),t))?i.done[i.done.length-1]=t:ii(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&kl(i.undone)}function ii(e,t){var n=we(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Sl(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function au(e){if(!e)return null;for(var t,n=0;n-1&&(we(a)[x]=u[x],delete u[x])}}return r}function $i(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ce(t,i)<0;o!=ce(n,i)<0?(i=t,t=n):o!=ce(t,n)<0&&(t=n)}return new He(i,t)}else return new He(n||t,t)}function oi(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),gt(e,new Ot([$i(e.sel.primary(),t,n,i)],0),r)}function Tl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(Ye(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var x=s.find(r<0?1:-1),D=void 0;if((r<0?h:u)&&(x=Nl(e,x,-r,x&&x.line==t.line?o:null)),x&&x.line==t.line&&(D=ce(x,n))&&(r<0?D<0:D>0))return Qr(e,x,t,r,i)}var L=s.find(r<0?-1:1);return(r<0?u:h)&&(L=Nl(e,L,r,L.line==t.line?o:null)),L?Qr(e,L,t,r,i):null}}return t}function ai(e,t,n,r,i){var o=r||1,l=Qr(e,t,n,o,i)||!i&&Qr(e,t,n,o,!0)||Qr(e,t,n,-o,i)||!i&&Qr(e,t,n,-o,!0);return l||(e.cantEdit=!0,B(e.first,0))}function Nl(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?Ae(e,B(t.line-1)):null:n>0&&t.ch==(r||ye(e,t.line)).text.length?t.line=0;--i)Pl(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&ce(t.from,t.to)==0)){var n=Qi(e,t);wl(e,t,n,e.cm?e.cm.curOp.id:NaN),Ln(e,t,n,wi(e,t));var r=[];vr(e,function(i,o){!o&&ve(r,i.history)==-1&&(Rl(i.history,t),r.push(i.history)),Ln(i,t,null,wi(i,t))})}}function si(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--L){var H=D(L);if(H)return H.v}}}}function Il(e,t){if(t!=0&&(e.first+=t,e.sel=new Ot(Ie(e.sel.ranges,function(i){return new He(B(i.anchor.line+t,i.anchor.ch),B(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){St(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:B(o,ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Vt(e,t.from,t.to),n||(n=Qi(e,t)),e.cm?fu(e.cm,t,r):Zi(e,t,r),li(e,n,Ve),e.cantEdit&&ai(e,B(e.firstLine(),0))&&(e.cantEdit=!1)}}function fu(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=f(qt(ye(r,o.line))),r.iter(s,l.line+1,function(L){if(L==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&It(e),Zi(r,t,n,el(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(L){var H=Un(L);H>i.maxLineLength&&(i.maxLine=L,i.maxLineLength=H,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),$a(r,o.line),kn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?St(e):o.line==l.line&&t.text.length==1&&!xl(e.doc,t)?dr(e,o.line,"text"):St(e,o.line,l.line+1,u);var h=Ft(e,"changes"),x=Ft(e,"change");if(x||h){var D={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};x&&ot(e,"change",e,D),h&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(D)}e.display.selForContextMenu=null}function Zr(e,t,n,r,i){var o;r||(r=n),ce(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Jr(e,{from:n,to:r,text:t,origin:i})}function zl(e,t,n,r){n1||!(this.children[0]instanceof Cn))){var a=[];this.collapse(a),this.children=[new Cn(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=h,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&St(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Fl(e.doc)),e&&ot(e,"markerCleared",e,this,r,i),t&&Fr(e),this.parent&&this.parent.clear()}},mr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ao(e,t.line,t,n,o)||t.line!=n.line&&Ao(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");ts()}o.addToHistory&&wl(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(x){s&&o.collapsed&&!s.options.lineWrapping&&qt(x)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Et(x,0),ns(x,new _n(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(x){cr(e,x)&&Et(x,0)}),o.clearOnEnter&&Se(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(es(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Hl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)St(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var h=t.line;h<=n.line;h++)dr(s,h,"text");o.atomic&&Fl(s.doc),ot(s,"markerAdded",s,o)}return o}var Fn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)Jr(this,r[s]);a?Dl(this,a):this.cm&&Gr(this.cm)}),undo:at(function(){si(this,"undo")}),redo:at(function(){si(this,"redo")}),undoSelection:at(function(){si(this,"undo",!0)}),redoSelection:at(function(){si(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Ae(this,e),t=Ae(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),Ae(this,B(n,t))},indexFromPos:function(e){e=Ae(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var h=e.dataTransfer.getData("Text");if(h){var x;if(t.state.draggingText&&!t.state.draggingText.copy&&(x=t.listSelections()),li(t.doc,pr(n,n)),x)for(var D=0;D=0;a--)Zr(e.doc,"",r[a].from,r[a].to,"+delete");Gr(e)})}function to(e,t,n){var r=Mt(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ro(e,t,n){var r=to(e,t.ch,n);return r==null?null:new B(t.line,r,n<0?"after":"before")}function no(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Re(n,t.doc.direction);if(o){var l=i<0?we(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var h=qr(t,n);u=i<0?n.text.length-1:0;var x=Qt(t,h,u).top;u=Pt(function(D){return Qt(t,h,D).top==x},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=to(n,u,1))}else u=i<0?l.to:l.from;return new B(r,u,s)}}return new B(r,i<0?n.text.length:0,i<0?"before":"after")}function Lu(e,t,n,r){var i=Re(t,e.doc.direction);if(!i)return ro(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lr(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&D>=h.begin)){var L=x?"before":"after";return new B(n.line,D,L)}}var H=function(ae,he,se){for(var ge=function(Ke,st){return st?new B(n.line,a(Ke,1),"before"):new B(n.line,Ke,"after")};ae>=0&&ae0==(Le.level!=1),Ee=ke?se.begin:a(se.end,-1);if(Le.from<=Ee&&Ee0?h.end:a(h.begin,-1);return ie!=null&&!(r>0&&ie==t.text.length)&&(Z=H(r>0?0:i.length-1,r,u(ie)),Z)?Z:null}var En={selectAll:El,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ve)},killLine:function(e){return en(e,function(t){if(t.empty()){var n=ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new B(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),B(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=ye(e.doc,i.line-1).text;l&&(i=new B(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),B(i.line-1,l.length-1),i,"+transpose"))}}n.push(new He(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return At(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&ce(t,this.pos)==0&&n==this.button};var Pn,In;function Nu(e,t){var n=+new Date;return In&&In.compare(n,e,t)?(Pn=In=null,"triple"):Pn&&Pn.compare(n,e,t)?(In=new oo(n,e,t),Pn=null,"double"):(Pn=new oo(n,e,t),In=null,"single")}function ra(e){var t=this,n=t.display;if(!(Qe(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,tr(n,e)){Y||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!lo(t,e)){var r=Lr(t,e),i=Rt(e),o=r?Nu(r,i):"single";le(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Eu(t,i,r,o,e))&&(i==1?r?Pu(t,r,o,e):ln(e)==n.scroller&&pt(e):i==2?(r&&oi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(J?t.display.input.onContextMenu(e):Hi(t)))}}}function Eu(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,On(e,Xl(o,i),i,function(l){if(typeof l=="string"&&(l=En[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=qe}finally{e.state.suppressEdits=!1}return a})}function Ou(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=X?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=z?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(z?n.altKey:n.ctrlKey)),i}function Pu(e,t,n,r){k?setTimeout(xe(nl,e),0):e.curOp.focus=y(fe(e));var i=Ou(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&xi&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(ce((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(ce(l.to(),t)>0||t.xRel<0)?Iu(e,r,t,i):zu(e,r,t,i)}function Iu(e,t,n,r){var i=e.display,o=!1,l=lt(e,function(u){Y&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Hi(e)),ht(i.wrapper.ownerDocument,"mouseup",l),ht(i.wrapper.ownerDocument,"mousemove",a),ht(i.scroller,"dragstart",s),ht(i.scroller,"drop",l),o||(pt(u),r.addNew||oi(e.doc,n,null,null,r.extend),Y&&!V||k&&I==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};Y&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,Se(i.wrapper.ownerDocument,"mouseup",l),Se(i.wrapper.ownerDocument,"mousemove",a),Se(i.scroller,"dragstart",s),Se(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function na(e,t,n){if(n=="char")return new He(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new He(B(t.line,0),Ae(e.doc,B(t.line+1,0)));var r=n(e,t);return new He(r.from,r.to)}function zu(e,t,n,r){k&&Hi(e);var i=e.display,o=e.doc;pt(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=u[a]:l=new He(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new He(n,n)),n=Lr(e,t,!0,!0),a=-1;else{var h=na(e,n,r.unit);r.extend?l=$i(l,h.anchor,h.head,r.extend):l=h}r.addNew?a==-1?(a=u.length,gt(o,Kt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(gt(o,Kt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):eo(o,a,l,dt):(a=0,gt(o,new Ot([l],0),dt),s=o.sel);var x=n;function D(se){if(ce(x,se)!=0)if(x=se,r.unit=="rectangle"){for(var ge=[],Le=e.options.tabSize,ke=Fe(ye(o,n.line).text,n.ch,Le),Ee=Fe(ye(o,se.line).text,se.ch,Le),Ke=Math.min(ke,Ee),st=Math.max(ke,Ee),Xe=Math.min(n.line,se.line),Nt=Math.min(e.lastLine(),Math.max(n.line,se.line));Xe<=Nt;Xe++){var Tt=ye(o,Xe).text,tt=_e(Tt,Ke,Le);Ke==st?ge.push(new He(B(Xe,tt),B(Xe,tt))):Tt.length>tt&&ge.push(new He(B(Xe,tt),B(Xe,_e(Tt,st,Le))))}ge.length||ge.push(new He(n,n)),gt(o,Kt(e,s.ranges.slice(0,a).concat(ge),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(se)}else{var Ct=l,ft=na(e,se,r.unit),nt=Ct.anchor,rt;ce(ft.anchor,nt)>0?(rt=ft.head,nt=Wr(Ct.from(),ft.anchor)):(rt=ft.anchor,nt=wt(Ct.to(),ft.head));var Ze=s.ranges.slice(0);Ze[a]=Bu(e,new He(Ae(o,nt),rt)),gt(o,Kt(e,Ze,a),dt)}}var L=i.wrapper.getBoundingClientRect(),H=0;function Z(se){var ge=++H,Le=Lr(e,se,!0,r.unit=="rectangle");if(Le)if(ce(Le,x)!=0){e.curOp.focus=y(fe(e)),D(Le);var ke=$n(i,o);(Le.line>=ke.to||Le.lineL.bottom?20:0;Ee&&setTimeout(lt(e,function(){H==ge&&(i.scroller.scrollTop+=Ee,Z(se))}),50)}}function ie(se){e.state.selectingText=!1,H=1/0,se&&(pt(se),i.input.focus()),ht(i.wrapper.ownerDocument,"mousemove",ae),ht(i.wrapper.ownerDocument,"mouseup",he),o.history.lastSelOrigin=null}var ae=lt(e,function(se){se.buttons===0||!Rt(se)?ie(se):Z(se)}),he=lt(e,ie);e.state.selectingText=he,Se(i.wrapper.ownerDocument,"mousemove",ae),Se(i.wrapper.ownerDocument,"mouseup",he)}function Bu(e,t){var n=t.anchor,r=t.head,i=ye(e.doc,n.line);if(ce(n,r)==0&&n.sticky==r.sticky)return t;var o=Re(i);if(!o)return t;var l=lr(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var h=lr(o,r.ch,r.sticky),x=h-l||(r.ch-n.ch)*(a.level==1?-1:1);h==s-1||h==s?u=x<0:u=x>0}var D=o[s+(u?-1:0)],L=u==(D.level==1),H=L?D.from:D.to,Z=L?"after":"before";return n.ch==H&&n.sticky==Z?t:new He(new B(n.line,H,Z),r)}function ia(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&pt(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ft(e,n))return kt(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var h=m(e.doc,o),x=e.display.gutterSpecs[s];return Ye(e,n,e,h,x.className,t),kt(t)}}}function lo(e,t){return ia(e,t,"gutterClick",!0)}function oa(e,t){tr(e.display,t)||Ru(e,t)||Qe(e,t,"contextmenu")||J||e.display.input.onContextMenu(t)}function Ru(e,t){return Ft(e,"gutterContextMenu")?ia(e,t,"gutterContextMenu",!1):!1}function la(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gn(e)}var tn={toString:function(){return"CodeMirror.Init"}},aa={},di={};function Wu(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,u){u!=tn&&o(a,s,u)}:o)}e.defineOption=n,e.Init=tn,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Ji(r)},!0),n("indentUnit",2,Ji,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Sn(r),gn(r),St(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var h=s.text.indexOf(i,u);if(h==-1)break;u=h+i.length,o.push(B(l,h))}l++});for(var a=o.length-1;a>=0;a--)Zr(r.doc,i,o[a],B(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=tn&&r.refresh()}),n("specialCharPlaceholder",ps,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!q),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){la(r),wn(r)},!0),n("keyMap","default",function(r,i,o){var l=fi(i),a=o!=tn&&fi(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,_u,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Yi(i,r.options.lineNumbers),wn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?zi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Xr(r)},!0),n("scrollbarStyle","native",function(r){ul(r),Xr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Yi(r.options.gutters,i),wn(r)},!0),n("firstLineNumber",1,wn,!0),n("lineNumberFormatter",function(r){return r},wn,!0),n("showCursorWhenSelecting",!1,vn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Ur(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,Hu),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vn,!0),n("singleCursorHeightPerLine",!0,vn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Sn,!0),n("addModeClass",!1,Sn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Sn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function Hu(e,t,n){var r=n&&n!=tn;if(!t!=!r){var i=e.display.dragFunctions,o=t?Se:ht;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function _u(e){e.options.lineWrapping?(j(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):($(e.display.wrapper,"CodeMirror-wrap"),Ci(e)),Bi(e),St(e),gn(e),setTimeout(function(){return Xr(e)},100)}function Ge(e,t){var n=this;if(!(this instanceof Ge))return new Ge(e,t);this.options=t=t?Me(t):{},Me(aa,t,!1);var r=t.value;typeof r=="string"?r=new Lt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ge.inputStyles[t.inputStyle](this),o=this.display=new eu(e,r,i,t);o.wrapper.CodeMirror=this,la(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ul(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ce,keySeq:null,specialChars:null},t.autofocus&&!N&&o.input.focus(),k&&I<11&&setTimeout(function(){return n.display.input.reset(!0)},20),qu(this),yu(),Mr(this),this.curOp.forceUpdate=!0,yl(this,r),t.autofocus&&!N||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&_i(n)},20):Ur(this);for(var l in di)di.hasOwnProperty(l)&&di[l](this,t[l],tn);dl(this),t.finishInit&&t.finishInit(this);for(var a=0;a400}Se(t.scroller,"touchstart",function(s){if(!Qe(e,s)&&!o(s)&&!lo(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),Se(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Se(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!tr(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var h=e.coordsChar(t.activeTouch,"page"),x;!u.prev||l(u,u.prev)?x=new He(h,h):!u.prev.prev||l(u,u.prev.prev)?x=e.findWordAt(h):x=new He(B(h.line,0),Ae(e.doc,B(h.line+1,0))),e.setSelection(x.anchor,x.head),e.focus(),pt(s)}i()}),Se(t.scroller,"touchcancel",i),Se(t.scroller,"scroll",function(){t.scroller.clientHeight&&(xn(e,t.scroller.scrollTop),Cr(e,t.scroller.scrollLeft,!0),Ye(e,"scroll",e))}),Se(t.scroller,"mousewheel",function(s){return gl(e,s)}),Se(t.scroller,"DOMMouseScroll",function(s){return gl(e,s)}),Se(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Qe(e,s)||ar(s)},over:function(s){Qe(e,s)||(xu(e,s),ar(s))},start:function(s){return mu(e,s)},drop:lt(e,vu),leave:function(s){Qe(e,s)||jl(e)}};var a=t.input.getField();Se(a,"keyup",function(s){return ea.call(e,s)}),Se(a,"keydown",lt(e,$l)),Se(a,"keypress",lt(e,ta)),Se(a,"focus",function(s){return _i(e,s)}),Se(a,"blur",function(s){return Ur(e,s)})}var ao=[];Ge.defineInitHook=function(e){return ao.push(e)};function zn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=fn(e,t).state:n="prev");var l=e.options.tabSize,a=ye(i,t),s=Fe(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],h;if(!r&&!/\S/.test(a.text))h=0,n="not";else if(n=="smart"&&(h=i.mode.indent(o,a.text.slice(u.length),a.text),h==qe||h>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?h=Fe(ye(i,t-1).text,null,l):h=0:n=="add"?h=s+e.options.indentUnit:n=="subtract"?h=s-e.options.indentUnit:typeof n=="number"&&(h=s+n),h=Math.max(0,h);var x="",D=0;if(e.options.indentWithTabs)for(var L=Math.floor(h/l);L;--L)D+=l,x+=" ";if(Dl,s=zt(t),u=null;if(a&&r.ranges.length>1)if(Ut&&Ut.text.join(` -`)==t){if(r.ranges.length%Ut.text.length==0){u=[];for(var h=0;h=0;D--){var L=r.ranges[D],H=L.from(),Z=L.to();L.empty()&&(n&&n>0?H=B(H.line,H.ch-n):e.state.overwrite&&!a?Z=B(Z.line,Math.min(ye(o,Z.line).text.length,Z.ch+we(s).length)):a&&Ut&&Ut.lineWise&&Ut.text.join(` -`)==s.join(` -`)&&(H=Z=B(H.line,0)));var ie={from:H,to:Z,text:u?u[D%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Jr(e.doc,ie),ot(e,"inputRead",e,ie)}t&&!a&&ua(e,t),Gr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=x),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function sa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&At(t,function(){return so(t,n,0,null,"paste")}),!0}function ua(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=zn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=zn(e,i.head.line,"smart"));l&&ot(e,"electricInput",e,i.head.line)}}}function fa(e){for(var t=[],n=[],r=0;ro&&(zn(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Gr(this));else{var s=a.from(),u=a.to(),h=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var x=h;x0&&eo(this.doc,l,new He(s,D[l].to()),Ve)}}}),getTokenAt:function(r,i){return ko(this,r,i)},getLineTokens:function(r,i){return ko(this,B(r),i,!0)},getTokenTypeAt:function(r){r=Ae(this.doc,r);var i=xo(this,ye(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]s&&(r=s,l=!0),a=ye(this.doc,r)}else a=r;return Yn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-er(a):0)},defaultTextHeight:function(){return jr(this.display)},defaultCharWidth:function(){return Kr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=jt(this,Ae(this.doc,r));var u=r.bottom,h=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=r.top;else if(l=="above"||l=="near"){var x=Math.max(s.wrapper.clientHeight,this.doc.height),D=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>x)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=x&&(u=r.bottom),h+i.offsetWidth>D&&(h=D-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(h=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?h=0:a=="middle"&&(h=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=h+"px"),o&&Hs(this,{left:h,top:u,right:h+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:yt($l),triggerOnKeyPress:yt(ta),triggerOnKeyUp:ea,triggerOnMouseDown:yt(ra),execCommand:function(r){if(En.hasOwnProperty(r))return En[r].call(null,this)},triggerElectric:yt(function(r){ua(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=Ae(this.doc,r),u=0;u0&&h(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&Bi(this),Ye(this,"refresh",this)}),swapDoc:yt(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),yl(this,r),gn(this),this.display.input.reset(),mn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,ot(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bt(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function fo(e,t,n,r,i){var o=t,l=n,a=ye(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var he=t.line+s;return he=e.first+e.size?!1:(t=new B(he,t.ch,t.sticky),a=ye(e,he))}function h(he){var se;if(r=="codepoint"){var ge=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(ge))se=null;else{var Le=n>0?ge>=55296&&ge<56320:ge>=56320&&ge<57343;se=new B(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(Le?2:1))),-n)}}else i?se=Lu(e.cm,a,t,n):se=ro(a,t,n);if(se==null)if(!he&&u())t=no(i,e.cm,a,t.line,s);else return!1;else t=se;return!0}if(r=="char"||r=="codepoint")h();else if(r=="column")h(!0);else if(r=="word"||r=="group")for(var x=null,D=r=="group",L=e.cm&&e.cm.getHelper(t,"wordChars"),H=!0;!(n<0&&!h(!H));H=!1){var Z=a.text.charAt(t.ch)||` -`,ie=De(Z,L)?"w":D&&Z==` -`?"n":!D||/\s/.test(Z)?null:"p";if(D&&!H&&!ie&&(ie="s"),x&&x!=ie){n<0&&(n=1,h(),t.sticky="after");break}if(ie&&(x=ie),n>0&&!h(!H))break}var ae=ai(e,t,o,l,!0);return We(o,ae)&&(ae.hitSide=!0),ae}function da(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,le(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*jr(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var u;u=Oi(e,o,l),!!u.outside;){if(n<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=n*5}return u}var je=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};je.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,uo(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}Se(i,"paste",function(a){!o(a)||Qe(r,a)||sa(a,r)||I<=11&&setTimeout(lt(r,function(){return t.updateFromDOM()}),20)}),Se(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),Se(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),Se(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Se(i,"touchstart",function(){return n.forceCompositionEnd()}),Se(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||Qe(r,a))){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=fa(r);hi({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ve),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Ut.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var h=ca(),x=h.firstChild;uo(x),r.display.lineSpace.insertBefore(h,r.display.lineSpace.firstChild),x.value=Ut.text.join(` -`);var D=y(Te(i));v(x),setTimeout(function(){r.display.lineSpace.removeChild(h),D.focus(),D==i&&n.showPrimarySelection()},50)}}Se(i,"copy",l),Se(i,"cut",l)},je.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},je.prototype.prepareSelection=function(){var e=rl(this.cm,!1);return e.focus=y(Te(this.div))==this.div,e},je.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},je.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},je.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&ha(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=B(r.line-1,ye(e.doc,r.line-1).length)),i.ch==ye(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Tr(e,r.line))==0?(l=f(t.view[0].line),a=t.view[0].node):(l=f(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Tr(e,i.line),u,h;if(s==t.view.length-1?(u=t.viewTo-1,h=t.lineDiv.lastChild):(u=f(t.view[s+1].line)-1,h=t.view[s+1].node.previousSibling),!a)return!1;for(var x=e.doc.splitLines(Uu(e,a,h,l,u)),D=Vt(e.doc,B(l,0),B(u,ye(e.doc,u).text.length));x.length>1&&D.length>1;)if(we(x)==we(D))x.pop(),D.pop(),u--;else if(x[0]==D[0])x.shift(),D.shift(),l++;else break;for(var L=0,H=0,Z=x[0],ie=D[0],ae=Math.min(Z.length,ie.length);Lr.ch&&he.charCodeAt(he.length-H-1)==se.charCodeAt(se.length-H-1);)L--,H++;x[x.length-1]=he.slice(0,he.length-H).replace(/^\u200b+/,""),x[0]=x[0].slice(L).replace(/\u200b+$/,"");var Le=B(l,L),ke=B(u,D.length?we(D).length-H:0);if(x.length>1||x[0]||ce(Le,ke))return Zr(e.doc,x,Le,ke,"+input"),!0},je.prototype.ensurePolled=function(){this.forceCompositionEnd()},je.prototype.reset=function(){this.forceCompositionEnd()},je.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},je.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},je.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&At(this.cm,function(){return St(e.cm)})},je.prototype.setUneditable=function(e){e.contentEditable="false"},je.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||lt(this.cm,so)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},je.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},je.prototype.onContextMenu=function(){},je.prototype.resetPosition=function(){},je.prototype.needsContentAttribute=!0;function ha(e,t){var n=Ai(e,t.line);if(!n||n.hidden)return null;var r=ye(e.doc,t.line),i=qo(n,r,t.line),o=Re(r,e.doc.direction),l="left";if(o){var a=lr(o,t.ch);l=a%2?"right":"left"}var s=Uo(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function Ku(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rn(e,t){return t&&(e.bad=!0),e}function Uu(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(L){return function(H){return H.id==L}}function h(){l&&(o+=a,s&&(o+=a),l=s=!1)}function x(L){L&&(h(),o+=L)}function D(L){if(L.nodeType==1){var H=L.getAttribute("cm-text");if(H){x(H);return}var Z=L.getAttribute("cm-marker"),ie;if(Z){var ae=e.findMarks(B(r,0),B(i+1,0),u(+Z));ae.length&&(ie=ae[0].find(0))&&x(Vt(e.doc,ie.from,ie.to).join(a));return}if(L.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;he&&h();for(var se=0;se=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Se(i,"paste",function(l){Qe(r,l)||sa(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!Qe(r,l)){if(r.somethingSelected())hi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=fa(r);hi({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,Ve):(n.prevInput="",i.value=a.text.join(` -`),v(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}Se(i,"cut",o),Se(i,"copy",o),Se(e.scroller,"paste",function(l){if(!(tr(e,l)||Qe(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),Se(e.lineSpace,"selectstart",function(l){tr(e,l)||pt(l)}),Se(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},$e.prototype.createField=function(e){this.wrapper=ca(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;uo(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},$e.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},$e.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=rl(e);if(e.options.moveInputWithCursor){var i=jt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},$e.prototype.showSelection=function(e){var t=this.cm,n=t.display;G(n.cursorDiv,e.cursors),G(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},$e.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&v(this.textarea),k&&I>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",k&&I>=9&&(this.hasSelection=null));this.resetting=!1}},$e.prototype.getField=function(){return this.textarea},$e.prototype.supportsTouch=function(){return!1},$e.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||y(Te(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},$e.prototype.blur=function(){this.textarea.blur()},$e.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$e.prototype.receivedFocus=function(){this.slowPoll()},$e.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},$e.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},$e.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||ur(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(k&&I>=9&&this.hasSelection===i||z&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l1e3||i.indexOf(` -`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$e.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$e.prototype.onKeyPress=function(){k&&I>=9&&(this.hasSelection=null),this.fastPoll()},$e.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Lr(n,e),l=r.scroller.scrollTop;if(!o||A)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&<(n,gt)(n.doc,pr(o),Ve);var s=i.style.cssText,u=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+`px; - z-index: 1000; background: `+(k?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var x;Y&&(x=i.ownerDocument.defaultView.scrollY),r.input.focus(),Y&&i.ownerDocument.defaultView.scrollTo(null,x),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=L,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function D(){if(i.selectionStart!=null){var Z=n.somethingSelected(),ie="​"+(Z?i.value:"");i.value="⇚",i.value=ie,t.prevInput=Z?"":"​",i.selectionStart=1,i.selectionEnd=ie.length,r.selForContextMenu=n.doc.sel}}function L(){if(t.contextMenuPending==L&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,k&&I<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!k||k&&I<9)&&D();var Z=0,ie=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?lt(n,El)(n):Z++<10?r.detectingSelectAll=setTimeout(ie,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(ie,200)}}if(k&&I>=9&&D(),J){ar(e);var H=function(){ht(window,"mouseup",H),setTimeout(L,20)};Se(window,"mouseup",H)}else setTimeout(L,50)},$e.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},$e.prototype.setUneditable=function(){},$e.prototype.needsContentAttribute=!1;function Xu(e,t){if(t=t?Me(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=y(Te(e));t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(Se(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ht(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Ge(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function Yu(e){e.off=ht,e.on=Se,e.wheelEventPixels=tu,e.Doc=Lt,e.splitLines=zt,e.countColumn=Fe,e.findColumn=_e,e.isWordChar=me,e.Pass=qe,e.signal=Ye,e.Line=Hr,e.changeEnd=gr,e.scrollbarModel=sl,e.Pos=B,e.cmpPos=ce,e.modes=Pr,e.mimeModes=Ht,e.resolveMode=Ir,e.getMode=zr,e.modeExtensions=fr,e.extendMode=Br,e.copyState=Gt,e.startState=Rr,e.innerMode=sn,e.commands=En,e.keyMap=nr,e.keyName=Yl,e.isModifierKey=Gl,e.lookupKey=$r,e.normalizeKeyMap=Su,e.StringStream=Je,e.SharedTextMarker=Fn,e.TextMarker=mr,e.LineWidget=Mn,e.e_preventDefault=pt,e.e_stopPropagation=Er,e.e_stop=ar,e.addClass=j,e.contains=g,e.rmClass=$,e.keyNames=xr}Wu(Ge),ju(Ge);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var gi in Lt.prototype)Lt.prototype.hasOwnProperty(gi)&&ve(Qu,gi)<0&&(Ge.prototype[gi]=(function(e){return function(){return e.apply(this.doc,arguments)}})(Lt.prototype[gi]));return Bt(Lt),Ge.inputStyles={textarea:$e,contenteditable:je},Ge.defineMode=function(e){!Ge.defaults.mode&&e!="null"&&(Ge.defaults.mode=e),_t.apply(this,arguments)},Ge.defineMIME=kr,Ge.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ge.defineMIME("text/plain","null"),Ge.defineExtension=function(e,t){Ge.prototype[e]=t},Ge.defineDocExtension=function(e,t){Lt.prototype[e]=t},Ge.fromTextArea=Xu,Yu(Ge),Ge.version="5.65.18",Ge}))})(vi)),vi.exports}var Vu=mt();const df=Ju(Vu);var ga={exports:{}},va;function Xa(){return va||(va=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineMode("css",function(J,P){var $=P.inline;P.propertyKeywords||(P=b.resolveMode("text/css"));var F=J.indentUnit,G=P.tokenHooks,c=P.documentTypes||{},T=P.mediaTypes||{},C=P.mediaFeatures||{},g=P.mediaValueKeywords||{},y=P.propertyKeywords||{},j=P.nonStandardPropertyKeywords||{},de=P.fontProperties||{},v=P.counterDescriptors||{},d=P.colorKeywords||{},fe=P.valueKeywords||{},Te=P.allowNested,le=P.lineComment,xe=P.supportsAtComponent===!0,Me=J.highlightNonStandardPropertyKeywords!==!1,Fe,Ce;function ve(E,ee){return Fe=ee,E}function Oe(E,ee){var K=E.next();if(G[K]){var ze=G[K](E,ee);if(ze!==!1)return ze}if(K=="@")return E.eatWhile(/[\w\\\-]/),ve("def",E.current());if(K=="="||(K=="~"||K=="|")&&E.eat("="))return ve(null,"compare");if(K=='"'||K=="'")return ee.tokenize=qe(K),ee.tokenize(E,ee);if(K=="#")return E.eatWhile(/[\w\\\-]/),ve("atom","hash");if(K=="!")return E.match(/^\s*\w*/),ve("keyword","important");if(/\d/.test(K)||K=="."&&E.eat(/\d/))return E.eatWhile(/[\w.%]/),ve("number","unit");if(K==="-"){if(/[\d.]/.test(E.peek()))return E.eatWhile(/[\w.%]/),ve("number","unit");if(E.match(/^-[\w\\\-]*/))return E.eatWhile(/[\w\\\-]/),E.match(/^\s*:/,!1)?ve("variable-2","variable-definition"):ve("variable-2","variable");if(E.match(/^\w+-/))return ve("meta","meta")}else return/[,+>*\/]/.test(K)?ve(null,"select-op"):K=="."&&E.match(/^-?[_a-z][_a-z0-9-]*/i)?ve("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?ve(null,K):E.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(E.current())&&(ee.tokenize=Ve),ve("variable callee","variable")):/[\w\\\-]/.test(K)?(E.eatWhile(/[\w\\\-]/),ve("property","word")):ve(null,null)}function qe(E){return function(ee,K){for(var ze=!1,me;(me=ee.next())!=null;){if(me==E&&!ze){E==")"&&ee.backUp(1);break}ze=!ze&&me=="\\"}return(me==E||!ze&&E!=")")&&(K.tokenize=null),ve("string","string")}}function Ve(E,ee){return E.next(),E.match(/^\s*[\"\')]/,!1)?ee.tokenize=null:ee.tokenize=qe(")"),ve(null,"(")}function dt(E,ee,K){this.type=E,this.indent=ee,this.prev=K}function Pe(E,ee,K,ze){return E.context=new dt(K,ee.indentation()+(ze===!1?0:F),E.context),K}function _e(E){return E.context.prev&&(E.context=E.context.prev),E.context.type}function Ue(E,ee,K){return Ie[K.context.type](E,ee,K)}function et(E,ee,K,ze){for(var me=ze||1;me>0;me--)K.context=K.context.prev;return Ue(E,ee,K)}function we(E){var ee=E.current().toLowerCase();fe.hasOwnProperty(ee)?Ce="atom":d.hasOwnProperty(ee)?Ce="keyword":Ce="variable"}var Ie={};return Ie.top=function(E,ee,K){if(E=="{")return Pe(K,ee,"block");if(E=="}"&&K.context.prev)return _e(K);if(xe&&/@component/i.test(E))return Pe(K,ee,"atComponentBlock");if(/^@(-moz-)?document$/i.test(E))return Pe(K,ee,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(E))return Pe(K,ee,"atBlock");if(/^@(font-face|counter-style)/i.test(E))return K.stateArg=E,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(E))return"keyframes";if(E&&E.charAt(0)=="@")return Pe(K,ee,"at");if(E=="hash")Ce="builtin";else if(E=="word")Ce="tag";else{if(E=="variable-definition")return"maybeprop";if(E=="interpolation")return Pe(K,ee,"interpolation");if(E==":")return"pseudo";if(Te&&E=="(")return Pe(K,ee,"parens")}return K.context.type},Ie.block=function(E,ee,K){if(E=="word"){var ze=ee.current().toLowerCase();return y.hasOwnProperty(ze)?(Ce="property","maybeprop"):j.hasOwnProperty(ze)?(Ce=Me?"string-2":"property","maybeprop"):Te?(Ce=ee.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ce+=" error","maybeprop")}else return E=="meta"?"block":!Te&&(E=="hash"||E=="qualifier")?(Ce="error","block"):Ie.top(E,ee,K)},Ie.maybeprop=function(E,ee,K){return E==":"?Pe(K,ee,"prop"):Ue(E,ee,K)},Ie.prop=function(E,ee,K){if(E==";")return _e(K);if(E=="{"&&Te)return Pe(K,ee,"propBlock");if(E=="}"||E=="{")return et(E,ee,K);if(E=="(")return Pe(K,ee,"parens");if(E=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ee.current()))Ce+=" error";else if(E=="word")we(ee);else if(E=="interpolation")return Pe(K,ee,"interpolation");return"prop"},Ie.propBlock=function(E,ee,K){return E=="}"?_e(K):E=="word"?(Ce="property","maybeprop"):K.context.type},Ie.parens=function(E,ee,K){return E=="{"||E=="}"?et(E,ee,K):E==")"?_e(K):E=="("?Pe(K,ee,"parens"):E=="interpolation"?Pe(K,ee,"interpolation"):(E=="word"&&we(ee),"parens")},Ie.pseudo=function(E,ee,K){return E=="meta"?"pseudo":E=="word"?(Ce="variable-3",K.context.type):Ue(E,ee,K)},Ie.documentTypes=function(E,ee,K){return E=="word"&&c.hasOwnProperty(ee.current())?(Ce="tag",K.context.type):Ie.atBlock(E,ee,K)},Ie.atBlock=function(E,ee,K){if(E=="(")return Pe(K,ee,"atBlock_parens");if(E=="}"||E==";")return et(E,ee,K);if(E=="{")return _e(K)&&Pe(K,ee,Te?"block":"top");if(E=="interpolation")return Pe(K,ee,"interpolation");if(E=="word"){var ze=ee.current().toLowerCase();ze=="only"||ze=="not"||ze=="and"||ze=="or"?Ce="keyword":T.hasOwnProperty(ze)?Ce="attribute":C.hasOwnProperty(ze)?Ce="property":g.hasOwnProperty(ze)?Ce="keyword":y.hasOwnProperty(ze)?Ce="property":j.hasOwnProperty(ze)?Ce=Me?"string-2":"property":fe.hasOwnProperty(ze)?Ce="atom":d.hasOwnProperty(ze)?Ce="keyword":Ce="error"}return K.context.type},Ie.atComponentBlock=function(E,ee,K){return E=="}"?et(E,ee,K):E=="{"?_e(K)&&Pe(K,ee,Te?"block":"top",!1):(E=="word"&&(Ce="error"),K.context.type)},Ie.atBlock_parens=function(E,ee,K){return E==")"?_e(K):E=="{"||E=="}"?et(E,ee,K,2):Ie.atBlock(E,ee,K)},Ie.restricted_atBlock_before=function(E,ee,K){return E=="{"?Pe(K,ee,"restricted_atBlock"):E=="word"&&K.stateArg=="@counter-style"?(Ce="variable","restricted_atBlock_before"):Ue(E,ee,K)},Ie.restricted_atBlock=function(E,ee,K){return E=="}"?(K.stateArg=null,_e(K)):E=="word"?(K.stateArg=="@font-face"&&!de.hasOwnProperty(ee.current().toLowerCase())||K.stateArg=="@counter-style"&&!v.hasOwnProperty(ee.current().toLowerCase())?Ce="error":Ce="property","maybeprop"):"restricted_atBlock"},Ie.keyframes=function(E,ee,K){return E=="word"?(Ce="variable","keyframes"):E=="{"?Pe(K,ee,"top"):Ue(E,ee,K)},Ie.at=function(E,ee,K){return E==";"?_e(K):E=="{"||E=="}"?et(E,ee,K):(E=="word"?Ce="tag":E=="hash"&&(Ce="builtin"),"at")},Ie.interpolation=function(E,ee,K){return E=="}"?_e(K):E=="{"||E==";"?et(E,ee,K):(E=="word"?Ce="variable":E!="variable"&&E!="("&&E!=")"&&(Ce="error"),"interpolation")},{startState:function(E){return{tokenize:null,state:$?"block":"top",stateArg:null,context:new dt($?"block":"top",E||0,null)}},token:function(E,ee){if(!ee.tokenize&&E.eatSpace())return null;var K=(ee.tokenize||Oe)(E,ee);return K&&typeof K=="object"&&(Fe=K[1],K=K[0]),Ce=K,Fe!="comment"&&(ee.state=Ie[ee.state](Fe,E,ee)),Ce},indent:function(E,ee){var K=E.context,ze=ee&&ee.charAt(0),me=K.indent;return K.type=="prop"&&(ze=="}"||ze==")")&&(K=K.prev),K.prev&&(ze=="}"&&(K.type=="block"||K.type=="top"||K.type=="interpolation"||K.type=="restricted_atBlock")?(K=K.prev,me=K.indent):(ze==")"&&(K.type=="parens"||K.type=="atBlock_parens")||ze=="{"&&(K.type=="at"||K.type=="atBlock"))&&(me=Math.max(0,K.indent-F))),me},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:le,fold:"brace"}});function pe(J){for(var P={},$=0;$")):null:c.match("--")?C(ue("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),C(O(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),T.tokenize=ue("meta","?>"),"meta"):(ne=c.eat("/")?"closeTag":"openTag",T.tokenize=A,"tag bracket");if(g=="&"){var y;return c.eat("#")?c.eat("x")?y=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):y=c.eatWhile(/[\d]/)&&c.eat(";"):y=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),y?"atom":"error"}else return c.eatWhile(/[^&<]/),null}R.isInText=!0;function A(c,T){var C=c.next();if(C==">"||C=="/"&&c.eat(">"))return T.tokenize=R,ne=C==">"?"endTag":"selfcloseTag","tag bracket";if(C=="=")return ne="equals",null;if(C=="<"){T.tokenize=R,T.state=X,T.tagName=T.tagStart=null;var g=T.tokenize(c,T);return g?g+" tag error":"tag error"}else return/[\'\"]/.test(C)?(T.tokenize=V(C),T.stringStartCol=c.column(),T.tokenize(c,T)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function V(c){var T=function(C,g){for(;!C.eol();)if(C.next()==c){g.tokenize=A;break}return"string"};return T.isInAttribute=!0,T}function ue(c,T){return function(C,g){for(;!C.eol();){if(C.match(T)){g.tokenize=R;break}C.next()}return c}}function O(c){return function(T,C){for(var g;(g=T.next())!=null;){if(g=="<")return C.tokenize=O(c+1),C.tokenize(T,C);if(g==">")if(c==1){C.tokenize=R;break}else return C.tokenize=O(c-1),C.tokenize(T,C)}return"meta"}}function w(c){return c&&c.toLowerCase()}function M(c,T,C){this.prev=c.context,this.tagName=T||"",this.indent=c.indented,this.startOfLine=C,(k.doNotIndent.hasOwnProperty(T)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function N(c){c.context&&(c.context=c.context.prev)}function z(c,T){for(var C;;){if(!c.context||(C=c.context.tagName,!k.contextGrabbers.hasOwnProperty(w(C))||!k.contextGrabbers[w(C)].hasOwnProperty(w(T))))return;N(c)}}function X(c,T,C){return c=="openTag"?(C.tagStart=T.column(),q):c=="closeTag"?p:X}function q(c,T,C){return c=="word"?(C.tagName=T.current(),S="tag",P):k.allowMissingTagName&&c=="endTag"?(S="tag bracket",P(c,T,C)):(S="error",q)}function p(c,T,C){if(c=="word"){var g=T.current();return C.context&&C.context.tagName!=g&&k.implicitlyClosed.hasOwnProperty(w(C.context.tagName))&&N(C),C.context&&C.context.tagName==g||k.matchClosing===!1?(S="tag",W):(S="tag error",J)}else return k.allowMissingTagName&&c=="endTag"?(S="tag bracket",W(c,T,C)):(S="error",J)}function W(c,T,C){return c!="endTag"?(S="error",W):(N(C),X)}function J(c,T,C){return S="error",W(c,T,C)}function P(c,T,C){if(c=="word")return S="attribute",$;if(c=="endTag"||c=="selfcloseTag"){var g=C.tagName,y=C.tagStart;return C.tagName=C.tagStart=null,c=="selfcloseTag"||k.autoSelfClosers.hasOwnProperty(w(g))?z(C,g):(z(C,g),C.context=new M(C,g,y==C.indented)),X}return S="error",P}function $(c,T,C){return c=="equals"?F:(k.allowMissing||(S="error"),P(c,T,C))}function F(c,T,C){return c=="string"?G:c=="word"&&k.allowUnquoted?(S="string",P):(S="error",P(c,T,C))}function G(c,T,C){return c=="string"?G:P(c,T,C)}return{startState:function(c){var T={tokenize:R,state:X,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(T.baseIndent=c),T},token:function(c,T){if(!T.tagName&&c.sol()&&(T.indented=c.indentation()),c.eatSpace())return null;ne=null;var C=T.tokenize(c,T);return(C||ne)&&C!="comment"&&(S=null,T.state=T.state(ne||C,c,T),S&&(C=S=="error"?C+" error":S)),C},indent:function(c,T,C){var g=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+Q;if(g&&g.noIndent)return b.Pass;if(c.tokenize!=A&&c.tokenize!=R)return C?C.match(/^(\s*)/)[0].length:0;if(c.tagName)return k.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+Q*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/$/,blockCommentStart:"",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(c){c.state==F&&(c.state=P)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var T=[],C=c.context;C;C=C.prev)T.push(C.tagName);return T.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),xa.exports}var ba={exports:{}},ka;function Qa(){return ka||(ka=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineMode("javascript",function(pe,_){var te=pe.indentUnit,oe=_.statementIndent,Q=_.jsonld,k=_.json||Q,I=_.trackScope!==!1,Y=_.typescript,ne=_.wordCharacters||/[\w$\xa1-\uffff]/,S=(function(){function f(it){return{type:it,style:"keyword"}}var m=f("keyword a"),U=f("keyword b"),re=f("keyword c"),B=f("keyword d"),ce=f("operator"),We={type:"atom",style:"atom"};return{if:f("if"),while:m,with:m,else:U,do:U,try:U,finally:U,return:B,break:B,continue:B,new:f("new"),delete:re,void:re,throw:re,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:ce,typeof:ce,instanceof:ce,true:We,false:We,null:We,undefined:We,NaN:We,Infinity:We,this:f("this"),class:f("class"),super:f("atom"),yield:re,export:f("export"),import:f("import"),extends:re,await:re}})(),R=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function V(f){for(var m=!1,U,re=!1;(U=f.next())!=null;){if(!m){if(U=="/"&&!re)return;U=="["?re=!0:re&&U=="]"&&(re=!1)}m=!m&&U=="\\"}}var ue,O;function w(f,m,U){return ue=f,O=U,m}function M(f,m){var U=f.next();if(U=='"'||U=="'")return m.tokenize=N(U),m.tokenize(f,m);if(U=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(U=="."&&f.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(U))return w(U);if(U=="="&&f.eat(">"))return w("=>","operator");if(U=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(U))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(U=="/")return f.eat("*")?(m.tokenize=z,z(f,m)):f.eat("/")?(f.skipToEnd(),w("comment","comment")):Et(f,m,1)?(V(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(f.eat("="),w("operator","operator",f.current()));if(U=="`")return m.tokenize=X,X(f,m);if(U=="#"&&f.peek()=="!")return f.skipToEnd(),w("meta","meta");if(U=="#"&&f.eatWhile(ne))return w("variable","property");if(U=="<"&&f.match("!--")||U=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),w("comment","comment");if(R.test(U))return(U!=">"||!m.lexical||m.lexical.type!=">")&&(f.eat("=")?(U=="!"||U=="=")&&f.eat("="):/[<>*+\-|&?]/.test(U)&&(f.eat(U),U==">"&&f.eat(U))),U=="?"&&f.eat(".")?w("."):w("operator","operator",f.current());if(ne.test(U)){f.eatWhile(ne);var re=f.current();if(m.lastType!="."){if(S.propertyIsEnumerable(re)){var B=S[re];return w(B.type,B.style,re)}if(re=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",re)}return w("variable","variable",re)}}function N(f){return function(m,U){var re=!1,B;if(Q&&m.peek()=="@"&&m.match(A))return U.tokenize=M,w("jsonld-keyword","meta");for(;(B=m.next())!=null&&!(B==f&&!re);)re=!re&&B=="\\";return re||(U.tokenize=M),w("string","string")}}function z(f,m){for(var U=!1,re;re=f.next();){if(re=="/"&&U){m.tokenize=M;break}U=re=="*"}return w("comment","comment")}function X(f,m){for(var U=!1,re;(re=f.next())!=null;){if(!U&&(re=="`"||re=="$"&&f.eat("{"))){m.tokenize=M;break}U=!U&&re=="\\"}return w("quasi","string-2",f.current())}var q="([{}])";function p(f,m){m.fatArrowAt&&(m.fatArrowAt=null);var U=f.string.indexOf("=>",f.start);if(!(U<0)){if(Y){var re=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,U));re&&(U=re.index)}for(var B=0,ce=!1,We=U-1;We>=0;--We){var it=f.string.charAt(We),wt=q.indexOf(it);if(wt>=0&&wt<3){if(!B){++We;break}if(--B==0){it=="("&&(ce=!0);break}}else if(wt>=3&&wt<6)++B;else if(ne.test(it))ce=!0;else if(/["'\/`]/.test(it))for(;;--We){if(We==0)return;var Wr=f.string.charAt(We-1);if(Wr==it&&f.string.charAt(We-2)!="\\"){We--;break}}else if(ce&&!B){++We;break}}ce&&!B&&(m.fatArrowAt=We)}}var W={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function J(f,m,U,re,B,ce){this.indented=f,this.column=m,this.type=U,this.prev=B,this.info=ce,re!=null&&(this.align=re)}function P(f,m){if(!I)return!1;for(var U=f.localVars;U;U=U.next)if(U.name==m)return!0;for(var re=f.context;re;re=re.prev)for(var U=re.vars;U;U=U.next)if(U.name==m)return!0}function $(f,m,U,re,B){var ce=f.cc;for(F.state=f,F.stream=B,F.marked=null,F.cc=ce,F.style=m,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var We=ce.length?ce.pop():k?ve:Fe;if(We(U,re)){for(;ce.length&&ce[ce.length-1].lex;)ce.pop()();return F.marked?F.marked:U=="variable"&&P(f,re)?"variable-2":m}}}var F={state:null,marked:null,cc:null};function G(){for(var f=arguments.length-1;f>=0;f--)F.cc.push(arguments[f])}function c(){return G.apply(null,arguments),!0}function T(f,m){for(var U=m;U;U=U.next)if(U.name==f)return!0;return!1}function C(f){var m=F.state;if(F.marked="def",!!I){if(m.context){if(m.lexical.info=="var"&&m.context&&m.context.block){var U=g(f,m.context);if(U!=null){m.context=U;return}}else if(!T(f,m.localVars)){m.localVars=new de(f,m.localVars);return}}_.globalVars&&!T(f,m.globalVars)&&(m.globalVars=new de(f,m.globalVars))}}function g(f,m){if(m)if(m.block){var U=g(f,m.prev);return U?U==m.prev?m:new j(U,m.vars,!0):null}else return T(f,m.vars)?m:new j(m.prev,new de(f,m.vars),!1);else return null}function y(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function j(f,m,U){this.prev=f,this.vars=m,this.block=U}function de(f,m){this.name=f,this.next=m}var v=new de("this",new de("arguments",null));function d(){F.state.context=new j(F.state.context,F.state.localVars,!1),F.state.localVars=v}function fe(){F.state.context=new j(F.state.context,F.state.localVars,!0),F.state.localVars=null}d.lex=fe.lex=!0;function Te(){F.state.localVars=F.state.context.vars,F.state.context=F.state.context.prev}Te.lex=!0;function le(f,m){var U=function(){var re=F.state,B=re.indented;if(re.lexical.type=="stat")B=re.lexical.indented;else for(var ce=re.lexical;ce&&ce.type==")"&&ce.align;ce=ce.prev)B=ce.indented;re.lexical=new J(B,F.stream.column(),f,null,re.lexical,m)};return U.lex=!0,U}function xe(){var f=F.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}xe.lex=!0;function Me(f){function m(U){return U==f?c():f==";"||U=="}"||U==")"||U=="]"?G():c(m)}return m}function Fe(f,m){return f=="var"?c(le("vardef",m),Er,Me(";"),xe):f=="keyword a"?c(le("form"),qe,Fe,xe):f=="keyword b"?c(le("form"),Fe,xe):f=="keyword d"?F.stream.match(/^\s*$/,!1)?c():c(le("stat"),dt,Me(";"),xe):f=="debugger"?c(Me(";")):f=="{"?c(le("}"),fe,Pt,xe,Te):f==";"?c():f=="if"?(F.state.lexical.info=="else"&&F.state.cc[F.state.cc.length-1]==xe&&F.state.cc.pop()(),c(le("form"),qe,Fe,xe,Or)):f=="function"?c(zt):f=="for"?c(le("form"),fe,Rn,Fe,Te,xe):f=="class"||Y&&m=="interface"?(F.marked="keyword",c(le("form",f=="class"?f:m),Pr,xe)):f=="variable"?Y&&m=="declare"?(F.marked="keyword",c(Fe)):Y&&(m=="module"||m=="enum"||m=="type")&&F.stream.match(/^\s*\w/,!1)?(F.marked="keyword",m=="enum"?c(ye):m=="type"?c(Wn,Me("operator"),Re,Me(";")):c(le("form"),kt,Me("{"),le("}"),Pt,xe,xe)):Y&&m=="namespace"?(F.marked="keyword",c(le("form"),ve,Fe,xe)):Y&&m=="abstract"?(F.marked="keyword",c(Fe)):c(le("stat"),ze):f=="switch"?c(le("form"),qe,Me("{"),le("}","switch"),fe,Pt,xe,xe,Te):f=="case"?c(ve,Me(":")):f=="default"?c(Me(":")):f=="catch"?c(le("form"),d,Ce,Fe,xe,Te):f=="export"?c(le("stat"),Ir,xe):f=="import"?c(le("stat"),fr,xe):f=="async"?c(Fe):m=="@"?c(ve,Fe):G(le("stat"),ve,Me(";"),xe)}function Ce(f){if(f=="(")return c(Wt,Me(")"))}function ve(f,m){return Ve(f,m,!1)}function Oe(f,m){return Ve(f,m,!0)}function qe(f){return f!="("?G():c(le(")"),dt,Me(")"),xe)}function Ve(f,m,U){if(F.state.fatArrowAt==F.stream.start){var re=U?Ie:we;if(f=="(")return c(d,le(")"),Ne(Wt,")"),xe,Me("=>"),re,Te);if(f=="variable")return G(d,kt,Me("=>"),re,Te)}var B=U?_e:Pe;return W.hasOwnProperty(f)?c(B):f=="function"?c(zt,B):f=="class"||Y&&m=="interface"?(F.marked="keyword",c(le("form"),yi,xe)):f=="keyword c"||f=="async"?c(U?Oe:ve):f=="("?c(le(")"),dt,Me(")"),xe,B):f=="operator"||f=="spread"?c(U?Oe:ve):f=="["?c(le("]"),Je,xe,B):f=="{"?Mt(De,"}",null,B):f=="quasi"?G(Ue,B):f=="new"?c(E(U)):c()}function dt(f){return f.match(/[;\}\)\],]/)?G():G(ve)}function Pe(f,m){return f==","?c(dt):_e(f,m,!1)}function _e(f,m,U){var re=U==!1?Pe:_e,B=U==!1?ve:Oe;if(f=="=>")return c(d,U?Ie:we,Te);if(f=="operator")return/\+\+|--/.test(m)||Y&&m=="!"?c(re):Y&&m=="<"&&F.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(le(">"),Ne(Re,">"),xe,re):m=="?"?c(ve,Me(":"),B):c(B);if(f=="quasi")return G(Ue,re);if(f!=";"){if(f=="(")return Mt(Oe,")","call",re);if(f==".")return c(me,re);if(f=="[")return c(le("]"),dt,Me("]"),xe,re);if(Y&&m=="as")return F.marked="keyword",c(Re,re);if(f=="regexp")return F.state.lastType=F.marked="operator",F.stream.backUp(F.stream.pos-F.stream.start-1),c(B)}}function Ue(f,m){return f!="quasi"?G():m.slice(m.length-2)!="${"?c(Ue):c(dt,et)}function et(f){if(f=="}")return F.marked="string-2",F.state.tokenize=X,c(Ue)}function we(f){return p(F.stream,F.state),G(f=="{"?Fe:ve)}function Ie(f){return p(F.stream,F.state),G(f=="{"?Fe:Oe)}function E(f){return function(m){return m=="."?c(f?K:ee):m=="variable"&&Y?c(Ft,f?_e:Pe):G(f?Oe:ve)}}function ee(f,m){if(m=="target")return F.marked="keyword",c(Pe)}function K(f,m){if(m=="target")return F.marked="keyword",c(_e)}function ze(f){return f==":"?c(xe,Fe):G(Pe,Me(";"),xe)}function me(f){if(f=="variable")return F.marked="property",c()}function De(f,m){if(f=="async")return F.marked="property",c(De);if(f=="variable"||F.style=="keyword"){if(F.marked="property",m=="get"||m=="set")return c(be);var U;return Y&&F.state.fatArrowAt==F.stream.start&&(U=F.stream.match(/^\s*:\s*/,!1))&&(F.state.fatArrowAt=F.stream.pos+U[0].length),c(Be)}else{if(f=="number"||f=="string")return F.marked=Q?"property":F.style+" property",c(Be);if(f=="jsonld-keyword")return c(Be);if(Y&&y(m))return F.marked="keyword",c(De);if(f=="[")return c(ve,or,Me("]"),Be);if(f=="spread")return c(Oe,Be);if(m=="*")return F.marked="keyword",c(De);if(f==":")return G(Be)}}function be(f){return f!="variable"?G(Be):(F.marked="property",c(zt))}function Be(f){if(f==":")return c(Oe);if(f=="(")return G(zt)}function Ne(f,m,U){function re(B,ce){if(U?U.indexOf(B)>-1:B==","){var We=F.state.lexical;return We.info=="call"&&(We.pos=(We.pos||0)+1),c(function(it,wt){return it==m||wt==m?G():G(f)},re)}return B==m||ce==m?c():U&&U.indexOf(";")>-1?G(f):c(Me(m))}return function(B,ce){return B==m||ce==m?c():G(f,re)}}function Mt(f,m,U){for(var re=3;re"),Re);if(f=="quasi")return G(ht,It)}function Bn(f){if(f=="=>")return c(Re)}function Se(f){return f.match(/[\}\)\]]/)?c():f==","||f==";"?c(Se):G(Zt,Se)}function Zt(f,m){if(f=="variable"||F.style=="keyword")return F.marked="property",c(Zt);if(m=="?"||f=="number"||f=="string")return c(Zt);if(f==":")return c(Re);if(f=="[")return c(Me("variable"),br,Me("]"),Zt);if(f=="(")return G(ur,Zt);if(!f.match(/[;\}\)\],]/))return c()}function ht(f,m){return f!="quasi"?G():m.slice(m.length-2)!="${"?c(ht):c(Re,Ye)}function Ye(f){if(f=="}")return F.marked="string-2",F.state.tokenize=X,c(ht)}function Qe(f,m){return f=="variable"&&F.stream.match(/^\s*[?:]/,!1)||m=="?"?c(Qe):f==":"?c(Re):f=="spread"?c(Qe):G(Re)}function It(f,m){if(m=="<")return c(le(">"),Ne(Re,">"),xe,It);if(m=="|"||f=="."||m=="&")return c(Re);if(f=="[")return c(Re,Me("]"),It);if(m=="extends"||m=="implements")return F.marked="keyword",c(Re);if(m=="?")return c(Re,Me(":"),Re)}function Ft(f,m){if(m=="<")return c(le(">"),Ne(Re,">"),xe,It)}function Bt(){return G(Re,pt)}function pt(f,m){if(m=="=")return c(Re)}function Er(f,m){return m=="enum"?(F.marked="keyword",c(ye)):G(kt,or,Rt,xi)}function kt(f,m){if(Y&&y(m))return F.marked="keyword",c(kt);if(f=="variable")return C(m),c();if(f=="spread")return c(kt);if(f=="[")return Mt(ln,"]");if(f=="{")return Mt(ar,"}")}function ar(f,m){return f=="variable"&&!F.stream.match(/^\s*:/,!1)?(C(m),c(Rt)):(f=="variable"&&(F.marked="property"),f=="spread"?c(kt):f=="}"?G():f=="["?c(ve,Me("]"),Me(":"),ar):c(Me(":"),kt,Rt))}function ln(){return G(kt,Rt)}function Rt(f,m){if(m=="=")return c(Oe)}function xi(f){if(f==",")return c(Er)}function Or(f,m){if(f=="keyword b"&&m=="else")return c(le("form","else"),Fe,xe)}function Rn(f,m){if(m=="await")return c(Rn);if(f=="(")return c(le(")"),an,xe)}function an(f){return f=="var"?c(Er,sr):f=="variable"?c(sr):G(sr)}function sr(f,m){return f==")"?c():f==";"?c(sr):m=="in"||m=="of"?(F.marked="keyword",c(ve,sr)):G(ve,sr)}function zt(f,m){if(m=="*")return F.marked="keyword",c(zt);if(f=="variable")return C(m),c(zt);if(f=="(")return c(d,le(")"),Ne(Wt,")"),xe,lr,Fe,Te);if(Y&&m=="<")return c(le(">"),Ne(Bt,">"),xe,zt)}function ur(f,m){if(m=="*")return F.marked="keyword",c(ur);if(f=="variable")return C(m),c(ur);if(f=="(")return c(d,le(")"),Ne(Wt,")"),xe,lr,Te);if(Y&&m=="<")return c(le(">"),Ne(Bt,">"),xe,ur)}function Wn(f,m){if(f=="keyword"||f=="variable")return F.marked="type",c(Wn);if(m=="<")return c(le(">"),Ne(Bt,">"),xe)}function Wt(f,m){return m=="@"&&c(ve,Wt),f=="spread"?c(Wt):Y&&y(m)?(F.marked="keyword",c(Wt)):Y&&f=="this"?c(or,Rt):G(kt,or,Rt)}function yi(f,m){return f=="variable"?Pr(f,m):Ht(f,m)}function Pr(f,m){if(f=="variable")return C(m),c(Ht)}function Ht(f,m){if(m=="<")return c(le(">"),Ne(Bt,">"),xe,Ht);if(m=="extends"||m=="implements"||Y&&f==",")return m=="implements"&&(F.marked="keyword"),c(Y?Re:ve,Ht);if(f=="{")return c(le("}"),_t,xe)}function _t(f,m){if(f=="async"||f=="variable"&&(m=="static"||m=="get"||m=="set"||Y&&y(m))&&F.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return F.marked="keyword",c(_t);if(f=="variable"||F.style=="keyword")return F.marked="property",c(kr,_t);if(f=="number"||f=="string")return c(kr,_t);if(f=="[")return c(ve,or,Me("]"),kr,_t);if(m=="*")return F.marked="keyword",c(_t);if(Y&&f=="(")return G(ur,_t);if(f==";"||f==",")return c(_t);if(f=="}")return c();if(m=="@")return c(ve,_t)}function kr(f,m){if(m=="!"||m=="?")return c(kr);if(f==":")return c(Re,Rt);if(m=="=")return c(Oe);var U=F.state.lexical.prev,re=U&&U.info=="interface";return G(re?ur:zt)}function Ir(f,m){return m=="*"?(F.marked="keyword",c(Rr,Me(";"))):m=="default"?(F.marked="keyword",c(ve,Me(";"))):f=="{"?c(Ne(zr,"}"),Rr,Me(";")):G(Fe)}function zr(f,m){if(m=="as")return F.marked="keyword",c(Me("variable"));if(f=="variable")return G(Oe,zr)}function fr(f){return f=="string"?c():f=="("?G(ve):f=="."?G(Pe):G(Br,Gt,Rr)}function Br(f,m){return f=="{"?Mt(Br,"}"):(f=="variable"&&C(m),m=="*"&&(F.marked="keyword"),c(sn))}function Gt(f){if(f==",")return c(Br,Gt)}function sn(f,m){if(m=="as")return F.marked="keyword",c(Br)}function Rr(f,m){if(m=="from")return F.marked="keyword",c(ve)}function Je(f){return f=="]"?c():G(Ne(Oe,"]"))}function ye(){return G(le("form"),kt,Me("{"),le("}"),Ne(Vt,"}"),xe,xe)}function Vt(){return G(kt,Rt)}function un(f,m){return f.lastType=="operator"||f.lastType==","||R.test(m.charAt(0))||/[,.]/.test(m.charAt(0))}function Et(f,m,U){return m.tokenize==M&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(m.lastType)||m.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(U||0)))}return{startState:function(f){var m={tokenize:M,lastType:"sof",cc:[],lexical:new J((f||0)-te,0,"block",!1),localVars:_.localVars,context:_.localVars&&new j(null,null,!1),indented:f||0};return _.globalVars&&typeof _.globalVars=="object"&&(m.globalVars=_.globalVars),m},token:function(f,m){if(f.sol()&&(m.lexical.hasOwnProperty("align")||(m.lexical.align=!1),m.indented=f.indentation(),p(f,m)),m.tokenize!=z&&f.eatSpace())return null;var U=m.tokenize(f,m);return ue=="comment"?U:(m.lastType=ue=="operator"&&(O=="++"||O=="--")?"incdec":ue,$(m,U,ue,O,f))},indent:function(f,m){if(f.tokenize==z||f.tokenize==X)return b.Pass;if(f.tokenize!=M)return 0;var U=m&&m.charAt(0),re=f.lexical,B;if(!/^\s*else\b/.test(m))for(var ce=f.cc.length-1;ce>=0;--ce){var We=f.cc[ce];if(We==xe)re=re.prev;else if(We!=Or&&We!=Te)break}for(;(re.type=="stat"||re.type=="form")&&(U=="}"||(B=f.cc[f.cc.length-1])&&(B==Pe||B==_e)&&!/^[,\.=+\-*:?[\(]/.test(m));)re=re.prev;oe&&re.type==")"&&re.prev.type=="stat"&&(re=re.prev);var it=re.type,wt=U==it;return it=="vardef"?re.indented+(f.lastType=="operator"||f.lastType==","?re.info.length+1:0):it=="form"&&U=="{"?re.indented:it=="form"?re.indented+te:it=="stat"?re.indented+(un(f,m)?oe||te:0):re.info=="switch"&&!wt&&_.doubleIndentSwitch!=!1?re.indented+(/^(?:case|default)\b/.test(m)?te:2*te):re.align?re.column+(wt?0:1):re.indented+(wt?0:te)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:k?null:"/*",blockCommentEnd:k?null:"*/",blockCommentContinue:k?null:" * ",lineComment:k?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:k?"json":"javascript",jsonldMode:Q,jsonMode:k,expressionAllowed:Et,skipExpression:function(f){$(f,"atom","atom","true",new b.StringStream("",2,null))}}}),b.registerHelper("wordChars","javascript",/[\w$]/),b.defineMIME("text/javascript","javascript"),b.defineMIME("text/ecmascript","javascript"),b.defineMIME("application/javascript","javascript"),b.defineMIME("application/x-javascript","javascript"),b.defineMIME("application/ecmascript","javascript"),b.defineMIME("application/json",{name:"javascript",json:!0}),b.defineMIME("application/x-json",{name:"javascript",json:!0}),b.defineMIME("application/manifest+json",{name:"javascript",json:!0}),b.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),b.defineMIME("text/typescript",{name:"javascript",typescript:!0}),b.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),ba.exports}var wa;function $u(){return wa||(wa=1,(function(ct,xt){(function(b){b(mt(),Ya(),Qa(),Xa())})(function(b){var pe={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function _(ne,S,R){var A=ne.current(),V=A.search(S);return V>-1?ne.backUp(A.length-V):A.match(/<\/?$/)&&(ne.backUp(A.length),ne.match(S,!1)||ne.match(A)),R}var te={};function oe(ne){var S=te[ne];return S||(te[ne]=new RegExp("\\s+"+ne+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function Q(ne,S){var R=ne.match(oe(S));return R?/^\s*(.*?)\s*$/.exec(R[2])[1]:""}function k(ne,S){return new RegExp((S?"^":"")+"","i")}function I(ne,S){for(var R in ne)for(var A=S[R]||(S[R]=[]),V=ne[R],ue=V.length-1;ue>=0;ue--)A.unshift(V[ue])}function Y(ne,S){for(var R=0;R=0;O--)A.script.unshift(["type",ue[O].matches,ue[O].mode]);function w(M,N){var z=R.token(M,N.htmlState),X=/\btag\b/.test(z),q;if(X&&!/[<>\s\/]/.test(M.current())&&(q=N.htmlState.tagName&&N.htmlState.tagName.toLowerCase())&&A.hasOwnProperty(q))N.inTag=q+" ";else if(N.inTag&&X&&/>$/.test(M.current())){var p=/^([\S]+) (.*)/.exec(N.inTag);N.inTag=null;var W=M.current()==">"&&Y(A[p[1]],p[2]),J=b.getMode(ne,W),P=k(p[1],!0),$=k(p[1],!1);N.token=function(F,G){return F.match(P,!1)?(G.token=w,G.localState=G.localMode=null,null):_(F,$,G.localMode.token(F,G.localState))},N.localMode=J,N.localState=b.startState(J,R.indent(N.htmlState,"",""))}else N.inTag&&(N.inTag+=M.current(),M.eol()&&(N.inTag+=" "));return z}return{startState:function(){var M=b.startState(R);return{token:w,inTag:null,localMode:null,localState:null,htmlState:M}},copyState:function(M){var N;return M.localState&&(N=b.copyState(M.localMode,M.localState)),{token:M.token,inTag:M.inTag,localMode:M.localMode,localState:N,htmlState:b.copyState(R,M.htmlState)}},token:function(M,N){return N.token(M,N)},indent:function(M,N,z){return!M.localMode||/^\s*<\//.test(N)?R.indent(M.htmlState,N,z):M.localMode.indent?M.localMode.indent(M.localState,N,z):b.Pass},innerMode:function(M){return{state:M.localState||M.htmlState,mode:M.localMode||R}}}},"xml","javascript","css"),b.defineMIME("text/html","htmlmixed")})})()),ma.exports}$u();Qa();var Sa={exports:{}},La;function ef(){return La||(La=1,(function(ct,xt){(function(b){b(mt())})(function(b){function pe(I){return new RegExp("^(("+I.join(")|(")+"))\\b")}var _=pe(["and","or","not","is"]),te=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],oe=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];b.registerHelper("hintWords","python",te.concat(oe).concat(["exec","print"]));function Q(I){return I.scopes[I.scopes.length-1]}b.defineMode("python",function(I,Y){for(var ne="error",S=Y.delimiters||Y.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,R=[Y.singleOperators,Y.doubleOperators,Y.doubleDelimiters,Y.tripleDelimiters,Y.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],A=0;Ay?P(C):j0&&F(T,C)&&(de+=" "+ne),de}}return p(T,C)}function p(T,C,g){if(T.eatSpace())return null;if(!g&&T.match(/^#.*/))return"comment";if(T.match(/^[0-9\.]/,!1)){var y=!1;if(T.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(y=!0),T.match(/^[\d_]+\.\d*/)&&(y=!0),T.match(/^\.\d+/)&&(y=!0),y)return T.eat(/J/i),"number";var j=!1;if(T.match(/^0x[0-9a-f_]+/i)&&(j=!0),T.match(/^0b[01_]+/i)&&(j=!0),T.match(/^0o[0-7_]+/i)&&(j=!0),T.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(T.eat(/J/i),j=!0),T.match(/^0(?![\dx])/i)&&(j=!0),j)return T.eat(/L/i),"number"}if(T.match(N)){var de=T.current().toLowerCase().indexOf("f")!==-1;return de?(C.tokenize=W(T.current(),C.tokenize),C.tokenize(T,C)):(C.tokenize=J(T.current(),C.tokenize),C.tokenize(T,C))}for(var v=0;v=0;)T=T.substr(1);var g=T.length==1,y="string";function j(v){return function(d,fe){var Te=p(d,fe,!0);return Te=="punctuation"&&(d.current()=="{"?fe.tokenize=j(v+1):d.current()=="}"&&(v>1?fe.tokenize=j(v-1):fe.tokenize=de)),Te}}function de(v,d){for(;!v.eol();)if(v.eatWhile(/[^'"\{\}\\]/),v.eat("\\")){if(v.next(),g&&v.eol())return y}else{if(v.match(T))return d.tokenize=C,y;if(v.match("{{"))return y;if(v.match("{",!1))return d.tokenize=j(0),v.current()?y:d.tokenize(v,d);if(v.match("}}"))return y;if(v.match("}"))return ne;v.eat(/['"]/)}if(g){if(Y.singleLineStringErrors)return ne;d.tokenize=C}return y}return de.isString=!0,de}function J(T,C){for(;"rubf".indexOf(T.charAt(0).toLowerCase())>=0;)T=T.substr(1);var g=T.length==1,y="string";function j(de,v){for(;!de.eol();)if(de.eatWhile(/[^'"\\]/),de.eat("\\")){if(de.next(),g&&de.eol())return y}else{if(de.match(T))return v.tokenize=C,y;de.eat(/['"]/)}if(g){if(Y.singleLineStringErrors)return ne;v.tokenize=C}return y}return j.isString=!0,j}function P(T){for(;Q(T).type!="py";)T.scopes.pop();T.scopes.push({offset:Q(T).offset+I.indentUnit,type:"py",align:null})}function $(T,C,g){var y=T.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:T.column()+1;C.scopes.push({offset:C.indent+V,type:g,align:y})}function F(T,C){for(var g=T.indentation();C.scopes.length>1&&Q(C).offset>g;){if(Q(C).type!="py")return!0;C.scopes.pop()}return Q(C).offset!=g}function G(T,C){T.sol()&&(C.beginningOfLine=!0,C.dedent=!1);var g=C.tokenize(T,C),y=T.current();if(C.beginningOfLine&&y=="@")return T.match(M,!1)?"meta":w?"operator":ne;if(/\S/.test(y)&&(C.beginningOfLine=!1),(g=="variable"||g=="builtin")&&C.lastToken=="meta"&&(g="meta"),(y=="pass"||y=="return")&&(C.dedent=!0),y=="lambda"&&(C.lambda=!0),y==":"&&!C.lambda&&Q(C).type=="py"&&T.match(/^\s*(?:#|$)/,!1)&&P(C),y.length==1&&!/string|comment/.test(g)){var j="[({".indexOf(y);if(j!=-1&&$(T,C,"])}".slice(j,j+1)),j="])}".indexOf(y),j!=-1)if(Q(C).type==y)C.indent=C.scopes.pop().offset-V;else return ne}return C.dedent&&T.eol()&&Q(C).type=="py"&&C.scopes.length>1&&C.scopes.pop(),g}var c={startState:function(T){return{tokenize:q,scopes:[{offset:T||0,type:"py",align:null}],indent:T||0,lastToken:null,lambda:!1,dedent:0}},token:function(T,C){var g=C.errorToken;g&&(C.errorToken=!1);var y=G(T,C);return y&&y!="comment"&&(C.lastToken=y=="keyword"||y=="punctuation"?T.current():y),y=="punctuation"&&(y=null),T.eol()&&C.lambda&&(C.lambda=!1),g?y+" "+ne:y},indent:function(T,C){if(T.tokenize!=q)return T.tokenize.isString?b.Pass:0;var g=Q(T),y=g.type==C.charAt(0)||g.type=="py"&&!T.dedent&&/^(else:|elif |except |finally:)/.test(C);return g.align!=null?g.align-(y?1:0):g.offset-(y?V:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),b.defineMIME("text/x-python","python");var k=function(I){return I.split(" ")};b.defineMIME("text/x-cython",{name:"python",extra_keywords:k("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})()),Sa.exports}ef();var Ta={exports:{}},Ca;function tf(){return Ca||(Ca=1,(function(ct,xt){(function(b){b(mt())})(function(b){function pe(g,y,j,de,v,d){this.indented=g,this.column=y,this.type=j,this.info=de,this.align=v,this.prev=d}function _(g,y,j,de){var v=g.indented;return g.context&&g.context.type=="statement"&&j!="statement"&&(v=g.context.indented),g.context=new pe(v,y,j,de,null,g.context)}function te(g){var y=g.context.type;return(y==")"||y=="]"||y=="}")&&(g.indented=g.context.indented),g.context=g.context.prev}function oe(g,y,j){if(y.prevToken=="variable"||y.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(g.string.slice(0,j))||y.typeAtEndOfLine&&g.column()==g.indentation())return!0}function Q(g){for(;;){if(!g||g.type=="top")return!0;if(g.type=="}"&&g.prev.info!="namespace")return!1;g=g.prev}}b.defineMode("clike",function(g,y){var j=g.indentUnit,de=y.statementIndentUnit||j,v=y.dontAlignCalls,d=y.keywords||{},fe=y.types||{},Te=y.builtin||{},le=y.blockKeywords||{},xe=y.defKeywords||{},Me=y.atoms||{},Fe=y.hooks||{},Ce=y.multiLineStrings,ve=y.indentStatements!==!1,Oe=y.indentSwitch!==!1,qe=y.namespaceSeparator,Ve=y.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,dt=y.numberStart||/[\d\.]/,Pe=y.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,_e=y.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ue=y.isIdentifierChar||/[\w\$_\xa1-\uffff]/,et=y.isReservedIdentifier||!1,we,Ie;function E(me,De){var be=me.next();if(Fe[be]){var Be=Fe[be](me,De);if(Be!==!1)return Be}if(be=='"'||be=="'")return De.tokenize=ee(be),De.tokenize(me,De);if(dt.test(be)){if(me.backUp(1),me.match(Pe))return"number";me.next()}if(Ve.test(be))return we=be,null;if(be=="/"){if(me.eat("*"))return De.tokenize=K,K(me,De);if(me.eat("/"))return me.skipToEnd(),"comment"}if(_e.test(be)){for(;!me.match(/^\/[\/*]/,!1)&&me.eat(_e););return"operator"}if(me.eatWhile(Ue),qe)for(;me.match(qe);)me.eatWhile(Ue);var Ne=me.current();return I(d,Ne)?(I(le,Ne)&&(we="newstatement"),I(xe,Ne)&&(Ie=!0),"keyword"):I(fe,Ne)?"type":I(Te,Ne)||et&&et(Ne)?(I(le,Ne)&&(we="newstatement"),"builtin"):I(Me,Ne)?"atom":"variable"}function ee(me){return function(De,be){for(var Be=!1,Ne,Mt=!1;(Ne=De.next())!=null;){if(Ne==me&&!Be){Mt=!0;break}Be=!Be&&Ne=="\\"}return(Mt||!(Be||Ce))&&(be.tokenize=null),"string"}}function K(me,De){for(var be=!1,Be;Be=me.next();){if(Be=="/"&&be){De.tokenize=null;break}be=Be=="*"}return"comment"}function ze(me,De){y.typeFirstDefinitions&&me.eol()&&Q(De.context)&&(De.typeAtEndOfLine=oe(me,De,me.pos))}return{startState:function(me){return{tokenize:null,context:new pe((me||0)-j,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(me,De){var be=De.context;if(me.sol()&&(be.align==null&&(be.align=!1),De.indented=me.indentation(),De.startOfLine=!0),me.eatSpace())return ze(me,De),null;we=Ie=null;var Be=(De.tokenize||E)(me,De);if(Be=="comment"||Be=="meta")return Be;if(be.align==null&&(be.align=!0),we==";"||we==":"||we==","&&me.match(/^\s*(?:\/\/.*)?$/,!1))for(;De.context.type=="statement";)te(De);else if(we=="{")_(De,me.column(),"}");else if(we=="[")_(De,me.column(),"]");else if(we=="(")_(De,me.column(),")");else if(we=="}"){for(;be.type=="statement";)be=te(De);for(be.type=="}"&&(be=te(De));be.type=="statement";)be=te(De)}else we==be.type?te(De):ve&&((be.type=="}"||be.type=="top")&&we!=";"||be.type=="statement"&&we=="newstatement")&&_(De,me.column(),"statement",me.current());if(Be=="variable"&&(De.prevToken=="def"||y.typeFirstDefinitions&&oe(me,De,me.start)&&Q(De.context)&&me.match(/^\s*\(/,!1))&&(Be="def"),Fe.token){var Ne=Fe.token(me,De,Be);Ne!==void 0&&(Be=Ne)}return Be=="def"&&y.styleDefs===!1&&(Be="variable"),De.startOfLine=!1,De.prevToken=Ie?"def":Be||we,ze(me,De),Be},indent:function(me,De){if(me.tokenize!=E&&me.tokenize!=null||me.typeAtEndOfLine&&Q(me.context))return b.Pass;var be=me.context,Be=De&&De.charAt(0),Ne=Be==be.type;if(be.type=="statement"&&Be=="}"&&(be=be.prev),y.dontIndentStatements)for(;be.type=="statement"&&y.dontIndentStatements.test(be.info);)be=be.prev;if(Fe.indent){var Mt=Fe.indent(me,be,De,j);if(typeof Mt=="number")return Mt}var Pt=be.prev&&be.prev.info=="switch";if(y.allmanIndentation&&/[{(]/.test(Be)){for(;be.type!="top"&&be.type!="}";)be=be.prev;return be.indented}return be.type=="statement"?be.indented+(Be=="{"?0:de):be.align&&(!v||be.type!=")")?be.column+(Ne?0:1):be.type==")"&&!Ne?be.indented+de:be.indented+(Ne?0:j)+(!Ne&&Pt&&!/^(?:case|default)\b/.test(De)?j:0)},electricInput:Oe?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function k(g){for(var y={},j=g.split(" "),de=0;de!?|\/#:@]/,hooks:{"@":function(g){return g.eatWhile(/[\w\$_]/),"meta"},'"':function(g,y){return g.match('""')?(y.tokenize=F,y.tokenize(g,y)):!1},"'":function(g){return g.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(g.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(g,y){var j=y.context;return j.type=="}"&&j.align&&g.eat(">")?(y.context=new pe(j.indented,j.column,j.type,j.info,null,j.prev),"operator"):!1},"/":function(g,y){return g.eat("*")?(y.tokenize=G(1),y.tokenize(g,y)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(g){return function(y,j){for(var de=!1,v,d=!1;!y.eol();){if(!g&&!de&&y.match('"')){d=!0;break}if(g&&y.match('"""')){d=!0;break}v=y.next(),!de&&v=="$"&&y.match("{")&&y.skipTo("}"),de=!de&&v=="\\"&&!g}return(d||!g)&&(j.tokenize=null),"string"}}$("text/x-kotlin",{name:"clike",keywords:k("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:k("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:k("catch class do else finally for if where try while enum"),defKeywords:k("class val var object interface fun"),atoms:k("true false null this"),hooks:{"@":function(g){return g.eatWhile(/[\w\$_]/),"meta"},"*":function(g,y){return y.prevToken=="."?"variable":"operator"},'"':function(g,y){return y.tokenize=c(g.match('""')),y.tokenize(g,y)},"/":function(g,y){return g.eat("*")?(y.tokenize=G(1),y.tokenize(g,y)):!1},indent:function(g,y,j,de){var v=j&&j.charAt(0);if((g.prevToken=="}"||g.prevToken==")")&&j=="")return g.indented;if(g.prevToken=="operator"&&j!="}"&&g.context.type!="}"||g.prevToken=="variable"&&v=="."||(g.prevToken=="}"||g.prevToken==")")&&v==".")return de*2+y.indented;if(y.align&&y.type=="}")return y.indented+(g.context.type==(j||"").charAt(0)?0:de)}},modeProps:{closeBrackets:{triples:'"'}}}),$(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:k("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:k("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:k("for while do if else struct"),builtin:k("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:k("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":N},modeProps:{fold:["brace","include"]}}),$("text/x-nesc",{name:"clike",keywords:k(Y+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:ue,blockKeywords:k(w),atoms:k("null true false"),hooks:{"#":N},modeProps:{fold:["brace","include"]}}),$("text/x-objectivec",{name:"clike",keywords:k(Y+" "+S),types:O,builtin:k(R),blockKeywords:k(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:k(M+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:k("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:X,hooks:{"#":N,"*":z},modeProps:{fold:["brace","include"]}}),$("text/x-objectivec++",{name:"clike",keywords:k(Y+" "+S+" "+ne),types:O,builtin:k(R),blockKeywords:k(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:k(M+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:k("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:X,hooks:{"#":N,"*":z,u:p,U:p,L:p,R:p,0:q,1:q,2:q,3:q,4:q,5:q,6:q,7:q,8:q,9:q,token:function(g,y,j){if(j=="variable"&&g.peek()=="("&&(y.prevToken==";"||y.prevToken==null||y.prevToken=="}")&&W(g.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),$("text/x-squirrel",{name:"clike",keywords:k("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:ue,blockKeywords:k("case catch class else for foreach if switch try while"),defKeywords:k("function local class"),typeFirstDefinitions:!0,atoms:k("true false null"),hooks:{"#":N},modeProps:{fold:["brace","include"]}});var T=null;function C(g){return function(y,j){for(var de=!1,v,d=!1;!y.eol();){if(!de&&y.match('"')&&(g=="single"||y.match('""'))){d=!0;break}if(!de&&y.match("``")){T=C(g),d=!0;break}v=y.next(),de=g=="single"&&!de&&v=="\\"}return d&&(j.tokenize=null),"string"}}$("text/x-ceylon",{name:"clike",keywords:k("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(g){var y=g.charAt(0);return y===y.toUpperCase()&&y!==y.toLowerCase()},blockKeywords:k("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:k("class dynamic function interface module object package value"),builtin:k("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:k("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(g){return g.eatWhile(/[\w\$_]/),"meta"},'"':function(g,y){return y.tokenize=C(g.match('""')?"triple":"single"),y.tokenize(g,y)},"`":function(g,y){return!T||!g.match("`")?!1:(y.tokenize=T,T=null,y.tokenize(g,y))},"'":function(g){return g.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(g,y,j){if((j=="variable"||j=="type")&&y.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})()),Ta.exports}tf();var Da={exports:{}},Ma={exports:{}},Fa;function rf(){return Fa||(Fa=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var pe=0;pe-1&&te.substring(k+1,te.length);if(I)return b.findModeByExtension(I)},b.findModeByName=function(te){te=te.toLowerCase();for(var oe=0;oe` "'(~:]+/,ue=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,O=/^\s*\[[^\]]+?\]:.*$/,w=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,M=" ";function N(v,d,fe){return d.f=d.inline=fe,fe(v,d)}function z(v,d,fe){return d.f=d.block=fe,fe(v,d)}function X(v){return!v||!/\S/.test(v.string)}function q(v){if(v.linkTitle=!1,v.linkHref=!1,v.linkText=!1,v.em=!1,v.strong=!1,v.strikethrough=!1,v.quote=0,v.indentedCode=!1,v.f==W){var d=oe;if(!d){var fe=b.innerMode(te,v.htmlState);d=fe.mode.name=="xml"&&fe.state.tagStart===null&&!fe.state.context&&fe.state.tokenize.isInText}d&&(v.f=F,v.block=p,v.htmlState=null)}return v.trailingSpace=0,v.trailingSpaceNewLine=!1,v.prevLine=v.thisLine,v.thisLine={stream:null},null}function p(v,d){var fe=v.column()===d.indentation,Te=X(d.prevLine.stream),le=d.indentedCode,xe=d.prevLine.hr,Me=d.list!==!1,Fe=(d.listStack[d.listStack.length-1]||0)+3;d.indentedCode=!1;var Ce=d.indentation;if(d.indentationDiff===null&&(d.indentationDiff=d.indentation,Me)){for(d.list=null;Ce=4&&(le||d.prevLine.fencedCodeEnd||d.prevLine.header||Te))return v.skipToEnd(),d.indentedCode=!0,k.code;if(v.eatSpace())return null;if(fe&&d.indentation<=Fe&&(qe=v.match(R))&&qe[1].length<=6)return d.quote=0,d.header=qe[1].length,d.thisLine.header=!0,_.highlightFormatting&&(d.formatting="header"),d.f=d.inline,P(d);if(d.indentation<=Fe&&v.eat(">"))return d.quote=fe?1:d.quote+1,_.highlightFormatting&&(d.formatting="quote"),v.eatSpace(),P(d);if(!Oe&&!d.setext&&fe&&d.indentation<=Fe&&(qe=v.match(ne))){var Ve=qe[1]?"ol":"ul";return d.indentation=Ce+v.current().length,d.list=!0,d.quote=0,d.listStack.push(d.indentation),d.em=!1,d.strong=!1,d.code=!1,d.strikethrough=!1,_.taskLists&&v.match(S,!1)&&(d.taskList=!0),d.f=d.inline,_.highlightFormatting&&(d.formatting=["list","list-"+Ve]),P(d)}else{if(fe&&d.indentation<=Fe&&(qe=v.match(ue,!0)))return d.quote=0,d.fencedEndRE=new RegExp(qe[1]+"+ *$"),d.localMode=_.fencedCodeBlockHighlighting&&Q(qe[2]||_.fencedCodeBlockDefaultMode),d.localMode&&(d.localState=b.startState(d.localMode)),d.f=d.block=J,_.highlightFormatting&&(d.formatting="code-block"),d.code=-1,P(d);if(d.setext||(!ve||!Me)&&!d.quote&&d.list===!1&&!d.code&&!Oe&&!O.test(v.string)&&(qe=v.lookAhead(1))&&(qe=qe.match(A)))return d.setext?(d.header=d.setext,d.setext=0,v.skipToEnd(),_.highlightFormatting&&(d.formatting="header")):(d.header=qe[0].charAt(0)=="="?1:2,d.setext=d.header),d.thisLine.header=!0,d.f=d.inline,P(d);if(Oe)return v.skipToEnd(),d.hr=!0,d.thisLine.hr=!0,k.hr;if(v.peek()==="[")return N(v,d,g)}return N(v,d,d.inline)}function W(v,d){var fe=te.token(v,d.htmlState);if(!oe){var Te=b.innerMode(te,d.htmlState);(Te.mode.name=="xml"&&Te.state.tagStart===null&&!Te.state.context&&Te.state.tokenize.isInText||d.md_inside&&v.current().indexOf(">")>-1)&&(d.f=F,d.block=p,d.htmlState=null)}return fe}function J(v,d){var fe=d.listStack[d.listStack.length-1]||0,Te=d.indentation=v.quote?d.push(k.formatting+"-"+v.formatting[fe]+"-"+v.quote):d.push("error"))}if(v.taskOpen)return d.push("meta"),d.length?d.join(" "):null;if(v.taskClosed)return d.push("property"),d.length?d.join(" "):null;if(v.linkHref?d.push(k.linkHref,"url"):(v.strong&&d.push(k.strong),v.em&&d.push(k.em),v.strikethrough&&d.push(k.strikethrough),v.emoji&&d.push(k.emoji),v.linkText&&d.push(k.linkText),v.code&&d.push(k.code),v.image&&d.push(k.image),v.imageAltText&&d.push(k.imageAltText,"link"),v.imageMarker&&d.push(k.imageMarker)),v.header&&d.push(k.header,k.header+"-"+v.header),v.quote&&(d.push(k.quote),!_.maxBlockquoteDepth||_.maxBlockquoteDepth>=v.quote?d.push(k.quote+"-"+v.quote):d.push(k.quote+"-"+_.maxBlockquoteDepth)),v.list!==!1){var Te=(v.listStack.length-1)%3;Te?Te===1?d.push(k.list2):d.push(k.list3):d.push(k.list1)}return v.trailingSpaceNewLine?d.push("trailing-space-new-line"):v.trailingSpace&&d.push("trailing-space-"+(v.trailingSpace%2?"a":"b")),d.length?d.join(" "):null}function $(v,d){if(v.match(V,!0))return P(d)}function F(v,d){var fe=d.text(v,d);if(typeof fe<"u")return fe;if(d.list)return d.list=null,P(d);if(d.taskList){var Te=v.match(S,!0)[1]===" ";return Te?d.taskOpen=!0:d.taskClosed=!0,_.highlightFormatting&&(d.formatting="task"),d.taskList=!1,P(d)}if(d.taskOpen=!1,d.taskClosed=!1,d.header&&v.match(/^#+$/,!0))return _.highlightFormatting&&(d.formatting="header"),P(d);var le=v.next();if(d.linkTitle){d.linkTitle=!1;var xe=le;le==="("&&(xe=")"),xe=(xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Me="^\\s*(?:[^"+xe+"\\\\]+|\\\\\\\\|\\\\.)"+xe;if(v.match(new RegExp(Me),!0))return k.linkHref}if(le==="`"){var Fe=d.formatting;_.highlightFormatting&&(d.formatting="code"),v.eatWhile("`");var Ce=v.current().length;if(d.code==0&&(!d.quote||Ce==1))return d.code=Ce,P(d);if(Ce==d.code){var ve=P(d);return d.code=0,ve}else return d.formatting=Fe,P(d)}else if(d.code)return P(d);if(le==="\\"&&(v.next(),_.highlightFormatting)){var Oe=P(d),qe=k.formatting+"-escape";return Oe?Oe+" "+qe:qe}if(le==="!"&&v.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return d.imageMarker=!0,d.image=!0,_.highlightFormatting&&(d.formatting="image"),P(d);if(le==="["&&d.imageMarker&&v.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return d.imageMarker=!1,d.imageAltText=!0,_.highlightFormatting&&(d.formatting="image"),P(d);if(le==="]"&&d.imageAltText){_.highlightFormatting&&(d.formatting="image");var Oe=P(d);return d.imageAltText=!1,d.image=!1,d.inline=d.f=c,Oe}if(le==="["&&!d.image)return d.linkText&&v.match(/^.*?\]/)||(d.linkText=!0,_.highlightFormatting&&(d.formatting="link")),P(d);if(le==="]"&&d.linkText){_.highlightFormatting&&(d.formatting="link");var Oe=P(d);return d.linkText=!1,d.inline=d.f=v.match(/\(.*?\)| ?\[.*?\]/,!1)?c:F,Oe}if(le==="<"&&v.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){d.f=d.inline=G,_.highlightFormatting&&(d.formatting="link");var Oe=P(d);return Oe?Oe+=" ":Oe="",Oe+k.linkInline}if(le==="<"&&v.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){d.f=d.inline=G,_.highlightFormatting&&(d.formatting="link");var Oe=P(d);return Oe?Oe+=" ":Oe="",Oe+k.linkEmail}if(_.xml&&le==="<"&&v.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=v.string.indexOf(">",v.pos);if(Ve!=-1){var dt=v.string.substring(v.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(dt)&&(d.md_inside=!0)}return v.backUp(1),d.htmlState=b.startState(te),z(v,d,W)}if(_.xml&&le==="<"&&v.match(/^\/\w*?>/))return d.md_inside=!1,"tag";if(le==="*"||le==="_"){for(var Pe=1,_e=v.pos==1?" ":v.string.charAt(v.pos-2);Pe<3&&v.eat(le);)Pe++;var Ue=v.peek()||" ",et=!/\s/.test(Ue)&&(!w.test(Ue)||/\s/.test(_e)||w.test(_e)),we=!/\s/.test(_e)&&(!w.test(_e)||/\s/.test(Ue)||w.test(Ue)),Ie=null,E=null;if(Pe%2&&(!d.em&&et&&(le==="*"||!we||w.test(_e))?Ie=!0:d.em==le&&we&&(le==="*"||!et||w.test(Ue))&&(Ie=!1)),Pe>1&&(!d.strong&&et&&(le==="*"||!we||w.test(_e))?E=!0:d.strong==le&&we&&(le==="*"||!et||w.test(Ue))&&(E=!1)),E!=null||Ie!=null){_.highlightFormatting&&(d.formatting=Ie==null?"strong":E==null?"em":"strong em"),Ie===!0&&(d.em=le),E===!0&&(d.strong=le);var ve=P(d);return Ie===!1&&(d.em=!1),E===!1&&(d.strong=!1),ve}}else if(le===" "&&(v.eat("*")||v.eat("_"))){if(v.peek()===" ")return P(d);v.backUp(1)}if(_.strikethrough){if(le==="~"&&v.eatWhile(le)){if(d.strikethrough){_.highlightFormatting&&(d.formatting="strikethrough");var ve=P(d);return d.strikethrough=!1,ve}else if(v.match(/^[^\s]/,!1))return d.strikethrough=!0,_.highlightFormatting&&(d.formatting="strikethrough"),P(d)}else if(le===" "&&v.match("~~",!0)){if(v.peek()===" ")return P(d);v.backUp(2)}}if(_.emoji&&le===":"&&v.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){d.emoji=!0,_.highlightFormatting&&(d.formatting="emoji");var ee=P(d);return d.emoji=!1,ee}return le===" "&&(v.match(/^ +$/,!1)?d.trailingSpace++:d.trailingSpace&&(d.trailingSpaceNewLine=!0)),P(d)}function G(v,d){var fe=v.next();if(fe===">"){d.f=d.inline=F,_.highlightFormatting&&(d.formatting="link");var Te=P(d);return Te?Te+=" ":Te="",Te+k.linkInline}return v.match(/^[^>]+/,!0),k.linkInline}function c(v,d){if(v.eatSpace())return null;var fe=v.next();return fe==="("||fe==="["?(d.f=d.inline=C(fe==="("?")":"]"),_.highlightFormatting&&(d.formatting="link-string"),d.linkHref=!0,P(d)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function C(v){return function(d,fe){var Te=d.next();if(Te===v){fe.f=fe.inline=F,_.highlightFormatting&&(fe.formatting="link-string");var le=P(fe);return fe.linkHref=!1,le}return d.match(T[v]),fe.linkHref=!0,P(fe)}}function g(v,d){return v.match(/^([^\]\\]|\\.)*\]:/,!1)?(d.f=y,v.next(),_.highlightFormatting&&(d.formatting="link"),d.linkText=!0,P(d)):N(v,d,F)}function y(v,d){if(v.match("]:",!0)){d.f=d.inline=j,_.highlightFormatting&&(d.formatting="link");var fe=P(d);return d.linkText=!1,fe}return v.match(/^([^\]\\]|\\.)+/,!0),k.linkText}function j(v,d){return v.eatSpace()?null:(v.match(/^[^\s]+/,!0),v.peek()===void 0?d.linkTitle=!0:v.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),d.f=d.inline=F,k.linkHref+" url")}var de={startState:function(){return{f:p,prevLine:{stream:null},thisLine:{stream:null},block:p,htmlState:null,indentation:0,inline:F,text:$,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(v){return{f:v.f,prevLine:v.prevLine,thisLine:v.thisLine,block:v.block,htmlState:v.htmlState&&b.copyState(te,v.htmlState),indentation:v.indentation,localMode:v.localMode,localState:v.localMode?b.copyState(v.localMode,v.localState):null,inline:v.inline,text:v.text,formatting:!1,linkText:v.linkText,linkTitle:v.linkTitle,linkHref:v.linkHref,code:v.code,em:v.em,strong:v.strong,strikethrough:v.strikethrough,emoji:v.emoji,header:v.header,setext:v.setext,hr:v.hr,taskList:v.taskList,list:v.list,listStack:v.listStack.slice(0),quote:v.quote,indentedCode:v.indentedCode,trailingSpace:v.trailingSpace,trailingSpaceNewLine:v.trailingSpaceNewLine,md_inside:v.md_inside,fencedEndRE:v.fencedEndRE}},token:function(v,d){if(d.formatting=!1,v!=d.thisLine.stream){if(d.header=0,d.hr=!1,v.match(/^\s*$/,!0))return q(d),null;if(d.prevLine=d.thisLine,d.thisLine={stream:v},d.taskList=!1,d.trailingSpace=0,d.trailingSpaceNewLine=!1,!d.localState&&(d.f=d.block,d.f!=W)){var fe=v.match(/^\s*/,!0)[0].replace(/\t/g,M).length;if(d.indentation=fe,d.indentationDiff=null,fe>0)return null}}return d.f(v,d)},innerMode:function(v){return v.block==W?{state:v.htmlState,mode:te}:v.localState?{state:v.localState,mode:v.localMode}:{state:v,mode:de}},indent:function(v,d,fe){return v.block==W&&te.indent?te.indent(v.htmlState,d,fe):v.localState&&v.localMode.indent?v.localMode.indent(v.localState,d,fe):b.Pass},blankLine:q,getType:P,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return de},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})})()),Da.exports}nf();var Na={exports:{}},Ea;function of(){return Ea||(Ea=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineOption("placeholder","",function(I,Y,ne){var S=ne&&ne!=b.Init;if(Y&&!S)I.on("blur",oe),I.on("change",Q),I.on("swapDoc",Q),b.on(I.getInputField(),"compositionupdate",I.state.placeholderCompose=function(){te(I)}),Q(I);else if(!Y&&S){I.off("blur",oe),I.off("change",Q),I.off("swapDoc",Q),b.off(I.getInputField(),"compositionupdate",I.state.placeholderCompose),pe(I);var R=I.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}Y&&!I.hasFocus()&&oe(I)});function pe(I){I.state.placeholder&&(I.state.placeholder.parentNode.removeChild(I.state.placeholder),I.state.placeholder=null)}function _(I){pe(I);var Y=I.state.placeholder=document.createElement("pre");Y.style.cssText="height: 0; overflow: visible",Y.style.direction=I.getOption("direction"),Y.className="CodeMirror-placeholder CodeMirror-line-like";var ne=I.getOption("placeholder");typeof ne=="string"&&(ne=document.createTextNode(ne)),Y.appendChild(ne),I.display.lineSpace.insertBefore(Y,I.display.lineSpace.firstChild)}function te(I){setTimeout(function(){var Y=!1;if(I.lineCount()==1){var ne=I.getInputField();Y=ne.nodeName=="TEXTAREA"?!I.getLine(0).length:!/[^\u200b]/.test(ne.querySelector(".CodeMirror-line").textContent)}Y?_(I):pe(I)},20)}function oe(I){k(I)&&_(I)}function Q(I){var Y=I.getWrapperElement(),ne=k(I);Y.className=Y.className.replace(" CodeMirror-empty","")+(ne?" CodeMirror-empty":""),ne?_(I):pe(I)}function k(I){return I.lineCount()===1&&I.getLine(0)===""}})})()),Na.exports}of();var Oa={exports:{}},Pa;function lf(){return Pa||(Pa=1,(function(ct,xt){(function(b){b(mt())})(function(b){b.defineSimpleMode=function(S,R){b.defineMode(S,function(A){return b.simpleMode(A,R)})},b.simpleMode=function(S,R){pe(R,"start");var A={},V=R.meta||{},ue=!1;for(var O in R)if(O!=V&&R.hasOwnProperty(O))for(var w=A[O]=[],M=R[O],N=0;N2&&z.token&&typeof z.token!="string"){for(var p=2;p-1)return b.Pass;var O=A.indent.length-1,w=S[A.state];e:for(;;){for(var M=0;M",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function oe(S){return S&&S.bracketRegex||/[(){}[\]]/}function Q(S,R,A){var V=S.getLineHandle(R.line),ue=R.ch-1,O=A&&A.afterCursor;O==null&&(O=/(^| )cm-fat-cursor($| )/.test(S.getWrapperElement().className));var w=oe(A),M=!O&&ue>=0&&w.test(V.text.charAt(ue))&&te[V.text.charAt(ue)]||w.test(V.text.charAt(ue+1))&&te[V.text.charAt(++ue)];if(!M)return null;var N=M.charAt(1)==">"?1:-1;if(A&&A.strict&&N>0!=(ue==R.ch))return null;var z=S.getTokenTypeAt(_(R.line,ue+1)),X=k(S,_(R.line,ue+(N>0?1:0)),N,z,A);return X==null?null:{from:_(R.line,ue),to:X&&X.pos,match:X&&X.ch==M.charAt(0),forward:N>0}}function k(S,R,A,V,ue){for(var O=ue&&ue.maxScanLineLength||1e4,w=ue&&ue.maxScanLines||1e3,M=[],N=oe(ue),z=A>0?Math.min(R.line+w,S.lastLine()+1):Math.max(S.firstLine()-1,R.line-w),X=R.line;X!=z;X+=A){var q=S.getLine(X);if(q){var p=A>0?0:q.length-1,W=A>0?q.length:-1;if(!(q.length>O))for(X==R.line&&(p=R.ch-(A<0?1:0));p!=W;p+=A){var J=q.charAt(p);if(N.test(J)&&(V===void 0||(S.getTokenTypeAt(_(X,p+1))||"")==(V||""))){var P=te[J];if(P&&P.charAt(1)==">"==A>0)M.push(J);else if(M.length)M.pop();else return{pos:_(X,p),ch:J}}}}}return X-A==(A>0?S.lastLine():S.firstLine())?!1:null}function I(S,R,A){for(var V=S.state.matchBrackets.maxHighlightLineLength||1e3,ue=A&&A.highlightNonMatching,O=[],w=S.listSelections(),M=0;M`,triples:"",explode:"[]{}"},_=b.Pos;b.defineOption("autoCloseBrackets",!1,function(O,w,M){M&&M!=b.Init&&(O.removeKeyMap(oe),O.state.closeBrackets=null),w&&(Q(te(w,"pairs")),O.state.closeBrackets=w,O.addKeyMap(oe))});function te(O,w){return w=="pairs"&&typeof O=="string"?O:typeof O=="object"&&O[w]!=null?O[w]:pe[w]}var oe={Backspace:Y,Enter:ne};function Q(O){for(var w=0;w=0;z--){var q=N[z].head;O.replaceRange("",_(q.line,q.ch-1),_(q.line,q.ch+1),"+delete")}}function ne(O){var w=I(O),M=w&&te(w,"explode");if(!M||O.getOption("disableInput"))return b.Pass;for(var N=O.listSelections(),z=0;z0?{line:q.head.line,ch:q.head.ch+w}:{line:q.head.line-1};M.push({anchor:p,head:p})}O.setSelections(M,z)}function R(O){var w=b.cmpPos(O.anchor,O.head)>0;return{anchor:new _(O.anchor.line,O.anchor.ch+(w?-1:1)),head:new _(O.head.line,O.head.ch+(w?1:-1))}}function A(O,w){var M=I(O);if(!M||O.getOption("disableInput"))return b.Pass;var N=te(M,"pairs"),z=N.indexOf(w);if(z==-1)return b.Pass;for(var X=te(M,"closeBefore"),q=te(M,"triples"),p=N.charAt(z+1)==w,W=O.listSelections(),J=z%2==0,P,$=0;$=0&&O.getRange(G,_(G.line,G.ch+3))==w+w+w?c="skipThree":c="skip";else if(p&&G.ch>1&&q.indexOf(w)>=0&&O.getRange(_(G.line,G.ch-2),G)==w+w){if(G.ch>2&&/\bstring/.test(O.getTokenTypeAt(_(G.line,G.ch-2))))return b.Pass;c="addFour"}else if(p){var C=G.ch==0?" ":O.getRange(_(G.line,G.ch-1),G);if(!b.isWordChar(T)&&C!=w&&!b.isWordChar(C))c="both";else return b.Pass}else if(J&&(T.length===0||/\s/.test(T)||X.indexOf(T)>-1))c="both";else return b.Pass;if(!P)P=c;else if(P!=c)return b.Pass}var g=z%2?N.charAt(z-1):w,y=z%2?w:N.charAt(z+1);O.operation(function(){if(P=="skip")S(O,1);else if(P=="skipThree")S(O,3);else if(P=="surround"){for(var j=O.getSelections(),de=0;dep);W++){var J=w.getLine(q++);z=z==null?J:z+` -`+J}X=X*2,M.lastIndex=N.ch;var P=M.exec(z);if(P){var $=z.slice(0,P.index).split(` -`),F=P[0].split(` -`),G=N.line+$.length-1,c=$[$.length-1].length;return{from:pe(G,c),to:pe(G+F.length-1,F.length==1?c+F[0].length:F[F.length-1].length),match:P}}}}function I(w,M,N){for(var z,X=0;X<=w.length;){M.lastIndex=X;var q=M.exec(w);if(!q)break;var p=q.index+q[0].length;if(p>w.length-N)break;(!z||p>z.index+z[0].length)&&(z=q),X=q.index+1}return z}function Y(w,M,N){M=te(M,"g");for(var z=N.line,X=N.ch,q=w.firstLine();z>=q;z--,X=-1){var p=w.getLine(z),W=I(p,M,X<0?0:p.length-X);if(W)return{from:pe(z,W.index),to:pe(z,W.index+W[0].length),match:W}}}function ne(w,M,N){if(!oe(M))return Y(w,M,N);M=te(M,"gm");for(var z,X=1,q=w.getLine(N.line).length-N.ch,p=N.line,W=w.firstLine();p>=W;){for(var J=0;J=W;J++){var P=w.getLine(p--);z=z==null?P:P+` -`+z}X*=2;var $=I(z,M,q);if($){var F=z.slice(0,$.index).split(` -`),G=$[0].split(` -`),c=p+F.length,T=F[F.length-1].length;return{from:pe(c,T),to:pe(c+G.length-1,G.length==1?T+G[0].length:G[G.length-1].length),match:$}}}}var S,R;String.prototype.normalize?(S=function(w){return w.normalize("NFD").toLowerCase()},R=function(w){return w.normalize("NFD")}):(S=function(w){return w.toLowerCase()},R=function(w){return w});function A(w,M,N,z){if(w.length==M.length)return N;for(var X=0,q=N+Math.max(0,w.length-M.length);;){if(X==q)return X;var p=X+q>>1,W=z(w.slice(0,p)).length;if(W==N)return p;W>N?q=p:X=p+1}}function V(w,M,N,z){if(!M.length)return null;var X=z?S:R,q=X(M).split(/\r|\n\r?/);e:for(var p=N.line,W=N.ch,J=w.lastLine()+1-q.length;p<=J;p++,W=0){var P=w.getLine(p).slice(W),$=X(P);if(q.length==1){var F=$.indexOf(q[0]);if(F==-1)continue e;var N=A(P,$,F,X)+W;return{from:pe(p,A(P,$,F,X)+W),to:pe(p,A(P,$,F+q[0].length,X)+W)}}else{var G=$.length-q[0].length;if($.slice(G)!=q[0])continue e;for(var c=1;c=J;p--,W=-1){var P=w.getLine(p);W>-1&&(P=P.slice(0,W));var $=X(P);if(q.length==1){var F=$.lastIndexOf(q[0]);if(F==-1)continue e;return{from:pe(p,A(P,$,F,X)),to:pe(p,A(P,$,F+q[0].length,X))}}else{var G=q[q.length-1];if($.slice(0,G.length)!=G)continue e;for(var c=1,N=p-q.length+1;c(this.doc.getLine(M.line)||"").length&&(M.ch=0,M.line++)),b.cmpPos(M,this.doc.clipPos(M))!=0))return this.atOccurrence=!1;var N=this.matches(w,M);if(this.afterEmptyMatch=N&&b.cmpPos(N.from,N.to)==0,N)return this.pos=N,this.atOccurrence=!0,this.pos.match||!0;var z=pe(w?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:z,to:z},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(w,M){if(this.atOccurrence){var N=b.splitLines(w);this.doc.replaceRange(N,this.pos.from,this.pos.to,M),this.pos.to=pe(this.pos.from.line+N.length-1,N[N.length-1].length+(N.length==1?this.pos.from.ch:0))}}},b.defineExtension("getSearchCursor",function(w,M,N){return new O(this.doc,w,M,N)}),b.defineDocExtension("getSearchCursor",function(w,M,N){return new O(this,w,M,N)}),b.defineExtension("selectMatches",function(w,M){for(var N=[],z=this.getSearchCursor(w,this.getCursor("from"),M);z.findNext()&&!(b.cmpPos(z.to(),this.getCursor("to"))>0);)N.push({anchor:z.from(),head:z.to()});N.length&&this.setSelections(N,0)})})})()),Ha.exports}var qa={exports:{}},ja;function po(){return ja||(ja=1,(function(ct,xt){(function(b){b(mt())})(function(b){function pe(te,oe,Q){var k=te.getWrapperElement(),I;return I=k.appendChild(document.createElement("div")),Q?I.className="CodeMirror-dialog CodeMirror-dialog-bottom":I.className="CodeMirror-dialog CodeMirror-dialog-top",typeof oe=="string"?I.innerHTML=oe:I.appendChild(oe),b.addClass(k,"dialog-opened"),I}function _(te,oe){te.state.currentNotificationClose&&te.state.currentNotificationClose(),te.state.currentNotificationClose=oe}b.defineExtension("openDialog",function(te,oe,Q){Q||(Q={}),_(this,null);var k=pe(this,te,Q.bottom),I=!1,Y=this;function ne(A){if(typeof A=="string")S.value=A;else{if(I)return;I=!0,b.rmClass(k.parentNode,"dialog-opened"),k.parentNode.removeChild(k),Y.focus(),Q.onClose&&Q.onClose(k)}}var S=k.getElementsByTagName("input")[0],R;return S?(S.focus(),Q.value&&(S.value=Q.value,Q.selectValueOnOpen!==!1&&S.select()),Q.onInput&&b.on(S,"input",function(A){Q.onInput(A,S.value,ne)}),Q.onKeyUp&&b.on(S,"keyup",function(A){Q.onKeyUp(A,S.value,ne)}),b.on(S,"keydown",function(A){Q&&Q.onKeyDown&&Q.onKeyDown(A,S.value,ne)||((A.keyCode==27||Q.closeOnEnter!==!1&&A.keyCode==13)&&(S.blur(),b.e_stop(A),ne()),A.keyCode==13&&oe(S.value,A))}),Q.closeOnBlur!==!1&&b.on(k,"focusout",function(A){A.relatedTarget!==null&&ne()})):(R=k.getElementsByTagName("button")[0])&&(b.on(R,"click",function(){ne(),Y.focus()}),Q.closeOnBlur!==!1&&b.on(R,"blur",ne),R.focus()),ne}),b.defineExtension("openConfirm",function(te,oe,Q){_(this,null);var k=pe(this,te,Q&&Q.bottom),I=k.getElementsByTagName("button"),Y=!1,ne=this,S=1;function R(){Y||(Y=!0,b.rmClass(k.parentNode,"dialog-opened"),k.parentNode.removeChild(k),ne.focus())}I[0].focus();for(var A=0;Ap.cursorCoords(y,"window").top&&((G=j).style.opacity=.4)}))};k(p,w(p),F,c,function(T,C){var g=b.keyName(T),y=p.getOption("extraKeys"),j=y&&y[g]||b.keyMap[p.getOption("keyMap")][g];j=="findNext"||j=="findPrev"||j=="findPersistentNext"||j=="findPersistentPrev"?(b.e_stop(T),R(p,te(p),C),p.execCommand(j)):(j=="find"||j=="findPersistent")&&(b.e_stop(T),c(C,T))}),P&&F&&(R(p,$,F),V(p,W))}else I(p,w(p),"Search for:",F,function(T){T&&!$.query&&p.operation(function(){R(p,$,T),$.posFrom=$.posTo=p.getCursor(),V(p,W)})})}function V(p,W,J){p.operation(function(){var P=te(p),$=Q(p,P.query,W?P.posFrom:P.posTo);!$.find(W)&&($=Q(p,P.query,W?b.Pos(p.lastLine()):b.Pos(p.firstLine(),0)),!$.find(W))||(p.setSelection($.from(),$.to()),p.scrollIntoView({from:$.from(),to:$.to()},20),P.posFrom=$.from(),P.posTo=$.to(),J&&J($.from(),$.to()))})}function ue(p){p.operation(function(){var W=te(p);W.lastQuery=W.query,W.query&&(W.query=W.queryText=null,p.removeOverlay(W.overlay),W.annotate&&(W.annotate.clear(),W.annotate=null))})}function O(p,W){var J=p?document.createElement(p):document.createDocumentFragment();for(var P in W)J[P]=W[P];for(var $=2;$ '+oe.phrase("(Use line:column or scroll% syntax)")+""}function te(oe,Q){var k=Number(Q);return/^[-+]/.test(Q)?oe.getCursor().line+k:k-1}b.commands.jumpToLine=function(oe){var Q=oe.getCursor();pe(oe,_(oe),oe.phrase("Jump to line:"),Q.line+1+":"+Q.ch,function(k){if(k){var I;if(I=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(k))oe.setCursor(te(oe,I[1]),Number(I[2]));else if(I=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(k)){var Y=Math.round(oe.lineCount()*Number(I[1])/100);/^[-+]/.test(I[1])&&(Y=Q.line+Y+1),oe.setCursor(Y-1,Q.ch)}else(I=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(k))&&oe.setCursor(te(oe,I[1]),Q.ch)}})},b.keyMap.default["Alt-G"]="jumpToLine"})})()),Ua.exports}ff();po();export{df as default}; diff --git a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CJSZINFr.js b/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CJSZINFr.js deleted file mode 100644 index ae17ee8..0000000 --- a/node_modules/.pnpm/playwright-core@1.58.2/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CJSZINFr.js +++ /dev/null @@ -1,266 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-a5XoALAZ.js","../codeMirrorModule.DYBRYzYX.css"])))=>i.map(i=>d[i]); -var rx=Object.defineProperty;var ax=(n,e,i)=>e in n?rx(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i;var Ma=(n,e,i)=>ax(n,typeof e!="symbol"?e+"":e,i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function i(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=i(l);fetch(l.href,o)}})();function lx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var th={exports:{}},Oa={};/** - * @license React - * react-jsx-runtime.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Hy;function ox(){if(Hy)return Oa;Hy=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function i(r,l,o){var u=null;if(o!==void 0&&(u=""+o),l.key!==void 0&&(u=""+l.key),"key"in l){o={};for(var f in l)f!=="key"&&(o[f]=l[f])}else o=l;return l=o.ref,{$$typeof:n,type:r,key:u,ref:l!==void 0?l:null,props:o}}return Oa.Fragment=e,Oa.jsx=i,Oa.jsxs=i,Oa}var qy;function cx(){return qy||(qy=1,th.exports=ox()),th.exports}var S=cx(),nh={exports:{}},fe={};/** - * @license React - * react.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var $y;function ux(){if($y)return fe;$y=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),w=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=w&&k[w]||k["@@iterator"],typeof k=="function"?k:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,_={};function N(k,Y,Z){this.props=k,this.context=Y,this.refs=_,this.updater=Z||E}N.prototype.isReactComponent={},N.prototype.setState=function(k,Y){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Y,"setState")},N.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=N.prototype;function $(k,Y,Z){this.props=k,this.context=Y,this.refs=_,this.updater=Z||E}var I=$.prototype=new C;I.constructor=$,x(I,N.prototype),I.isPureReactComponent=!0;var D=Array.isArray;function K(){}var Q={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function j(k,Y,Z){var ee=Z.ref;return{$$typeof:n,type:k,key:Y,ref:ee!==void 0?ee:null,props:Z}}function ne(k,Y){return j(k.type,Y,k.props)}function le(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function V(k){var Y={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Z){return Y[Z]})}var J=/\/+/g;function W(k,Y){return typeof k=="object"&&k!==null&&k.key!=null?V(""+k.key):Y.toString(36)}function Ae(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(K,K):(k.status="pending",k.then(function(Y){k.status==="pending"&&(k.status="fulfilled",k.value=Y)},function(Y){k.status==="pending"&&(k.status="rejected",k.reason=Y)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function B(k,Y,Z,ee,ue){var re=typeof k;(re==="undefined"||re==="boolean")&&(k=null);var xe=!1;if(k===null)xe=!0;else switch(re){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(k.$$typeof){case n:case e:xe=!0;break;case y:return xe=k._init,B(xe(k._payload),Y,Z,ee,ue)}}if(xe)return ue=ue(k),xe=ee===""?"."+W(k,0):ee,D(ue)?(Z="",xe!=null&&(Z=xe.replace(J,"$&/")+"/"),B(ue,Y,Z,"",function(Bi){return Bi})):ue!=null&&(le(ue)&&(ue=ne(ue,Z+(ue.key==null||k&&k.key===ue.key?"":(""+ue.key).replace(J,"$&/")+"/")+xe)),Y.push(ue)),1;xe=0;var tt=ee===""?".":ee+":";if(D(k))for(var Re=0;Re{let u=!1;return n().then(f=>{u||o(f)}),()=>{u=!0}},e),l}function gs(){const n=gt.useRef(null),[e]=Eh(n);return[e,n]}function Eh(n){const[e,i]=gt.useState(new DOMRect(0,0,10,10)),r=gt.useCallback(()=>{const l=n==null?void 0:n.current;l&&i(l.getBoundingClientRect())},[n]);return gt.useLayoutEffect(()=>{const l=n==null?void 0:n.current;if(!l)return;r();const o=new ResizeObserver(r);return o.observe(l),window.addEventListener("resize",r),()=>{o.disconnect(),window.removeEventListener("resize",r)}},[r,n]),[e,r]}function Et(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0)+"ms";const e=n/1e3;if(e<60)return e.toFixed(1)+"s";const i=e/60;if(i<60)return i.toFixed(1)+"m";const r=i/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function fx(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0);const e=n/1024;if(e<1e3)return e.toFixed(1)+"K";const i=e/1024;return i<1e3?i.toFixed(1)+"M":(i/1024).toFixed(1)+"G"}function F0(n,e,i,r,l){let o=0,u=n.length;for(;o>1;i(e,n[f])>=0?o=f+1:u=f}return u}function Vy(n){const e=document.createElement("textarea");e.style.position="absolute",e.style.zIndex="-1000",e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function on(n,e){n&&(e=ls.getObject(n,e));const[i,r]=gt.useState(e),l=gt.useCallback(o=>{n?ls.setObject(n,o):r(o)},[n,r]);return gt.useEffect(()=>{if(n){const o=()=>r(ls.getObject(n,e));return ls.onChangeEmitter.addEventListener(n,o),()=>ls.onChangeEmitter.removeEventListener(n,o)}},[e,n]),[i,l]}const Ah=new Map,Q0=new Map;let tc;function ki(n,e){const[i,r]=gt.useState();Q0.set(n,{setter:r,defaultValue:e});const l=gt.useCallback(o=>{const u=Ah.get(tc||"default")||{};u[n]=o,Ah.set(tc||"default",u),r(o)},[n]);return[i,l]}function hx(n){if(tc===n)return;tc=n;const e=Ah.get(n)||{};for(const[i,r]of Q0.entries())r.setter(e[i]||r.defaultValue)}class dx{constructor(){this.onChangeEmitter=new EventTarget}getString(e,i){return localStorage[e]||i}setString(e,i){var r;localStorage[e]=i,this.onChangeEmitter.dispatchEvent(new Event(e)),(r=window.saveSettings)==null||r.call(window)}getObject(e,i){if(!localStorage[e])return i;try{return JSON.parse(localStorage[e])}catch{return i}}setObject(e,i){var r;localStorage[e]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(e)),(r=window.saveSettings)==null||r.call(window)}}const ls=new dx;function Fe(...n){return n.filter(Boolean).join(" ")}function J0(n){n&&(n!=null&&n.scrollIntoViewIfNeeded?n.scrollIntoViewIfNeeded(!1):n==null||n.scrollIntoView())}const Gy="\\u0000-\\u0020\\u007f-\\u009f",P0=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+Gy+'"]{2,}[^\\s'+Gy+`"')}\\],:;.!?]`,"ug");function px(){const[n,e]=gt.useState(!1),i=gt.useCallback(()=>{const r=[];return e(l=>(r.push(setTimeout(()=>e(!1),1e3)),l?(r.push(setTimeout(()=>e(!0),50)),!1):!0)),()=>r.forEach(clearTimeout)},[e]);return[n,i]}const gx="system",Z0="theme",mx=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],W0=window.matchMedia("(prefers-color-scheme: dark)");function LC(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1),Nh(Ch()),W0.addEventListener("change",()=>{Nh(Ch())}))}const Fh=new Set;function Nh(n){const e=yx(),i=n==="system"?W0.matches?"dark-mode":"light-mode":n;if(e!==i){e&&document.documentElement.classList.remove(e),document.documentElement.classList.add(i);for(const r of Fh)r(i)}}function RC(n){Fh.add(n)}function DC(n){Fh.delete(n)}function Ch(){return ls.getString(Z0,gx)}function yx(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function bx(){const[n,e]=gt.useState(Ch());return gt.useEffect(()=>{ls.setString(Z0,n),Nh(n)},[n]),[n,e]}var ih={exports:{}},ja={},sh={exports:{}},rh={};/** - * @license React - * scheduler.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ky;function vx(){return Ky||(Ky=1,(function(n){function e(B,P){var se=B.length;B.push(P);e:for(;0>>1,we=B[Se];if(0>>1;Sel(Z,se))eel(ue,Z)?(B[Se]=ue,B[ee]=se,Se=ee):(B[Se]=Z,B[Y]=se,Se=Y);else if(eel(ue,se))B[Se]=ue,B[ee]=se,Se=ee;else break e}}return P}function l(B,P){var se=B.sortIndex-P.sortIndex;return se!==0?se:B.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();n.unstable_now=function(){return u.now()-f}}var h=[],g=[],y=1,m=null,w=3,v=!1,E=!1,x=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function I(B){for(var P=i(g);P!==null;){if(P.callback===null)r(g);else if(P.startTime<=B)r(g),P.sortIndex=P.expirationTime,e(h,P);else break;P=i(g)}}function D(B){if(x=!1,I(B),!E)if(i(h)!==null)E=!0,K||(K=!0,V());else{var P=i(g);P!==null&&Ae(D,P.startTime-B)}}var K=!1,Q=-1,q=5,j=-1;function ne(){return _?!0:!(n.unstable_now()-jB&&ne());){var Se=m.callback;if(typeof Se=="function"){m.callback=null,w=m.priorityLevel;var we=Se(m.expirationTime<=B);if(B=n.unstable_now(),typeof we=="function"){m.callback=we,I(B),P=!0;break t}m===i(h)&&r(h),I(B)}else r(h);m=i(h)}if(m!==null)P=!0;else{var k=i(g);k!==null&&Ae(D,k.startTime-B),P=!1}}break e}finally{m=null,w=se,v=!1}P=void 0}}finally{P?V():K=!1}}}var V;if(typeof $=="function")V=function(){$(le)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,W=J.port2;J.port1.onmessage=le,V=function(){W.postMessage(null)}}else V=function(){N(le,0)};function Ae(B,P){Q=N(function(){B(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125Se?(B.sortIndex=se,e(g,B),i(h)===null&&B===i(g)&&(x?(C(Q),Q=-1):x=!0,Ae(D,se-Se))):(B.sortIndex=we,e(h,B),E||v||(E=!0,K||(K=!0,V()))),B},n.unstable_shouldYield=ne,n.unstable_wrapCallback=function(B){var P=w;return function(){var se=w;w=P;try{return B.apply(this,arguments)}finally{w=se}}}})(rh)),rh}var Yy;function Sx(){return Yy||(Yy=1,sh.exports=vx()),sh.exports}var ah={exports:{}},yt={};/** - * @license React - * react-dom.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Xy;function wx(){if(Xy)return yt;Xy=1;var n=Xh();function e(h){var g="https://react.dev/errors/"+h;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),ah.exports=wx(),ah.exports}/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Qy;function _x(){if(Qy)return ja;Qy=1;var n=Sx(),e=Xh(),i=xx();function r(t){var s="https://react.dev/errors/"+t;if(1we||(t.current=Se[we],Se[we]=null,we--)}function Z(t,s){we++,Se[we]=t.current,t.current=s}var ee=k(null),ue=k(null),re=k(null),xe=k(null);function tt(t,s){switch(Z(re,s),Z(ue,t),Z(ee,null),s.nodeType){case 9:case 11:t=(t=s.documentElement)&&(t=t.namespaceURI)?oy(t):0;break;default:if(t=s.tagName,s=s.namespaceURI)s=oy(s),t=cy(s,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(ee),Z(ee,t)}function Re(){Y(ee),Y(ue),Y(re)}function Bi(t){t.memoizedState!==null&&Z(xe,t);var s=ee.current,a=cy(s,t.type);s!==a&&(Z(ue,t),Z(ee,a))}function kn(t){ue.current===t&&(Y(ee),Y(ue)),xe.current===t&&(Y(xe),Aa._currentValue=se)}var hn,Dr;function nt(t){if(hn===void 0)try{throw Error()}catch(a){var s=a.stack.trim().match(/\n( *(at )?)/);hn=s&&s[1]||"",Dr=-1)":-1d||A[c]!==R[d]){var G=` -`+A[c].replace(" at new "," at ");return t.displayName&&G.includes("")&&(G=G.replace("",t.displayName)),G}while(1<=c&&0<=d);break}}}finally{vs=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?nt(a):""}function zc(t,s){switch(t.tag){case 26:case 27:case 5:return nt(t.type);case 16:return nt("Lazy");case 13:return t.child!==s&&s!==null?nt("Suspense Fallback"):nt("Suspense");case 19:return nt("SuspenseList");case 0:case 15:return zr(t.type,!1);case 11:return zr(t.type.render,!1);case 1:return zr(t.type,!0);case 31:return nt("Activity");default:return""}}function Ss(t){try{var s="",a=null;do s+=zc(t,a),a=t,t=t.return;while(t);return s}catch(c){return` -Error generating stack: `+c.message+` -`+c.stack}}var Ui=Object.prototype.hasOwnProperty,ni=n.unstable_scheduleCallback,Br=n.unstable_cancelCallback,ii=n.unstable_shouldYield,Bc=n.unstable_requestPaint,St=n.unstable_now,Uc=n.unstable_getCurrentPriorityLevel,dl=n.unstable_ImmediatePriority,Ur=n.unstable_UserBlockingPriority,si=n.unstable_NormalPriority,Hc=n.unstable_LowPriority,pl=n.unstable_IdlePriority,qc=n.log,Hi=n.unstable_setDisableYieldValue,Mn=null,rt=null;function vn(t){if(typeof qc=="function"&&Hi(t),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Mn,t)}catch{}}var wt=Math.clz32?Math.clz32:ce,$c=Math.log,gl=Math.LN2;function ce(t){return t>>>=0,t===0?32:31-($c(t)/gl|0)|0}var Sn=256,Ft=262144,ml=4194304;function qi(t){var s=t&42;if(s!==0)return s;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function yl(t,s,a){var c=t.pendingLanes;if(c===0)return 0;var d=0,p=t.suspendedLanes,b=t.pingedLanes;t=t.warmLanes;var T=c&134217727;return T!==0?(c=T&~p,c!==0?d=qi(c):(b&=T,b!==0?d=qi(b):a||(a=T&~t,a!==0&&(d=qi(a))))):(T=c&~p,T!==0?d=qi(T):b!==0?d=qi(b):a||(a=c&~t,a!==0&&(d=qi(a)))),d===0?0:s!==0&&s!==d&&(s&p)===0&&(p=d&-d,a=s&-s,p>=a||p===32&&(a&4194048)!==0)?s:d}function Hr(t,s){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&s)===0}function YS(t,s){switch(t){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vd(){var t=ml;return ml<<=1,(ml&62914560)===0&&(ml=4194304),t}function Ic(t){for(var s=[],a=0;31>a;a++)s.push(t);return s}function qr(t,s){t.pendingLanes|=s,s!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function XS(t,s,a,c,d,p){var b=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var T=t.entanglements,A=t.expirationTimes,R=t.hiddenUpdates;for(a=b&~a;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var WS=/[\n"\\]/g;function Jt(t){return t.replace(WS,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Fc(t,s,a,c,d,p,b,T){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.type=b:t.removeAttribute("type"),s!=null?b==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+Qt(s)):t.value!==""+Qt(s)&&(t.value=""+Qt(s)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),s!=null?Qc(t,b,Qt(s)):a!=null?Qc(t,b,Qt(a)):c!=null&&t.removeAttribute("value"),d==null&&p!=null&&(t.defaultChecked=!!p),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+Qt(T):t.removeAttribute("name")}function np(t,s,a,c,d,p,b,T){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),s!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||s!=null)){Xc(t);return}a=a!=null?""+Qt(a):"",s=s!=null?""+Qt(s):a,T||s===t.value||(t.value=s),t.defaultValue=s}c=c??d,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=T?t.checked:!!c,t.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.name=b),Xc(t)}function Qc(t,s,a){s==="number"&&Sl(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function As(t,s,a,c){if(t=t.options,s){s={};for(var d=0;d"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=!1;if(Ln)try{var Gr={};Object.defineProperty(Gr,"passive",{get:function(){eu=!0}}),window.addEventListener("test",Gr,Gr),window.removeEventListener("test",Gr,Gr)}catch{eu=!1}var ai=null,tu=null,xl=null;function cp(){if(xl)return xl;var t,s=tu,a=s.length,c,d="value"in ai?ai.value:ai.textContent,p=d.length;for(t=0;t=Xr),gp=" ",mp=!1;function yp(t,s){switch(t){case"keyup":return N1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ms=!1;function k1(t,s){switch(t){case"compositionend":return bp(s);case"keypress":return s.which!==32?null:(mp=!0,gp);case"textInput":return t=s.data,t===gp&&mp?null:t;default:return null}}function M1(t,s){if(Ms)return t==="compositionend"||!au&&yp(t,s)?(t=cp(),xl=tu=ai=null,Ms=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:a,offset:s-t};t=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ap(a)}}function Cp(t,s){return t&&s?t===s?!0:t&&t.nodeType===3?!1:s&&s.nodeType===3?Cp(t,s.parentNode):"contains"in t?t.contains(s):t.compareDocumentPosition?!!(t.compareDocumentPosition(s)&16):!1:!1}function kp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var s=Sl(t.document);s instanceof t.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)t=s.contentWindow;else break;s=Sl(t.document)}return s}function cu(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s&&(s==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||s==="textarea"||t.contentEditable==="true")}var U1=Ln&&"documentMode"in document&&11>=document.documentMode,Os=null,uu=null,Pr=null,fu=!1;function Mp(t,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fu||Os==null||Os!==Sl(c)||(c=Os,"selectionStart"in c&&cu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Pr&&Jr(Pr,c)||(Pr=c,c=mo(uu,"onSelect"),0>=b,d-=b,wn=1<<32-wt(s)+d|a<pe?(be=ie,ie=null):be=ie.sibling;var Te=z(O,ie,L[pe],X);if(Te===null){ie===null&&(ie=be);break}t&&ie&&Te.alternate===null&&s(O,ie),M=p(Te,M,pe),_e===null?ae=Te:_e.sibling=Te,_e=Te,ie=be}if(pe===L.length)return a(O,ie),ve&&Dn(O,pe),ae;if(ie===null){for(;pepe?(be=ie,ie=null):be=ie.sibling;var Ci=z(O,ie,Te.value,X);if(Ci===null){ie===null&&(ie=be);break}t&&ie&&Ci.alternate===null&&s(O,ie),M=p(Ci,M,pe),_e===null?ae=Ci:_e.sibling=Ci,_e=Ci,ie=be}if(Te.done)return a(O,ie),ve&&Dn(O,pe),ae;if(ie===null){for(;!Te.done;pe++,Te=L.next())Te=F(O,Te.value,X),Te!==null&&(M=p(Te,M,pe),_e===null?ae=Te:_e.sibling=Te,_e=Te);return ve&&Dn(O,pe),ae}for(ie=c(ie);!Te.done;pe++,Te=L.next())Te=H(ie,O,pe,Te.value,X),Te!==null&&(t&&Te.alternate!==null&&ie.delete(Te.key===null?pe:Te.key),M=p(Te,M,pe),_e===null?ae=Te:_e.sibling=Te,_e=Te);return t&&ie.forEach(function(sx){return s(O,sx)}),ve&&Dn(O,pe),ae}function Oe(O,M,L,X){if(typeof L=="object"&&L!==null&&L.type===x&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case v:e:{for(var ae=L.key;M!==null;){if(M.key===ae){if(ae=L.type,ae===x){if(M.tag===7){a(O,M.sibling),X=d(M,L.props.children),X.return=O,O=X;break e}}else if(M.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===q&&Pi(ae)===M.type){a(O,M.sibling),X=d(M,L.props),ia(X,L),X.return=O,O=X;break e}a(O,M);break}else s(O,M);M=M.sibling}L.type===x?(X=Yi(L.props.children,O.mode,X,L.key),X.return=O,O=X):(X=jl(L.type,L.key,L.props,null,O.mode,X),ia(X,L),X.return=O,O=X)}return b(O);case E:e:{for(ae=L.key;M!==null;){if(M.key===ae)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){a(O,M.sibling),X=d(M,L.children||[]),X.return=O,O=X;break e}else{a(O,M);break}else s(O,M);M=M.sibling}X=bu(L,O.mode,X),X.return=O,O=X}return b(O);case q:return L=Pi(L),Oe(O,M,L,X)}if(Ae(L))return te(O,M,L,X);if(V(L)){if(ae=V(L),typeof ae!="function")throw Error(r(150));return L=ae.call(L),oe(O,M,L,X)}if(typeof L.then=="function")return Oe(O,M,Hl(L),X);if(L.$$typeof===$)return Oe(O,M,Dl(O,L),X);ql(O,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(a(O,M.sibling),X=d(M,L),X.return=O,O=X):(a(O,M),X=yu(L,O.mode,X),X.return=O,O=X),b(O)):a(O,M)}return function(O,M,L,X){try{na=0;var ae=Oe(O,M,L,X);return Is=null,ae}catch(ie){if(ie===$s||ie===Bl)throw ie;var _e=$t(29,ie,null,O.mode);return _e.lanes=X,_e.return=O,_e}finally{}}}var Wi=Wp(!0),eg=Wp(!1),fi=!1;function Mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ou(t,s){t=t.updateQueue,s.updateQueue===t&&(s.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function hi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function di(t,s,a){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ee&2)!==0){var d=c.pending;return d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s,s=Ol(t),Bp(t,null,a),s}return Ml(t,c,s,a),Ol(t)}function sa(t,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194048)!==0)){var c=s.lanes;c&=t.pendingLanes,a|=c,s.lanes=a,Kd(t,a)}}function ju(t,s){var a=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=b:p=p.next=b,a=a.next}while(a!==null);p===null?d=p=s:p=p.next=s}else d=p=s;a={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:c.shared,callbacks:c.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=s:t.next=s,a.lastBaseUpdate=s}var Lu=!1;function ra(){if(Lu){var t=qs;if(t!==null)throw t}}function aa(t,s,a,c){Lu=!1;var d=t.updateQueue;fi=!1;var p=d.firstBaseUpdate,b=d.lastBaseUpdate,T=d.shared.pending;if(T!==null){d.shared.pending=null;var A=T,R=A.next;A.next=null,b===null?p=R:b.next=R,b=A;var G=t.alternate;G!==null&&(G=G.updateQueue,T=G.lastBaseUpdate,T!==b&&(T===null?G.firstBaseUpdate=R:T.next=R,G.lastBaseUpdate=A))}if(p!==null){var F=d.baseState;b=0,G=R=A=null,T=p;do{var z=T.lane&-536870913,H=z!==T.lane;if(H?(ye&z)===z:(c&z)===z){z!==0&&z===Hs&&(Lu=!0),G!==null&&(G=G.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var te=t,oe=T;z=s;var Oe=a;switch(oe.tag){case 1:if(te=oe.payload,typeof te=="function"){F=te.call(Oe,F,z);break e}F=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=oe.payload,z=typeof te=="function"?te.call(Oe,F,z):te,z==null)break e;F=m({},F,z);break e;case 2:fi=!0}}z=T.callback,z!==null&&(t.flags|=64,H&&(t.flags|=8192),H=d.callbacks,H===null?d.callbacks=[z]:H.push(z))}else H={lane:z,tag:T.tag,payload:T.payload,callback:T.callback,next:null},G===null?(R=G=H,A=F):G=G.next=H,b|=z;if(T=T.next,T===null){if(T=d.shared.pending,T===null)break;H=T,T=H.next,H.next=null,d.lastBaseUpdate=H,d.shared.pending=null}}while(!0);G===null&&(A=F),d.baseState=A,d.firstBaseUpdate=R,d.lastBaseUpdate=G,p===null&&(d.shared.lanes=0),bi|=b,t.lanes=b,t.memoizedState=F}}function tg(t,s){if(typeof t!="function")throw Error(r(191,t));t.call(s)}function ng(t,s){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;tp?p:8;var b=B.T,T={};B.T=T,Zu(t,!1,s,a);try{var A=d(),R=B.S;if(R!==null&&R(T,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=X1(A,c);ca(t,s,G,Yt(t))}else ca(t,s,c,Yt(t))}catch(F){ca(t,s,{then:function(){},status:"rejected",reason:F},Yt())}finally{P.p=p,b!==null&&T.types!==null&&(b.types=T.types),B.T=b}}function W1(){}function Ju(t,s,a,c){if(t.tag!==5)throw Error(r(476));var d=Rg(t).queue;Lg(t,d,s,se,a===null?W1:function(){return Dg(t),a(c)})}function Rg(t){var s=t.memoizedState;if(s!==null)return s;s={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:se},next:null};var a={};return s.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:a},next:null},t.memoizedState=s,t=t.alternate,t!==null&&(t.memoizedState=s),s}function Dg(t){var s=Rg(t);s.next===null&&(s=t.alternate.memoizedState),ca(t,s.next.queue,{},Yt())}function Pu(){return ut(Aa)}function zg(){return Ye().memoizedState}function Bg(){return Ye().memoizedState}function ew(t){for(var s=t.return;s!==null;){switch(s.tag){case 24:case 3:var a=Yt();t=hi(a);var c=di(s,t,a);c!==null&&(Lt(c,s,a),sa(c,s,a)),s={cache:Au()},t.payload=s;return}s=s.return}}function tw(t,s,a){var c=Yt();a={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Jl(t)?Hg(s,a):(a=gu(t,s,a,c),a!==null&&(Lt(a,t,c),qg(a,s,c)))}function Ug(t,s,a){var c=Yt();ca(t,s,a,c)}function ca(t,s,a,c){var d={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Jl(t))Hg(s,d);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var b=s.lastRenderedState,T=p(b,a);if(d.hasEagerState=!0,d.eagerState=T,qt(T,b))return Ml(t,s,d,0),je===null&&kl(),!1}catch{}finally{}if(a=gu(t,s,d,c),a!==null)return Lt(a,t,c),qg(a,s,c),!0}return!1}function Zu(t,s,a,c){if(c={lane:2,revertLane:Of(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Jl(t)){if(s)throw Error(r(479))}else s=gu(t,a,c,2),s!==null&&Lt(s,t,2)}function Jl(t){var s=t.alternate;return t===de||s!==null&&s===de}function Hg(t,s){Gs=Vl=!0;var a=t.pending;a===null?s.next=s:(s.next=a.next,a.next=s),t.pending=s}function qg(t,s,a){if((a&4194048)!==0){var c=s.lanes;c&=t.pendingLanes,a|=c,s.lanes=a,Kd(t,a)}}var ua={readContext:ut,use:Yl,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve};ua.useEffectEvent=Ve;var $g={readContext:ut,use:Yl,useCallback:function(t,s){return xt().memoizedState=[t,s===void 0?null:s],t},useContext:ut,useEffect:Tg,useImperativeHandle:function(t,s,a){a=a!=null?a.concat([t]):null,Fl(4194308,4,Cg.bind(null,s,t),a)},useLayoutEffect:function(t,s){return Fl(4194308,4,t,s)},useInsertionEffect:function(t,s){Fl(4,2,t,s)},useMemo:function(t,s){var a=xt();s=s===void 0?null:s;var c=t();if(es){vn(!0);try{t()}finally{vn(!1)}}return a.memoizedState=[c,s],c},useReducer:function(t,s,a){var c=xt();if(a!==void 0){var d=a(s);if(es){vn(!0);try{a(s)}finally{vn(!1)}}}else d=s;return c.memoizedState=c.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},c.queue=t,t=t.dispatch=tw.bind(null,de,t),[c.memoizedState,t]},useRef:function(t){var s=xt();return t={current:t},s.memoizedState=t},useState:function(t){t=Ku(t);var s=t.queue,a=Ug.bind(null,de,s);return s.dispatch=a,[t.memoizedState,a]},useDebugValue:Fu,useDeferredValue:function(t,s){var a=xt();return Qu(a,t,s)},useTransition:function(){var t=Ku(!1);return t=Lg.bind(null,de,t.queue,!0,!1),xt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,s,a){var c=de,d=xt();if(ve){if(a===void 0)throw Error(r(407));a=a()}else{if(a=s(),je===null)throw Error(r(349));(ye&127)!==0||og(c,s,a)}d.memoizedState=a;var p={value:a,getSnapshot:s};return d.queue=p,Tg(ug.bind(null,c,p,t),[t]),c.flags|=2048,Ys(9,{destroy:void 0},cg.bind(null,c,p,a,s),null),a},useId:function(){var t=xt(),s=je.identifierPrefix;if(ve){var a=xn,c=wn;a=(c&~(1<<32-wt(c)-1)).toString(32)+a,s="_"+s+"R_"+a,a=Gl++,0<\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof c.is=="string"?b.createElement("select",{is:c.is}):b.createElement("select"),c.multiple?p.multiple=!0:c.size&&(p.size=c.size);break;default:p=typeof c.is=="string"?b.createElement(d,{is:c.is}):b.createElement(d)}}p[ot]=s,p[Nt]=c;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=p;e:switch(ht(p,d,c),d){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&$n(s)}}return ze(s),df(s,s.type,t===null?null:t.memoizedProps,s.pendingProps,a),null;case 6:if(t&&s.stateNode!=null)t.memoizedProps!==c&&$n(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(r(166));if(t=re.current,Bs(s)){if(t=s.stateNode,a=s.memoizedProps,c=null,d=ct,d!==null)switch(d.tag){case 27:case 5:c=d.memoizedProps}t[ot]=s,t=!!(t.nodeValue===a||c!==null&&c.suppressHydrationWarning===!0||ay(t.nodeValue,a)),t||ci(s,!0)}else t=yo(t).createTextNode(c),t[ot]=s,s.stateNode=t}return ze(s),null;case 31:if(a=s.memoizedState,t===null||t.memoizedState!==null){if(c=Bs(s),a!==null){if(t===null){if(!c)throw Error(r(318));if(t=s.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ot]=s}else Xi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;ze(s),t=!1}else a=xu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return s.flags&256?(Vt(s),s):(Vt(s),null);if((s.flags&128)!==0)throw Error(r(558))}return ze(s),null;case 13:if(c=s.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=Bs(s),c!==null&&c.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=s.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[ot]=s}else Xi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;ze(s),d=!1}else d=xu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return s.flags&256?(Vt(s),s):(Vt(s),null)}return Vt(s),(s.flags&128)!==0?(s.lanes=a,s):(a=c!==null,t=t!==null&&t.memoizedState!==null,a&&(c=s.child,d=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(d=c.alternate.memoizedState.cachePool.pool),p=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),p!==d&&(c.flags|=2048)),a!==t&&a&&(s.child.flags|=8192),to(s,s.updateQueue),ze(s),null);case 4:return Re(),t===null&&Df(s.stateNode.containerInfo),ze(s),null;case 10:return Bn(s.type),ze(s),null;case 19:if(Y(Ke),c=s.memoizedState,c===null)return ze(s),null;if(d=(s.flags&128)!==0,p=c.rendering,p===null)if(d)ha(c,!1);else{if(Ge!==0||t!==null&&(t.flags&128)!==0)for(t=s.child;t!==null;){if(p=Il(t),p!==null){for(s.flags|=128,ha(c,!1),t=p.updateQueue,s.updateQueue=t,to(s,t),s.subtreeFlags=0,t=a,a=s.child;a!==null;)Up(a,t),a=a.sibling;return Z(Ke,Ke.current&1|2),ve&&Dn(s,c.treeForkCount),s.child}t=t.sibling}c.tail!==null&&St()>ao&&(s.flags|=128,d=!0,ha(c,!1),s.lanes=4194304)}else{if(!d)if(t=Il(p),t!==null){if(s.flags|=128,d=!0,t=t.updateQueue,s.updateQueue=t,to(s,t),ha(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!ve)return ze(s),null}else 2*St()-c.renderingStartTime>ao&&a!==536870912&&(s.flags|=128,d=!0,ha(c,!1),s.lanes=4194304);c.isBackwards?(p.sibling=s.child,s.child=p):(t=c.last,t!==null?t.sibling=p:s.child=p,c.last=p)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=St(),t.sibling=null,a=Ke.current,Z(Ke,d?a&1|2:a&1),ve&&Dn(s,c.treeForkCount),t):(ze(s),null);case 22:case 23:return Vt(s),Du(),c=s.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(a&536870912)!==0&&(s.flags&128)===0&&(ze(s),s.subtreeFlags&6&&(s.flags|=8192)):ze(s),a=s.updateQueue,a!==null&&to(s,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==a&&(s.flags|=2048),t!==null&&Y(Ji),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),s.memoizedState.cache!==a&&(s.flags|=2048),Bn(Je),ze(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function aw(t,s){switch(Su(s),s.tag){case 1:return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 3:return Bn(Je),Re(),t=s.flags,(t&65536)!==0&&(t&128)===0?(s.flags=t&-65537|128,s):null;case 26:case 27:case 5:return kn(s),null;case 31:if(s.memoizedState!==null){if(Vt(s),s.alternate===null)throw Error(r(340));Xi()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 13:if(Vt(s),t=s.memoizedState,t!==null&&t.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Xi()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 19:return Y(Ke),null;case 4:return Re(),null;case 10:return Bn(s.type),null;case 22:case 23:return Vt(s),Du(),t!==null&&Y(Ji),t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 24:return Bn(Je),null;case 25:return null;default:return null}}function fm(t,s){switch(Su(s),s.tag){case 3:Bn(Je),Re();break;case 26:case 27:case 5:kn(s);break;case 4:Re();break;case 31:s.memoizedState!==null&&Vt(s);break;case 13:Vt(s);break;case 19:Y(Ke);break;case 10:Bn(s.type);break;case 22:case 23:Vt(s),Du(),t!==null&&Y(Ji);break;case 24:Bn(Je)}}function da(t,s){try{var a=s.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var d=c.next;a=d;do{if((a.tag&t)===t){c=void 0;var p=a.create,b=a.inst;c=p(),b.destroy=c}a=a.next}while(a!==d)}}catch(T){Ce(s,s.return,T)}}function mi(t,s,a){try{var c=s.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var p=d.next;c=p;do{if((c.tag&t)===t){var b=c.inst,T=b.destroy;if(T!==void 0){b.destroy=void 0,d=s;var A=a,R=T;try{R()}catch(G){Ce(d,A,G)}}}c=c.next}while(c!==p)}}catch(G){Ce(s,s.return,G)}}function hm(t){var s=t.updateQueue;if(s!==null){var a=t.stateNode;try{ng(s,a)}catch(c){Ce(t,t.return,c)}}}function dm(t,s,a){a.props=ts(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(c){Ce(t,s,c)}}function pa(t,s){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof a=="function"?t.refCleanup=a(c):a.current=c}}catch(d){Ce(t,s,d)}}function _n(t,s){var a=t.ref,c=t.refCleanup;if(a!==null)if(typeof c=="function")try{c()}catch(d){Ce(t,s,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Ce(t,s,d)}else a.current=null}function pm(t){var s=t.type,a=t.memoizedProps,c=t.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":a.autoFocus&&c.focus();break e;case"img":a.src?c.src=a.src:a.srcSet&&(c.srcset=a.srcSet)}}catch(d){Ce(t,t.return,d)}}function pf(t,s,a){try{var c=t.stateNode;Cw(c,t.type,a,s),c[Nt]=s}catch(d){Ce(t,t.return,d)}}function gm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&_i(t.type)||t.tag===4}function gf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||gm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&_i(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function mf(t,s,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,s?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,s):(s=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.appendChild(t),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=jn));else if(c!==4&&(c===27&&_i(t.type)&&(a=t.stateNode,s=null),t=t.child,t!==null))for(mf(t,s,a),t=t.sibling;t!==null;)mf(t,s,a),t=t.sibling}function no(t,s,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,s?a.insertBefore(t,s):a.appendChild(t);else if(c!==4&&(c===27&&_i(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(no(t,s,a),t=t.sibling;t!==null;)no(t,s,a),t=t.sibling}function mm(t){var s=t.stateNode,a=t.memoizedProps;try{for(var c=t.type,d=s.attributes;d.length;)s.removeAttributeNode(d[0]);ht(s,c,a),s[ot]=t,s[Nt]=a}catch(p){Ce(t,t.return,p)}}var In=!1,We=!1,yf=!1,ym=typeof WeakSet=="function"?WeakSet:Set,lt=null;function lw(t,s){if(t=t.containerInfo,Uf=To,t=kp(t),cu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var d=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var b=0,T=-1,A=-1,R=0,G=0,F=t,z=null;t:for(;;){for(var H;F!==a||d!==0&&F.nodeType!==3||(T=b+d),F!==p||c!==0&&F.nodeType!==3||(A=b+c),F.nodeType===3&&(b+=F.nodeValue.length),(H=F.firstChild)!==null;)z=F,F=H;for(;;){if(F===t)break t;if(z===a&&++R===d&&(T=b),z===p&&++G===c&&(A=b),(H=F.nextSibling)!==null)break;F=z,z=F.parentNode}F=H}a=T===-1||A===-1?null:{start:T,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Hf={focusedElem:t,selectionRange:a},To=!1,lt=s;lt!==null;)if(s=lt,t=s.child,(s.subtreeFlags&1028)!==0&&t!==null)t.return=s,lt=t;else for(;lt!==null;){switch(s=lt,p=s.alternate,t=s.flags,s.tag){case 0:if((t&4)!==0&&(t=s.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a title"))),ht(p,c,a),p[ot]=t,at(p),c=p;break e;case"link":var b=_y("link","href",d).get(c+(a.href||""));if(b){for(var T=0;TOe&&(b=Oe,Oe=oe,oe=b);var O=Np(T,oe),M=Np(T,Oe);if(O&&M&&(H.rangeCount!==1||H.anchorNode!==O.node||H.anchorOffset!==O.offset||H.focusNode!==M.node||H.focusOffset!==M.offset)){var L=F.createRange();L.setStart(O.node,O.offset),H.removeAllRanges(),oe>Oe?(H.addRange(L),H.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),H.addRange(L))}}}}for(F=[],H=T;H=H.parentNode;)H.nodeType===1&&F.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;Ta?32:a,B.T=null,a=Tf,Tf=null;var p=Si,b=Xn;if(it=0,Ps=Si=null,Xn=0,(Ee&6)!==0)throw Error(r(331));var T=Ee;if(Ee|=4,Cm(p.current),Em(p,p.current,b,a),Ee=T,Sa(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Mn,p)}catch{}return!0}finally{P.p=d,B.T=c,Ym(t,s)}}function Fm(t,s,a){s=Zt(a,s),s=nf(t.stateNode,s,2),t=di(t,s,2),t!==null&&(qr(t,2),Tn(t))}function Ce(t,s,a){if(t.tag===3)Fm(t,t,a);else for(;s!==null;){if(s.tag===3){Fm(s,t,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(vi===null||!vi.has(c))){t=Zt(a,t),a=Qg(2),c=di(s,a,2),c!==null&&(Jg(a,c,s,t),qr(c,2),Tn(c));break}}s=s.return}}function Cf(t,s,a){var c=t.pingCache;if(c===null){c=t.pingCache=new uw;var d=new Set;c.set(s,d)}else d=c.get(s),d===void 0&&(d=new Set,c.set(s,d));d.has(a)||(Sf=!0,d.add(a),t=gw.bind(null,t,s,a),s.then(t,t))}function gw(t,s,a){var c=t.pingCache;c!==null&&c.delete(s),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,je===t&&(ye&a)===a&&(Ge===4||Ge===3&&(ye&62914560)===ye&&300>St()-ro?(Ee&2)===0&&Zs(t,0):wf|=a,Js===ye&&(Js=0)),Tn(t)}function Qm(t,s){s===0&&(s=Vd()),t=Ki(t,s),t!==null&&(qr(t,s),Tn(t))}function mw(t){var s=t.memoizedState,a=0;s!==null&&(a=s.retryLane),Qm(t,a)}function yw(t,s){var a=0;switch(t.tag){case 31:case 13:var c=t.stateNode,d=t.memoizedState;d!==null&&(a=d.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(s),Qm(t,a)}function bw(t,s){return ni(t,s)}var ho=null,er=null,kf=!1,po=!1,Mf=!1,xi=0;function Tn(t){t!==er&&t.next===null&&(er===null?ho=er=t:er=er.next=t),po=!0,kf||(kf=!0,Sw())}function Sa(t,s){if(!Mf&&po){Mf=!0;do for(var a=!1,c=ho;c!==null;){if(t!==0){var d=c.pendingLanes;if(d===0)var p=0;else{var b=c.suspendedLanes,T=c.pingedLanes;p=(1<<31-wt(42|t)+1)-1,p&=d&~(b&~T),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,Wm(c,p))}else p=ye,p=yl(c,c===je?p:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(p&3)===0||Hr(c,p)||(a=!0,Wm(c,p));c=c.next}while(a);Mf=!1}}function vw(){Jm()}function Jm(){po=kf=!1;var t=0;xi!==0&&Mw()&&(t=xi);for(var s=St(),a=null,c=ho;c!==null;){var d=c.next,p=Pm(c,s);p===0?(c.next=null,a===null?ho=d:a.next=d,d===null&&(er=a)):(a=c,(t!==0||(p&3)!==0)&&(po=!0)),c=d}it!==0&&it!==5||Sa(t),xi!==0&&(xi=0)}function Pm(t,s){for(var a=t.suspendedLanes,c=t.pingedLanes,d=t.expirationTimes,p=t.pendingLanes&-62914561;0T)break;var G=A.transferSize,F=A.initiatorType;G&&ly(F)&&(A=A.responseEnd,b+=G*(A"u"?null:document;function vy(t,s,a){var c=tr;if(c&&typeof s=="string"&&s){var d=Jt(s);d='link[rel="'+t+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),by.has(d)||(by.add(d),t={rel:t,crossOrigin:a,href:s},c.querySelector(d)===null&&(s=c.createElement("link"),ht(s,"link",t),at(s),c.head.appendChild(s)))}}function Hw(t){Fn.D(t),vy("dns-prefetch",t,null)}function qw(t,s){Fn.C(t,s),vy("preconnect",t,s)}function $w(t,s,a){Fn.L(t,s,a);var c=tr;if(c&&t&&s){var d='link[rel="preload"][as="'+Jt(s)+'"]';s==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Jt(a.imageSizes)+'"]')):d+='[href="'+Jt(t)+'"]';var p=d;switch(s){case"style":p=nr(t);break;case"script":p=ir(t)}rn.has(p)||(t=m({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:t,as:s},a),rn.set(p,t),c.querySelector(d)!==null||s==="style"&&c.querySelector(Ta(p))||s==="script"&&c.querySelector(Ea(p))||(s=c.createElement("link"),ht(s,"link",t),at(s),c.head.appendChild(s)))}}function Iw(t,s){Fn.m(t,s);var a=tr;if(a&&t){var c=s&&typeof s.as=="string"?s.as:"script",d='link[rel="modulepreload"][as="'+Jt(c)+'"][href="'+Jt(t)+'"]',p=d;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=ir(t)}if(!rn.has(p)&&(t=m({rel:"modulepreload",href:t},s),rn.set(p,t),a.querySelector(d)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ea(p)))return}c=a.createElement("link"),ht(c,"link",t),at(c),a.head.appendChild(c)}}}function Vw(t,s,a){Fn.S(t,s,a);var c=tr;if(c&&t){var d=Ts(c).hoistableStyles,p=nr(t);s=s||"default";var b=d.get(p);if(!b){var T={loading:0,preload:null};if(b=c.querySelector(Ta(p)))T.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":s},a),(a=rn.get(p))&&Yf(t,a);var A=b=c.createElement("link");at(A),ht(A,"link",t),A._p=new Promise(function(R,G){A.onload=R,A.onerror=G}),A.addEventListener("load",function(){T.loading|=1}),A.addEventListener("error",function(){T.loading|=2}),T.loading|=4,vo(b,s,c)}b={type:"stylesheet",instance:b,count:1,state:T},d.set(p,b)}}}function Gw(t,s){Fn.X(t,s);var a=tr;if(a&&t){var c=Ts(a).hoistableScripts,d=ir(t),p=c.get(d);p||(p=a.querySelector(Ea(d)),p||(t=m({src:t,async:!0},s),(s=rn.get(d))&&Xf(t,s),p=a.createElement("script"),at(p),ht(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(d,p))}}function Kw(t,s){Fn.M(t,s);var a=tr;if(a&&t){var c=Ts(a).hoistableScripts,d=ir(t),p=c.get(d);p||(p=a.querySelector(Ea(d)),p||(t=m({src:t,async:!0,type:"module"},s),(s=rn.get(d))&&Xf(t,s),p=a.createElement("script"),at(p),ht(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(d,p))}}function Sy(t,s,a,c){var d=(d=re.current)?bo(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=nr(a.href),a=Ts(d).hoistableStyles,c=a.get(s),c||(c={type:"style",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=nr(a.href);var p=Ts(d).hoistableStyles,b=p.get(t);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,b),(p=d.querySelector(Ta(t)))&&!p._p&&(b.instance=p,b.state.loading=5),rn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},rn.set(t,a),p||Yw(d,t,a,b.state))),s&&c===null)throw Error(r(528,""));return b}if(s&&c!==null)throw Error(r(529,""));return null;case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ir(a),a=Ts(d).hoistableScripts,c=a.get(s),c||(c={type:"script",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function nr(t){return'href="'+Jt(t)+'"'}function Ta(t){return'link[rel="stylesheet"]['+t+"]"}function wy(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function Yw(t,s,a,c){t.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=t.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),ht(s,"link",a),at(s),t.head.appendChild(s))}function ir(t){return'[src="'+Jt(t)+'"]'}function Ea(t){return"script[async]"+t}function xy(t,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var c=t.querySelector('style[data-href~="'+Jt(a.href)+'"]');if(c)return s.instance=c,at(c),c;var d=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),at(c),ht(c,"style",d),vo(c,a.precedence,t),s.instance=c;case"stylesheet":d=nr(a.href);var p=t.querySelector(Ta(d));if(p)return s.state.loading|=4,s.instance=p,at(p),p;c=wy(a),(d=rn.get(d))&&Yf(c,d),p=(t.ownerDocument||t).createElement("link"),at(p);var b=p;return b._p=new Promise(function(T,A){b.onload=T,b.onerror=A}),ht(p,"link",c),s.state.loading|=4,vo(p,a.precedence,t),s.instance=p;case"script":return p=ir(a.src),(d=t.querySelector(Ea(p)))?(s.instance=d,at(d),d):(c=a,(d=rn.get(p))&&(c=m({},a),Xf(c,d)),t=t.ownerDocument||t,d=t.createElement("script"),at(d),ht(d,"link",c),t.head.appendChild(d),s.instance=d);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,vo(c,a.precedence,t));return s.instance}function vo(t,s,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=c.length?c[c.length-1]:null,p=d,b=0;b title"):null)}function Xw(t,s,a){if(a===1||s.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return t=s.disabled,typeof s.precedence=="string"&&t==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Ey(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Fw(t,s,a,c){if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=nr(c.href),p=s.querySelector(Ta(d));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(t.count++,t=wo.bind(t),s.then(t,t)),a.state.loading|=4,a.instance=p,at(p);return}p=s.ownerDocument||s,c=wy(c),(d=rn.get(d))&&Yf(c,d),p=p.createElement("link"),at(p);var b=p;b._p=new Promise(function(T,A){b.onload=T,b.onerror=A}),ht(p,"link",c),a.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=wo.bind(t),s.addEventListener("load",a),s.addEventListener("error",a))}}var Ff=0;function Qw(t,s){return t.stylesheets&&t.count===0&&_o(t,t.stylesheets),0Ff?50:800)+s);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(d)}}:null}function wo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_o(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var xo=null;function _o(t,s){t.stylesheets=null,t.unsuspend!==null&&(t.count++,xo=new Map,s.forEach(Jw,t),xo=null,wo.call(t))}function Jw(t,s){if(!(s.state.loading&4)){var a=xo.get(t);if(a)var c=a.get(null);else{a=new Map,xo.set(t,a);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),ih.exports=_x(),ih.exports}var zC=Tx();const Qh=new Map([["APIRequestContext.fetch",{title:'{method} "{url}"'}],["APIRequestContext.fetchResponseBody",{title:"Get response body",group:"getter"}],["APIRequestContext.fetchLog",{internal:!0}],["APIRequestContext.storageState",{title:"Get storage state"}],["APIRequestContext.disposeAPIResponse",{internal:!0}],["APIRequestContext.dispose",{internal:!0}],["LocalUtils.zip",{internal:!0}],["LocalUtils.harOpen",{internal:!0}],["LocalUtils.harLookup",{internal:!0}],["LocalUtils.harClose",{internal:!0}],["LocalUtils.harUnzip",{internal:!0}],["LocalUtils.connect",{internal:!0}],["LocalUtils.tracingStarted",{internal:!0}],["LocalUtils.addStackToTracingNoReply",{internal:!0}],["LocalUtils.traceDiscarded",{internal:!0}],["LocalUtils.globToRegex",{internal:!0}],["Root.initialize",{internal:!0}],["Playwright.newRequest",{title:"Create request context"}],["DebugController.initialize",{internal:!0}],["DebugController.setReportStateChanged",{internal:!0}],["DebugController.setRecorderMode",{internal:!0}],["DebugController.highlight",{internal:!0}],["DebugController.hideHighlight",{internal:!0}],["DebugController.resume",{internal:!0}],["DebugController.kill",{internal:!0}],["SocksSupport.socksConnected",{internal:!0}],["SocksSupport.socksFailed",{internal:!0}],["SocksSupport.socksData",{internal:!0}],["SocksSupport.socksError",{internal:!0}],["SocksSupport.socksEnd",{internal:!0}],["BrowserType.launch",{title:"Launch browser"}],["BrowserType.launchPersistentContext",{title:"Launch persistent context"}],["BrowserType.connectOverCDP",{title:"Connect over CDP"}],["Browser.close",{title:"Close browser",pausesBeforeAction:!0}],["Browser.killForTests",{internal:!0}],["Browser.defaultUserAgentForTest",{internal:!0}],["Browser.newContext",{title:"Create context"}],["Browser.newContextForReuse",{internal:!0}],["Browser.disconnectFromReusedContext",{internal:!0}],["Browser.newBrowserCDPSession",{title:"Create CDP session",group:"configuration"}],["Browser.startTracing",{title:"Start browser tracing",group:"configuration"}],["Browser.stopTracing",{title:"Stop browser tracing",group:"configuration"}],["EventTarget.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Page.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Worker.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["WebSocket.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["ElectronApplication.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["AndroidDevice.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["PageAgent.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.addCookies",{title:"Add cookies",group:"configuration"}],["BrowserContext.addInitScript",{title:"Add init script",group:"configuration"}],["BrowserContext.clearCookies",{title:"Clear cookies",group:"configuration"}],["BrowserContext.clearPermissions",{title:"Clear permissions",group:"configuration"}],["BrowserContext.close",{title:"Close context",pausesBeforeAction:!0}],["BrowserContext.cookies",{title:"Get cookies",group:"getter"}],["BrowserContext.exposeBinding",{title:"Expose binding",group:"configuration"}],["BrowserContext.grantPermissions",{title:"Grant permissions",group:"configuration"}],["BrowserContext.newPage",{title:"Create page"}],["BrowserContext.registerSelectorEngine",{internal:!0}],["BrowserContext.setTestIdAttributeName",{internal:!0}],["BrowserContext.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["BrowserContext.setGeolocation",{title:"Set geolocation",group:"configuration"}],["BrowserContext.setHTTPCredentials",{title:"Set HTTP credentials",group:"configuration"}],["BrowserContext.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["BrowserContext.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["BrowserContext.setOffline",{title:"Set offline mode"}],["BrowserContext.storageState",{title:"Get storage state"}],["BrowserContext.pause",{title:"Pause"}],["BrowserContext.enableRecorder",{internal:!0}],["BrowserContext.disableRecorder",{internal:!0}],["BrowserContext.exposeConsoleApi",{internal:!0}],["BrowserContext.newCDPSession",{title:"Create CDP session",group:"configuration"}],["BrowserContext.harStart",{internal:!0}],["BrowserContext.harExport",{internal:!0}],["BrowserContext.createTempFiles",{internal:!0}],["BrowserContext.updateSubscription",{internal:!0}],["BrowserContext.clockFastForward",{title:'Fast forward clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockInstall",{title:'Install clock "{timeNumber|timeString}"'}],["BrowserContext.clockPauseAt",{title:'Pause clock "{timeNumber|timeString}"'}],["BrowserContext.clockResume",{title:"Resume clock"}],["BrowserContext.clockRunFor",{title:'Run clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockSetFixedTime",{title:'Set fixed time "{timeNumber|timeString}"'}],["BrowserContext.clockSetSystemTime",{title:'Set system time "{timeNumber|timeString}"'}],["Page.addInitScript",{title:"Add init script",group:"configuration"}],["Page.close",{title:"Close page",pausesBeforeAction:!0}],["Page.consoleMessages",{title:"Get console messages",group:"getter"}],["Page.emulateMedia",{title:"Emulate media",snapshot:!0,pausesBeforeAction:!0}],["Page.exposeBinding",{title:"Expose binding",group:"configuration"}],["Page.goBack",{title:"Go back",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.goForward",{title:"Go forward",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.requestGC",{title:"Request garbage collection",group:"configuration"}],["Page.registerLocatorHandler",{title:"Register locator handler"}],["Page.resolveLocatorHandlerNoReply",{internal:!0}],["Page.unregisterLocatorHandler",{title:"Unregister locator handler"}],["Page.reload",{title:"Reload",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.expectScreenshot",{title:"Expect screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["Page.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["Page.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["Page.setViewportSize",{title:"Set viewport size",snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardDown",{title:'Key down "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardUp",{title:'Key up "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardInsertText",{title:'Insert "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardType",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardPress",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseMove",{title:"Mouse move",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseDown",{title:"Mouse down",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseUp",{title:"Mouse up",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseClick",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseWheel",{title:"Mouse wheel",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.touchscreenTap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.pageErrors",{title:"Get page errors",group:"getter"}],["Page.pdf",{title:"PDF"}],["Page.requests",{title:"Get network requests",group:"getter"}],["Page.snapshotForAI",{internal:!0}],["Page.startJSCoverage",{title:"Start JS coverage",group:"configuration"}],["Page.stopJSCoverage",{title:"Stop JS coverage",group:"configuration"}],["Page.startCSSCoverage",{title:"Start CSS coverage",group:"configuration"}],["Page.stopCSSCoverage",{title:"Stop CSS coverage",group:"configuration"}],["Page.bringToFront",{title:"Bring to front"}],["Page.updateSubscription",{internal:!0}],["Page.agent",{internal:!0}],["Frame.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.addScriptTag",{title:"Add script tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.addStyleTag",{title:"Add style tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.ariaSnapshot",{title:"Aria snapshot",snapshot:!0,pausesBeforeAction:!0}],["Frame.blur",{title:"Blur",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.content",{title:"Get content",snapshot:!0,pausesBeforeAction:!0}],["Frame.dragAndDrop",{title:"Drag and drop",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dispatchEvent",{title:'Dispatch "{type}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.frameElement",{title:"Get frame element",group:"getter"}],["Frame.resolveSelector",{internal:!0}],["Frame.highlight",{title:"Highlight element",group:"configuration"}],["Frame.getAttribute",{title:'Get attribute "{name}"',snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.goto",{title:'Navigate to "{url}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.querySelector",{title:"Query selector",snapshot:!0}],["Frame.querySelectorAll",{title:"Query selector all",snapshot:!0}],["Frame.queryCount",{title:"Query count",snapshot:!0,pausesBeforeAction:!0}],["Frame.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.setContent",{title:"Set content",snapshot:!0,pausesBeforeAction:!0}],["Frame.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.title",{title:"Get page title",group:"getter"}],["Frame.type",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.waitForTimeout",{title:"Wait for timeout",snapshot:!0}],["Frame.waitForFunction",{title:"Wait for function",snapshot:!0,pausesBeforeAction:!0}],["Frame.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Frame.expect",{title:'Expect "{expression}"',snapshot:!0,pausesBeforeAction:!0}],["Worker.evaluateExpression",{title:"Evaluate"}],["Worker.evaluateExpressionHandle",{title:"Evaluate"}],["Worker.updateSubscription",{internal:!0}],["JSHandle.dispose",{internal:!0}],["ElementHandle.dispose",{internal:!0}],["JSHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.getPropertyList",{title:"Get property list",group:"getter"}],["ElementHandle.getPropertyList",{title:"Get property list",group:"getter"}],["JSHandle.getProperty",{title:"Get JS property",group:"getter"}],["ElementHandle.getProperty",{title:"Get JS property",group:"getter"}],["JSHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.boundingBox",{title:"Get bounding box",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.contentFrame",{title:"Get content frame",group:"getter"}],["ElementHandle.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.dispatchEvent",{title:"Dispatch event",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.getAttribute",{title:"Get attribute",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.ownerFrame",{title:"Get owner frame",group:"getter"}],["ElementHandle.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.querySelector",{title:"Query selector",snapshot:!0}],["ElementHandle.querySelectorAll",{title:"Query selector all",snapshot:!0}],["ElementHandle.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.scrollIntoViewIfNeeded",{title:"Scroll into view",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.selectText",{title:"Select text",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.type",{title:"Type",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.waitForElementState",{title:"Wait for state",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Request.response",{internal:!0}],["Request.rawRequestHeaders",{internal:!0}],["Route.redirectNavigationRequest",{internal:!0}],["Route.abort",{title:"Abort request",group:"route"}],["Route.continue",{title:"Continue request",group:"route"}],["Route.fulfill",{title:"Fulfill request",group:"route"}],["WebSocketRoute.connect",{title:"Connect WebSocket to server",group:"route"}],["WebSocketRoute.ensureOpened",{internal:!0}],["WebSocketRoute.sendToPage",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.sendToServer",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.closePage",{internal:!0}],["WebSocketRoute.closeServer",{internal:!0}],["Response.body",{title:"Get response body",group:"getter"}],["Response.securityDetails",{internal:!0}],["Response.serverAddr",{internal:!0}],["Response.rawResponseHeaders",{internal:!0}],["Response.sizes",{internal:!0}],["BindingCall.reject",{internal:!0}],["BindingCall.resolve",{internal:!0}],["Dialog.accept",{title:"Accept dialog"}],["Dialog.dismiss",{title:"Dismiss dialog"}],["Tracing.tracingStart",{title:"Start tracing",group:"configuration"}],["Tracing.tracingStartChunk",{title:"Start tracing",group:"configuration"}],["Tracing.tracingGroup",{title:'Trace "{name}"'}],["Tracing.tracingGroupEnd",{title:"Group end"}],["Tracing.tracingStopChunk",{title:"Stop tracing",group:"configuration"}],["Tracing.tracingStop",{title:"Stop tracing",group:"configuration"}],["Artifact.pathAfterFinished",{internal:!0}],["Artifact.saveAs",{internal:!0}],["Artifact.saveAsStream",{internal:!0}],["Artifact.failure",{internal:!0}],["Artifact.stream",{internal:!0}],["Artifact.cancel",{internal:!0}],["Artifact.delete",{internal:!0}],["Stream.read",{internal:!0}],["Stream.close",{internal:!0}],["WritableStream.write",{internal:!0}],["WritableStream.close",{internal:!0}],["CDPSession.send",{title:"Send CDP command",group:"configuration"}],["CDPSession.detach",{title:"Detach CDP session",group:"configuration"}],["Electron.launch",{title:"Launch electron"}],["ElectronApplication.browserWindow",{internal:!0}],["ElectronApplication.evaluateExpression",{title:"Evaluate"}],["ElectronApplication.evaluateExpressionHandle",{title:"Evaluate"}],["ElectronApplication.updateSubscription",{internal:!0}],["Android.devices",{internal:!0}],["AndroidSocket.write",{internal:!0}],["AndroidSocket.close",{internal:!0}],["AndroidDevice.wait",{title:"Wait"}],["AndroidDevice.fill",{title:'Fill "{text}"'}],["AndroidDevice.tap",{title:"Tap"}],["AndroidDevice.drag",{title:"Drag"}],["AndroidDevice.fling",{title:"Fling"}],["AndroidDevice.longTap",{title:"Long tap"}],["AndroidDevice.pinchClose",{title:"Pinch close"}],["AndroidDevice.pinchOpen",{title:"Pinch open"}],["AndroidDevice.scroll",{title:"Scroll"}],["AndroidDevice.swipe",{title:"Swipe"}],["AndroidDevice.info",{internal:!0}],["AndroidDevice.screenshot",{title:"Screenshot"}],["AndroidDevice.inputType",{title:"Type"}],["AndroidDevice.inputPress",{title:"Press"}],["AndroidDevice.inputTap",{title:"Tap"}],["AndroidDevice.inputSwipe",{title:"Swipe"}],["AndroidDevice.inputDrag",{title:"Drag"}],["AndroidDevice.launchBrowser",{title:"Launch browser"}],["AndroidDevice.open",{title:"Open app"}],["AndroidDevice.shell",{title:"Execute shell command",group:"configuration"}],["AndroidDevice.installApk",{title:"Install apk"}],["AndroidDevice.push",{title:"Push"}],["AndroidDevice.connectToWebView",{title:"Connect to Web View"}],["AndroidDevice.close",{internal:!0}],["JsonPipe.send",{internal:!0}],["JsonPipe.close",{internal:!0}],["PageAgent.perform",{title:'Perform "{task}"'}],["PageAgent.expect",{title:'Expect "{expectation}"'}],["PageAgent.extract",{title:'Extract "{query}"'}],["PageAgent.dispose",{internal:!0}],["PageAgent.usage",{title:"Get agent usage",group:"configuration"}]]);function eb(n,e){var i;return(i=Ex(n,e))==null?void 0:i.replaceAll(` -`,"\\n")}function Ex(n,e){if(n)for(const i of e.split("|")){if(i==="url")try{const l=new URL(n[i]);return l.protocol==="data:"?l.protocol:l.protocol==="about:"?n[i]:l.pathname+l.search}catch{if(n[i]!==void 0)return n[i]}if(i==="timeNumber"&&n[i]!==void 0)return new Date(n[i]).toString();const r=Ax(n,i);if(r!==void 0)return r}}function Ax(n,e){const i=e.split(".");let r=n;for(const l of i){if(typeof r!="object"||r===null)return;r=r[l]}if(r!==void 0)return String(r)}function Nx(n){var i;return(n.title??((i=Qh.get(n.type+"."+n.method))==null?void 0:i.title)??n.method).replace(/\{([^}]+)\}/g,(r,l)=>eb(n.params,l)??r)}function Cx(n){var e;return(e=Qh.get(n.type+"."+n.method))==null?void 0:e.group}const qa=Symbol("context"),tb=Symbol("nextInContext"),nb=Symbol("prevByEndTime"),ib=Symbol("nextByStartTime"),Py=Symbol("events");class BC{constructor(e,i){var l;i.forEach(o=>kx(o));const r=i.find(o=>o.origin==="library");this.traceUri=e,this.browserName=(r==null?void 0:r.browserName)||"",this.sdkLanguage=r==null?void 0:r.sdkLanguage,this.channel=r==null?void 0:r.channel,this.testIdAttributeName=r==null?void 0:r.testIdAttributeName,this.platform=(r==null?void 0:r.platform)||"",this.playwrightVersion=(l=i.find(o=>o.playwrightVersion))==null?void 0:l.playwrightVersion,this.title=(r==null?void 0:r.title)||"",this.options=(r==null?void 0:r.options)||{},this.actions=Mx(i),this.pages=[].concat(...i.map(o=>o.pages)),this.wallTime=i.map(o=>o.wallTime).reduce((o,u)=>Math.min(o||Number.MAX_VALUE,u),Number.MAX_VALUE),this.startTime=i.map(o=>o.startTime).reduce((o,u)=>Math.min(o,u),Number.MAX_VALUE),this.endTime=i.map(o=>o.endTime).reduce((o,u)=>Math.max(o,u),Number.MIN_VALUE),this.events=[].concat(...i.map(o=>o.events)),this.stdio=[].concat(...i.map(o=>o.stdio)),this.errors=[].concat(...i.map(o=>o.errors)),this.hasSource=i.some(o=>o.hasSource),this.hasStepData=i.some(o=>o.origin==="testRunner"),this.resources=[...i.map(o=>o.resources)].flat(),this.attachments=this.actions.flatMap(o=>{var u;return((u=o.attachments)==null?void 0:u.map(f=>({...f,callId:o.callId,traceUri:e})))??[]}),this.visibleAttachments=this.attachments.filter(o=>!o.name.startsWith("_")),this.events.sort((o,u)=>o.time-u.time),this.resources.sort((o,u)=>o._monotonicTime-u._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=Bx(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(const o of this.actions)o.group=o.group??Cx({type:o.class,method:o.method}),o.group&&this.actionCounters.set(o.group,1+(this.actionCounters.get(o.group)||0))}createRelativeUrl(e){const i=new URL("http://localhost/"+e);return i.searchParams.set("trace",this.traceUri),i.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}filteredActions(e){const i=new Set(e);return this.actions.filter(r=>!r.group||i.has(r.group))}renderActionTree(e){const i=this.filteredActions(e??[]),{rootItem:r}=sb(i),l=[],o=(u,f)=>{const h=Nx({...u.action,type:u.action.class});l.push(`${f}${h||u.id}`);for(const g of u.children)o(g,f+" ")};return r.children.forEach(u=>o(u,"")),l}_errorDescriptorsFromActions(){var i;const e=[];for(const r of this.actions||[])(i=r.error)!=null&&i.message&&e.push({action:r,stack:r.stack,message:r.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,i)=>({stack:e.stack,message:e.message}))}}function kx(n){for(const i of n.pages)i[qa]=n;for(let i=0;i=0;i--){const r=n.actions[i];r[tb]=e,r.class!=="Route"&&(e=r)}for(const i of n.events)i[qa]=n;for(const i of n.resources)i[qa]=n}function Mx(n){const e=[],i=Ox(n);e.push(...i),e.sort((r,l)=>l.parentId===r.callId?1:r.parentId===l.callId?-1:r.endTime-l.endTime);for(let r=1;rl.parentId===r.callId?-1:r.parentId===l.callId?1:r.startTime-l.startTime);for(let r=0;r+1u.origin==="library"),r=n.filter(u=>u.origin==="testRunner");if(!r.length||!i.length)return n.map(u=>u.actions.map(f=>({...f,context:u}))).flat();for(const u of i)for(const f of u.actions)e.set(f.stepId||`tmp-step@${++Zy}`,{...f,context:u});const l=Lx(r,e);l&&jx(i,l);const o=new Map;for(const u of r)for(const f of u.actions){const h=f.stepId&&e.get(f.stepId);if(h){o.set(f.callId,h.callId),f.error&&(h.error=f.error),f.attachments&&(h.attachments=f.attachments),f.annotations&&(h.annotations=f.annotations),f.parentId&&(h.parentId=o.get(f.parentId)??f.parentId),f.group&&(h.group=f.group),h.startTime=f.startTime,h.endTime=f.endTime;continue}f.parentId&&(f.parentId=o.get(f.parentId)??f.parentId),e.set(f.stepId||`tmp-step@${++Zy}`,{...f,context:u})}return[...e.values()]}function jx(n,e){for(const i of n){i.startTime+=e,i.endTime+=e;for(const r of i.actions)r.startTime&&(r.startTime+=e),r.endTime&&(r.endTime+=e);for(const r of i.events)r.time+=e;for(const r of i.stdio)r.timestamp+=e;for(const r of i.pages)for(const l of r.screencastFrames)l.timestamp+=e;for(const r of i.resources)r._monotonicTime&&(r._monotonicTime+=e)}}function Lx(n,e){for(const i of n)for(const r of i.actions){if(!r.startTime)continue;const l=r.stepId?e.get(r.stepId):void 0;if(l)return r.startTime-l.startTime}return 0}function sb(n){const e=new Map;for(const l of n)e.set(l.callId,{id:l.callId,parent:void 0,children:[],action:l});const i={action:{...Ux},id:"",parent:void 0,children:[]};for(const l of e.values()){i.action.startTime=Math.min(i.action.startTime,l.action.startTime),i.action.endTime=Math.max(i.action.endTime,l.action.endTime);const o=l.action.parentId&&e.get(l.action.parentId)||i;o.children.push(l),l.parent=o}const r=l=>{for(const o of l.children)o.action.stack=o.action.stack??l.action.stack,r(o)};return r(i),{rootItem:i,itemMap:e}}function rb(n){return n[qa]}function Rx(n){return n[tb]}function Wy(n){return n[nb]}function e0(n){return n[ib]}function Dx(n){let e=0,i=0;for(const r of zx(n)){if(r.type==="console"){const l=r.messageType;l==="warning"?++i:l==="error"&&++e}r.type==="event"&&r.method==="pageError"&&++e}return{errors:e,warnings:i}}function zx(n){let e=n[Py];if(e)return e;const i=Rx(n);return e=rb(n).events.filter(r=>r.time>=n.startTime&&(!i||r.time{const h=Math.max(l,n)*window.devicePixelRatio,[g,y]=on(o?o+"."+r+":size":void 0,h),[m,w]=on(o?o+"."+r+":size":void 0,h),[v,E]=U.useState(null),[x,_]=gs();let N;r==="vertical"?(N=m/window.devicePixelRatio,x&&x.heightE({offset:r==="vertical"?$.clientY:$.clientX,size:N}),onMouseUp:()=>E(null),onMouseMove:$=>{if(!$.buttons)E(null);else if(v){const D=(r==="vertical"?$.clientY:$.clientX)-v.offset,K=i?v.size+D:v.size-D,q=$.target.parentElement.getBoundingClientRect(),j=Math.min(Math.max(l,K),(r==="vertical"?q.height:q.width)-l);r==="vertical"?w(j*window.devicePixelRatio):y(j*window.devicePixelRatio)}}})]})},et=function(n,e,i){return n>=e&&n<=i};function Rt(n){return et(n,48,57)}function t0(n){return Rt(n)||et(n,65,70)||et(n,97,102)}function qx(n){return et(n,65,90)}function $x(n){return et(n,97,122)}function Ix(n){return qx(n)||$x(n)}function Vx(n){return n>=128}function $o(n){return Ix(n)||Vx(n)||n===95}function n0(n){return $o(n)||Rt(n)||n===45}function Gx(n){return et(n,0,8)||n===11||et(n,14,31)||n===127}function Io(n){return n===10}function Qn(n){return Io(n)||n===9||n===32}const Kx=1114111;class Jh extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function Yx(n){const e=[];for(let i=0;i=e.length?-1:e[V]},u=function(V){if(V===void 0&&(V=1),V>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+V)},f=function(V){return V===void 0&&(V=1),i+=V,l=o(i),!0},h=function(){return i-=1,!0},g=function(V){return V===void 0&&(V=l),V===-1},y=function(){if(m(),f(),Qn(l)){for(;Qn(u());)f();return new ic}else{if(l===34)return E();if(l===35)if(n0(u())||N(u(1),u(2))){const V=new vb("");return $(u(1),u(2),u(3))&&(V.type="id"),V.value=Q(),V}else return new dt(l);else return l===36?u()===61?(f(),new Jx):new dt(l):l===39?E():l===40?new mb:l===41?new Ph:l===42?u()===61?(f(),new Px):new dt(l):l===43?K()?(h(),w()):new dt(l):l===44?new hb:l===45?K()?(h(),w()):u(1)===45&&u(2)===62?(f(2),new cb):I()?(h(),v()):new dt(l):l===46?K()?(h(),w()):new dt(l):l===58?new ub:l===59?new fb:l===60?u(1)===33&&u(2)===45&&u(3)===45?(f(3),new ob):new dt(l):l===64?$(u(1),u(2),u(3))?new bb(Q()):new dt(l):l===91?new gb:l===92?C()?(h(),v()):new dt(l):l===93?new kh:l===94?u()===61?(f(),new Qx):new dt(l):l===123?new db:l===124?u()===61?(f(),new Fx):u()===124?(f(),new yb):new dt(l):l===125?new pb:l===126?u()===61?(f(),new Xx):new dt(l):Rt(l)?(h(),w()):$o(l)?(h(),v()):g()?new Go:new dt(l)}},m=function(){for(;u(1)===47&&u(2)===42;)for(f(2);;)if(f(),l===42&&u()===47){f();break}else if(g())return},w=function(){const V=q();if($(u(1),u(2),u(3))){const J=new Zx;return J.value=V.value,J.repr=V.repr,J.type=V.type,J.unit=Q(),J}else if(u()===37){f();const J=new xb;return J.value=V.value,J.repr=V.repr,J}else{const J=new wb;return J.value=V.value,J.repr=V.repr,J.type=V.type,J}},v=function(){const V=Q();if(V.toLowerCase()==="url"&&u()===40){for(f();Qn(u(1))&&Qn(u(2));)f();return u()===34||u()===39?new Ya(V):Qn(u())&&(u(2)===34||u(2)===39)?new Ya(V):x()}else return u()===40?(f(),new Ya(V)):new Zh(V)},E=function(V){V===void 0&&(V=l);let J="";for(;f();){if(l===V||g())return new Wh(J);if(Io(l))return h(),new lb;l===92?g(u())||(Io(u())?f():J+=st(_())):J+=st(l)}throw new Error("Internal error")},x=function(){const V=new Sb("");for(;Qn(u());)f();if(g(u()))return V;for(;f();){if(l===41||g())return V;if(Qn(l)){for(;Qn(u());)f();return u()===41||g(u())?(f(),V):(ne(),new Vo)}else{if(l===34||l===39||l===40||Gx(l))return ne(),new Vo;if(l===92)if(C())V.value+=st(_());else return ne(),new Vo;else V.value+=st(l)}}throw new Error("Internal error")},_=function(){if(f(),t0(l)){const V=[l];for(let W=0;W<5&&t0(u());W++)f(),V.push(l);Qn(u())&&f();let J=parseInt(V.map(function(W){return String.fromCharCode(W)}).join(""),16);return J>Kx&&(J=65533),J}else return g()?65533:l},N=function(V,J){return!(V!==92||Io(J))},C=function(){return N(l,u())},$=function(V,J,W){return V===45?$o(J)||J===45||N(J,W):$o(V)?!0:V===92?N(V,J):!1},I=function(){return $(l,u(1),u(2))},D=function(V,J,W){return V===43||V===45?!!(Rt(J)||J===46&&Rt(W)):V===46?!!Rt(J):!!Rt(V)},K=function(){return D(l,u(1),u(2))},Q=function(){let V="";for(;f();)if(n0(l))V+=st(l);else if(C())V+=st(_());else return h(),V;throw new Error("Internal parse error")},q=function(){let V="",J="integer";for((u()===43||u()===45)&&(f(),V+=st(l));Rt(u());)f(),V+=st(l);if(u(1)===46&&Rt(u(2)))for(f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);const W=u(1),Ae=u(2),B=u(3);if((W===69||W===101)&&Rt(Ae))for(f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);else if((W===69||W===101)&&(Ae===43||Ae===45)&&Rt(B))for(f(),V+=st(l),f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);const P=j(V);return{type:J,value:P,repr:V}},j=function(V){return+V},ne=function(){for(;f();){if(l===41||g())return;C()&&_()}};let le=0;for(;!g(u());)if(r.push(y()),le++,le>e.length*2)throw new Error("I'm infinite-looping!");return r}class Qe{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class lb extends Qe{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Vo extends Qe{constructor(){super(...arguments),this.tokenType="BADURL"}}class ic extends Qe{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class ob extends Qe{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return""}}class ub extends Qe{constructor(){super(...arguments),this.tokenType=":"}}class fb extends Qe{constructor(){super(...arguments),this.tokenType=";"}}class hb extends Qe{constructor(){super(...arguments),this.tokenType=","}}class Er extends Qe{constructor(){super(...arguments),this.value="",this.mirror=""}}class db extends Er{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class pb extends Er{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class gb extends Er{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class kh extends Er{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class mb extends Er{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Ph extends Er{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class Xx extends Qe{constructor(){super(...arguments),this.tokenType="~="}}class Fx extends Qe{constructor(){super(...arguments),this.tokenType="|="}}class Qx extends Qe{constructor(){super(...arguments),this.tokenType="^="}}class Jx extends Qe{constructor(){super(...arguments),this.tokenType="$="}}class Px extends Qe{constructor(){super(...arguments),this.tokenType="*="}}class yb extends Qe{constructor(){super(...arguments),this.tokenType="||"}}class Go extends Qe{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class dt extends Qe{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=st(e)}toString(){return"DELIM("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value==="\\"?`\\ -`:this.value}}class Ar extends Qe{constructor(){super(...arguments),this.value=""}ASCIIMatch(e){return this.value.toLowerCase()===e.toLowerCase()}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}}class Zh extends Ar{constructor(e){super(),this.tokenType="IDENT",this.value=e}toString(){return"IDENT("+this.value+")"}toSource(){return ol(this.value)}}class Ya extends Ar{constructor(e){super(),this.tokenType="FUNCTION",this.value=e,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return ol(this.value)+"("}}class bb extends Ar{constructor(e){super(),this.tokenType="AT-KEYWORD",this.value=e}toString(){return"AT("+this.value+")"}toSource(){return"@"+ol(this.value)}}class vb extends Ar{constructor(e){super(),this.tokenType="HASH",this.value=e,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e}toSource(){return this.type==="id"?"#"+ol(this.value):"#"+Wx(this.value)}}class Wh extends Ar{constructor(e){super(),this.tokenType="STRING",this.value=e}toString(){return'"'+_b(this.value)+'"'}}class Sb extends Ar{constructor(e){super(),this.tokenType="URL",this.value=e}toString(){return"URL("+this.value+")"}toSource(){return'url("'+_b(this.value)+'")'}}class wb extends Qe{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const e=super.toJSON();return e.value=this.value,e.type=this.type,e.repr=this.repr,e}toSource(){return this.repr}}class xb extends Qe{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.repr=this.repr,e}toSource(){return this.repr+"%"}}class Zx extends Qe{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e.repr=this.repr,e.unit=this.unit,e}toSource(){const e=this.repr;let i=ol(this.unit);return i[0].toLowerCase()==="e"&&(i[1]==="-"||et(i.charCodeAt(1),48,57))&&(i="\\65 "+i.slice(1,i.length)),e+i}}function ol(n){n=""+n;let e="";const i=n.charCodeAt(0);for(let r=0;r=128||l===45||l===95||et(l,48,57)||et(l,65,90)||et(l,97,122)?e+=n[r]:e+="\\"+n[r]}return e}function Wx(n){n=""+n;let e="";for(let i=0;i=128||r===45||r===95||et(r,48,57)||et(r,65,90)||et(r,97,122)?e+=n[i]:e+="\\"+r.toString(16)+" "}return e}function _b(n){n=""+n;let e="";for(let i=0;ij instanceof bb||j instanceof lb||j instanceof Vo||j instanceof yb||j instanceof ob||j instanceof cb||j instanceof fb||j instanceof db||j instanceof pb||j instanceof Sb||j instanceof xb);if(r)throw new Dt(`Unsupported token "${r.toSource()}" while parsing css selector "${n}". Did you mean to CSS.escape it?`);let l=0;const o=new Set;function u(){return new Dt(`Unexpected token "${i[l].toSource()}" while parsing css selector "${n}". Did you mean to CSS.escape it?`)}function f(){for(;i[l]instanceof ic;)l++}function h(j=l){return i[j]instanceof Zh}function g(j=l){return i[j]instanceof Wh}function y(j=l){return i[j]instanceof wb}function m(j=l){return i[j]instanceof hb}function w(j=l){return i[j]instanceof mb}function v(j=l){return i[j]instanceof Ph}function E(j=l){return i[j]instanceof Ya}function x(j=l){return i[j]instanceof dt&&i[j].value==="*"}function _(j=l){return i[j]instanceof Go}function N(j=l){return i[j]instanceof dt&&[">","+","~"].includes(i[j].value)}function C(j=l){return m(j)||v(j)||_(j)||N(j)||i[j]instanceof ic}function $(){const j=[I()];for(;f(),!!m();)l++,j.push(I());return j}function I(){return f(),y()||g()?i[l++].value:D()}function D(){const j={simples:[]};for(f(),N()?j.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):j.simples.push({selector:K(),combinator:""});;){if(f(),N())j.simples[j.simples.length-1].combinator=i[l++].value,f();else if(C())break;j.simples.push({combinator:"",selector:K()})}return j}function K(){let j="";const ne=[];for(;!C();)if(h()||x())j+=i[l++].toSource();else if(i[l]instanceof vb)j+=i[l++].toSource();else if(i[l]instanceof dt&&i[l].value===".")if(l++,h())j+="."+i[l++].toSource();else throw u();else if(i[l]instanceof ub)if(l++,h())if(!e.has(i[l].value.toLowerCase()))j+=":"+i[l++].toSource();else{const le=i[l++].value.toLowerCase();ne.push({name:le,args:[]}),o.add(le)}else if(E()){const le=i[l++].value.toLowerCase();if(e.has(le)?(ne.push({name:le,args:$()}),o.add(le)):j+=`:${le}(${Q()})`,f(),!v())throw u();l++}else throw u();else if(i[l]instanceof gb){for(j+="[",l++;!(i[l]instanceof kh)&&!_();)j+=i[l++].toSource();if(!(i[l]instanceof kh))throw u();j+="]",l++}else throw u();if(!j&&!ne.length)throw u();return{css:j||void 0,functions:ne}}function Q(){let j="",ne=1;for(;!_()&&((w()||E())&&ne++,v()&&ne--,!!ne);)j+=i[l++].toSource();return j}const q=$();if(!_())throw u();if(q.some(j=>typeof j!="object"||!("simples"in j)))throw new Dt(`Error while parsing css selector "${n}". Did you mean to CSS.escape it?`);return{selector:q,names:Array.from(o)}}const Mh=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),t_=new Set(["left-of","right-of","above","below","near"]),Tb=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function cl(n){const e=s_(n),i=[];for(const r of e.parts){if(r.name==="css"||r.name==="css:light"){r.name==="css:light"&&(r.body=":light("+r.body+")");const l=e_(r.body,Tb);i.push({name:"css",body:l.selector,source:r.body});continue}if(Mh.has(r.name)){let l,o;try{const g=JSON.parse("["+r.body+"]");if(!Array.isArray(g)||g.length<1||g.length>2||typeof g[0]!="string")throw new Dt(`Malformed selector: ${r.name}=`+r.body);if(l=g[0],g.length===2){if(typeof g[1]!="number"||!t_.has(r.name))throw new Dt(`Malformed selector: ${r.name}=`+r.body);o=g[1]}}catch{throw new Dt(`Malformed selector: ${r.name}=`+r.body)}const u={name:r.name,source:r.body,body:{parsed:cl(l),distance:o}},f=[...u.body.parsed.parts].reverse().find(g=>g.name==="internal:control"&&g.body==="enter-frame"),h=f?u.body.parsed.parts.indexOf(f):-1;h!==-1&&n_(u.body.parsed.parts.slice(0,h+1),i.slice(0,h+1))&&u.body.parsed.parts.splice(0,h+1),i.push(u);continue}i.push({...r,source:r.body})}if(Mh.has(i[0].name))throw new Dt(`"${i[0].name}" selector cannot be first`);return{capture:e.capture,parts:i}}function n_(n,e){return An({parts:n})===An({parts:e})}function An(n,e){return typeof n=="string"?n:n.parts.map((i,r)=>{let l=!0;!e&&r!==n.capture&&(i.name==="css"||i.name==="xpath"&&i.source.startsWith("//")||i.source.startsWith(".."))&&(l=!1);const o=l?i.name+"=":"";return`${r===n.capture?"*":""}${o}${i.source}`}).join(" >> ")}function i_(n,e){const i=(r,l)=>{for(const o of r.parts)e(o,l),Mh.has(o.name)&&i(o.body.parsed,!0)};i(n,!1)}function s_(n){let e=0,i,r=0;const l={parts:[]},o=()=>{const f=n.substring(r,e).trim(),h=f.indexOf("=");let g,y;h!==-1&&f.substring(0,h).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(g=f.substring(0,h).trim(),y=f.substring(h+1)):f.length>1&&f[0]==='"'&&f[f.length-1]==='"'||f.length>1&&f[0]==="'"&&f[f.length-1]==="'"?(g="text",y=f):/^\(*\/\//.test(f)||f.startsWith("..")?(g="xpath",y=f):(g="css",y=f);let m=!1;if(g[0]==="*"&&(m=!0,g=g.substring(1)),l.parts.push({name:g,body:y}),m){if(l.capture!==void 0)throw new Dt("Only one of the selectors can capture using * modifier");l.capture=l.parts.length-1}};if(!n.includes(">>"))return e=n.length,o(),l;const u=()=>{const h=n.substring(r,e).match(/^\s*text\s*=(.*)$/);return!!h&&!!h[1]};for(;e"&&n[e+1]===">"?(o(),e+=2,r=e):e++}return o(),l}function ds(n,e){let i=0,r=n.length===0;const l=()=>n[i]||"",o=()=>{const _=l();return++i,r=i>=n.length,_},u=_=>{throw r?new Dt(`Unexpected end of selector while parsing selector \`${n}\``):new Dt(`Error while parsing selector \`${n}\` - unexpected symbol "${l()}" at position ${i}`+(_?" during "+_:""))};function f(){for(;!r&&/\s/.test(l());)o()}function h(_){return _>="€"||_>="0"&&_<="9"||_>="A"&&_<="Z"||_>="a"&&_<="z"||_>="0"&&_<="9"||_==="_"||_==="-"}function g(){let _="";for(f();!r&&h(l());)_+=o();return _}function y(_){let N=o();for(N!==_&&u("parsing quoted string");!r&&l()!==_;)l()==="\\"&&o(),N+=o();return l()!==_&&u("parsing quoted string"),N+=o(),N}function m(){o()!=="/"&&u("parsing regular expression");let _="",N=!1;for(;!r;){if(l()==="\\")_+=o(),r&&u("parsing regular expression");else if(N&&l()==="]")N=!1;else if(!N&&l()==="[")N=!0;else if(!N&&l()==="/")break;_+=o()}o()!=="/"&&u("parsing regular expression");let C="";for(;!r&&l().match(/[dgimsuy]/);)C+=o();try{return new RegExp(_,C)}catch($){throw new Dt(`Error while parsing selector \`${n}\`: ${$.message}`)}}function w(){let _="";return f(),l()==="'"||l()==='"'?_=y(l()).slice(1,-1):_=g(),_||u("parsing property path"),_}function v(){f();let _="";return r||(_+=o()),!r&&_!=="="&&(_+=o()),["=","*=","^=","$=","|=","~="].includes(_)||u("parsing operator"),_}function E(){o();const _=[];for(_.push(w()),f();l()===".";)o(),_.push(w()),f();if(l()==="]")return o(),{name:_.join("."),jsonPath:_,op:"",value:null,caseSensitive:!1};const N=v();let C,$=!0;if(f(),l()==="/"){if(N!=="=")throw new Dt(`Error while parsing selector \`${n}\` - cannot use ${N} in attribute with regular expression`);C=m()}else if(l()==="'"||l()==='"')C=y(l()).slice(1,-1),f(),l()==="i"||l()==="I"?($=!1,o()):(l()==="s"||l()==="S")&&($=!0,o());else{for(C="";!r&&(h(l())||l()==="+"||l()===".");)C+=o();C==="true"?C=!0:C==="false"?C=!1:e||(C=+C,Number.isNaN(C)&&u("parsing attribute value"))}if(f(),l()!=="]"&&u("parsing attribute value"),o(),N!=="="&&typeof C!="string")throw new Dt(`Error while parsing selector \`${n}\` - cannot use ${N} in attribute with non-string matching value - ${C}`);return{name:_.join("."),jsonPath:_,op:N,value:C,caseSensitive:$}}const x={name:"",attributes:[]};for(x.name=g(),f();l()==="[";)x.attributes.push(E()),f();if(r||u(void 0),!x.name&&!x.attributes.length)throw new Dt(`Error while parsing selector \`${n}\` - selector cannot be empty`);return x}function gc(n,e="'"){const i=JSON.stringify(n),r=i.substring(1,i.length-1).replace(/\\"/g,'"');if(e==="'")return e+r.replace(/[']/g,"\\'")+e;if(e==='"')return e+r.replace(/["]/g,'\\"')+e;if(e==="`")return e+r.replace(/[`]/g,"\\`")+e;throw new Error("Invalid escape char")}function sc(n){return n.charAt(0).toUpperCase()+n.substring(1)}function Eb(n){return n.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function fr(n){return`"${n.replace(/["\\]/g,e=>"\\"+e)}"`}let ss;function r_(){ss=new Map}function At(n){let e=ss==null?void 0:ss.get(n);return e===void 0&&(e=n.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),ss==null||ss.set(n,e)),e}function mc(n){return n.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function Ab(n){return n.unicode||n.unicodeSets?String(n):String(n).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function zt(n,e){return typeof n!="string"?Ab(n):`${JSON.stringify(n)}${e?"s":"i"}`}function Tt(n,e){return typeof n!="string"?Ab(n):`"${n.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${e?"s":"i"}`}function a_(n,e,i=""){if(n.length<=e)return n;const r=[...n];return r.length>e?r.slice(0,e-i.length).join("")+i:r.join("")}function i0(n,e){return a_(n,e,"…")}function rc(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function l_(n,e){const i=n.length,r=e.length;let l=0,o=0;const u=Array(i+1).fill(null).map(()=>Array(r+1).fill(0));for(let f=1;f<=i;f++)for(let h=1;h<=r;h++)n[f-1]===e[h-1]&&(u[f][h]=u[f-1][h-1]+1,u[f][h]>l&&(l=u[f][h],o=f));return n.slice(o-l,o)}function o_(n,e){try{const i=cl(e),r=c_(i);return r||os(new Cb[n],i,!1,1)[0]}catch{return e}}function c_(n){const e=n.parts[n.parts.length-1];if((e==null?void 0:e.name)==="internal:describe"){const i=JSON.parse(e.body);if(typeof i=="string")return i}}function Oi(n,e,i=!1){return Nb(n,e,i,1)[0]}function Nb(n,e,i=!1,r=20,l){try{return os(new Cb[n](l),cl(e),i,r)}catch{return[e]}}function os(n,e,i=!1,r=20){const l=[...e.parts],o=[];let u=i?"frame-locator":"page";for(let f=0;fn.generateLocator(g,"has",x)));continue}if(h.name==="internal:has-not"){const E=os(n,h.body.parsed,!1,r);o.push(E.map(x=>n.generateLocator(g,"hasNot",x)));continue}if(h.name==="internal:and"){const E=os(n,h.body.parsed,!1,r);o.push(E.map(x=>n.generateLocator(g,"and",x)));continue}if(h.name==="internal:or"){const E=os(n,h.body.parsed,!1,r);o.push(E.map(x=>n.generateLocator(g,"or",x)));continue}if(h.name==="internal:chain"){const E=os(n,h.body.parsed,!1,r);o.push(E.map(x=>n.generateLocator(g,"chain",x)));continue}if(h.name==="internal:label"){const{exact:E,text:x}=La(h.body);o.push([n.generateLocator(g,"label",x,{exact:E})]);continue}if(h.name==="internal:role"){const E=ds(h.body,!0),x={attrs:[]};for(const _ of E.attributes)_.name==="name"?(x.exact=_.caseSensitive,x.name=_.value):(_.name==="level"&&typeof _.value=="string"&&(_.value=+_.value),x.attrs.push({name:_.name==="include-hidden"?"includeHidden":_.name,value:_.value}));o.push([n.generateLocator(g,"role",E.name,x)]);continue}if(h.name==="internal:testid"){const E=ds(h.body,!0),{value:x}=E.attributes[0];o.push([n.generateLocator(g,"test-id",x)]);continue}if(h.name==="internal:attr"){const E=ds(h.body,!0),{name:x,value:_,caseSensitive:N}=E.attributes[0],C=_,$=!!N;if(x==="placeholder"){o.push([n.generateLocator(g,"placeholder",C,{exact:$})]);continue}if(x==="alt"){o.push([n.generateLocator(g,"alt",C,{exact:$})]);continue}if(x==="title"){o.push([n.generateLocator(g,"title",C,{exact:$})]);continue}}if(h.name==="internal:control"&&h.body==="enter-frame"){const E=o[o.length-1],x=l[f-1],_=E.map(N=>n.chainLocators([N,n.generateLocator(g,"frame","")]));["xpath","css"].includes(x.name)&&_.push(n.generateLocator(g,"frame-locator",An({parts:[x]})),n.generateLocator(g,"frame-locator",An({parts:[x]},!0))),E.splice(0,E.length,..._),u="frame-locator";continue}const y=l[f+1],m=An({parts:[h]}),w=n.generateLocator(g,"default",m);if(y&&["internal:has-text","internal:has-not-text"].includes(y.name)){const{exact:E,text:x}=La(y.body);if(!E){const _=n.generateLocator("locator",y.name==="internal:has-text"?"has-text":"has-not-text",x,{exact:E}),N={};y.name==="internal:has-text"?N.hasText=x:N.hasNotText=x;const C=n.generateLocator(g,"default",m,N);o.push([n.chainLocators([w,_]),C]),f++;continue}}let v;if(["xpath","css"].includes(h.name)){const E=An({parts:[h]},!0);v=n.generateLocator(g,"default",E)}o.push([w,v].filter(Boolean))}return u_(n,o,r)}function u_(n,e,i){const r=e.map(()=>""),l=[],o=u=>{if(u===e.length)return l.push(n.chainLocators(r)),l.lengthJSON.parse(r));for(let r=0;ry_(e,f,m.expandedItems,x||0,u),[e,f,m,x,u]),N=U.useRef(null),[C,$]=U.useState(),[I,D]=U.useState(!1);U.useEffect(()=>{y==null||y(C)},[y,C]),U.useEffect(()=>{const q=N.current;if(!q)return;const j=()=>{s0.set(n,q.scrollTop)};return q.addEventListener("scroll",j,{passive:!0}),()=>q.removeEventListener("scroll",j)},[n]),U.useEffect(()=>{N.current&&(N.current.scrollTop=s0.get(n)||0)},[n]);const K=U.useCallback(q=>{const{expanded:j}=_.get(q);if(j){for(let ne=f;ne;ne=ne.parent)if(ne===q){g==null||g(q);break}m.expandedItems.set(q.id,!1)}else m.expandedItems.set(q.id,!0);w({...m})},[_,f,g,m,w]),Q=U.useCallback(q=>{const{expanded:j}=_.get(q),ne=[q];for(;ne.length;){const le=ne.pop();ne.push(...le.children),m.expandedItems.set(le.id,!j)}w({...m})},[_,m,w]);return S.jsx("div",{className:Fe("tree-view vbox",n+"-tree-view"),"data-testid":E||n+"-tree",children:S.jsxs("div",{className:Fe("tree-view-content"),role:_.size>0?"tree":void 0,tabIndex:0,onKeyDown:q=>{if(f&&q.key==="Enter"){h==null||h(f);return}if(q.key!=="ArrowDown"&&q.key!=="ArrowUp"&&q.key!=="ArrowLeft"&&q.key!=="ArrowRight")return;if(q.stopPropagation(),q.preventDefault(),f&&q.key==="ArrowLeft"){const{expanded:ne,parent:le}=_.get(f);ne?(m.expandedItems.set(f.id,!1),w({...m})):le&&(g==null||g(le));return}if(f&&q.key==="ArrowRight"){f.children.length&&(m.expandedItems.set(f.id,!0),w({...m}));return}let j=f;if(q.key==="ArrowDown"&&(f?j=_.get(f).next:_.size&&(j=[..._.keys()][0])),q.key==="ArrowUp"){if(f)j=_.get(f).prev;else if(_.size){const ne=[..._.keys()];j=ne[ne.length-1]}}y==null||y(void 0),j&&(D(!0),g==null||g(j)),$(void 0)},ref:N,children:[v&&_.size===0&&S.jsx("div",{className:"tree-view-empty",children:v}),e.children.map(q=>_.get(q)&&S.jsx(kb,{item:q,treeItems:_,selectedItem:f,onSelected:g,onAccepted:h,isError:o,toggleExpanded:K,toggleSubtree:Q,highlightedItem:C,setHighlightedItem:$,render:i,icon:l,title:r,isKeyboardNavigation:I,setIsKeyboardNavigation:D},q.id))]})})}function kb({item:n,treeItems:e,selectedItem:i,onSelected:r,highlightedItem:l,setHighlightedItem:o,isError:u,onAccepted:f,toggleExpanded:h,toggleSubtree:g,render:y,title:m,icon:w,isKeyboardNavigation:v,setIsKeyboardNavigation:E}){const x=U.useId(),_=U.useRef(null);U.useEffect(()=>{i===n&&v&&_.current&&(J0(_.current),E(!1))},[n,i,v,E]);const N=e.get(n),C=N.depth,$=N.expanded;let I="codicon-blank";typeof $=="boolean"&&(I=$?"codicon-chevron-down":"codicon-chevron-right");const D=y(n),K=$&&n.children.length?n.children:[],Q=m==null?void 0:m(n),q=(w==null?void 0:w(n))||"codicon-blank";return S.jsxs("div",{ref:_,role:"treeitem","aria-selected":n===i,"aria-expanded":$,"aria-controls":x,title:Q,className:"vbox",style:{flex:"none"},children:[S.jsxs("div",{onDoubleClick:()=>f==null?void 0:f(n),className:Fe("tree-view-entry",i===n&&"selected",l===n&&"highlighted",(u==null?void 0:u(n))&&"error"),onClick:()=>r==null?void 0:r(n),onMouseEnter:()=>o(n),onMouseLeave:()=>o(void 0),children:[C?new Array(C).fill(0).map((j,ne)=>S.jsx("div",{className:"tree-view-indent"},"indent-"+ne)):void 0,S.jsx("div",{"aria-hidden":"true",className:"codicon "+I,style:{minWidth:16,marginRight:4},onDoubleClick:j=>{j.preventDefault(),j.stopPropagation()},onClick:j=>{j.stopPropagation(),j.preventDefault(),j.altKey?g(n):h(n)}}),w&&S.jsx("div",{className:"codicon "+q,style:{minWidth:16,marginRight:4},"aria-label":"["+q.replace("codicon","icon")+"]"}),typeof D=="string"?S.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:D}):D]}),!!K.length&&S.jsx("div",{id:x,role:"group",children:K.map(j=>e.get(j)&&S.jsx(kb,{item:j,treeItems:e,selectedItem:i,onSelected:r,onAccepted:f,isError:u,toggleExpanded:h,toggleSubtree:g,highlightedItem:l,setHighlightedItem:o,render:y,title:m,icon:w,isKeyboardNavigation:v,setIsKeyboardNavigation:E},j.id))})]})}function y_(n,e,i,r,l=()=>!0){if(!l(n))return new Map;const o=new Map,u=new Set;for(let g=e==null?void 0:e.parent;g;g=g.parent)u.add(g.id);let f=null;const h=(g,y)=>{for(const m of g.children){if(!l(m))continue;const w=u.has(m.id)||i.get(m.id),v=r>y&&o.size<25&&w!==!1,E=m.children.length?w??v:void 0,x={depth:y,expanded:E,parent:n===g?null:g,next:null,prev:f};f&&(o.get(f).next=m),f=m,o.set(m,x),E&&h(m,y+1)}};return h(n,0),o}const Ht=U.forwardRef(function({children:e,title:i="",icon:r,disabled:l=!1,toggled:o=!1,onClick:u=()=>{},style:f,testId:h,className:g,ariaLabel:y},m){return S.jsxs("button",{ref:m,className:Fe(g,"toolbar-button",r,o&&"toggled"),onMouseDown:r0,onClick:u,onDoubleClick:r0,title:i,disabled:!!l,style:f,"data-testid":h,"aria-label":y||i,children:[r&&S.jsx("span",{className:`codicon codicon-${r}`,style:e?{marginRight:5}:{}}),e]})}),r0=n=>{n.stopPropagation(),n.preventDefault()};function Mb(n){return n==="scheduled"?"codicon-clock":n==="running"?"codicon-loading":n==="failed"?"codicon-error":n==="passed"?"codicon-check":n==="skipped"?"codicon-circle-slash":"codicon-circle-outline"}function b_(n){return n==="scheduled"?"Pending":n==="running"?"Running":n==="failed"?"Failed":n==="passed"?"Passed":n==="skipped"?"Skipped":"Did not run"}const v_=m_,S_=({actions:n,selectedAction:e,selectedTime:i,setSelectedTime:r,treeState:l,setTreeState:o,sdkLanguage:u,onSelected:f,onHighlighted:h,revealConsole:g,revealActionAttachment:y,isLive:m})=>{const{rootItem:w,itemMap:v}=U.useMemo(()=>sb(n),[n]),{selectedItem:E}=U.useMemo(()=>({selectedItem:e?v.get(e.callId):void 0}),[v,e]),x=U.useCallback(D=>{var K;return!!((K=D.action.error)!=null&&K.message)},[]),_=U.useCallback(D=>r({minimum:D.action.startTime,maximum:D.action.endTime}),[r]),N=U.useCallback(D=>{var Q;const K=!!y&&!!((Q=D.action.attachments)!=null&&Q.length);return ed(D.action,{sdkLanguage:u,revealConsole:g,revealActionAttachment:()=>y==null?void 0:y(D.action.callId),isLive:m,showDuration:!0,showBadges:!0,showAttachments:K})},[m,g,y,u]),C=U.useCallback(D=>!i||!D.action||D.action.startTime<=i.maximum&&D.action.endTime>=i.minimum,[i]),$=U.useCallback(D=>{f==null||f(D.action)},[f]),I=U.useCallback(D=>{h==null||h(D==null?void 0:D.action)},[h]);return S.jsxs("div",{className:"vbox",children:[i&&S.jsxs("div",{className:"action-list-show-all",onClick:()=>r(void 0),children:[S.jsx("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),S.jsx(v_,{name:"actions",rootItem:w,treeState:l,setTreeState:o,selectedItem:E,onSelected:$,onHighlighted:I,onAccepted:_,isError:x,isVisible:C,render:N})]})},ed=(n,e)=>{var _;const{sdkLanguage:i,revealConsole:r,revealActionAttachment:l,isLive:o,showDuration:u,showBadges:f,showAttachments:h}=e,{errors:g,warnings:y}=Dx(n),m=n.params.selector?o_(i||"javascript",n.params.selector):void 0,w=n.class==="Test"&&n.method==="test.step"&&((_=n.annotations)==null?void 0:_.some(N=>N.type==="skip"));let v="";n.endTime?v=Et(n.endTime-n.startTime):n.error?v="Timed out":o||(v="-");const{elements:E,title:x}=Ob(n);return S.jsxs("div",{className:"action-title vbox",children:[S.jsxs("div",{className:"hbox",children:[S.jsx("span",{className:"action-title-method",title:x,children:E}),(u||f||h||w)&&S.jsx("div",{className:"spacer"}),h&&S.jsx(Ht,{icon:"attach",title:"Open Attachment",onClick:()=>l==null?void 0:l()}),u&&!w&&S.jsx("div",{className:"action-duration",children:v||S.jsx("span",{className:"codicon codicon-loading"})}),w&&S.jsx("span",{className:Fe("action-skipped","codicon",Mb("skipped")),title:"skipped"}),f&&S.jsxs("div",{className:"action-icons",onClick:()=>r==null?void 0:r(),children:[!!g&&S.jsxs("div",{className:"action-icon",children:[S.jsx("span",{className:"codicon codicon-error"}),S.jsx("span",{className:"action-icon-value",children:g})]}),!!y&&S.jsxs("div",{className:"action-icon",children:[S.jsx("span",{className:"codicon codicon-warning"}),S.jsx("span",{className:"action-icon-value",children:y})]})]})]}),m&&S.jsx("div",{className:"action-title-selector",title:m,children:m})]})};function Ob(n){var f;let e=n.title??((f=Qh.get(n.class+"."+n.method))==null?void 0:f.title)??n.method;e=e.replace(/\n/g," ");const i=[],r=[];let l=0;const o=/\{([^}]+)\}/g;let u;for(;(u=o.exec(e))!==null;){const[h,g]=u,y=e.slice(l,u.index);i.push(y),r.push(y);const m=eb(n.params,g);m===void 0?(i.push(h),r.push(h)):u.index===0?(i.push(m),r.push(m)):(i.push(S.jsx("span",{className:"action-title-param",children:m},i.length)),r.push(m)),l=u.index+h.length}if(l{const[i,r]=U.useState("copy"),l=U.useCallback(()=>{(typeof n=="function"?n():Promise.resolve(n)).then(u=>{navigator.clipboard.writeText(u).then(()=>{r("check"),setTimeout(()=>{r("copy")},3e3)},()=>{r("close")})},()=>{r("close")})},[n]);return S.jsx(Ht,{title:e||"Copy",icon:i,onClick:l})},Ko=({value:n,description:e,copiedDescription:i=e,style:r})=>{const[l,o]=U.useState(!1),u=U.useCallback(async()=>{const f=typeof n=="function"?await n():n;await navigator.clipboard.writeText(f),o(!0),setTimeout(()=>o(!1),3e3)},[n]);return S.jsx(Ht,{style:r,title:e,onClick:u,className:"copy-to-clipboard-text-button",children:l?i:e})},ms=({text:n})=>S.jsx("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:n}),w_=({action:n,startTimeOffset:e,sdkLanguage:i})=>{const r=U.useMemo(()=>Object.keys((n==null?void 0:n.params)??{}).filter(f=>f!=="info"),[n]);if(!n)return S.jsx(ms,{text:"No action selected"});const l=n.startTime-e,o=Et(l),{title:u}=Ob(n);return S.jsxs("div",{className:"call-tab",children:[S.jsx("div",{className:"call-line",children:u}),S.jsx("div",{className:"call-section",children:"Time"}),Oo({name:"start",type:"literal",text:o}),Oo({name:"duration",type:"literal",text:x_(n)}),!!r.length&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"call-section",children:"Parameters"}),r.map(f=>Oo(a0(n,f,n.params[f],i)))]}),!!n.result&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"call-section",children:"Return value"}),Object.keys(n.result).map(f=>Oo(a0(n,f,n.result[f],i)))]})]})};function x_(n){return n.endTime?Et(n.endTime-n.startTime):n.error?"Timed Out":"Running"}function Oo(n){let e=n.text.replace(/\n/g,"↵");return n.type==="string"&&(e=`"${e}"`),S.jsxs("div",{className:"call-line",children:[n.name,":",S.jsx("span",{className:Fe("call-value",n.type),title:n.text,children:e}),["literal","string","number","object","locator"].includes(n.type)&&S.jsx(td,{value:n.text})]},n.name)}function a0(n,e,i,r){const l=n.method.includes("eval")||n.method==="waitForFunction";if(e==="files")return{text:"",type:"string",name:e};if((e==="eventInit"||e==="expectedValue"||e==="arg"&&l)&&(i=ac(i.value,new Array(10).fill({handle:""}))),(e==="value"&&l||e==="received"&&n.method==="expect")&&(i=ac(i,new Array(10).fill({handle:""}))),e==="selector")return{text:Oi(r||"javascript",n.params.selector),type:"locator",name:"locator"};const o=typeof i;return o!=="object"||i===null?{text:String(i),type:o,name:e}:i.guid?{text:"",type:"handle",name:e}:{text:JSON.stringify(i).slice(0,1e3),type:"object",name:e}}function ac(n,e){if(n.n!==void 0)return n.n;if(n.s!==void 0)return n.s;if(n.b!==void 0)return n.b;if(n.v!==void 0){if(n.v==="undefined")return;if(n.v==="null")return null;if(n.v==="NaN")return NaN;if(n.v==="Infinity")return 1/0;if(n.v==="-Infinity")return-1/0;if(n.v==="-0")return-0}if(n.d!==void 0)return new Date(n.d);if(n.r!==void 0)return new RegExp(n.r.p,n.r.f);if(n.a!==void 0)return n.a.map(i=>ac(i,e));if(n.o!==void 0){const i={};for(const{k:r,v:l}of n.o)i[r]=ac(l,e);return i}return n.h!==void 0?e===void 0?"":e[n.h]:""}const l0=new Map;function yc({name:n,items:e=[],id:i,render:r,icon:l,isError:o,isWarning:u,isInfo:f,selectedItem:h,onAccepted:g,onSelected:y,onHighlighted:m,onIconClicked:w,noItemsMessage:v,dataTestId:E,notSelectable:x,ariaLabel:_}){const N=U.useRef(null),[C,$]=U.useState();return U.useEffect(()=>{m==null||m(C)},[m,C]),U.useEffect(()=>{const I=N.current;if(!I)return;const D=()=>{l0.set(n,I.scrollTop)};return I.addEventListener("scroll",D,{passive:!0}),()=>I.removeEventListener("scroll",D)},[n]),U.useEffect(()=>{N.current&&(N.current.scrollTop=l0.get(n)||0)},[n]),S.jsx("div",{className:Fe("list-view vbox",n+"-list-view"),role:e.length>0?"list":void 0,"aria-label":_,children:S.jsxs("div",{className:Fe("list-view-content",x&&"not-selectable"),tabIndex:0,onKeyDown:I=>{var q;if(h&&I.key==="Enter"){g==null||g(h,e.indexOf(h));return}if(I.key!=="ArrowDown"&&I.key!=="ArrowUp")return;I.stopPropagation(),I.preventDefault();const D=h?e.indexOf(h):-1;let K=D;I.key==="ArrowDown"&&(D===-1?K=0:K=Math.min(D+1,e.length-1)),I.key==="ArrowUp"&&(D===-1?K=e.length-1:K=Math.max(D-1,0));const Q=(q=N.current)==null?void 0:q.children.item(K);J0(Q||void 0),m==null||m(void 0),y==null||y(e[K],K),$(void 0)},ref:N,children:[v&&e.length===0&&S.jsx("div",{className:"list-view-empty",children:v}),e.map((I,D)=>{const K=r(I,D);return S.jsxs("div",{onDoubleClick:()=>g==null?void 0:g(I,D),role:"listitem",className:Fe("list-view-entry",h===I&&"selected",!x&&C===I&&"highlighted",(o==null?void 0:o(I,D))&&"error",(u==null?void 0:u(I,D))&&"warning",(f==null?void 0:f(I,D))&&"info"),"aria-selected":h===I,onClick:()=>y==null?void 0:y(I,D),onMouseEnter:()=>$(I),onMouseLeave:()=>$(void 0),children:[l&&S.jsx("div",{className:"codicon "+(l(I,D)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:Q=>{Q.preventDefault(),Q.stopPropagation()},onClick:Q=>{Q.stopPropagation(),Q.preventDefault(),w==null||w(I,D)}}),typeof K=="string"?S.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:K}):K]},(i==null?void 0:i(I,D))||D)})]})})}const __=yc,T_=({action:n,isLive:e})=>{const i=U.useMemo(()=>{var u;if(!n||!n.log.length)return[];const r=n.log,l=n.context.wallTime-n.context.startTime,o=[];for(let f=0;f0?h=Et(n.endTime-g):e?h=Et(Date.now()-l-g):h="-"}o.push({message:r[f].message,time:h})}return o},[n,e]);return i.length?S.jsx(__,{name:"log",ariaLabel:"Log entries",items:i,render:r=>S.jsxs("div",{className:"log-list-item",children:[S.jsx("span",{className:"log-list-duration",children:r.time}),r.message]}),notSelectable:!0}):S.jsx(ms,{text:"No log entries"})};function nl(n,e){const i=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,r=[];let l,o={},u=!1,f=e==null?void 0:e.fg,h=e==null?void 0:e.bg;for(;(l=i.exec(n))!==null;){const[,,g,,y]=l;if(g){const m=+g;switch(m){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:u=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:u=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:f=o0[m-30];break;case 39:f=e==null?void 0:e.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:h=o0[m-40];break;case 49:h=e==null?void 0:e.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:f=c0[m-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:h=c0[m-100];break}}else if(y){const m={...o},w=u?h:f;w!==void 0&&(m.color=w);const v=u?f:h;v!==void 0&&(m["background-color"]=v),r.push(`${E_(y)}`)}}return r.join("")}const o0={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},c0={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function E_(n){return n.replace(/[&"<>]/g,e=>({"&":"&",'"':""","<":"<",">":">"})[e])}function A_(n){return Object.entries(n).map(([e,i])=>`${e}: ${i}`).join("; ")}const N_=({error:n})=>{const e=U.useMemo(()=>nl(n),[n]);return S.jsx("div",{className:"error-message",dangerouslySetInnerHTML:{__html:e||""}})},jb=({cursor:n,onPaneMouseMove:e,onPaneMouseUp:i,onPaneDoubleClick:r})=>(gt.useEffect(()=>{const l=document.createElement("div");return l.style.position="fixed",l.style.top="0",l.style.right="0",l.style.bottom="0",l.style.left="0",l.style.zIndex="9999",l.style.cursor=n,document.body.appendChild(l),e&&l.addEventListener("mousemove",e),i&&l.addEventListener("mouseup",i),r&&document.body.addEventListener("dblclick",r),()=>{e&&l.removeEventListener("mousemove",e),i&&l.removeEventListener("mouseup",i),r&&document.body.removeEventListener("dblclick",r),document.body.removeChild(l)}},[n,e,i,r]),S.jsx(S.Fragment,{})),C_={position:"absolute",top:0,right:0,bottom:0,left:0},Lb=({orientation:n,offsets:e,setOffsets:i,resizerColor:r,resizerWidth:l,minColumnWidth:o})=>{const u=o||0,[f,h]=gt.useState(null),[g,y]=gs(),m={position:"absolute",right:n==="horizontal"?void 0:0,bottom:n==="horizontal"?0:void 0,width:n==="horizontal"?7:void 0,height:n==="horizontal"?void 0:7,borderTopWidth:n==="horizontal"?void 0:(7-l)/2,borderRightWidth:n==="horizontal"?(7-l)/2:void 0,borderBottomWidth:n==="horizontal"?void 0:(7-l)/2,borderLeftWidth:n==="horizontal"?(7-l)/2:void 0,borderColor:"transparent",borderStyle:"solid",cursor:n==="horizontal"?"ew-resize":"ns-resize"};return S.jsxs("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:-(7-l)/2,zIndex:100,pointerEvents:"none"},ref:y,children:[!!f&&S.jsx(jb,{cursor:n==="horizontal"?"ew-resize":"ns-resize",onPaneMouseUp:()=>h(null),onPaneMouseMove:w=>{if(!w.buttons)h(null);else if(f){const v=n==="horizontal"?w.clientX-f.clientX:w.clientY-f.clientY,E=f.offset+v,x=f.index>0?e[f.index-1]:0,_=n==="horizontal"?g.width:g.height,N=Math.min(Math.max(x+u,E),_-u)-e[f.index];for(let C=f.index;CS.jsx("div",{style:{...m,top:n==="horizontal"?0:w,left:n==="horizontal"?w:0,pointerEvents:"initial"},onMouseDown:E=>h({clientX:E.clientX,clientY:E.clientY,offset:w,index:v}),children:S.jsx("div",{style:{...C_,background:r}})},v))]})};async function lh(n){const e=new Image;return n&&(e.src=n,await new Promise((i,r)=>{e.onload=i,e.onerror=i})),e}const Oh={backgroundImage:`linear-gradient(45deg, #80808020 25%, transparent 25%), - linear-gradient(-45deg, #80808020 25%, transparent 25%), - linear-gradient(45deg, transparent 75%, #80808020 75%), - linear-gradient(-45deg, transparent 75%, #80808020 75%)`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",boxShadow:`rgb(0 0 0 / 10%) 0px 1.8px 1.9px, - rgb(0 0 0 / 15%) 0px 6.1px 6.3px, - rgb(0 0 0 / 10%) 0px -2px 4px, - rgb(0 0 0 / 15%) 0px -6.1px 12px, - rgb(0 0 0 / 25%) 0px 6px 12px`},k_=({diff:n,noTargetBlank:e,hideDetails:i})=>{const[r,l]=U.useState(n.diff?"diff":"actual"),[o,u]=U.useState(!1),[f,h]=U.useState(null),[g,y]=U.useState("Expected"),[m,w]=U.useState(null),[v,E]=U.useState(null),[x,_]=gs();U.useEffect(()=>{(async()=>{var j,ne,le,V;h(await lh((j=n.expected)==null?void 0:j.attachment.path)),y(((ne=n.expected)==null?void 0:ne.title)||"Expected"),w(await lh((le=n.actual)==null?void 0:le.attachment.path)),E(await lh((V=n.diff)==null?void 0:V.attachment.path))})()},[n]);const N=f&&m&&v,C=N?Math.max(f.naturalWidth,m.naturalWidth,200):500,$=N?Math.max(f.naturalHeight,m.naturalHeight,200):500,I=Math.min(1,(x.width-30)/C),D=Math.min(1,(x.width-50)/C/2),K=C*I,Q=$*I,q={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return S.jsx("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:_,children:N&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[n.diff&&S.jsx("div",{style:{...q,fontWeight:r==="diff"?600:"initial"},onClick:()=>l("diff"),children:"Diff"}),S.jsx("div",{style:{...q,fontWeight:r==="actual"?600:"initial"},onClick:()=>l("actual"),children:"Actual"}),S.jsx("div",{style:{...q,fontWeight:r==="expected"?600:"initial"},onClick:()=>l("expected"),children:g}),S.jsx("div",{style:{...q,fontWeight:r==="sxs"?600:"initial"},onClick:()=>l("sxs"),children:"Side by side"}),S.jsx("div",{style:{...q,fontWeight:r==="slider"?600:"initial"},onClick:()=>l("slider"),children:"Slider"})]}),S.jsxs("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:Q+60},children:[n.diff&&r==="diff"&&S.jsx(Jn,{image:v,alt:"Diff",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="actual"&&S.jsx(Jn,{image:m,alt:"Actual",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="expected"&&S.jsx(Jn,{image:f,alt:g,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="slider"&&S.jsx(M_,{expectedImage:f,actualImage:m,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I,expectedTitle:g}),n.diff&&r==="sxs"&&S.jsxs("div",{style:{display:"flex"},children:[S.jsx(Jn,{image:f,title:g,hideSize:i,canvasWidth:D*C,canvasHeight:D*$,scale:D}),S.jsx(Jn,{image:o?v:m,title:o?"Diff":"Actual",onClick:()=>u(!o),hideSize:i,canvasWidth:D*C,canvasHeight:D*$,scale:D})]}),!n.diff&&r==="actual"&&S.jsx(Jn,{image:m,title:"Actual",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),!n.diff&&r==="expected"&&S.jsx(Jn,{image:f,title:g,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),!n.diff&&r==="sxs"&&S.jsxs("div",{style:{display:"flex"},children:[S.jsx(Jn,{image:f,title:g,canvasWidth:D*C,canvasHeight:D*$,scale:D}),S.jsx(Jn,{image:m,title:"Actual",canvasWidth:D*C,canvasHeight:D*$,scale:D})]})]}),!i&&S.jsxs("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[S.jsx("div",{children:n.diff&&S.jsx("a",{target:"_blank",href:n.diff.attachment.path,rel:"noreferrer",children:n.diff.attachment.name})}),S.jsx("div",{children:S.jsx("a",{target:e?"":"_blank",href:n.actual.attachment.path,rel:"noreferrer",children:n.actual.attachment.name})}),S.jsx("div",{children:S.jsx("a",{target:e?"":"_blank",href:n.expected.attachment.path,rel:"noreferrer",children:n.expected.attachment.name})})]})]})})},M_=({expectedImage:n,actualImage:e,canvasWidth:i,canvasHeight:r,scale:l,expectedTitle:o,hideSize:u})=>{const f={position:"absolute",top:0,left:0},[h,g]=U.useState(i/2),y=n.naturalWidth===e.naturalWidth&&n.naturalHeight===e.naturalHeight;return S.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!u&&S.jsxs("div",{style:{margin:5},children:[!y&&S.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "}),S.jsx("span",{children:n.naturalWidth}),S.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),S.jsx("span",{children:n.naturalHeight}),!y&&S.jsx("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "}),!y&&S.jsx("span",{children:e.naturalWidth}),!y&&S.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),!y&&S.jsx("span",{children:e.naturalHeight})]}),S.jsxs("div",{style:{position:"relative",width:i,height:r,margin:15,...Oh},children:[S.jsx(Lb,{orientation:"horizontal",offsets:[h],setOffsets:m=>g(m[0]),resizerColor:"#57606a80",resizerWidth:6}),S.jsx("img",{alt:o,style:{width:n.naturalWidth*l,height:n.naturalHeight*l},draggable:"false",src:n.src}),S.jsx("div",{style:{...f,bottom:0,overflow:"hidden",width:h,...Oh},children:S.jsx("img",{alt:"Actual",style:{width:e.naturalWidth*l,height:e.naturalHeight*l},draggable:"false",src:e.src})})]})]})},Jn=({image:n,title:e,alt:i,hideSize:r,canvasWidth:l,canvasHeight:o,scale:u,onClick:f})=>S.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!r&&S.jsxs("div",{style:{margin:5},children:[e&&S.jsx("span",{style:{flex:"none",margin:"0 5px"},children:e}),S.jsx("span",{children:n.naturalWidth}),S.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),S.jsx("span",{children:n.naturalHeight})]}),S.jsx("div",{style:{display:"flex",flex:"none",width:l,height:o,margin:15,...Oh},children:S.jsx("img",{width:n.naturalWidth*u,height:n.naturalHeight*u,alt:e||i,style:{cursor:f?"pointer":"initial"},draggable:"false",src:n.src,onClick:f})})]}),O_="modulepreload",j_=function(n,e){return new URL(n,e).href},u0={},L_=function(e,i,r){let l=Promise.resolve();if(i&&i.length>0){let u=function(y){return Promise.all(y.map(m=>Promise.resolve(m).then(w=>({status:"fulfilled",value:w}),w=>({status:"rejected",reason:w}))))};const f=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),g=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));l=u(i.map(y=>{if(y=j_(y,r),y in u0)return;u0[y]=!0;const m=y.endsWith(".css"),w=m?'[rel="stylesheet"]':"";if(!!r)for(let x=f.length-1;x>=0;x--){const _=f[x];if(_.href===y&&(!m||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${w}`))return;const E=document.createElement("link");if(E.rel=m?"stylesheet":O_,m||(E.as="script"),E.crossOrigin="",E.href=y,g&&E.setAttribute("nonce",g),document.head.appendChild(E),m)return new Promise((x,_)=>{E.addEventListener("load",x),E.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${y}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return e().catch(o)})},R_=20,xr=({text:n,highlighter:e,mimeType:i,linkify:r,readOnly:l,highlight:o,revealLine:u,lineNumbers:f,isFocused:h,focusOnChange:g,wrapLines:y,onChange:m,dataTestId:w,placeholder:v})=>{const[E,x]=gs(),[_]=U.useState(L_(()=>import("./codeMirrorModule-a5XoALAZ.js"),__vite__mapDeps([0,1]),import.meta.url).then(I=>I.default)),N=U.useRef(null),[C,$]=U.useState();return U.useEffect(()=>{(async()=>{var q,j;const I=await _;z_(I);const D=x.current;if(!D)return;const K=U_(e)||B_(i)||(r?"text/linkified":"");if(N.current&&K===N.current.cm.getOption("mode")&&!!l===N.current.cm.getOption("readOnly")&&f===N.current.cm.getOption("lineNumbers")&&y===N.current.cm.getOption("lineWrapping")&&v===N.current.cm.getOption("placeholder"))return;(j=(q=N.current)==null?void 0:q.cm)==null||j.getWrapperElement().remove();const Q=I(D,{value:"",mode:K,readOnly:!!l,lineNumbers:f,lineWrapping:y,placeholder:v,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return N.current={cm:Q},h&&Q.focus(),$(Q),Q})()},[_,C,x,e,i,r,f,y,l,h,v]),U.useEffect(()=>{N.current&&N.current.cm.setSize(E.width,E.height)},[E]),U.useLayoutEffect(()=>{var K;if(!C)return;let I=!1;if(C.getValue()!==n&&(C.setValue(n),I=!0,g&&(C.execCommand("selectAll"),C.focus())),I||JSON.stringify(o)!==JSON.stringify(N.current.highlight)){for(const j of N.current.highlight||[])C.removeLineClass(j.line-1,"wrap");for(const j of o||[])C.addLineClass(j.line-1,"wrap",`source-line-${j.type}`);for(const j of N.current.widgets||[])C.removeLineWidget(j);for(const j of N.current.markers||[])j.clear();const Q=[],q=[];for(const j of o||[]){if(j.type!=="subtle-error"&&j.type!=="error")continue;const ne=(K=N.current)==null?void 0:K.cm.getLine(j.line-1);if(ne){const le={};le.title=j.message||"",q.push(C.markText({line:j.line-1,ch:0},{line:j.line-1,ch:j.column||ne.length},{className:"source-line-error-underline",attributes:le}))}if(j.type==="error"){const le=document.createElement("div");le.innerHTML=nl(j.message||""),le.className="source-line-error-widget",Q.push(C.addLineWidget(j.line,le,{above:!0,coverGutter:!1}))}}N.current.highlight=o,N.current.widgets=Q,N.current.markers=q}typeof u=="number"&&N.current.cm.lineCount()>=u&&C.scrollIntoView({line:Math.max(0,u-1),ch:0},50);let D;return m&&(D=()=>m(C.getValue()),C.on("change",D)),()=>{D&&C.off("change",D)}},[C,n,o,u,g,m]),S.jsx("div",{"data-testid":w,className:"cm-wrapper",ref:x,onClick:D_})};function D_(n){var i;if(!(n.target instanceof HTMLElement))return;let e;n.target.classList.contains("cm-linkified")?e=n.target.textContent:n.target.classList.contains("cm-link")&&((i=n.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(e=n.target.nextElementSibling.textContent.slice(1,-1)),e&&(n.preventDefault(),n.stopPropagation(),window.open(e,"_blank"))}let f0=!1;function z_(n){f0||(f0=!0,n.defineSimpleMode("text/linkified",{start:[{regex:P0,token:"linkified"}]}))}function B_(n){if(n){if(n.includes("javascript")||n.includes("json"))return"javascript";if(n.includes("python"))return"python";if(n.includes("csharp"))return"text/x-csharp";if(n.includes("java"))return"text/x-java";if(n.includes("markdown"))return"markdown";if(n.includes("html")||n.includes("svg"))return"htmlmixed";if(n.includes("css"))return"css"}}function U_(n){if(n)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[n]}function H_(n){return!!n.match(/^(application\/json|application\/.*?\+json|text\/(x-)?json)(;\s*charset=.*)?$/)}function q_(n){return!!n.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}const Rb=({title:n,children:e,setExpanded:i,expanded:r,expandOnTitleClick:l,className:o})=>{const u=U.useId(),f=U.useId(),h=U.useCallback(()=>i(!r),[r,i]),g=S.jsx("div",{className:Fe("codicon",r?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:l?void 0:h});return S.jsxs("div",{className:Fe("expandable",r&&"expanded",o),children:[l?S.jsxs("div",{id:u,role:"button","aria-expanded":r,"aria-controls":f,className:"expandable-title",onClick:h,children:[g,n]}):S.jsxs("div",{className:"expandable-title",children:[g,n]}),r&&S.jsx("div",{id:f,"aria-labelledby":u,role:"region",className:"expandable-content",children:e})]})};function Db(n){const e=[];let i=0,r;for(;(r=P0.exec(n))!==null;){const o=n.substring(i,r.index);o&&e.push(o);const u=r[0];e.push($_(u)),i=r.index+u.length}const l=n.substring(i);return l&&e.push(l),e}function $_(n){let e=n;return e.startsWith("www.")&&(e="https://"+e),S.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:n})}const zb=U.createContext(void 0),ti=()=>U.useContext(zb),I_=({attachment:n,reveal:e})=>{const i=ti(),[r,l]=U.useState(!1),[o,u]=U.useState(null),[f,h]=U.useState(null),[g,y]=px(),m=U.useRef(null),w=q_(n.contentType),v=!!n.sha1||!!n.path;U.useEffect(()=>{var _;if(e)return(_=m.current)==null||_.scrollIntoView({behavior:"smooth"}),y()},[e,y]),U.useEffect(()=>{r&&o===null&&f===null&&(h("Loading ..."),fetch(bc(i,n)).then(_=>_.text()).then(_=>{u(_),h(null)}).catch(_=>{h("Failed to load: "+_.message)}))},[i,r,o,f,n]);const E=U.useMemo(()=>{const _=o?o.split(` -`).length:0;return Math.min(Math.max(5,_),20)*R_},[o]),x=S.jsxs("span",{style:{marginLeft:5},ref:m,"aria-label":n.name,children:[S.jsx("span",{children:Db(n.name)}),v&&S.jsx("a",{style:{marginLeft:5},href:Yo(i,n),children:"download"})]});return!w||!v?S.jsx("div",{style:{marginLeft:20},children:x}):S.jsxs("div",{className:Fe(g&&"yellow-flash"),children:[S.jsx(Rb,{title:x,expanded:r,setExpanded:l,expandOnTitleClick:!0,children:f&&S.jsx("i",{children:f})}),r&&o!==null&&S.jsx("div",{className:"vbox",style:{height:E},children:S.jsx(xr,{text:o,readOnly:!0,mimeType:n.contentType,linkify:!0,lineNumbers:!0,wrapLines:!1})})]})},V_=({revealedAttachmentCallId:n})=>{const e=ti(),{diffMap:i,screenshots:r,attachments:l}=U.useMemo(()=>{const o=new Set((e==null?void 0:e.visibleAttachments)??[]),u=new Set,f=new Map;for(const h of o){if(!h.path&&!h.sha1)continue;const g=h.name.match(/^(.*)-(expected|actual|diff)\.png$/);if(g){const y=g[1],m=g[2],w=f.get(y)||{expected:void 0,actual:void 0,diff:void 0};w[m]=h,f.set(y,w),o.delete(h)}else h.contentType.startsWith("image/")&&(u.add(h),o.delete(h))}return{diffMap:f,attachments:o,screenshots:u}},[e]);return!i.size&&!r.size&&!l.size?S.jsx(ms,{text:"No attachments"}):S.jsxs("div",{className:"attachments-tab",children:[[...i.values()].map(({expected:o,actual:u,diff:f})=>S.jsxs(S.Fragment,{children:[o&&u&&S.jsx("div",{className:"attachments-section",children:"Image diff"}),o&&u&&S.jsx(k_,{noTargetBlank:!0,diff:{name:"Image diff",expected:{attachment:{...o,path:Yo(e,o)},title:"Expected"},actual:{attachment:{...u,path:Yo(e,u)}},diff:f?{attachment:{...f,path:Yo(e,f)}}:void 0}})]})),r.size?S.jsx("div",{className:"attachments-section",children:"Screenshots"}):void 0,[...r.values()].map((o,u)=>{const f=bc(e,o);return S.jsxs("div",{className:"attachment-item",children:[S.jsx("div",{children:S.jsx("img",{draggable:"false",src:f})}),S.jsx("div",{children:S.jsx("a",{target:"_blank",href:f,rel:"noreferrer",children:o.name})})]},`screenshot-${u}`)}),l.size?S.jsx("div",{className:"attachments-section",children:"Attachments"}):void 0,[...l.values()].map((o,u)=>S.jsx("div",{className:"attachment-item",children:S.jsx(I_,{attachment:o,reveal:n&&o.callId===n.callId?n:void 0})},G_(o,u)))]})};function bc(n,e){return n&&e.sha1?n.createRelativeUrl(`sha1/${e.sha1}`):`file?path=${encodeURIComponent(e.path)}`}function Yo(n,e){let i=e.contentType?`&dn=${encodeURIComponent(e.name)}`:"";return e.contentType&&(i+=`&dct=${encodeURIComponent(e.contentType)}`),bc(n,e)+i}function G_(n,e){return e+"-"+(n.sha1?"sha1-"+n.sha1:"path-"+n.path)}const K_=` -# Instructions - -- Following Playwright test failed. -- Explain why, be concise, respect Playwright best practices. -- Provide a snippet of code with the fix, if possible. -`.trimStart();async function Y_({testInfo:n,metadata:e,errorContext:i,errors:r,buildCodeFrame:l,stdout:o,stderr:u}){var m;const f=new Set(r.filter(w=>w.message&&!w.message.includes(` -`)).map(w=>w.message));for(const w of r)for(const v of f.keys())(m=w.message)!=null&&m.includes(v)&&f.delete(v);const h=r.filter(w=>!(!w.message||!w.message.includes(` -`)&&!f.has(w.message)));if(!h.length)return;const g=[K_,"# Test info","",n];o&&g.push("","# Stdout","","```",Xo(o),"```"),u&&g.push("","# Stderr","","```",Xo(u),"```"),g.push("","# Error details");for(const w of h)g.push("","```",Xo(w.message||""),"```");i&&g.push(i);const y=await l(h[h.length-1]);return y&&g.push("","# Test source","","```ts",y,"```"),e!=null&&e.gitDiff&&g.push("","# Local changes","","```diff",e.gitDiff,"```"),g.join(` -`)}const X_=new RegExp("([\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))","g");function Xo(n){return n.replace(X_,"")}const F_=yc,Q_=({stack:n,setSelectedFrame:e,selectedFrame:i})=>{const r=n||[];return S.jsx(F_,{name:"stack-trace",ariaLabel:"Stack trace",items:r,selectedItem:r[i],render:l=>{const o=l.file[1]===":"?"\\":"/";return S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"stack-trace-frame-function",children:l.function||"(anonymous)"}),S.jsx("span",{className:"stack-trace-frame-location",children:l.file.split(o).pop()}),S.jsx("span",{className:"stack-trace-frame-line",children:":"+l.line})]})},onSelected:l=>e(r.indexOf(l))})},nd=({noShadow:n,children:e,noMinHeight:i,className:r,sidebarBackground:l,onClick:o})=>S.jsx("div",{className:Fe("toolbar",n&&"no-shadow",i&&"no-min-height",r,l&&"toolbar-sidebar-background"),onClick:o,children:e});function J_(n,e,i,r,l){const o=ti();return ec(async()=>{var v,E,x,_;const u=n==null?void 0:n[e],f=u!=null&&u.file?u:l;if(!f)return{source:{file:"",errors:[],content:void 0},targetLine:0,highlight:[]};const h=f.file;let g=i.get(h);g||(g={errors:((v=l==null?void 0:l.source)==null?void 0:v.errors)||[],content:(E=l==null?void 0:l.source)==null?void 0:E.content},i.set(h,g));const y=(f==null?void 0:f.line)||((x=g.errors[0])==null?void 0:x.line)||0,m=r&&h.startsWith(r)?h.substring(r.length+1):h,w=g.errors.map(N=>({type:"error",line:N.line,message:N.message}));if(w.push({line:y,type:"running"}),((_=l==null?void 0:l.source)==null?void 0:_.content)!==void 0)g.content=l.source.content;else if(g.content===void 0||f===l){const N=await Bb(h);try{let C=o?await fetch(o.createRelativeUrl(`sha1/src@${N}.txt`)):void 0;(!C||C.status===404)&&(C=await fetch(`file?path=${encodeURIComponent(h)}`)),C.status>=400?g.content="":g.content=await C.text()}catch{g.content=``}}return{model:o,source:g,highlight:w,targetLine:y,fileName:m,location:f}},[n,e,r,l],{source:{errors:[],content:"Loading…"},highlight:[]})}const P_=({stack:n,sources:e,rootDir:i,fallbackLocation:r,stackFrameLocation:l,onOpenExternally:o})=>{const[u,f]=U.useState(),[h,g]=U.useState(0);U.useEffect(()=>{u!==n&&(f(n),g(0))},[n,u,f,g]);const{source:y,highlight:m,targetLine:w,fileName:v,location:E}=J_(n,h,e,i,r),x=U.useCallback(()=>{E&&(o?o(E):window.location.href=`vscode://file//${E.file}:${E.line}`)},[o,E]),_=((n==null?void 0:n.length)??0)>1,N=Z_(v),C=N.endsWith(".md")?"markdown":"javascript";return S.jsx(nc,{sidebarSize:200,orientation:l==="bottom"?"vertical":"horizontal",sidebarHidden:!_,main:S.jsxs("div",{className:"vbox","data-testid":"source-code",children:[v&&S.jsxs(nd,{children:[S.jsx("div",{className:"source-tab-file-name",title:v,children:S.jsx("div",{children:N})}),S.jsx(td,{description:"Copy filename",value:N}),E&&S.jsx(Ht,{icon:"link-external",title:"Open in VS Code",onClick:x})]}),S.jsx(xr,{text:y.content||"",highlighter:C,highlight:m,revealLine:w,readOnly:!0,lineNumbers:!0,dataTestId:"source-code-mirror"})]}),sidebar:S.jsx(Q_,{stack:n,selectedFrame:h,setSelectedFrame:g})})};async function Bb(n){const e=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-1",e),r=[],l=new DataView(i);for(let o=0;oS.jsx(Ko,{value:n,description:"Copy prompt",copiedDescription:S.jsxs(S.Fragment,{children:["Copied ",S.jsx("span",{className:"codicon codicon-copy",style:{marginLeft:"5px"}})]}),style:{width:"120px",justifyContent:"center"}});function eT(n){return U.useMemo(()=>{if(!n)return{errors:new Map};const e=new Map;for(const i of n.errorDescriptors)e.set(i.message,i);return{errors:e}},[n])}function tT({message:n,error:e,sdkLanguage:i,revealInSource:r}){var f;let l,o;const u=(f=e.stack)==null?void 0:f[0];return u&&(l=u.file.replace(/.*[/\\](.*)/,"$1")+":"+u.line,o=u.file+":"+u.line),S.jsxs("div",{style:{display:"flex",flexDirection:"column",overflowX:"clip"},children:[S.jsxs("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)",flex:0},children:[e.action&&ed(e.action,{sdkLanguage:i}),l&&S.jsxs("div",{className:"action-location",children:["@ ",S.jsx("span",{title:o,onClick:()=>r(e),children:l})]})]}),S.jsx(N_,{error:n})]})}const nT=({errorsModel:n,sdkLanguage:e,revealInSource:i,wallTime:r,testRunMetadata:l})=>{const o=ti(),u=ec(async()=>{const g=o==null?void 0:o.attachments.find(y=>y.name==="error-context");if(g)return await fetch(bc(o,g)).then(y=>y.text())},[o],void 0),f=U.useCallback(async g=>{var v;const y=(v=g.stack)==null?void 0:v[0];if(!y)return;let m=o?await fetch(o.createRelativeUrl(`sha1/src@${await Bb(y.file)}.txt`)):void 0;if((!m||m.status===404)&&(m=await fetch(`file?path=${encodeURIComponent(y.file)}`)),m.status>=400)return;const w=await m.text();return iT({source:w,message:Xo(g.message).split(` -`)[0]||void 0,location:y,linesAbove:100,linesBelow:100})},[o]),h=ec(()=>Y_({testInfo:(o==null?void 0:o.title)??"",metadata:l,errorContext:u,errors:(o==null?void 0:o.errorDescriptors)??[],buildCodeFrame:f}),[u,l,o,f],void 0);return n.errors.size?S.jsxs("div",{className:"fill",style:{overflow:"auto"},children:[S.jsx("span",{style:{position:"absolute",right:"5px",top:"5px",zIndex:1},children:h&&S.jsx(W_,{prompt:h})}),[...n.errors.entries()].map(([g,y])=>{const m=`error-${r}-${g}`;return S.jsx(tT,{message:g,error:y,revealInSource:i,sdkLanguage:e},m)})]}):S.jsx(ms,{text:"No errors"})};function iT({source:n,message:e,location:i,linesAbove:r,linesBelow:l}){const o=n.split(` -`).slice(),u=Math.max(0,i.line-r-1),f=Math.min(o.length,i.line+l),h=o.slice(u,f),g=String(f).length,y=h.map((m,w)=>`${u+w+1===i.line?"> ":" "}${(u+w+1).toString().padEnd(g," ")} | ${m}`);return e&&y.splice(i.line-u,0,`${" ".repeat(g+2)} | ${" ".repeat(i.column-2)} ^ ${e}`),y.join(` -`)}const sT=yc;function rT(n,e){const{entries:i}=U.useMemo(()=>{if(!n)return{entries:[]};const l=[];function o(f){var y,m,w,v,E,x;const h=l[l.length-1];h&&((y=f.browserMessage)==null?void 0:y.bodyString)===((m=h.browserMessage)==null?void 0:m.bodyString)&&((w=f.browserMessage)==null?void 0:w.location)===((v=h.browserMessage)==null?void 0:v.location)&&f.browserError===h.browserError&&((E=f.nodeMessage)==null?void 0:E.html)===((x=h.nodeMessage)==null?void 0:x.html)&&f.isError===h.isError&&f.isWarning===h.isWarning&&f.timestamp-h.timestamp<1e3?h.repeat++:l.push({...f,repeat:1})}const u=[...n.events,...n.stdio].sort((f,h)=>{const g="time"in f?f.time:f.timestamp,y="time"in h?h.time:h.timestamp;return g-y});for(const f of u){if(f.type==="console"){const h=f.args&&f.args.length?lT(f.args):Ub(f.text),g=f.location.url,m=`${g?g.substring(g.lastIndexOf("/")+1):""}:${f.location.lineNumber}`;o({browserMessage:{body:h,bodyString:f.text,location:m},isError:f.messageType==="error",isWarning:f.messageType==="warning",timestamp:f.time})}if(f.type==="event"&&f.method==="pageError"&&o({browserError:f.params.error,isError:!0,isWarning:!1,timestamp:f.time}),f.type==="stderr"||f.type==="stdout"){let h="";f.text&&(h=nl(f.text.trim())||""),f.base64&&(h=nl(atob(f.base64).trim())||""),o({nodeMessage:{html:h},isError:f.type==="stderr",isWarning:!1,timestamp:f.timestamp})}}return{entries:l}},[n]);return{entries:U.useMemo(()=>e?i.filter(l=>l.timestamp>=e.minimum&&l.timestamp<=e.maximum):i,[i,e])}}const aT=({consoleModel:n,boundaries:e,onEntryHovered:i,onAccepted:r})=>n.entries.length?S.jsx("div",{className:"console-tab",children:S.jsx(sT,{name:"console",onAccepted:r,onHighlighted:l=>i==null?void 0:i(l?n.entries.indexOf(l):void 0),items:n.entries,isError:l=>l.isError,isWarning:l=>l.isWarning,render:l=>{const o=Et(l.timestamp-e.minimum),u=S.jsx("span",{className:"console-time",children:o}),f=l.isError?"status-error":l.isWarning?"status-warning":"status-none",h=l.browserMessage||l.browserError?S.jsx("span",{className:Fe("codicon","codicon-browser",f),title:"Browser message"}):S.jsx("span",{className:Fe("codicon","codicon-file",f),title:"Runner message"});let g,y,m,w;const{browserMessage:v,browserError:E,nodeMessage:x}=l;if(v&&(g=v.location,y=v.body),E){const{error:_,value:N}=E;_?(y=_.message,w=_.stack):y=String(N)}return x&&(m=x.html),S.jsxs("div",{className:"console-line",children:[u,h,g&&S.jsx("span",{className:"console-location",children:g}),l.repeat>1&&S.jsx("span",{className:"console-repeat",children:l.repeat}),y&&S.jsx("span",{className:"console-line-message",children:y}),m&&S.jsx("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:m}}),w&&S.jsx("div",{className:"console-stack",children:w})]})}})}):S.jsx(ms,{text:"No console entries"});function lT(n){if(n.length===1)return Ub(n[0].preview);const e=typeof n[0].value=="string"&&n[0].value.includes("%"),i=e?n[0].value:"",r=e?n.slice(1):n;let l=0;const o=/%([%sdifoOc])/g;let u;const f=[];let h=[];f.push(S.jsx("span",{children:h},f.length+1));let g=0;for(;(u=o.exec(i))!==null;){const y=i.substring(g,u.index);h.push(S.jsx("span",{children:y},h.length+1)),g=u.index+2;const m=u[0][1];if(m==="%")h.push(S.jsx("span",{children:"%"},h.length+1));else if(m==="s"||m==="o"||m==="O"||m==="d"||m==="i"||m==="f"){const w=r[l++],v={};typeof(w==null?void 0:w.value)!="string"&&(v.color="var(--vscode-debugTokenExpression-number)"),h.push(S.jsx("span",{style:v,children:(w==null?void 0:w.preview)||""},h.length+1))}else if(m==="c"){h=[];const w=r[l++],v=w?oT(w.preview):{};f.push(S.jsx("span",{style:v,children:h},f.length+1))}}for(gh[1].toUpperCase());e[f]=u}return e}catch{return{}}}function cT(n){return["background","border","color","font","line","margin","padding","text"].some(i=>n.startsWith(i))}const jh=({tabs:n,selectedTab:e,setSelectedTab:i,leftToolbar:r,rightToolbar:l,dataTestId:o,mode:u})=>{const f=U.useId();return e||(e=n[0].id),u||(u="default"),S.jsx("div",{className:"tabbed-pane","data-testid":o,children:S.jsxs("div",{className:"vbox",children:[S.jsxs(nd,{children:[r&&S.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...r]}),u==="default"&&S.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...n.map(h=>S.jsx(Hb,{id:h.id,ariaControls:`${f}-${h.id}`,title:h.title,count:h.count,errorCount:h.errorCount,selected:e===h.id,onSelect:i},h.id))]}),u==="select"&&S.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:S.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:e,onChange:h=>{i==null||i(n[h.currentTarget.selectedIndex].id)},children:n.map(h=>{let g="";return h.count&&(g=` (${h.count})`),h.errorCount&&(g=` (${h.errorCount})`),S.jsxs("option",{value:h.id,role:"tab","aria-controls":`${f}-${h.id}`,children:[h.title,g]},h.id)})})}),l&&S.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...l]})]}),n.map(h=>{const g="tab-content tab-"+h.id;if(h.component)return S.jsx("div",{id:`${f}-${h.id}`,role:"tabpanel","aria-label":h.title,className:g,style:{display:e===h.id?"inherit":"none"},children:h.component},h.id);if(e===h.id)return S.jsx("div",{id:`${f}-${h.id}`,role:"tabpanel","aria-label":h.title,className:g,children:h.render()},h.id)})]})})},Hb=({id:n,title:e,count:i,errorCount:r,selected:l,onSelect:o,ariaControls:u})=>S.jsxs("div",{className:Fe("tabbed-pane-tab",l&&"selected"),onClick:()=>o==null?void 0:o(n),role:"tab",title:e,"aria-controls":u,"aria-selected":l,children:[S.jsx("div",{className:"tabbed-pane-tab-label",children:e}),!!i&&S.jsx("div",{className:"tabbed-pane-tab-counter",children:i}),!!r&&S.jsx("div",{className:"tabbed-pane-tab-counter error",children:r})]});async function uT(n,e){const i=navigator.platform.includes("Win")?"win":"unix";let r=[];const l=new Set(["accept-encoding","host","method","path","scheme","version","authority","protocol"]);function o(w){return'^"'+w.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/[^ -~\r\n]/g," ").replace(/\r?\n|\r/g,`^ - -`)+'^"'}function u(w){function v(E){let _=E.charCodeAt(0).toString(16);for(;_.length<4;)_="0"+_;return"\\u"+_}return/[\0-\x1F\x7F-\x9F!]|\'/.test(w)?"$'"+w.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\0-\x1F\x7F-\x9F!]/g,v)+"'":"'"+w+"'"}const f=i==="win"?o:u;r.push(f(e.request.url).replace(/[[{}\]]/g,"\\$&"));let h="GET";const g=[],y=await qb(n,e);y&&(g.push("--data-raw "+f(y)),l.add("content-length"),h="POST"),e.request.method!==h&&r.push("-X "+f(e.request.method));const m=e.request.headers;for(let w=0;w=3?i==="win"?` ^ - `:` \\ - `:" ")}async function fT(n,e,i=0){const r=new Set(["method","path","scheme","version","accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via","user-agent"]),l=new Set(["cookie","authorization"]),o=JSON.stringify(e.request.url),u=e.request.headers,f=u.reduce((x,_)=>{const N=_.name;return!r.has(N.toLowerCase())&&!N.includes(":")&&x.append(N,_.value),x},new Headers),h={};for(const x of f)h[x[0]]=x[1];const g=e.request.cookies.length||u.some(({name:x})=>l.has(x.toLowerCase()))?"include":"omit",y=u.find(({name:x})=>x.toLowerCase()==="referer"),m=y?y.value:void 0,w=await qb(n,e),v={headers:Object.keys(h).length?h:void 0,referrer:m,body:w,method:e.request.method,mode:"cors"};if(i===1){const x=u.find(N=>N.name.toLowerCase()==="cookie"),_={};delete v.mode,x&&(_.cookie=x.value),m&&(delete v.referrer,_.Referer=m),Object.keys(_).length&&(v.headers={...h,..._})}else v.credentials=g;const E=JSON.stringify(v,null,2);return`fetch(${o}, ${E});`}async function qb(n,e){var i,r;return n&&((i=e.request.postData)!=null&&i._sha1)?await fetch(n.createRelativeUrl(`sha1/${e.request.postData._sha1}`)).then(l=>l.text()):(r=e.request.postData)==null?void 0:r.text}class hT{generatePlaywrightRequestCall(e,i){let r=e.method.toLowerCase();const l=new URL(e.url),o=`${l.origin}${l.pathname}`,u={};["delete","get","head","post","put","patch"].includes(r)||(u.method=r,r="fetch"),l.searchParams.size&&(u.params=Object.fromEntries(l.searchParams.entries())),i&&(u.data=i),e.headers.length&&(u.headers=Object.fromEntries(e.headers.map(g=>[g.name,g.value])));const f=[`'${o}'`];return Object.keys(u).length>0&&f.push(this.prettyPrintObject(u)),`await page.request.${r}(${f.join(", ")});`}prettyPrintObject(e,i=2,r=0){if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e!="object")return typeof e=="string"?this.stringLiteral(e):String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const f=" ".repeat(r*i),h=" ".repeat((r+1)*i);return`[ -${e.map(y=>`${h}${this.prettyPrintObject(y,i,r+1)}`).join(`, -`)} -${f}]`}if(Object.keys(e).length===0)return"{}";const l=" ".repeat(r*i),o=" ".repeat((r+1)*i);return`{ -${Object.entries(e).map(([f,h])=>{const g=this.prettyPrintObject(h,i,r+1),y=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(f)?f:this.stringLiteral(f);return`${o}${y}: ${g}`}).join(`, -`)} -${l}}`}stringLiteral(e){return e=e.replace(/\\/g,"\\\\").replace(/'/g,"\\'"),e.includes(` -`)||e.includes("\r")||e.includes(" ")?"`"+e+"`":`'${e}'`}}class dT{generatePlaywrightRequestCall(e,i){const r=new URL(e.url),o=[`"${`${r.origin}${r.pathname}`}"`];let u=e.method.toLowerCase();["delete","get","head","post","put","patch"].includes(u)||(o.push(`method="${u}"`),u="fetch"),r.searchParams.size&&o.push(`params=${this.prettyPrintObject(Object.fromEntries(r.searchParams.entries()))}`),i&&o.push(`data=${this.prettyPrintObject(i)}`),e.headers.length&&o.push(`headers=${this.prettyPrintObject(Object.fromEntries(e.headers.map(h=>[h.name,h.value])))}`);const f=o.length===1?o[0]:` -${o.map(h=>this.indent(h,2)).join(`, -`)} -`;return`await page.request.${u}(${f})`}indent(e,i){return e.split(` -`).map(r=>" ".repeat(i)+r).join(` -`)}prettyPrintObject(e,i=2,r=0){if(e===null||e===void 0)return"None";if(typeof e!="object")return typeof e=="string"?this.stringLiteral(e):typeof e=="boolean"?e?"True":"False":String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const f=" ".repeat(r*i),h=" ".repeat((r+1)*i);return`[ -${e.map(y=>`${h}${this.prettyPrintObject(y,i,r+1)}`).join(`, -`)} -${f}]`}if(Object.keys(e).length===0)return"{}";const l=" ".repeat(r*i),o=" ".repeat((r+1)*i);return`{ -${Object.entries(e).map(([f,h])=>{const g=this.prettyPrintObject(h,i,r+1);return`${o}${this.stringLiteral(f)}: ${g}`}).join(`, -`)} -${l}}`}stringLiteral(e){return JSON.stringify(e)}}class pT{generatePlaywrightRequestCall(e,i){const r=new URL(e.url),l=`${r.origin}${r.pathname}`,o={},u=[];let f=e.method.toLowerCase();["delete","get","head","post","put","patch"].includes(f)||(o.Method=f,f="fetch"),r.searchParams.size&&(o.Params=Object.fromEntries(r.searchParams.entries())),i&&(o.Data=i),e.headers.length&&(o.Headers=Object.fromEntries(e.headers.map(y=>[y.name,y.value])));const h=[`"${l}"`];return Object.keys(o).length>0&&h.push(this.prettyPrintObject(o)),`${u.join(` -`)}${u.length?` -`:""}await request.${this.toFunctionName(f)}(${h.join(", ")});`}toFunctionName(e){return e[0].toUpperCase()+e.slice(1)+"Async"}prettyPrintObject(e,i=2,r=0){if(e===null||e===void 0)return"null";if(typeof e!="object")return typeof e=="string"?this.stringLiteral(e):typeof e=="boolean"?e?"true":"false":String(e);if(Array.isArray(e)){if(e.length===0)return"new object[] {}";const f=" ".repeat(r*i),h=" ".repeat((r+1)*i);return`new object[] { -${e.map(y=>`${h}${this.prettyPrintObject(y,i,r+1)}`).join(`, -`)} -${f}}`}if(Object.keys(e).length===0)return"new {}";const l=" ".repeat(r*i),o=" ".repeat((r+1)*i);return`new() { -${Object.entries(e).map(([f,h])=>{const g=this.prettyPrintObject(h,i,r+1),y=r===0?f:`[${this.stringLiteral(f)}]`;return`${o}${y} = ${g}`}).join(`, -`)} -${l}}`}stringLiteral(e){return JSON.stringify(e)}}class gT{generatePlaywrightRequestCall(e,i){const r=new URL(e.url),l=[`"${r.origin}${r.pathname}"`],o=[];let u=e.method.toLowerCase();["delete","get","head","post","put","patch"].includes(u)||(o.push(`setMethod("${u}")`),u="fetch");for(const[f,h]of r.searchParams)o.push(`setQueryParam(${this.stringLiteral(f)}, ${this.stringLiteral(h)})`);i&&o.push(`setData(${this.stringLiteral(i)})`);for(const f of e.headers)o.push(`setHeader(${this.stringLiteral(f.name)}, ${this.stringLiteral(f.value)})`);return o.length>0&&l.push(`RequestOptions.create() - .${o.join(` - .`)} -`),`request.${u}(${l.join(", ")});`}stringLiteral(e){return JSON.stringify(e)}}function mT(n){if(n==="javascript")return new hT;if(n==="python")return new dT;if(n==="csharp")return new pT;if(n==="java")return new gT;throw new Error("Unsupported language: "+n)}const yT=({resource:n,sdkLanguage:e,startTimeOffset:i,onClose:r})=>{const[l,o]=U.useState("headers"),u=ti(),f=ec(async()=>{if(u&&n.request.postData){const h=n.request.headers.find(y=>y.name.toLowerCase()==="content-type"),g=h?h.value:"";if(n.request.postData._sha1){const y=await fetch(u.createRelativeUrl(`sha1/${n.request.postData._sha1}`));return{text:Lh(await y.text(),g),mimeType:g}}else return{text:Lh(n.request.postData.text,g),mimeType:g}}else return null},[n],null);return S.jsx(jh,{leftToolbar:[S.jsx(Ht,{icon:"close",title:"Close",onClick:r},"close")],rightToolbar:[S.jsx(bT,{requestBody:f,resource:n,sdkLanguage:e},"dropdown")],tabs:[{id:"headers",title:"Headers",render:()=>S.jsx(vT,{resource:n,startTimeOffset:i})},{id:"payload",title:"Payload",render:()=>S.jsx(ST,{resource:n,requestBody:f})},{id:"response",title:"Response",render:()=>S.jsx(wT,{resource:n})}],selectedTab:l,setSelectedTab:o})},bT=({resource:n,sdkLanguage:e,requestBody:i})=>{const r=ti(),l=S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"codicon codicon-check",style:{marginRight:"5px"}})," Copied "]}),o=async()=>mT(e).generatePlaywrightRequestCall(n.request,i==null?void 0:i.text);return S.jsxs("div",{className:"copy-request-dropdown",children:[S.jsxs(Ht,{className:"copy-request-dropdown-toggle",children:[S.jsx("span",{className:"codicon codicon-copy",style:{marginRight:"5px"}}),"Copy request",S.jsx("span",{className:"codicon codicon-chevron-down",style:{marginLeft:"5px"}})]}),S.jsxs("div",{className:"copy-request-dropdown-menu",children:[S.jsx(Ko,{description:"Copy as cURL",copiedDescription:l,value:()=>uT(r,n)}),S.jsx(Ko,{description:"Copy as Fetch",copiedDescription:l,value:()=>fT(r,n)}),S.jsx(Ko,{description:"Copy as Playwright",copiedDescription:l,value:o})]})]})},Xa=({title:n,data:e,showCount:i,children:r,className:l})=>{const[o,u]=on(`trace-viewer-network-details-${n.replaceAll(" ","-")}`,!0);return S.jsxs(Rb,{expanded:o,setExpanded:u,expandOnTitleClick:!0,title:S.jsxs("span",{className:"network-request-details-header",children:[n,i&&S.jsxs("span",{className:"network-request-details-header-count",children:[" × ",(e==null?void 0:e.length)??0]})]}),className:l,children:[e&&S.jsx("table",{className:"network-request-details-table",children:S.jsx("tbody",{children:e.map(({name:f,value:h},g)=>h!==null&&S.jsxs("tr",{children:[S.jsx("td",{children:f}),S.jsx("td",{children:h})]},g))})}),r]})},vT=({resource:n,startTimeOffset:e})=>{const i=U.useMemo(()=>Object.entries({URL:n.request.url,Method:n.request.method,"Status Code":n.response.status!==-1&&S.jsxs("span",{className:_T(n.response.status),children:[" ",n.response.status," ",n.response.statusText]}),Start:Et(e),Duration:Et(n.time)}).map(([r,l])=>({name:r,value:l})),[n,e]);return S.jsxs("div",{className:"vbox network-request-details-tab",children:[S.jsx(Xa,{title:"General",data:i}),S.jsx(Xa,{title:"Request Headers",showCount:!0,data:n.request.headers}),S.jsx(Xa,{title:"Response Headers",showCount:!0,data:n.response.headers})]})},ST=({resource:n,requestBody:e})=>S.jsxs("div",{className:"vbox network-request-details-tab",children:[n.request.queryString.length===0&&!e&&S.jsx("em",{className:"network-request-no-payload",children:"No payload for this request."}),n.request.queryString.length>0&&S.jsx(Xa,{title:"Query String Parameters",showCount:!0,data:n.request.queryString}),e&&S.jsx(Xa,{title:"Request Body",className:"network-request-request-body",children:S.jsx(xr,{text:e.text,mimeType:e.mimeType,readOnly:!0,lineNumbers:!0})})]}),wT=({resource:n})=>{const e=ti(),[i,r]=U.useState(null);return U.useEffect(()=>{(async()=>{if(e&&n.response.content._sha1){const o=n.response.content.mimeType.includes("image"),u=n.response.content.mimeType.includes("font"),f=await fetch(e.createRelativeUrl(`sha1/${n.response.content._sha1}`));if(o){const h=await f.blob(),g=new FileReader,y=new Promise(m=>g.onload=m);g.readAsDataURL(h),r({dataUrl:(await y).target.result})}else if(u){const h=await f.arrayBuffer();r({font:h})}else{const h=Lh(await f.text(),n.response.content.mimeType);r({text:h,mimeType:n.response.content.mimeType})}}else r(null)})()},[n,e]),S.jsxs("div",{className:"vbox network-request-details-tab",children:[!n.response.content._sha1&&S.jsx("div",{children:"Response body is not available for this request."}),i&&i.font&&S.jsx(xT,{font:i.font}),i&&i.dataUrl&&S.jsx("div",{children:S.jsx("img",{draggable:"false",src:i.dataUrl})}),i&&i.text&&S.jsx(xr,{text:i.text,mimeType:i.mimeType,readOnly:!0,lineNumbers:!0})]})},xT=({font:n})=>{const[e,i]=U.useState(!1);return U.useEffect(()=>{let r;try{r=new FontFace("font-preview",n),r.status==="loaded"&&document.fonts.add(r),r.status==="error"&&i(!0)}catch{i(!0)}return()=>{document.fonts.delete(r)}},[n]),e?S.jsx("div",{className:"network-font-preview-error",children:"Could not load font preview"}):S.jsxs("div",{className:"network-font-preview",children:["ABCDEFGHIJKLM",S.jsx("br",{}),"NOPQRSTUVWXYZ",S.jsx("br",{}),"abcdefghijklm",S.jsx("br",{}),"nopqrstuvwxyz",S.jsx("br",{}),"1234567890"]})};function _T(n){return n<300||n===304?"green-circle":n<400?"yellow-circle":"red-circle"}function Lh(n,e){if(n===null)return"Loading...";const i=n;if(i==="")return"";if(H_(e))try{return JSON.stringify(JSON.parse(i),null,2)}catch{return i}return e.includes("application/x-www-form-urlencoded")?decodeURIComponent(i):i}function TT(n){const[e,i]=U.useState([]);U.useEffect(()=>{const o=[];for(let u=0;u{var u,f;(f=n.setSorting)==null||f.call(n,{by:o,negate:((u=n.sorting)==null?void 0:u.by)===o?!n.sorting.negate:!1})},[n]);return S.jsxs("div",{className:`grid-view ${n.name}-grid-view`,children:[S.jsx(Lb,{orientation:"horizontal",offsets:e,setOffsets:r,resizerColor:"var(--vscode-panel-border)",resizerWidth:1,minColumnWidth:25}),S.jsxs("div",{className:"vbox",children:[S.jsx("div",{className:"grid-view-header",children:n.columns.map((o,u)=>S.jsxs("div",{className:"grid-view-header-cell "+ET(o,n.sorting),style:{width:un.setSorting&&l(o),children:[S.jsx("span",{className:"grid-view-header-cell-title",children:n.columnTitle(o)}),S.jsx("span",{className:"codicon codicon-triangle-up"}),S.jsx("span",{className:"codicon codicon-triangle-down"})]},n.columnTitle(o)))}),S.jsx(yc,{name:n.name,items:n.items,ariaLabel:n.ariaLabel,id:n.id,render:(o,u)=>S.jsx(S.Fragment,{children:n.columns.map((f,h)=>{const{body:g,title:y}=n.render(o,f,u);return S.jsx("div",{className:`grid-view-cell grid-view-column-${String(f)}`,title:y,style:{width:hS.jsxs("div",{className:"network-filters",children:[S.jsx("input",{type:"search",placeholder:"Filter network",spellCheck:!1,value:n.searchValue,onChange:i=>e({...n,searchValue:i.target.value})}),S.jsxs("div",{className:"network-filters-resource-types",role:"tablist","aria-multiselectable":"true",children:[S.jsx("div",{title:"All",onClick:()=>e({...n,resourceTypes:new Set}),className:`network-filters-resource-type ${n.resourceTypes.size===0?"selected":""}`,children:"All"}),AT.map(i=>S.jsx("div",{title:i,onClick:r=>{let l;r.ctrlKey||r.metaKey?l=n.resourceTypes.symmetricDifference(new Set([i])):l=new Set([i]),e({...n,resourceTypes:l})},className:`network-filters-resource-type ${n.resourceTypes.has(i)?"selected":""}`,role:"tab","aria-selected":n.resourceTypes.has(i),children:i},i))]})]}),kT=TT;function MT(n,e){const i=U.useMemo(()=>((n==null?void 0:n.resources)||[]).filter(u=>e?!!u._monotonicTime&&u._monotonicTime>=e.minimum&&u._monotonicTime<=e.maximum:!0),[n,e]),r=U.useMemo(()=>new zT(n),[n]);return{resources:i,contextIdMap:r}}const OT=({boundaries:n,networkModel:e,onResourceHovered:i,sdkLanguage:r})=>{const[l,o]=U.useState(void 0),[u,f]=U.useState(void 0),[h,g]=U.useState(NT),y=U.useMemo(()=>u&&e.resources.includes(u.resource)?u:void 0,[u,e.resources]),{renderedEntries:m}=U.useMemo(()=>{const _=e.resources.map((N,C)=>BT(N,n,e.contextIdMap,C)).filter(IT(h));return l&&HT(_,l),{renderedEntries:_}},[e.resources,e.contextIdMap,h,l,n]),[w,v]=U.useState(()=>new Map($b().map(_=>[_,LT(_)]))),E=U.useCallback(_=>{g(_),f(void 0)},[]);if(!e.resources.length)return S.jsx(ms,{text:"No network calls"});const x=S.jsx(kT,{name:"network",ariaLabel:"Network requests",items:m,selectedItem:y,onSelected:_=>f(_),onHighlighted:_=>i==null?void 0:i(_==null?void 0:_.ordinal),columns:RT(!!y,m),columnTitle:jT,columnWidths:w,setColumnWidths:v,isError:_=>_.status.code>=400||_.status.code===-1,isInfo:_=>!!_.route,render:(_,N)=>DT(_,N),sorting:l,setSorting:o});return S.jsxs(S.Fragment,{children:[S.jsx(CT,{filterState:h,onFilterStateChange:E}),!y&&x,y&&S.jsx(nc,{sidebarSize:w.get("name"),sidebarIsFirst:!0,orientation:"horizontal",settingName:"networkResourceDetails",main:S.jsx(yT,{resource:y.resource,sdkLanguage:r,startTimeOffset:y.start,onClose:()=>f(void 0)}),sidebar:x})]})},jT=n=>n==="contextId"?"Source":n==="name"?"Name":n==="method"?"Method":n==="status"?"Status":n==="contentType"?"Content Type":n==="duration"?"Duration":n==="size"?"Size":n==="start"?"Start":n==="route"?"Route":"",LT=n=>n==="name"?200:n==="method"||n==="status"?60:n==="contentType"?200:n==="contextId"?60:100;function RT(n,e){if(n){const r=["name"];return h0(e)&&r.unshift("contextId"),r}let i=$b();return h0(e)||(i=i.filter(r=>r!=="contextId")),i}function $b(){return["contextId","name","method","status","contentType","duration","size","start","route"]}const DT=(n,e)=>e==="contextId"?{body:n.contextId,title:n.name.url}:e==="name"?{body:n.name.name,title:n.name.url}:e==="method"?{body:n.method}:e==="status"?{body:n.status.code>0?n.status.code:"",title:n.status.text}:e==="contentType"?{body:n.contentType}:e==="duration"?{body:Et(n.duration)}:e==="size"?{body:fx(n.size)}:e==="start"?{body:Et(n.start)}:e==="route"?{body:n.route}:{body:""};class zT{constructor(e){Ma(this,"_pagerefToShortId",new Map);Ma(this,"_contextToId",new Map);Ma(this,"_lastPageId",0);Ma(this,"_lastApiRequestContextId",0)}contextId(e){return e.pageref?this._pageId(e.pageref):e._apiRequest?this._apiRequestContextId(e):""}_pageId(e){let i=this._pagerefToShortId.get(e);return i||(++this._lastPageId,i="page#"+this._lastPageId,this._pagerefToShortId.set(e,i)),i}_apiRequestContextId(e){const i=rb(e);if(!i)return"";let r=this._contextToId.get(i);return r||(++this._lastApiRequestContextId,r="api#"+this._lastApiRequestContextId,this._contextToId.set(i,r)),r}}function h0(n){const e=new Set;for(const i of n)if(e.add(i.contextId),e.size>1)return!0;return!1}const BT=(n,e,i,r)=>{const l=UT(n);let o;try{const h=new URL(n.request.url);o=h.pathname.substring(h.pathname.lastIndexOf("/")+1),o||(o=h.host),h.search&&(o+=h.search)}catch{o=n.request.url}let u=n.response.content.mimeType;const f=u.match(/^(.*);\s*charset=.*$/);return f&&(u=f[1]),{ordinal:r,name:{name:o,url:n.request.url},method:n.request.method,status:{code:n.response.status,text:n.response.statusText},contentType:u,duration:n.time,size:n.response._transferSize>0?n.response._transferSize:n.response.bodySize,start:n._monotonicTime-e.minimum,route:l,resource:n,contextId:i.contextId(n)}};function UT(n){return n._wasAborted?"aborted":n._wasContinued?"continued":n._wasFulfilled?"fulfilled":n._apiRequest?"api":""}function HT(n,e){const i=qT(e==null?void 0:e.by);i&&n.sort(i),e.negate&&n.reverse()}function qT(n){if(n==="start")return(e,i)=>e.start-i.start;if(n==="duration")return(e,i)=>e.duration-i.duration;if(n==="status")return(e,i)=>e.status.code-i.status.code;if(n==="method")return(e,i)=>{const r=e.method,l=i.method;return r.localeCompare(l)};if(n==="size")return(e,i)=>e.size-i.size;if(n==="contentType")return(e,i)=>e.contentType.localeCompare(i.contentType);if(n==="name")return(e,i)=>e.name.name.localeCompare(i.name.name);if(n==="route")return(e,i)=>e.route.localeCompare(i.route);if(n==="contextId")return(e,i)=>e.contextId.localeCompare(i.contextId)}const $T={Fetch:n=>n==="application/json",HTML:n=>n==="text/html",CSS:n=>n==="text/css",JS:n=>n.includes("javascript"),Font:n=>n.includes("font"),Image:n=>n.includes("image")};function IT({searchValue:n,resourceTypes:e}){return i=>(e.size===0||Array.from(e).some(l=>$T[l](i.contentType)))&&i.name.url.toLowerCase().includes(n.toLowerCase())}function VT(n,e){if(n.role!==e.role||n.name!==e.name||!GT(n,e)||lc(n)!==lc(e))return!1;const i=Object.keys(n.props),r=Object.keys(e.props);return i.length===r.length&&i.every(l=>n.props[l]===e.props[l])}function lc(n){return n.box.cursor==="pointer"}function GT(n,e){return n.active===e.active&&n.checked===e.checked&&n.disabled===e.disabled&&n.expanded===e.expanded&&n.selected===e.selected&&n.level===e.level&&n.pressed===e.pressed}function id(n,e,i={}){var w;const r=new n.LineCounter,l={keepSourceTokens:!0,lineCounter:r,...i},o=n.parseDocument(e,l),u=[],f=v=>[r.linePos(v[0]),r.linePos(v[1])],h=v=>{u.push({message:v.message,range:[r.linePos(v.pos[0]),r.linePos(v.pos[1])]})},g=(v,E)=>{for(const x of E.items){if(x instanceof n.Scalar&&typeof x.value=="string"){const C=oc.parse(x,l,u);C&&(v.children=v.children||[],v.children.push(C));continue}if(x instanceof n.YAMLMap){y(v,x);continue}u.push({message:"Sequence items should be strings or maps",range:f(x.range||E.range)})}},y=(v,E)=>{for(const x of E.items){if(v.children=v.children||[],!(x.key instanceof n.Scalar&&typeof x.key.value=="string")){u.push({message:"Only string keys are supported",range:f(x.key.range||E.range)});continue}const N=x.key,C=x.value;if(N.value==="text"){if(!(C instanceof n.Scalar&&typeof C.value=="string")){u.push({message:"Text value should be a string",range:f(x.value.range||E.range)});continue}v.children.push({kind:"text",text:oh(C.value)});continue}if(N.value==="/children"){if(!(C instanceof n.Scalar&&typeof C.value=="string")||C.value!=="contain"&&C.value!=="equal"&&C.value!=="deep-equal"){u.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:f(x.value.range||E.range)});continue}v.containerMode=C.value;continue}if(N.value.startsWith("/")){if(!(C instanceof n.Scalar&&typeof C.value=="string")){u.push({message:"Property value should be a string",range:f(x.value.range||E.range)});continue}v.props=v.props??{},v.props[N.value.slice(1)]=oh(C.value);continue}const $=oc.parse(N,l,u);if(!$)continue;if(C instanceof n.Scalar){const K=typeof C.value;if(K!=="string"&&K!=="number"&&K!=="boolean"){u.push({message:"Node value should be a string or a sequence",range:f(x.value.range||E.range)});continue}v.children.push({...$,children:[{kind:"text",text:oh(String(C.value))}]});continue}if(C instanceof n.YAMLSeq){v.children.push($),g($,C);continue}u.push({message:"Map values should be strings or sequences",range:f(x.value.range||E.range)})}},m={kind:"role",role:"fragment"};return o.errors.forEach(h),u.length?{errors:u,fragment:m}:(o.contents instanceof n.YAMLSeq||u.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:o.contents?f(o.contents.range):[{line:0,col:0},{line:0,col:0}]}),u.length?{errors:u,fragment:m}:(g(m,o.contents),u.length?{errors:u,fragment:KT}:((w=m.children)==null?void 0:w.length)===1&&(!m.containerMode||m.containerMode==="contain")?{fragment:m.children[0],errors:[]}:{fragment:m,errors:[]}))}const KT={kind:"role",role:"fragment"};function Ib(n){return n.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function oh(n){return{raw:n,normalized:Ib(n)}}class oc{static parse(e,i,r){try{return new oc(e.value)._parse()}catch(l){if(l instanceof d0){const o=i.prettyErrors===!1?l.message:l.message+`: - -`+e.value+` -`+" ".repeat(l.pos)+`^ -`;return r.push({message:o,range:[i.lineCounter.linePos(e.range[0]),i.lineCounter.linePos(e.range[0]+l.pos)]}),null}throw l}}constructor(e){this._input=e,this._pos=0,this._length=e.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(e){this._eof()&&this._throwError(`Unexpected end of input when expecting ${e}`);const i=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(i,this._pos)}_readString(){let e="",i=!1;for(;!this._eof();){const r=this._next();if(i)e+=r,i=!1;else if(r==="\\")i=!0;else{if(r==='"')return e;e+=r}}this._throwError("Unterminated string")}_throwError(e,i=0){throw new d0(e,i||this._pos)}_readRegex(){let e="",i=!1,r=!1;for(;!this._eof();){const l=this._next();if(i)e+=l,i=!1;else if(l==="\\")i=!0,e+=l;else{if(l==="/"&&!r)return{pattern:e};l==="["?(r=!0,e+=l):l==="]"&&r?(e+=l,r=!1):e+=l}}this._throwError("Unterminated regex")}_readStringOrRegex(){const e=this._peek();return e==='"'?(this._next(),Ib(this._readString())):e==="/"?(this._next(),this._readRegex()):null}_readAttributes(e){let i=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),i=this._pos;const r=this._readIdentifier("attribute");this._skipWhitespace();let l="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),i=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)l+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(e,r,l||"true",i)}}_parse(){this._skipWhitespace();const e=this._readIdentifier("role");this._skipWhitespace();const i=this._readStringOrRegex()||"",r={kind:"role",role:e,name:i};return this._readAttributes(r),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),r}_applyAttribute(e,i,r,l){if(i==="checked"){this._assert(r==="true"||r==="false"||r==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',l),e.checked=r==="true"?!0:r==="false"?!1:"mixed";return}if(i==="disabled"){this._assert(r==="true"||r==="false",'Value of "disabled" attribute must be a boolean',l),e.disabled=r==="true";return}if(i==="expanded"){this._assert(r==="true"||r==="false",'Value of "expanded" attribute must be a boolean',l),e.expanded=r==="true";return}if(i==="active"){this._assert(r==="true"||r==="false",'Value of "active" attribute must be a boolean',l),e.active=r==="true";return}if(i==="level"){this._assert(!isNaN(Number(r)),'Value of "level" attribute must be a number',l),e.level=Number(r);return}if(i==="pressed"){this._assert(r==="true"||r==="false"||r==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',l),e.pressed=r==="true"?!0:r==="false"?!1:"mixed";return}if(i==="selected"){this._assert(r==="true"||r==="false",'Value of "selected" attribute must be a boolean',l),e.selected=r==="true";return}this._assert(!1,`Unsupported attribute [${i}]`,l)}_assert(e,i,r){e||this._throwError(i||"Assertion error",r)}}class d0 extends Error{constructor(e,i){super(e),this.pos=i}}function YT(n,e){var u,f;function i(h,g,y){let m=1,w=y+m;for(const v of h.children||[])typeof v=="string"?(m++,w++):(m+=i(v,g,w),w+=m);if(!["none","presentation","fragment","iframe","generic"].includes(h.role)&&h.name){let v=g.get(h.role);v||(v=new Map,g.set(h.role,v));const E=v.get(h.name),x=m*100-y;(!E||E.sizeAndPositiong.sizeAndPosition-h.sizeAndPosition),(f=o[0])==null?void 0:f.node}function XT(n){return Vb(n)?"'"+n.replace(/'/g,"''")+"'":n}function ch(n){return Vb(n)?'"'+n.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,e=>{switch(e){case"\\":return"\\\\";case'"':return'\\"';case"\b":return"\\b";case"\f":return"\\f";case` -`:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return"\\x"+e.charCodeAt(0).toString(16).padStart(2,"0")}})+'"':n}function Vb(n){return!!(n.length===0||/^\s|\s$/.test(n)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(n)||/^-/.test(n)||/[\n:](\s|$)/.test(n)||/\s#/.test(n)||/[\n\r]/.test(n)||/^[&*\],?!>|@"'#%]/.test(n)||/[{}`]/.test(n)||/^\[/.test(n)||!isNaN(Number(n))||["y","n","yes","no","true","false","on","off","null"].includes(n.toLowerCase()))}let Gb={};function FT(n){Gb=n}function il(n,e){for(;e;){if(n.contains(e))return!0;e=Yb(e)}return!1}function bt(n){if(n.parentElement)return n.parentElement;if(n.parentNode&&n.parentNode.nodeType===11&&n.parentNode.host)return n.parentNode.host}function Kb(n){let e=n;for(;e.parentNode;)e=e.parentNode;if(e.nodeType===11||e.nodeType===9)return e}function Yb(n){for(;n.parentElement;)n=n.parentElement;return bt(n)}function $a(n,e,i){for(;n;){const r=n.closest(e);if(i&&r!==i&&(r!=null&&r.contains(i)))return;if(r)return r;n=Yb(n)}}function zi(n,e){const i=e==="::before"?rd:e==="::after"?ad:sd;if(i&&i.has(n))return i.get(n);const r=n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView.getComputedStyle(n,e):void 0;return i==null||i.set(n,r),r}function Xb(n,e){if(e=e??zi(n),!e)return!0;if(Element.prototype.checkVisibility&&Gb.browserNameForWorkarounds!=="webkit"){if(!n.checkVisibility())return!1}else{const i=n.closest("details,summary");if(i!==n&&(i==null?void 0:i.nodeName)==="DETAILS"&&!i.open)return!1}return e.visibility==="visible"}function cc(n){const e=zi(n);if(!e)return{visible:!0,inline:!1};const i=e.cursor;if(e.display==="contents"){for(let l=n.firstChild;l;l=l.nextSibling){if(l.nodeType===1&&ji(l))return{visible:!0,inline:!1,cursor:i};if(l.nodeType===3&&Fb(l))return{visible:!0,inline:!0,cursor:i}}return{visible:!1,inline:!1,cursor:i}}if(!Xb(n,e))return{cursor:i,visible:!1,inline:!1};const r=n.getBoundingClientRect();return{cursor:i,visible:r.width>0&&r.height>0,inline:e.display==="inline"}}function ji(n){return cc(n).visible}function Fb(n){const e=n.ownerDocument.createRange();e.selectNode(n);const i=e.getBoundingClientRect();return i.width>0&&i.height>0}function Xe(n){const e=n.tagName;return typeof e=="string"?e.toUpperCase():n instanceof HTMLFormElement?"FORM":n.tagName.toUpperCase()}let sd,rd,ad,Qb=0;function ld(){++Qb,sd??(sd=new Map),rd??(rd=new Map),ad??(ad=new Map)}function od(){--Qb||(sd=void 0,rd=void 0,ad=void 0)}function p0(n){return n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")}const g0="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",QT=[["aria-atomic",void 0],["aria-busy",void 0],["aria-controls",void 0],["aria-current",void 0],["aria-describedby",void 0],["aria-details",void 0],["aria-dropeffect",void 0],["aria-flowto",void 0],["aria-grabbed",void 0],["aria-hidden",void 0],["aria-keyshortcuts",void 0],["aria-label",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-labelledby",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-live",void 0],["aria-owns",void 0],["aria-relevant",void 0],["aria-roledescription",["generic"]]];function Jb(n,e){return QT.some(([i,r])=>!(r!=null&&r.includes(e||""))&&n.hasAttribute(i))}function Pb(n){return!Number.isNaN(Number(String(n.getAttribute("tabindex"))))}function JT(n){return!cv(n)&&(PT(n)||Pb(n))}function PT(n){const e=Xe(n);return["BUTTON","DETAILS","SELECT","TEXTAREA"].includes(e)?!0:e==="A"||e==="AREA"?n.hasAttribute("href"):e==="INPUT"?!n.hidden:!1}const uh={A:n=>n.hasAttribute("href")?"link":null,AREA:n=>n.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:n=>$a(n,g0)?null:"contentinfo",FORM:n=>p0(n)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:n=>$a(n,g0)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:n=>n.getAttribute("alt")===""&&!n.getAttribute("title")&&!Jb(n)&&!Pb(n)?"presentation":"img",INPUT:n=>{const e=n.type.toLowerCase();if(e==="search")return n.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(e)){const i=Nr(n,n.getAttribute("list"))[0];return i&&Xe(i)==="DATALIST"?"combobox":"textbox"}return e==="hidden"?null:e==="file"?"button":dE[e]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SEARCH:()=>"search",SECTION:n=>p0(n)?"region":null,SELECT:n=>n.hasAttribute("multiple")||n.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:n=>{const e=$a(n,"table"),i=e?cd(e):"";return i==="grid"||i==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:n=>{const e=n.getAttribute("scope");if(e==="col"||e==="colgroup")return"columnheader";if(e==="row"||e==="rowgroup")return"rowheader";const i=n.nextElementSibling,r=n.previousElementSibling,l=n.parentElement&&Xe(n.parentElement)==="TR"?n.parentElement:void 0;if(!i&&!r){if(l){const o=$a(l,"table");if(o&&o.rows.length<=1)return null}return"columnheader"}return m0(i)&&m0(r)?"columnheader":y0(i)||y0(r)?"rowheader":"columnheader"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"};function m0(n){return!!n&&Xe(n)==="TH"}function y0(n){var e;return!n||Xe(n)!=="TD"?!1:!!((e=n.textContent)!=null&&e.trim()||n.children.length>0)}const ZT={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function b0(n){var r;const e=((r=uh[Xe(n)])==null?void 0:r.call(uh,n))||"";if(!e)return null;let i=n;for(;i;){const l=bt(i),o=ZT[Xe(i)];if(!o||!l||!o.includes(Xe(l)))break;const u=cd(l);if((u==="none"||u==="presentation")&&!Zb(l,u))return u;i=l}return e}const WT=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","complementary","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","insertion","link","list","listbox","listitem","log","main","mark","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","strong","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem"];function cd(n){return(n.getAttribute("role")||"").split(" ").map(i=>i.trim()).find(i=>WT.includes(i))||null}function Zb(n,e){return Jb(n,e)||JT(n)}function mt(n){const e=cd(n);if(!e)return b0(n);if(e==="none"||e==="presentation"){const i=b0(n);if(Zb(n,i))return i}return e}function Wb(n){return n===null?void 0:n.toLowerCase()==="true"}function ev(n){return["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(Xe(n))}function ln(n){if(ev(n))return!0;const e=zi(n),i=n.nodeName==="SLOT";if((e==null?void 0:e.display)==="contents"&&!i){for(let l=n.firstChild;l;l=l.nextSibling)if(l.nodeType===1&&!ln(l)||l.nodeType===3&&Fb(l))return!1;return!0}return!(n.nodeName==="OPTION"&&!!n.closest("select"))&&!i&&!Xb(n,e)?!0:tv(n)}function tv(n){let e=Mi==null?void 0:Mi.get(n);if(e===void 0){if(e=!1,n.parentElement&&n.parentElement.shadowRoot&&!n.assignedSlot&&(e=!0),!e){const i=zi(n);e=!i||i.display==="none"||Wb(n.getAttribute("aria-hidden"))===!0}if(!e){const i=bt(n);i&&(e=tv(i))}Mi==null||Mi.set(n,e)}return e}function Nr(n,e){if(!e)return[];const i=Kb(n);if(!i)return[];try{const r=e.split(" ").filter(o=>!!o),l=[];for(const o of r){const u=i.querySelector("#"+CSS.escape(o));u&&!l.includes(u)&&l.push(u)}return l}catch{return[]}}function Pn(n){return n.trim()}function Fa(n){return n.split(" ").map(e=>e.replace(/\r\n/g,` -`).replace(/[\u200b\u00ad]/g,"").replace(/\s\s*/g," ")).join(" ").trim()}function v0(n,e){const i=[...n.querySelectorAll(e)];for(const r of Nr(n,n.getAttribute("aria-owns")))r.matches(e)&&i.push(r),i.push(...r.querySelectorAll(e));return i}function Qa(n,e){const i=e==="::before"?wd:e==="::after"?xd:Sd;if(i!=null&&i.has(n))return i==null?void 0:i.get(n);const r=zi(n,e);let l;if(r){const o=r.content;o&&o!=="none"&&o!=="normal"&&r.display!=="none"&&r.visibility!=="hidden"&&(l=eE(n,o,!!e))}return e&&l!==void 0&&((r==null?void 0:r.display)||"inline")!=="inline"&&(l=" "+l+" "),i&&i.set(n,l),l}function eE(n,e,i){if(!(!e||e==="none"||e==="normal"))try{let r=ab(e).filter(f=>!(f instanceof ic));const l=r.findIndex(f=>f instanceof dt&&f.value==="/");if(l!==-1)r=r.slice(l+1);else if(!i)return;const o=[];let u=0;for(;uyn(o,{includeHidden:e,visitedElements:new Set,embeddedInDescribedBy:{element:o,hidden:ln(o)}})).join(" "))}else n.hasAttribute("aria-description")?r=Fa(n.getAttribute("aria-description")||""):r=Fa(n.getAttribute("title")||"");i==null||i.set(n,r)}return r}function nE(n){const e=n.getAttribute("aria-invalid");return!e||e.trim()===""||e.toLocaleLowerCase()==="false"?"false":e==="true"||e==="grammar"||e==="spelling"?e:"true"}function iE(n){if("validity"in n){const e=n.validity;return(e==null?void 0:e.valid)===!1}return!1}function sE(n){const e=dr;let i=dr==null?void 0:dr.get(n);if(i===void 0){i="";const r=nE(n)!=="false",l=iE(n);if(r||l){const o=n.getAttribute("aria-errormessage");i=Nr(n,o).map(h=>Fa(yn(h,{visitedElements:new Set,embeddedInDescribedBy:{element:h,hidden:ln(h)}}))).join(" ").trim()}e==null||e.set(n,i)}return i}function yn(n,e){var h,g,y,m;if(e.visitedElements.has(n))return"";const i={...e,embeddedInTargetElement:e.embeddedInTargetElement==="self"?"descendant":e.embeddedInTargetElement};if(!e.includeHidden){const w=!!((h=e.embeddedInLabelledBy)!=null&&h.hidden)||!!((g=e.embeddedInDescribedBy)!=null&&g.hidden)||!!((y=e.embeddedInNativeTextAlternative)!=null&&y.hidden)||!!((m=e.embeddedInLabel)!=null&&m.hidden);if(ev(n)||!w&&ln(n))return e.visitedElements.add(n),""}const r=nv(n);if(!e.embeddedInLabelledBy){const w=(r||[]).map(v=>yn(v,{...e,embeddedInLabelledBy:{element:v,hidden:ln(v)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(" ");if(w)return w}const l=mt(n)||"",o=Xe(n);if(e.embeddedInLabel||e.embeddedInLabelledBy||e.embeddedInTargetElement==="descendant"){const w=[...n.labels||[]].includes(n),v=(r||[]).includes(n);if(!w&&!v){if(l==="textbox")return e.visitedElements.add(n),o==="INPUT"||o==="TEXTAREA"?n.value:n.textContent||"";if(["combobox","listbox"].includes(l)){e.visitedElements.add(n);let E;if(o==="SELECT")E=[...n.selectedOptions],!E.length&&n.options.length&&E.push(n.options[0]);else{const x=l==="combobox"?v0(n,"*").find(_=>mt(_)==="listbox"):n;E=x?v0(x,'[aria-selected="true"]').filter(_=>mt(_)==="option"):[]}return!E.length&&o==="INPUT"?n.value:E.map(x=>yn(x,i)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(l))return e.visitedElements.add(n),n.hasAttribute("aria-valuetext")?n.getAttribute("aria-valuetext")||"":n.hasAttribute("aria-valuenow")?n.getAttribute("aria-valuenow")||"":n.getAttribute("value")||"";if(["menu"].includes(l))return e.visitedElements.add(n),""}}const u=n.getAttribute("aria-label")||"";if(Pn(u))return e.visitedElements.add(n),u;if(!["presentation","none"].includes(l)){if(o==="INPUT"&&["button","submit","reset"].includes(n.type)){e.visitedElements.add(n);const w=n.value||"";return Pn(w)?w:n.type==="submit"?"Submit":n.type==="reset"?"Reset":n.getAttribute("title")||""}if(o==="INPUT"&&n.type==="file"){e.visitedElements.add(n);const w=n.labels||[];return w.length&&!e.embeddedInLabelledBy?Ra(w,e):"Choose File"}if(o==="INPUT"&&n.type==="image"){e.visitedElements.add(n);const w=n.labels||[];if(w.length&&!e.embeddedInLabelledBy)return Ra(w,e);const v=n.getAttribute("alt")||"";if(Pn(v))return v;const E=n.getAttribute("title")||"";return Pn(E)?E:"Submit"}if(!r&&o==="BUTTON"){e.visitedElements.add(n);const w=n.labels||[];if(w.length)return Ra(w,e)}if(!r&&o==="OUTPUT"){e.visitedElements.add(n);const w=n.labels||[];return w.length?Ra(w,e):n.getAttribute("title")||""}if(!r&&(o==="TEXTAREA"||o==="SELECT"||o==="INPUT")){e.visitedElements.add(n);const w=n.labels||[];if(w.length)return Ra(w,e);const v=o==="INPUT"&&["text","password","search","tel","email","url"].includes(n.type)||o==="TEXTAREA",E=n.getAttribute("placeholder")||"",x=n.getAttribute("title")||"";return!v||x?x:E}if(!r&&o==="FIELDSET"){e.visitedElements.add(n);for(let v=n.firstElementChild;v;v=v.nextElementSibling)if(Xe(v)==="LEGEND")return yn(v,{...i,embeddedInNativeTextAlternative:{element:v,hidden:ln(v)}});return n.getAttribute("title")||""}if(!r&&o==="FIGURE"){e.visitedElements.add(n);for(let v=n.firstElementChild;v;v=v.nextElementSibling)if(Xe(v)==="FIGCAPTION")return yn(v,{...i,embeddedInNativeTextAlternative:{element:v,hidden:ln(v)}});return n.getAttribute("title")||""}if(o==="IMG"){e.visitedElements.add(n);const w=n.getAttribute("alt")||"";return Pn(w)?w:n.getAttribute("title")||""}if(o==="TABLE"){e.visitedElements.add(n);for(let v=n.firstElementChild;v;v=v.nextElementSibling)if(Xe(v)==="CAPTION")return yn(v,{...i,embeddedInNativeTextAlternative:{element:v,hidden:ln(v)}});const w=n.getAttribute("summary")||"";if(w)return w}if(o==="AREA"){e.visitedElements.add(n);const w=n.getAttribute("alt")||"";return Pn(w)?w:n.getAttribute("title")||""}if(o==="SVG"||n.ownerSVGElement){e.visitedElements.add(n);for(let w=n.firstElementChild;w;w=w.nextElementSibling)if(Xe(w)==="TITLE"&&w.ownerSVGElement)return yn(w,{...i,embeddedInLabelledBy:{element:w,hidden:ln(w)}})}if(n.ownerSVGElement&&o==="A"){const w=n.getAttribute("xlink:title")||"";if(Pn(w))return e.visitedElements.add(n),w}}const f=o==="SUMMARY"&&!["presentation","none"].includes(l);if(tE(l,e.embeddedInTargetElement==="descendant")||f||e.embeddedInLabelledBy||e.embeddedInDescribedBy||e.embeddedInLabel||e.embeddedInNativeTextAlternative){e.visitedElements.add(n);const w=rE(n,i);if(e.embeddedInTargetElement==="self"?Pn(w):w)return w}if(!["presentation","none"].includes(l)||o==="IFRAME"){e.visitedElements.add(n);const w=n.getAttribute("title")||"";if(Pn(w))return w}return e.visitedElements.add(n),""}function rE(n,e){const i=[],r=(o,u)=>{var f;if(!(u&&o.assignedSlot))if(o.nodeType===1){const h=((f=zi(o))==null?void 0:f.display)||"inline";let g=yn(o,e);(h!=="inline"||o.nodeName==="BR")&&(g=" "+g+" "),i.push(g)}else o.nodeType===3&&i.push(o.textContent||"")};i.push(Qa(n,"::before")||"");const l=Qa(n);if(l!==void 0)i.push(l);else{const o=n.nodeName==="SLOT"?n.assignedNodes():[];if(o.length)for(const u of o)r(u,!1);else{for(let u=n.firstChild;u;u=u.nextSibling)r(u,!0);if(n.shadowRoot)for(let u=n.shadowRoot.firstChild;u;u=u.nextSibling)r(u,!0);for(const u of Nr(n,n.getAttribute("aria-owns")))r(u,!0)}}return i.push(Qa(n,"::after")||""),i.join("")}const ud=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function iv(n){return Xe(n)==="OPTION"?n.selected:ud.includes(mt(n)||"")?Wb(n.getAttribute("aria-selected"))===!0:!1}const fd=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function sv(n){const e=hd(n,!0);return e==="error"?!1:e}function aE(n){return hd(n,!0)}function lE(n){return hd(n,!1)}function hd(n,e){const i=Xe(n);if(e&&i==="INPUT"&&n.indeterminate)return"mixed";if(i==="INPUT"&&["checkbox","radio"].includes(n.type))return n.checked;if(fd.includes(mt(n)||"")){const r=n.getAttribute("aria-checked");return r==="true"?!0:e&&r==="mixed"?"mixed":!1}return"error"}const oE=["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox","columnheader","rowheader","searchbox","switch","treegrid"];function cE(n){const e=Xe(n);return["INPUT","TEXTAREA","SELECT"].includes(e)?n.hasAttribute("readonly"):oE.includes(mt(n)||"")?n.getAttribute("aria-readonly")==="true":n.isContentEditable?!1:"error"}const dd=["button"];function rv(n){if(dd.includes(mt(n)||"")){const e=n.getAttribute("aria-pressed");if(e==="true")return!0;if(e==="mixed")return"mixed"}return!1}const pd=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function av(n){if(Xe(n)==="DETAILS")return n.open;if(pd.includes(mt(n)||"")){const e=n.getAttribute("aria-expanded");return e===null?void 0:e==="true"}}const gd=["heading","listitem","row","treeitem"];function lv(n){const e={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[Xe(n)];if(e)return e;if(gd.includes(mt(n)||"")){const i=n.getAttribute("aria-level"),r=i===null?Number.NaN:Number(i);if(Number.isInteger(r)&&r>=1)return r}return 0}const ov=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function uc(n){return cv(n)||uv(n)}function cv(n){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(Xe(n))&&(n.hasAttribute("disabled")||uE(n)||fE(n))}function uE(n){return Xe(n)==="OPTION"&&!!n.closest("OPTGROUP[DISABLED]")}function fE(n){const e=n==null?void 0:n.closest("FIELDSET[DISABLED]");if(!e)return!1;const i=e.querySelector(":scope > LEGEND");return!i||!i.contains(n)}function uv(n,e=!1){if(!n)return!1;if(e||ov.includes(mt(n)||"")){const i=(n.getAttribute("aria-disabled")||"").toLowerCase();return i==="true"?!0:i==="false"?!1:uv(bt(n),!0)}return!1}function Ra(n,e){return[...n].map(i=>yn(i,{...e,embeddedInLabel:{element:i,hidden:ln(i)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(i=>!!i).join(" ")}function hE(n){const e=_d;let i=n,r;const l=[];for(;i;i=bt(i)){const o=e.get(i);if(o!==void 0){r=o;break}l.push(i);const u=zi(i);if(!u){r=!0;break}const f=u.pointerEvents;if(f){r=f!=="none";break}}r===void 0&&(r=!0);for(const o of l)e.set(o,r);return r}let md,yd,bd,vd,dr,Mi,Sd,wd,xd,_d,fv=0;function vc(){ld(),++fv,md??(md=new Map),yd??(yd=new Map),bd??(bd=new Map),vd??(vd=new Map),dr??(dr=new Map),Mi??(Mi=new Map),Sd??(Sd=new Map),wd??(wd=new Map),xd??(xd=new Map),_d??(_d=new Map)}function Sc(){--fv||(md=void 0,yd=void 0,bd=void 0,vd=void 0,dr=void 0,Mi=void 0,Sd=void 0,wd=void 0,xd=void 0,_d=void 0),od()}const dE={button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"};let pE=0;function hv(n){return n.mode==="ai"?{visibility:"ariaOrVisible",refs:"interactable",refPrefix:n.refPrefix,includeGenericRole:!0,renderActive:!n.doNotRenderActive,renderCursorPointer:!0}:n.mode==="autoexpect"?{visibility:"ariaAndVisible",refs:"none"}:n.mode==="codegen"?{visibility:"aria",refs:"none",renderStringsAsRegex:!0}:{visibility:"aria",refs:"none"}}function Ja(n,e){const i=hv(e),r=new Set,l={root:{role:"fragment",name:"",children:[],props:{},box:cc(n),receivesPointerEvents:!0},elements:new Map,refs:new Map,iframeRefs:[]};Rh(l.root,n);const o=(f,h,g)=>{if(r.has(h))return;if(r.add(h),h.nodeType===Node.TEXT_NODE&&h.nodeValue){if(!g)return;const x=h.nodeValue;f.role!=="textbox"&&x&&f.children.push(h.nodeValue||"");return}if(h.nodeType!==Node.ELEMENT_NODE)return;const y=h,m=!ln(y);let w=m;if(i.visibility==="ariaOrVisible"&&(w=m||ji(y)),i.visibility==="ariaAndVisible"&&(w=m&&ji(y)),i.visibility==="aria"&&!w)return;const v=[];if(y.hasAttribute("aria-owns")){const x=y.getAttribute("aria-owns").split(/\s+/);for(const _ of x){const N=n.ownerDocument.getElementById(_);N&&v.push(N)}}const E=w?gE(y,i):null;E&&(E.ref&&(l.elements.set(E.ref,y),l.refs.set(y,E.ref),E.role==="iframe"&&l.iframeRefs.push(E.ref)),f.children.push(E)),u(E||f,y,v,w)};function u(f,h,g,y){var E;const w=(((E=zi(h))==null?void 0:E.display)||"inline")!=="inline"||h.nodeName==="BR"?" ":"";w&&f.children.push(w),f.children.push(Qa(h,"::before")||"");const v=h.nodeName==="SLOT"?h.assignedNodes():[];if(v.length)for(const x of v)o(f,x,y);else{for(let x=h.firstChild;x;x=x.nextSibling)x.assignedSlot||o(f,x,y);if(h.shadowRoot)for(let x=h.shadowRoot.firstChild;x;x=x.nextSibling)o(f,x,y)}for(const x of g)o(f,x,y);if(f.children.push(Qa(h,"::after")||""),w&&f.children.push(w),f.children.length===1&&f.name===f.children[0]&&(f.children=[]),f.role==="link"&&h.hasAttribute("href")){const x=h.getAttribute("href");f.props.url=x}if(f.role==="textbox"&&h.hasAttribute("placeholder")&&h.getAttribute("placeholder")!==f.name){const x=h.getAttribute("placeholder");f.props.placeholder=x}}vc();try{o(l.root,n,!0)}finally{Sc()}return yE(l.root),mE(l.root),l}function w0(n,e){if(e.refs==="none"||e.refs==="interactable"&&(!n.box.visible||!n.receivesPointerEvents))return;const i=Ed(n);let r=i._ariaRef;(!r||r.role!==n.role||r.name!==n.name)&&(r={role:n.role,name:n.name,ref:(e.refPrefix??"")+"e"+ ++pE},i._ariaRef=r),n.ref=r.ref}function gE(n,e){const i=n.ownerDocument.activeElement===n;if(n.nodeName==="IFRAME"){const g={role:"iframe",name:"",children:[],props:{},box:cc(n),receivesPointerEvents:!0,active:i};return Rh(g,n),w0(g,e),g}const r=e.includeGenericRole?"generic":null,l=mt(n)??r;if(!l||l==="presentation"||l==="none")return null;const o=At(sl(n,!1)||""),u=hE(n),f=cc(n);if(l==="generic"&&f.inline&&n.childNodes.length===1&&n.childNodes[0].nodeType===Node.TEXT_NODE)return null;const h={role:l,name:o,children:[],props:{},box:f,receivesPointerEvents:u,active:i};return Rh(h,n),w0(h,e),fd.includes(l)&&(h.checked=sv(n)),ov.includes(l)&&(h.disabled=uc(n)),pd.includes(l)&&(h.expanded=av(n)),gd.includes(l)&&(h.level=lv(n)),dd.includes(l)&&(h.pressed=rv(n)),ud.includes(l)&&(h.selected=iv(n)),(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&n.type!=="checkbox"&&n.type!=="radio"&&n.type!=="file"&&(h.children=[n.value]),h}function mE(n){const e=i=>{const r=[];for(const o of i.children||[]){if(typeof o=="string"){r.push(o);continue}const u=e(o);r.push(...u)}return i.role==="generic"&&!i.name&&r.length<=1&&r.every(o=>typeof o!="string"&&!!o.ref)?r:(i.children=r,[i])};e(n)}function yE(n){const e=(r,l)=>{if(!r.length)return;const o=At(r.join(""));o&&l.push(o),r.length=0},i=r=>{const l=[],o=[];for(const u of r.children||[])typeof u=="string"?o.push(u):(e(o,l),i(u),l.push(u));e(o,l),r.children=l.length?l:[],r.children.length===1&&r.children[0]===r.name&&(r.children=[])};i(n)}function bE(n,e){return e?n?typeof e=="string"?n===e:!!n.match(new RegExp(e.pattern)):!1:!0}function x0(n,e){if(!(e!=null&&e.normalized))return!0;if(!n)return!1;if(n===e.normalized||n===e.raw)return!0;const i=vE(e);return i?!!n.match(i):!1}const fh=Symbol("cachedRegex");function vE(n){if(n[fh]!==void 0)return n[fh];const{raw:e}=n,i=e.startsWith("/")&&e.endsWith("/")&&e.length>1;let r;try{r=i?new RegExp(e.slice(1,-1)):null}catch{r=null}return n[fh]=r,r}function SE(n,e){const i=Ja(n,{mode:"expect"});return{matches:dv(i.root,e,!1,!1),received:{raw:Pa(i,{mode:"expect"}),regex:Pa(i,{mode:"codegen"})}}}function wE(n,e){const i=Ja(n,{mode:"expect"}).root;return dv(i,e,!0,!1).map(l=>Ed(l))}function Td(n,e,i){var r;return typeof n=="string"&&e.kind==="text"?x0(n,e.text):n===null||typeof n!="object"||e.kind!=="role"||e.role!=="fragment"&&e.role!==n.role||e.checked!==void 0&&e.checked!==n.checked||e.disabled!==void 0&&e.disabled!==n.disabled||e.expanded!==void 0&&e.expanded!==n.expanded||e.level!==void 0&&e.level!==n.level||e.pressed!==void 0&&e.pressed!==n.pressed||e.selected!==void 0&&e.selected!==n.selected||!bE(n.name,e.name)||!x0(n.props.url,(r=e.props)==null?void 0:r.url)?!1:e.containerMode==="contain"?T0(n.children||[],e.children||[]):e.containerMode==="equal"?_0(n.children||[],e.children||[],!1):e.containerMode==="deep-equal"||i?_0(n.children||[],e.children||[],!0):T0(n.children||[],e.children||[])}function _0(n,e,i){if(e.length!==n.length)return!1;for(let r=0;rn.length)return!1;const i=n.slice(),r=e.slice();for(const l of r){let o=i.shift();for(;o&&!Td(o,l,!1);)o=i.shift();if(!o)return!1}return!0}function dv(n,e,i,r){const l=[],o=(u,f)=>{if(Td(u,e,r)){const h=typeof u=="string"?f:u;return h&&l.push(h),!i}if(typeof u=="string")return!1;for(const h of u.children||[])if(o(h,u))return!0;return!1};return o(n,null),l}function pv(n,e=new Map){n!=null&&n.ref&&e.set(n.ref,n);for(const i of(n==null?void 0:n.children)||[])typeof i!="string"&&pv(i,e);return e}function xE(n,e){var o;const i=pv(e==null?void 0:e.root),r=new Map,l=(u,f)=>{let h=u.children.length===(f==null?void 0:f.children.length)&&VT(u,f),g=h;for(let y=0;y{const o=e.get(l);if(o!=="same")if(o==="skip")for(const u of l.children)typeof u!="string"&&r(u);else i.push(l)};for(const l of n)typeof l=="string"?i.push(l):r(l);return i}function Pa(n,e,i){const r=hv(e),l=[],o=r.renderStringsAsRegex?EE:()=>!0,u=r.renderStringsAsRegex?TE:v=>v;let f=n.root.role==="fragment"?n.root.children:[n.root];const h=xE(n,i);i&&(f=_E(f,h));const g=(v,E)=>{const x=ch(u(v));x&&l.push(E+"- text: "+x)},y=(v,E)=>{let x=v.role;if(v.name&&v.name.length<=900){const _=u(v.name);if(_){const N=_.startsWith("/")&&_.endsWith("/")?_:JSON.stringify(_);x+=" "+N}}return v.checked==="mixed"&&(x+=" [checked=mixed]"),v.checked===!0&&(x+=" [checked]"),v.disabled&&(x+=" [disabled]"),v.expanded&&(x+=" [expanded]"),v.active&&r.renderActive&&(x+=" [active]"),v.level&&(x+=` [level=${v.level}]`),v.pressed==="mixed"&&(x+=" [pressed=mixed]"),v.pressed===!0&&(x+=" [pressed]"),v.selected===!0&&(x+=" [selected]"),v.ref&&(x+=` [ref=${v.ref}]`,E&&lc(v)&&(x+=" [cursor=pointer]")),x},m=v=>(v==null?void 0:v.children.length)===1&&typeof v.children[0]=="string"&&!Object.keys(v.props).length?v.children[0]:void 0,w=(v,E,x)=>{if(h.get(v)==="same"&&v.ref){l.push(E+`- ref=${v.ref} [unchanged]`);return}const _=!!i&&!E,N=E+"- "+(_?" ":"")+XT(y(v,x)),C=m(v);if(!v.children.length&&!Object.keys(v.props).length)l.push(N);else if(C!==void 0)o(v,C)?l.push(N+": "+ch(u(C))):l.push(N);else{l.push(N+":");for(const[D,K]of Object.entries(v.props))l.push(E+" - /"+D+": "+ch(K));const $=E+" ",I=!!v.ref&&x&&lc(v);for(const D of v.children)typeof D=="string"?g(o(v,D)?D:"",$):w(D,$,x&&!I)}};for(const v of f)typeof v=="string"?g(v,""):w(v,"",!!r.renderCursorPointer);return l.join(` -`)}function TE(n){const e=[{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:"[\\d,.]+[bkmBKM]+"},{regex:/\b\d+[hmsp]+\b/,replacement:"\\d+[hmsp]+"},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:"[\\d,.]+[hmsp]+"},{regex:/\b\d+,\d+\b/,replacement:"\\d+,\\d+"},{regex:/\b\d+\.\d{2,}\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\.\d+\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\b/,replacement:"\\d+"}];let i="",r=0;const l=new RegExp(e.map(o=>"("+o.regex.source+")").join("|"),"g");return n.replace(l,(o,...u)=>{const f=u[u.length-2],h=u.slice(0,-2);i+=rc(n.slice(r,f));for(let g=0;ge.length)return!1;const i=e.length<=200&&n.name.length<=200?l_(e,n.name):"";let r=e;for(;i&&r.includes(i);)r=r.replace(i,"");return r.trim().length/e.length>.1}const gv=Symbol("element");function Ed(n){return n[gv]}function Rh(n,e){n[gv]=e}function AE(n,e){const i=YT(n,e);return i?Ed(i):void 0}const E0=":host{font-size:13px;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;color:#333}svg{position:absolute;height:0}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:none;font-size:12.8px;font-weight:400;left:0;line-height:1.5;max-width:600px;position:absolute;top:0;padding:0;flex-direction:column;overflow:hidden}x-pw-tooltip-line{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;cursor:pointer}x-pw-tooltip-footer{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;color:#777}x-pw-dialog{background-color:#fff;pointer-events:auto;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:flex;flex-direction:column;position:absolute;z-index:10;font-size:13px}x-pw-dialog:not(.autosize){width:400px;height:150px}x-pw-dialog-body{display:flex;flex-direction:column;flex:auto}x-pw-dialog-body label{margin:5px 8px;display:flex;flex-direction:row;align-items:center}x-pw-highlight{position:absolute;top:0;left:0;width:0;height:0}x-pw-action-point{position:absolute;width:20px;height:20px;background:red;border-radius:10px;margin:-10px 0 0 -10px;z-index:2}x-pw-separator{height:1px;margin:6px 9px;background:#949494e5}x-pw-tool-gripper{height:28px;width:24px;margin:2px 0;cursor:grab}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{width:16px;height:16px;margin:6px 4px;clip-path:url(#icon-gripper);background-color:#555}x-pw-tools-list>label{display:flex;align-items:center;margin:0 10px;-webkit-user-select:none;user-select:none}x-pw-tools-list{display:flex;width:100%;border-bottom:1px solid #dddddd}x-pw-tool-item{pointer-events:auto;height:28px;width:28px;border-radius:3px}x-pw-tool-item:not(.disabled){cursor:pointer}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.toggled{background-color:#8acae480}x-pw-tool-item.toggled:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{width:16px;height:16px;margin:6px;background-color:#3a3a3a}x-pw-tool-item.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.record.toggled{background-color:transparent}x-pw-tool-item.record.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.record.toggled>x-div{background-color:#a1260d}x-pw-tool-item.record.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.record.toggled>x-div{clip-path:url(#icon-stop-circle)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.snapshot>x-div{clip-path:url(#icon-gist)}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{position:absolute;top:0;max-width:min-content;z-index:2147483647;background:transparent;pointer-events:auto}x-pw-overlay x-pw-tools-list{background-color:#fffd;box-shadow:#0000001a 0 5px 5px;border-radius:3px;border-bottom:none}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{font-family:system-ui,Ubuntu,Droid Sans,sans-serif;flex:auto;border:none;margin:6px 10px;color:#333;outline:1px solid transparent!important;resize:none;padding:0;font-size:13px}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}*[hidden]{display:none!important}x-locator-editor{flex:none;width:100%;height:60px;padding:4px;border-bottom:1px solid #dddddd;outline:1px solid transparent}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}x-pw-action-list{flex:auto;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}x-pw-action-item{padding:6px 10px;cursor:pointer;overflow:hidden}x-pw-action-item:hover{background-color:#f2f2f2}x-pw-action-item:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}";class hh{constructor(e){this._renderedEntries=[],this._language="javascript",this._injectedScript=e;const i=e.document;if(this._isUnderTest=e.isUnderTest,this._glassPaneElement=i.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483647",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent",this._actionPointElement=i.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),typeof this._glassPaneShadow.adoptedStyleSheets.push=="function"){const r=new this._injectedScript.window.CSSStyleSheet;r.replaceSync(E0),this._glassPaneShadow.adoptedStyleSheets.push(r)}else{const r=this._injectedScript.document.createElement("style");r.textContent=E0,this._glassPaneShadow.appendChild(r)}this._glassPaneShadow.appendChild(this._actionPointElement)}install(){this._injectedScript.document.documentElement&&(!this._injectedScript.document.documentElement.contains(this._glassPaneElement)||this._glassPaneElement.nextElementSibling)&&this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(e){this._language=e}runHighlightOnRaf(e){this._rafRequest&&this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest);const i=this._injectedScript.querySelectorAll(e,this._injectedScript.document.documentElement),r=Oi(this._language,An(e)),l=i.length>1?"#f6b26b7f":"#6fa8dc7f";this.updateHighlight(i.map((o,u)=>{const f=i.length>1?` [${u+1} of ${i.length}]`:"";return{element:o,color:l,tooltipText:r+f}})),this._rafRequest=this._injectedScript.utils.builtins.requestAnimationFrame(()=>this.runHighlightOnRaf(e))}uninstall(){this._rafRequest&&this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest),this._glassPaneElement.remove()}showActionPoint(e,i){this._actionPointElement.style.top=i+"px",this._actionPointElement.style.left=e+"px",this._actionPointElement.hidden=!1}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var e,i;for(const r of this._renderedEntries)(e=r.highlightElement)==null||e.remove(),(i=r.tooltipElement)==null||i.remove();this._renderedEntries=[]}maskElements(e,i){this.updateHighlight(e.map(r=>({element:r,color:i})))}updateHighlight(e){if(!this._highlightIsUpToDate(e)){this.clearHighlight();for(const i of e){const r=this._createHighlightElement();this._glassPaneShadow.appendChild(r);let l;if(i.tooltipText){l=this._injectedScript.document.createElement("x-pw-tooltip"),this._glassPaneShadow.appendChild(l),l.style.top="0",l.style.left="0",l.style.display="flex";const o=this._injectedScript.document.createElement("x-pw-tooltip-line");o.textContent=i.tooltipText,l.appendChild(o)}this._renderedEntries.push({targetElement:i.element,color:i.color,tooltipElement:l,highlightElement:r})}for(const i of this._renderedEntries){if(i.box=i.targetElement.getBoundingClientRect(),!i.tooltipElement)continue;const{anchorLeft:r,anchorTop:l}=this.tooltipPosition(i.box,i.tooltipElement);i.tooltipTop=l,i.tooltipLeft=r}for(const i of this._renderedEntries){i.tooltipElement&&(i.tooltipElement.style.top=i.tooltipTop+"px",i.tooltipElement.style.left=i.tooltipLeft+"px");const r=i.box;i.highlightElement.style.backgroundColor=i.color,i.highlightElement.style.left=r.x+"px",i.highlightElement.style.top=r.y+"px",i.highlightElement.style.width=r.width+"px",i.highlightElement.style.height=r.height+"px",i.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:r.x,y:r.y,width:r.width,height:r.height}))}}}firstBox(){var e;return(e=this._renderedEntries[0])==null?void 0:e.box}firstTooltipBox(){const e=this._renderedEntries[0];if(!(!e||!e.tooltipElement||e.tooltipLeft===void 0||e.tooltipTop===void 0))return{x:e.tooltipLeft,y:e.tooltipTop,left:e.tooltipLeft,top:e.tooltipTop,width:e.tooltipElement.offsetWidth,height:e.tooltipElement.offsetHeight,bottom:e.tooltipTop+e.tooltipElement.offsetHeight,right:e.tooltipLeft+e.tooltipElement.offsetWidth,toJSON:()=>{}}}tooltipPosition(e,i){const r=i.offsetWidth,l=i.offsetHeight,o=this._glassPaneElement.offsetWidth,u=this._glassPaneElement.offsetHeight;let f=Math.max(5,e.left);f+r>o-5&&(f=o-r-5);let h=Math.max(0,e.bottom)+5;return h+l>u-5&&(Math.max(0,e.top)>l+5?h=Math.max(0,e.top)-l-5:h=u-5-l),{anchorLeft:f,anchorTop:h}}_highlightIsUpToDate(e){if(e.length!==this._renderedEntries.length)return!1;for(let i=0;ii))return r+Math.max(e.bottom-n.bottom,0)+Math.max(n.top-e.top,0)}function CE(n,e,i){const r=e.left-n.right;if(!(r<0||i!==void 0&&r>i))return r+Math.max(e.bottom-n.bottom,0)+Math.max(n.top-e.top,0)}function kE(n,e,i){const r=e.top-n.bottom;if(!(r<0||i!==void 0&&r>i))return r+Math.max(n.left-e.left,0)+Math.max(e.right-n.right,0)}function ME(n,e,i){const r=n.top-e.bottom;if(!(r<0||i!==void 0&&r>i))return r+Math.max(n.left-e.left,0)+Math.max(e.right-n.right,0)}function OE(n,e,i){const r=i===void 0?50:i;let l=0;return n.left-e.right>=0&&(l+=n.left-e.right),e.left-n.right>=0&&(l+=e.left-n.right),e.top-n.bottom>=0&&(l+=e.top-n.bottom),n.top-e.bottom>=0&&(l+=n.top-e.bottom),l>r?void 0:l}const jE=["left-of","right-of","above","below","near"];function mv(n,e,i,r){const l=e.getBoundingClientRect(),o={"left-of":CE,"right-of":NE,above:kE,below:ME,near:OE}[n];let u;for(const f of i){if(f===e)continue;const h=o(l,f.getBoundingClientRect(),r);h!==void 0&&(u===void 0||h"?!!i:e.op==="="?r instanceof RegExp?typeof i=="string"&&!!i.match(r):i===r:typeof i!="string"||typeof r!="string"?!1:e.op==="*="?i.includes(r):e.op==="^="?i.startsWith(r):e.op==="$="?i.endsWith(r):e.op==="|="?i===r||i.startsWith(r+"-"):e.op==="~="?i.split(" ").includes(r):!1}function Ad(n){const e=n.ownerDocument;return n.nodeName==="SCRIPT"||n.nodeName==="NOSCRIPT"||n.nodeName==="STYLE"||e.head&&e.head.contains(n)}function Ut(n,e){let i=n.get(e);if(i===void 0){if(i={full:"",normalized:"",immediate:[]},!Ad(e)){let r="";if(e instanceof HTMLInputElement&&(e.type==="submit"||e.type==="button"))i={full:e.value,normalized:At(e.value),immediate:[e.value]};else{for(let l=e.firstChild;l;l=l.nextSibling)if(l.nodeType===Node.TEXT_NODE)i.full+=l.nodeValue||"",r+=l.nodeValue||"";else{if(l.nodeType===Node.COMMENT_NODE)continue;r&&i.immediate.push(r),r="",l.nodeType===Node.ELEMENT_NODE&&(i.full+=Ut(n,l).full)}r&&i.immediate.push(r),e.shadowRoot&&(i.full+=Ut(n,e.shadowRoot).full),i.full&&(i.normalized=At(i.full))}}n.set(e,i)}return i}function wc(n,e,i){if(Ad(e)||!i(Ut(n,e)))return"none";for(let r=e.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&i(Ut(n,r)))return"selfAndChildren";return e.shadowRoot&&i(Ut(n,e.shadowRoot))?"selfAndChildren":"self"}function vv(n,e){const i=nv(e);if(i)return i.map(o=>Ut(n,o));const r=e.getAttribute("aria-label");if(r!==null&&r.trim())return[{full:r,normalized:At(r),immediate:[r]}];const l=e.nodeName==="INPUT"&&e.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(e.nodeName)||l){const o=e.labels;if(o)return[...o].map(u=>Ut(n,u))}return[]}function A0(n){return n.displayName||n.name||"Anonymous"}function LE(n){if(n.type)switch(typeof n.type){case"function":return A0(n.type);case"string":return n.type;case"object":return n.type.displayName||(n.type.render?A0(n.type.render):"")}if(n._currentElement){const e=n._currentElement.type;if(typeof e=="string")return e;if(typeof e=="function")return e.displayName||e.name||"Anonymous"}return""}function RE(n){var e;return n.key??((e=n._currentElement)==null?void 0:e.key)}function DE(n){if(n.child){const i=[];for(let r=n.child;r;r=r.sibling)i.push(r);return i}if(!n._currentElement)return[];const e=i=>{var l;const r=(l=i._currentElement)==null?void 0:l.type;return typeof r=="function"||typeof r=="string"};if(n._renderedComponent){const i=n._renderedComponent;return e(i)?[i]:[]}return n._renderedChildren?[...Object.values(n._renderedChildren)].filter(e):[]}function zE(n){var r;const e=n.memoizedProps||((r=n._currentElement)==null?void 0:r.props);if(!e||typeof e=="string")return e;const i={...e};return delete i.children,i}function Sv(n){var r;const e={key:RE(n),name:LE(n),children:DE(n).map(Sv),rootElements:[],props:zE(n)},i=n.stateNode||n._hostNode||((r=n._renderedComponent)==null?void 0:r._hostNode);if(i instanceof Element)e.rootElements.push(i);else for(const l of e.children)e.rootElements.push(...l.rootElements);return e}function wv(n,e,i=[]){e(n)&&i.push(n);for(const r of n.children)wv(r,e,i);return i}function xv(n,e=[]){const r=(n.ownerDocument||n).createTreeWalker(n,NodeFilter.SHOW_ELEMENT);do{const l=r.currentNode,o=l,u=Object.keys(o).find(h=>h.startsWith("__reactContainer")&&o[h]!==null);if(u)e.push(o[u].stateNode.current);else{const h="_reactRootContainer";o.hasOwnProperty(h)&&o[h]!==null&&e.push(o[h]._internalRoot.current)}if(l instanceof Element&&l.hasAttribute("data-reactroot"))for(const h of Object.keys(l))(h.startsWith("__reactInternalInstance")||h.startsWith("__reactFiber"))&&e.push(l[h]);const f=l instanceof Element?l.shadowRoot:null;f&&xv(f,e)}while(r.nextNode());return e}const BE=()=>({queryAll(n,e){const{name:i,attributes:r}=ds(e,!1),u=xv(n.ownerDocument||n).map(h=>Sv(h)).map(h=>wv(h,g=>{const y=g.props??{};if(g.key!==void 0&&(y.key=g.key),i&&g.name!==i||g.rootElements.some(m=>!il(n,m)))return!1;for(const m of r)if(!yv(y,m))return!1;return!0})).flat(),f=new Set;for(const h of u)for(const g of h.rootElements)f.add(g);return[...f]}}),_v=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];_v.sort();function Da(n,e,i){if(!e.includes(i))throw new Error(`"${n}" attribute is only supported for roles: ${e.slice().sort().map(r=>`"${r}"`).join(", ")}`)}function rr(n,e){if(n.op!==""&&!e.includes(n.value))throw new Error(`"${n.name}" must be one of ${e.map(i=>JSON.stringify(i)).join(", ")}`)}function ar(n,e){if(!e.includes(n.op))throw new Error(`"${n.name}" does not support "${n.op}" matcher`)}function UE(n,e){const i={role:e};for(const r of n)switch(r.name){case"checked":{Da(r.name,fd,e),rr(r,[!0,!1,"mixed"]),ar(r,["","="]),i.checked=r.op===""?!0:r.value;break}case"pressed":{Da(r.name,dd,e),rr(r,[!0,!1,"mixed"]),ar(r,["","="]),i.pressed=r.op===""?!0:r.value;break}case"selected":{Da(r.name,ud,e),rr(r,[!0,!1]),ar(r,["","="]),i.selected=r.op===""?!0:r.value;break}case"expanded":{Da(r.name,pd,e),rr(r,[!0,!1]),ar(r,["","="]),i.expanded=r.op===""?!0:r.value;break}case"level":{if(Da(r.name,gd,e),typeof r.value=="string"&&(r.value=+r.value),r.op!=="="||typeof r.value!="number"||Number.isNaN(r.value))throw new Error('"level" attribute must be compared to a number');i.level=r.value;break}case"disabled":{rr(r,[!0,!1]),ar(r,["","="]),i.disabled=r.op===""?!0:r.value;break}case"name":{if(r.op==="")throw new Error('"name" attribute must have a value');if(typeof r.value!="string"&&!(r.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');i.name=r.value,i.nameOp=r.op,i.exact=r.caseSensitive;break}case"include-hidden":{rr(r,[!0,!1]),ar(r,["","="]),i.includeHidden=r.op===""?!0:r.value;break}default:throw new Error(`Unknown attribute "${r.name}", must be one of ${_v.map(l=>`"${l}"`).join(", ")}.`)}return i}function HE(n,e,i){const r=[],l=u=>{if(mt(u)===e.role&&!(e.selected!==void 0&&iv(u)!==e.selected)&&!(e.checked!==void 0&&sv(u)!==e.checked)&&!(e.pressed!==void 0&&rv(u)!==e.pressed)&&!(e.expanded!==void 0&&av(u)!==e.expanded)&&!(e.level!==void 0&&lv(u)!==e.level)&&!(e.disabled!==void 0&&uc(u)!==e.disabled)&&!(!e.includeHidden&&ln(u))){if(e.name!==void 0){const f=At(sl(u,!!e.includeHidden));if(typeof e.name=="string"&&(e.name=At(e.name)),i&&!e.exact&&e.nameOp==="="&&(e.nameOp="*="),!bv(f,{op:e.nameOp||"=",value:e.name,caseSensitive:!!e.exact}))return}r.push(u)}},o=u=>{const f=[];u.shadowRoot&&f.push(u.shadowRoot);for(const h of u.querySelectorAll("*"))l(h),h.shadowRoot&&f.push(h.shadowRoot);f.forEach(o)};return o(n),r}function N0(n){return{queryAll:(e,i)=>{const r=ds(i,!0),l=r.name.toLowerCase();if(!l)throw new Error("Role must not be empty");const o=UE(r.attributes,l);vc();try{return HE(e,o,n)}finally{Sc()}}}}class qE{constructor(){this._retainCacheCounter=0,this._cacheText=new Map,this._cacheQueryCSS=new Map,this._cacheMatches=new Map,this._cacheQuery=new Map,this._cacheMatchesSimple=new Map,this._cacheMatchesParents=new Map,this._cacheCallMatches=new Map,this._cacheCallQuery=new Map,this._cacheQuerySimple=new Map,this._engines=new Map,this._engines.set("not",VE),this._engines.set("is",Ia),this._engines.set("where",Ia),this._engines.set("has",$E),this._engines.set("scope",IE),this._engines.set("light",GE),this._engines.set("visible",KE),this._engines.set("text",YE),this._engines.set("text-is",XE),this._engines.set("text-matches",FE),this._engines.set("has-text",QE),this._engines.set("right-of",za("right-of")),this._engines.set("left-of",za("left-of")),this._engines.set("above",za("above")),this._engines.set("below",za("below")),this._engines.set("near",za("near")),this._engines.set("nth-match",JE);const e=[...this._engines.keys()];e.sort();const i=[...Tb];if(i.sort(),e.join("|")!==i.join("|"))throw new Error(`Please keep customCSSNames in sync with evaluator engines: ${e.join("|")} vs ${i.join("|")}`)}begin(){++this._retainCacheCounter}end(){--this._retainCacheCounter,this._retainCacheCounter||(this._cacheQueryCSS.clear(),this._cacheMatches.clear(),this._cacheQuery.clear(),this._cacheMatchesSimple.clear(),this._cacheMatchesParents.clear(),this._cacheCallMatches.clear(),this._cacheCallQuery.clear(),this._cacheQuerySimple.clear(),this._cacheText.clear())}_cached(e,i,r,l){e.has(i)||e.set(i,[]);const o=e.get(i),u=o.find(h=>r.every((g,y)=>h.rest[y]===g));if(u)return u.result;const f=l();return o.push({rest:r,result:f}),f}_checkSelector(e){if(!(typeof e=="object"&&e&&(Array.isArray(e)||"simples"in e&&e.simples.length)))throw new Error(`Malformed selector "${e}"`);return e}matches(e,i,r){const l=this._checkSelector(i);this.begin();try{return this._cached(this._cacheMatches,e,[l,r.scope,r.pierceShadow,r.originalScope],()=>Array.isArray(l)?this._matchesEngine(Ia,e,l,r):(this._hasScopeClause(l)&&(r=this._expandContextForScopeMatching(r)),this._matchesSimple(e,l.simples[l.simples.length-1].selector,r)?this._matchesParents(e,l,l.simples.length-2,r):!1))}finally{this.end()}}query(e,i){const r=this._checkSelector(i);this.begin();try{return this._cached(this._cacheQuery,r,[e.scope,e.pierceShadow,e.originalScope],()=>{if(Array.isArray(r))return this._queryEngine(Ia,e,r);this._hasScopeClause(r)&&(e=this._expandContextForScopeMatching(e));const l=this._scoreMap;this._scoreMap=new Map;let o=this._querySimple(e,r.simples[r.simples.length-1].selector);return o=o.filter(u=>this._matchesParents(u,r,r.simples.length-2,e)),this._scoreMap.size&&o.sort((u,f)=>{const h=this._scoreMap.get(u),g=this._scoreMap.get(f);return h===g?0:h===void 0?1:g===void 0?-1:h-g}),this._scoreMap=l,o})}finally{this.end()}}_markScore(e,i){this._scoreMap&&this._scoreMap.set(e,i)}_hasScopeClause(e){return e.simples.some(i=>i.selector.functions.some(r=>r.name==="scope"))}_expandContextForScopeMatching(e){if(e.scope.nodeType!==1)return e;const i=bt(e.scope);return i?{...e,scope:i,originalScope:e.originalScope||e.scope}:e}_matchesSimple(e,i,r){return this._cached(this._cacheMatchesSimple,e,[i,r.scope,r.pierceShadow,r.originalScope],()=>{if(e===r.scope||i.css&&!this._matchesCSS(e,i.css))return!1;for(const l of i.functions)if(!this._matchesEngine(this._getEngine(l.name),e,l.args,r))return!1;return!0})}_querySimple(e,i){return i.functions.length?this._cached(this._cacheQuerySimple,i,[e.scope,e.pierceShadow,e.originalScope],()=>{let r=i.css;const l=i.functions;r==="*"&&l.length&&(r=void 0);let o,u=-1;r!==void 0?o=this._queryCSS(e,r):(u=l.findIndex(f=>this._getEngine(f.name).query!==void 0),u===-1&&(u=0),o=this._queryEngine(this._getEngine(l[u].name),e,l[u].args));for(let f=0;fthis._matchesEngine(h,g,l[f].args,e)))}for(let f=0;fthis._matchesEngine(h,g,l[f].args,e)))}return o}):this._queryCSS(e,i.css||"*")}_matchesParents(e,i,r,l){return r<0?!0:this._cached(this._cacheMatchesParents,e,[i,r,l.scope,l.pierceShadow,l.originalScope],()=>{const{selector:o,combinator:u}=i.simples[r];if(u===">"){const f=jo(e,l);return!f||!this._matchesSimple(f,o,l)?!1:this._matchesParents(f,i,r-1,l)}if(u==="+"){const f=dh(e,l);return!f||!this._matchesSimple(f,o,l)?!1:this._matchesParents(f,i,r-1,l)}if(u===""){let f=jo(e,l);for(;f;){if(this._matchesSimple(f,o,l)){if(this._matchesParents(f,i,r-1,l))return!0;if(i.simples[r-1].combinator==="")break}f=jo(f,l)}return!1}if(u==="~"){let f=dh(e,l);for(;f;){if(this._matchesSimple(f,o,l)){if(this._matchesParents(f,i,r-1,l))return!0;if(i.simples[r-1].combinator==="~")break}f=dh(f,l)}return!1}if(u===">="){let f=e;for(;f;){if(this._matchesSimple(f,o,l)){if(this._matchesParents(f,i,r-1,l))return!0;if(i.simples[r-1].combinator==="")break}f=jo(f,l)}return!1}throw new Error(`Unsupported combinator "${u}"`)})}_matchesEngine(e,i,r,l){if(e.matches)return this._callMatches(e,i,r,l);if(e.query)return this._callQuery(e,r,l).includes(i);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(e,i,r){if(e.query)return this._callQuery(e,r,i);if(e.matches)return this._queryCSS(i,"*").filter(l=>this._callMatches(e,l,r,i));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(e,i,r,l){return this._cached(this._cacheCallMatches,i,[e,l.scope,l.pierceShadow,l.originalScope,...r],()=>e.matches(i,r,l,this))}_callQuery(e,i,r){return this._cached(this._cacheCallQuery,e,[r.scope,r.pierceShadow,r.originalScope,...i],()=>e.query(r,i,this))}_matchesCSS(e,i){return e.matches(i)}_queryCSS(e,i){return this._cached(this._cacheQueryCSS,i,[e.scope,e.pierceShadow,e.originalScope],()=>{let r=[];function l(o){if(r=r.concat([...o.querySelectorAll(i)]),!!e.pierceShadow){o.shadowRoot&&l(o.shadowRoot);for(const u of o.querySelectorAll("*"))u.shadowRoot&&l(u.shadowRoot)}}return l(e.scope),r})}_getEngine(e){const i=this._engines.get(e);if(!i)throw new Error(`Unknown selector engine "${e}"`);return i}}const Ia={matches(n,e,i,r){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');return e.some(l=>r.matches(n,l,i))},query(n,e,i){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');let r=[];for(const l of e)r=r.concat(i.query(n,l));return e.length===1?r:Tv(r)}},$E={matches(n,e,i,r){if(e.length===0)throw new Error('"has" engine expects non-empty selector list');return r.query({...i,scope:n},e).length>0}},IE={matches(n,e,i,r){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const l=i.originalScope||i.scope;return l.nodeType===9?n===l.documentElement:n===l},query(n,e,i){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const r=n.originalScope||n.scope;if(r.nodeType===9){const l=r.documentElement;return l?[l]:[]}return r.nodeType===1?[r]:[]}},VE={matches(n,e,i,r){if(e.length===0)throw new Error('"not" engine expects non-empty selector list');return!r.matches(n,e,i)}},GE={query(n,e,i){return i.query({...n,pierceShadow:!1},e)},matches(n,e,i,r){return r.matches(n,e,{...i,pierceShadow:!1})}},KE={matches(n,e,i,r){if(e.length)throw new Error('"visible" engine expects no arguments');return ji(n)}},YE={matches(n,e,i,r){if(e.length!==1||typeof e[0]!="string")throw new Error('"text" engine expects a single string');const l=At(e[0]).toLowerCase(),o=u=>u.normalized.toLowerCase().includes(l);return wc(r._cacheText,n,o)==="self"}},XE={matches(n,e,i,r){if(e.length!==1||typeof e[0]!="string")throw new Error('"text-is" engine expects a single string');const l=At(e[0]),o=u=>!l&&!u.immediate.length?!0:u.immediate.some(f=>At(f)===l);return wc(r._cacheText,n,o)!=="none"}},FE={matches(n,e,i,r){if(e.length===0||typeof e[0]!="string"||e.length>2||e.length===2&&typeof e[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const l=new RegExp(e[0],e.length===2?e[1]:void 0),o=u=>l.test(u.full);return wc(r._cacheText,n,o)==="self"}},QE={matches(n,e,i,r){if(e.length!==1||typeof e[0]!="string")throw new Error('"has-text" engine expects a single string');if(Ad(n))return!1;const l=At(e[0]).toLowerCase();return(u=>u.normalized.toLowerCase().includes(l))(Ut(r._cacheText,n))}};function za(n){return{matches(e,i,r,l){const o=i.length&&typeof i[i.length-1]=="number"?i[i.length-1]:void 0,u=o===void 0?i:i.slice(0,i.length-1);if(i.length<1+(o===void 0?0:1))throw new Error(`"${n}" engine expects a selector list and optional maximum distance in pixels`);const f=l.query(r,u),h=mv(n,e,f,o);return h===void 0?!1:(l._markScore(e,h),!0)}}}const JE={query(n,e,i){let r=e[e.length-1];if(e.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof r!="number"||r<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const l=Ia.query(n,e.slice(0,e.length-1),i);return r--,r1){const h=new Set(f.children);f.children=[];let g=u.firstElementChild;for(;g&&f.children.lengthQo(y)))]}else{const f=rs(r,n,e,i)||Va(n,e,i);l=[Qo(f)]}}const o=l[0],u=n.parseSelector(o);return{selector:o,selectors:l,elements:n.querySelectorAll(u,i.root??e.ownerDocument)}}finally{od(),Sc(),n._evaluator.end()}}function rs(n,e,i,r){if(r.root&&!il(r.root,i))throw new Error("Target element must belong to the root's subtree");if(i===r.root)return[{engine:"css",selector:":scope",score:1}];if(i.ownerDocument.documentElement===i)return[{engine:"css",selector:"html",score:1}];let l=null;const o=f=>{(!l||as(f)as(f.candidate)-as(h.candidate));for(const{candidate:f,isTextCandidate:h}of u){const g=e.querySelectorAll(e.parseSelector(Qo(f)),r.root??i.ownerDocument);if(!g.includes(i))continue;if(g.length===1){o(f);break}const y=g.indexOf(i);if(!(y>5)&&(o([...f,{engine:"nth",selector:String(y),score:Dh}]),!r.isRecursive))for(let m=bt(i);m&&m!==r.root;m=bt(m)){const w=g.filter($=>il(m,$)&&$!==m),v=w.indexOf(i);if(w.length>5||v===-1||v===y&&w.length>1)continue;const E=w.length===1?f:[...f,{engine:"nth",selector:String(v),score:Dh}];if(l&&as([{engine:"",selector:"",score:1},...E])>=as(l))continue;const _=!!r.noText||h,N=_?n.disallowText:n.allowText;let C=N.get(m);C===void 0&&(C=rs(n,e,m,{...r,isRecursive:!0,noText:_})||Va(e,m,r),N.set(m,C)),C&&o([...C,...E])}}return l}function uA(n,e,i){const r=[];{for(const u of["data-testid","data-test-id","data-test"])u!==i.testIdAttributeName&&e.getAttribute(u)&&r.push({engine:"css",selector:`[${u}=${fr(e.getAttribute(u))}]`,score:PE});if(!i.noCSSId){const u=e.getAttribute("id");u&&!hA(u)&&r.push({engine:"css",selector:Lv(u),score:lA})}r.push({engine:"css",selector:Zn(e),score:jv})}if(e.nodeName==="IFRAME"){for(const u of["name","title"])e.getAttribute(u)&&r.push({engine:"css",selector:`${Zn(e)}[${u}=${fr(e.getAttribute(u))}]`,score:ZE});return e.getAttribute(i.testIdAttributeName)&&r.push({engine:"css",selector:`[${i.testIdAttributeName}=${fr(e.getAttribute(i.testIdAttributeName))}]`,score:C0}),zh([r]),r}if(e.getAttribute(i.testIdAttributeName)&&r.push({engine:"internal:testid",selector:`[${i.testIdAttributeName}=${Tt(e.getAttribute(i.testIdAttributeName),!0)}]`,score:C0}),e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){const u=e;if(u.placeholder){r.push({engine:"internal:attr",selector:`[placeholder=${Tt(u.placeholder,!0)}]`,score:eA});for(const f of pr(u.placeholder))r.push({engine:"internal:attr",selector:`[placeholder=${Tt(f.text,!1)}]`,score:Nv-f.scoreBonus})}}const l=vv(n._evaluator._cacheText,e);for(const u of l){const f=u.normalized;r.push({engine:"internal:label",selector:zt(f,!0),score:tA});for(const h of pr(f))r.push({engine:"internal:label",selector:zt(h.text,!1),score:Cv-h.scoreBonus})}const o=mt(e);return o&&!["none","presentation"].includes(o)&&r.push({engine:"internal:role",selector:o,score:Ov}),e.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(e.nodeName)&&r.push({engine:"css",selector:`${Zn(e)}[name=${fr(e.getAttribute("name"))}]`,score:ph}),["INPUT","TEXTAREA"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&e.getAttribute("type")&&r.push({engine:"css",selector:`${Zn(e)}[type=${fr(e.getAttribute("type"))}]`,score:ph}),["INPUT","TEXTAREA","SELECT"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&r.push({engine:"css",selector:Zn(e),score:ph+1}),zh([r]),r}function fA(n,e,i){if(e.nodeName==="SELECT")return[];const r=[],l=e.getAttribute("title");if(l){r.push([{engine:"internal:attr",selector:`[title=${Tt(l,!0)}]`,score:rA}]);for(const g of pr(l))r.push([{engine:"internal:attr",selector:`[title=${Tt(g.text,!1)}]`,score:Mv-g.scoreBonus}])}const o=e.getAttribute("alt");if(o&&["APPLET","AREA","IMG","INPUT"].includes(e.nodeName)){r.push([{engine:"internal:attr",selector:`[alt=${Tt(o,!0)}]`,score:iA}]);for(const g of pr(o))r.push([{engine:"internal:attr",selector:`[alt=${Tt(g.text,!1)}]`,score:kv-g.scoreBonus}])}const u=Ut(n._evaluator._cacheText,e).normalized,f=u?pr(u):[];if(u){if(i){u.length<=80&&r.push([{engine:"internal:text",selector:zt(u,!0),score:sA}]);for(const y of f)r.push([{engine:"internal:text",selector:zt(y.text,!1),score:Fo-y.scoreBonus}])}const g={engine:"css",selector:Zn(e),score:jv};for(const y of f)r.push([g,{engine:"internal:has-text",selector:zt(y.text,!1),score:Fo-y.scoreBonus}]);if(i&&u.length<=80){const y=new RegExp("^"+rc(u)+"$");r.push([g,{engine:"internal:has-text",selector:zt(y,!1),score:k0}])}}const h=mt(e);if(h&&!["none","presentation"].includes(h)){const g=sl(e,!1);if(g&&!g.match(new RegExp("^\\p{Co}+$","u"))){const y={engine:"internal:role",selector:`${h}[name=${Tt(g,!0)}]`,score:nA};r.push([y]);for(const m of pr(g))r.push([{engine:"internal:role",selector:`${h}[name=${Tt(m.text,!1)}]`,score:Av-m.scoreBonus}])}else{const y={engine:"internal:role",selector:`${h}`,score:Ov};for(const m of f)r.push([y,{engine:"internal:has-text",selector:zt(m.text,!1),score:Fo-m.scoreBonus}]);if(i&&u.length<=80){const m=new RegExp("^"+rc(u)+"$");r.push([y,{engine:"internal:has-text",selector:zt(m,!1),score:k0}])}}}return zh(r),r}function Lv(n){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(n)?"#"+n:`[id=${fr(n)}]`}function gh(n){return n.some(e=>e.engine==="css"&&(e.selector.startsWith("#")||e.selector.startsWith('[id="')))}function Va(n,e,i){const r=i.root??e.ownerDocument,l=[];function o(f){const h=l.slice();f&&h.unshift(f);const g=h.join(" > "),y=n.parseSelector(g);return n.querySelector(y,r,!1)===e?g:void 0}function u(f){const h={engine:"css",selector:f,score:oA},g=n.parseSelector(f),y=n.querySelectorAll(g,r);if(y.length===1)return[h];const m={engine:"nth",selector:String(y.indexOf(e)),score:Dh};return[h,m]}for(let f=e;f&&f!==r;f=bt(f)){let h="";if(f.id&&!i.noCSSId){const m=Lv(f.id),w=o(m);if(w)return u(w);h=m}const g=f.parentNode,y=[...f.classList].map(dA);for(let m=0;m_.nodeName===w).indexOf(f)===0?Zn(f):`${Zn(f)}:nth-child(${1+m.indexOf(f)})`,x=o(E);if(x)return u(x);h||(h=E)}else h||(h=Zn(f));l.unshift(h)}return u(o())}function zh(n){for(const e of n)for(const i of e)i.score>WE&&i.score>"),i=r,r==="css"?e.push(l):e.push(`${r}=${l}`);return e.join(" ")}function as(n){let e=0;for(let i=0;i="a"&&l<="z"?o="lower":l>="A"&&l<="Z"?o="upper":l>="0"&&l<="9"?o="digit":o="other",o==="lower"&&e==="upper"){e=o;continue}e&&e!==o&&++i,e=o}}return i>=n.length/4}function Lo(n,e){if(n.length<=e)return n;n=n.substring(0,e);const i=n.match(/^(.*)\b(.+?)$/);return i?i[1].trimEnd():""}function pr(n){let e=[];{const i=n.match(/^([\d.,]+)[^.,\w]/),r=i?i[1].length:0;if(r){const l=Lo(n.substring(r).trimStart(),80);e.push({text:l,scoreBonus:l.length<=30?2:1})}}{const i=n.match(/[^.,\w]([\d.,]+)$/),r=i?i[1].length:0;if(r){const l=Lo(n.substring(0,n.length-r).trimEnd(),80);e.push({text:l,scoreBonus:l.length<=30?2:1})}}return n.length<=30?e.push({text:n,scoreBonus:0}):(e.push({text:Lo(n,80),scoreBonus:0}),e.push({text:Lo(n,30),scoreBonus:1})),e=e.filter(i=>i.text),e.length||e.push({text:n.substring(0,80),scoreBonus:0}),e}function Zn(n){return n.nodeName.toLocaleLowerCase().replace(/[:\.]/g,e=>"\\"+e)}function dA(n){let e="";for(let i=0;i=1&&i<=31||i>=48&&i<=57&&(e===0||e===1&&n.charCodeAt(0)===45)?"\\"+i.toString(16)+" ":e===0&&i===45&&n.length===1?"\\"+n.charAt(e):i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n.charAt(e):"\\"+n.charAt(e)}function Rv(n,e){const i=n.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let r=i.substring(i.lastIndexOf("/")+1);return r.endsWith(e)&&(r=r.substring(0,r.length-e.length)),r}function gA(n,e){return e?e.toUpperCase():""}const mA=/(?:^|[-_/])(\w)/g,Dv=n=>n&&n.replace(mA,gA);function yA(n){function e(y){const m=y.name||y._componentTag||y.__playwright_guessedName;if(m)return m;const w=y.__file;if(w)return Dv(Rv(w,".vue"))}function i(y,m){return y.type.__playwright_guessedName=m,m}function r(y){var w,v,E,x;const m=e(y.type||{});if(m)return m;if(y.root===y)return"Root";for(const _ in(v=(w=y.parent)==null?void 0:w.type)==null?void 0:v.components)if(((E=y.parent)==null?void 0:E.type.components[_])===y.type)return i(y,_);for(const _ in(x=y.appContext)==null?void 0:x.components)if(y.appContext.components[_]===y.type)return i(y,_);return"Anonymous Component"}function l(y){return y._isBeingDestroyed||y.isUnmounted}function o(y){return y.subTree.type.toString()==="Symbol(Fragment)"}function u(y){const m=[];return y.component&&m.push(y.component),y.suspense&&m.push(...u(y.suspense.activeBranch)),Array.isArray(y.children)&&y.children.forEach(w=>{w.component?m.push(w.component):m.push(...u(w))}),m.filter(w=>{var v;return!l(w)&&!((v=w.type.devtools)!=null&&v.hide)})}function f(y){return o(y)?h(y.subTree):[y.subTree.el]}function h(y){if(!y.children)return[];const m=[];for(let w=0,v=y.children.length;w!!u.component).map(u=>u.component):[]}function l(o){return{name:i(o),children:r(o).map(l),rootElements:[o.$el],props:o._props}}return l(n)}function zv(n,e,i=[]){e(n)&&i.push(n);for(const r of n.children)zv(r,e,i);return i}function Bv(n,e=[]){const r=(n.ownerDocument||n).createTreeWalker(n,NodeFilter.SHOW_ELEMENT),l=new Set;do{const o=r.currentNode;o.__vue__&&l.add(o.__vue__.$root),o.__vue_app__&&o._vnode&&o._vnode.component&&e.push({root:o._vnode.component,version:3});const u=o instanceof Element?o.shadowRoot:null;u&&Bv(u,e)}while(r.nextNode());for(const o of l)e.push({version:2,root:o});return e}const vA=()=>({queryAll(n,e){const i=n.ownerDocument||n,{name:r,attributes:l}=ds(e,!1),f=Bv(i).map(g=>g.version===3?yA(g.root):bA(g.root)).map(g=>zv(g,y=>{if(r&&y.name!==r||y.rootElements.some(m=>!il(n,m)))return!1;for(const m of l)if(!yv(y.props,m))return!1;return!0})).flat(),h=new Set;for(const g of f)for(const y of g.rootElements)h.add(y);return[...h]}}),O0={queryAll(n,e){e.startsWith("/")&&n.nodeType!==Node.DOCUMENT_NODE&&(e="."+e);const i=[],r=n.ownerDocument||n;if(!r)return i;const l=r.evaluate(e,n,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let o=l.iterateNext();o;o=l.iterateNext())o.nodeType===Node.ELEMENT_NODE&&i.push(o);return i}};function Nd(n,e,i){return`internal:attr=[${n}=${Tt(e,(i==null?void 0:i.exact)||!1)}]`}function SA(n,e){return`internal:testid=[${n}=${Tt(e,!0)}]`}function wA(n,e){return"internal:label="+zt(n,!!(e!=null&&e.exact))}function xA(n,e){return Nd("alt",n,e)}function _A(n,e){return Nd("title",n,e)}function TA(n,e){return Nd("placeholder",n,e)}function EA(n,e){return"internal:text="+zt(n,!!(e!=null&&e.exact))}function AA(n,e={}){const i=[];return e.checked!==void 0&&i.push(["checked",String(e.checked)]),e.disabled!==void 0&&i.push(["disabled",String(e.disabled)]),e.selected!==void 0&&i.push(["selected",String(e.selected)]),e.expanded!==void 0&&i.push(["expanded",String(e.expanded)]),e.includeHidden!==void 0&&i.push(["include-hidden",String(e.includeHidden)]),e.level!==void 0&&i.push(["level",String(e.level)]),e.name!==void 0&&i.push(["name",Tt(e.name,!!e.exact)]),e.pressed!==void 0&&i.push(["pressed",String(e.pressed)]),`internal:role=${n}${i.map(([r,l])=>`[${r}=${l}]`).join("")}`}const Ba=Symbol("selector"),NA=class Ga{constructor(e,i,r){if(r!=null&&r.hasText&&(i+=` >> internal:has-text=${zt(r.hasText,!1)}`),r!=null&&r.hasNotText&&(i+=` >> internal:has-not-text=${zt(r.hasNotText,!1)}`),r!=null&&r.has&&(i+=" >> internal:has="+JSON.stringify(r.has[Ba])),r!=null&&r.hasNot&&(i+=" >> internal:has-not="+JSON.stringify(r.hasNot[Ba])),(r==null?void 0:r.visible)!==void 0&&(i+=` >> visible=${r.visible?"true":"false"}`),this[Ba]=i,i){const u=e.parseSelector(i);this.element=e.querySelector(u,e.document,!1),this.elements=e.querySelectorAll(u,e.document)}const l=i,o=this;o.locator=(u,f)=>new Ga(e,l?l+" >> "+u:u,f),o.getByTestId=u=>o.locator(SA(e.testIdAttributeNameForStrictErrorAndConsoleCodegen(),u)),o.getByAltText=(u,f)=>o.locator(xA(u,f)),o.getByLabel=(u,f)=>o.locator(wA(u,f)),o.getByPlaceholder=(u,f)=>o.locator(TA(u,f)),o.getByText=(u,f)=>o.locator(EA(u,f)),o.getByTitle=(u,f)=>o.locator(_A(u,f)),o.getByRole=(u,f={})=>o.locator(AA(u,f)),o.filter=u=>new Ga(e,i,u),o.first=()=>o.locator("nth=0"),o.last=()=>o.locator("nth=-1"),o.nth=u=>o.locator(`nth=${u}`),o.and=u=>new Ga(e,l+" >> internal:and="+JSON.stringify(u[Ba])),o.or=u=>new Ga(e,l+" >> internal:or="+JSON.stringify(u[Ba]))}};let CA=NA;class kA{constructor(e){this._injectedScript=e}install(){this._injectedScript.window.playwright||(this._injectedScript.window.playwright={$:(e,i)=>this._querySelector(e,!!i),$$:e=>this._querySelectorAll(e),inspect:e=>this._inspect(e),selector:e=>this._selector(e),generateLocator:(e,i)=>this._generateLocator(e,i),ariaSnapshot:(e,i)=>this._injectedScript.ariaSnapshot(e||this._injectedScript.document.body,i||{mode:"expect"}),resume:()=>this._resume(),...new CA(this._injectedScript,"")},delete this._injectedScript.window.playwright.filter,delete this._injectedScript.window.playwright.first,delete this._injectedScript.window.playwright.last,delete this._injectedScript.window.playwright.nth,delete this._injectedScript.window.playwright.and,delete this._injectedScript.window.playwright.or)}_querySelector(e,i){if(typeof e!="string")throw new Error("Usage: playwright.query('Playwright >> selector').");const r=this._injectedScript.parseSelector(e);return this._injectedScript.querySelector(r,this._injectedScript.document,i)}_querySelectorAll(e){if(typeof e!="string")throw new Error("Usage: playwright.$$('Playwright >> selector').");const i=this._injectedScript.parseSelector(e);return this._injectedScript.querySelectorAll(i,this._injectedScript.document)}_inspect(e){if(typeof e!="string")throw new Error("Usage: playwright.inspect('Playwright >> selector').");this._injectedScript.window.inspect(this._querySelector(e,!1))}_selector(e){if(!(e instanceof Element))throw new Error("Usage: playwright.selector(element).");return this._injectedScript.generateSelectorSimple(e)}_generateLocator(e,i){if(!(e instanceof Element))throw new Error("Usage: playwright.locator(element).");const r=this._injectedScript.generateSelectorSimple(e);return Oi(i||"javascript",r)}_resume(){if(!this._injectedScript.window.__pw_resume)return!1;this._injectedScript.window.__pw_resume().catch(()=>{})}}function MA(n){try{return n instanceof RegExp||Object.prototype.toString.call(n)==="[object RegExp]"}catch{return!1}}function OA(n){try{return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}catch{return!1}}function jA(n){try{return n instanceof URL||Object.prototype.toString.call(n)==="[object URL]"}catch{return!1}}function LA(n){var e;try{return n instanceof Error||n&&((e=Object.getPrototypeOf(n))==null?void 0:e.name)==="Error"}catch{return!1}}function RA(n,e){try{return n instanceof e||Object.prototype.toString.call(n)===`[object ${e.name}]`}catch{return!1}}const Uv={i8:Int8Array,ui8:Uint8Array,ui8c:Uint8ClampedArray,i16:Int16Array,ui16:Uint16Array,i32:Int32Array,ui32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:BigInt64Array,bui64:BigUint64Array};function DA(n){if("toBase64"in n)return n.toBase64();const e=Array.from(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)).map(i=>String.fromCharCode(i)).join("");return btoa(e)}function zA(n,e){const i=atob(n),r=new Uint8Array(i.length);for(let l=0;l";if(typeof globalThis.Document=="function"&&n instanceof globalThis.Document)return"ref: ";if(typeof globalThis.Node=="function"&&n instanceof globalThis.Node)return"ref: "}return Hv(n,e,i)}function Hv(n,e,i){var o;const r=e(n);if("fallThrough"in r)n=r.fallThrough;else return r;if(typeof n=="symbol")return{v:"undefined"};if(Object.is(n,void 0))return{v:"undefined"};if(Object.is(n,null))return{v:"null"};if(Object.is(n,NaN))return{v:"NaN"};if(Object.is(n,1/0))return{v:"Infinity"};if(Object.is(n,-1/0))return{v:"-Infinity"};if(Object.is(n,-0))return{v:"-0"};if(typeof n=="boolean"||typeof n=="number"||typeof n=="string")return n;if(typeof n=="bigint")return{bi:n.toString()};if(LA(n)){let u;return(o=n.stack)!=null&&o.startsWith(n.name+": "+n.message)?u=n.stack:u=`${n.name}: ${n.message} -${n.stack}`,{e:{n:n.name,m:n.message,s:u}}}if(OA(n))return{d:n.toJSON()};if(jA(n))return{u:n.toJSON()};if(MA(n))return{r:{p:n.source,f:n.flags}};for(const[u,f]of Object.entries(Uv))if(RA(n,f))return{ta:{b:DA(n),k:u}};const l=i.visited.get(n);if(l)return{ref:l};if(Array.isArray(n)){const u=[],f=++i.lastId;i.visited.set(n,f);for(let h=0;h({fallThrough:r}))}_promiseAwareJsonValueNoThrow(e){const i=r=>{try{return this.jsonValue(!0,r)}catch{return}};return e&&typeof e=="object"&&typeof e.then=="function"?(async()=>{const r=await e;return i(r)})():i(e)}}class qv{constructor(e,i){this._testIdAttributeNameForStrictErrorAndConsoleCodegen="data-testid",this._lastAriaSnapshotForTrack=new Map,this.utils={asLocator:Oi,cacheNormalizedWhitespaces:r_,elementText:Ut,getAriaRole:mt,getElementAccessibleDescription:S0,getElementAccessibleName:sl,isElementVisible:ji,isInsideScope:il,normalizeWhiteSpace:At,parseAriaSnapshot:id,generateAriaTree:Ja,findNewElement:AE,builtins:null},this.window=e,this.document=e.document,this.isUnderTest=i.isUnderTest,this.utils.builtins=new UA(e,i.isUnderTest).builtins,this._sdkLanguage=i.sdkLanguage,this._testIdAttributeNameForStrictErrorAndConsoleCodegen=i.testIdAttributeName,this._evaluator=new qE,this.consoleApi=new kA(this),this.onGlobalListenersRemoved=new Set,this._autoClosingTags=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","MENUITEM","META","PARAM","SOURCE","TRACK","WBR"]),this._booleanAttributes=new Set(["checked","selected","disabled","readonly","multiple"]),this._eventTypes=new Map([["auxclick","mouse"],["click","mouse"],["dblclick","mouse"],["mousedown","mouse"],["mouseeenter","mouse"],["mouseleave","mouse"],["mousemove","mouse"],["mouseout","mouse"],["mouseover","mouse"],["mouseup","mouse"],["mouseleave","mouse"],["mousewheel","mouse"],["keydown","keyboard"],["keyup","keyboard"],["keypress","keyboard"],["textInput","keyboard"],["touchstart","touch"],["touchmove","touch"],["touchend","touch"],["touchcancel","touch"],["pointerover","pointer"],["pointerout","pointer"],["pointerenter","pointer"],["pointerleave","pointer"],["pointerdown","pointer"],["pointerup","pointer"],["pointermove","pointer"],["pointercancel","pointer"],["gotpointercapture","pointer"],["lostpointercapture","pointer"],["focus","focus"],["blur","focus"],["drag","drag"],["dragstart","drag"],["dragend","drag"],["dragover","drag"],["dragenter","drag"],["dragleave","drag"],["dragexit","drag"],["drop","drag"],["wheel","wheel"],["deviceorientation","deviceorientation"],["deviceorientationabsolute","deviceorientation"],["devicemotion","devicemotion"]]),this._hoverHitTargetInterceptorEvents=new Set(["mousemove"]),this._tapHitTargetInterceptorEvents=new Set(["pointerdown","pointerup","touchstart","touchend","touchcancel"]),this._mouseHitTargetInterceptorEvents=new Set(["mousedown","mouseup","pointerdown","pointerup","click","auxclick","dblclick","contextmenu"]),this._allHitTargetInterceptorEvents=new Set([...this._hoverHitTargetInterceptorEvents,...this._tapHitTargetInterceptorEvents,...this._mouseHitTargetInterceptorEvents]),this._engines=new Map,this._engines.set("xpath",O0),this._engines.set("xpath:light",O0),this._engines.set("_react",BE()),this._engines.set("_vue",vA()),this._engines.set("role",N0(!1)),this._engines.set("text",this._createTextEngine(!0,!1)),this._engines.set("text:light",this._createTextEngine(!1,!1)),this._engines.set("id",this._createAttributeEngine("id",!0)),this._engines.set("id:light",this._createAttributeEngine("id",!1)),this._engines.set("data-testid",this._createAttributeEngine("data-testid",!0)),this._engines.set("data-testid:light",this._createAttributeEngine("data-testid",!1)),this._engines.set("data-test-id",this._createAttributeEngine("data-test-id",!0)),this._engines.set("data-test-id:light",this._createAttributeEngine("data-test-id",!1)),this._engines.set("data-test",this._createAttributeEngine("data-test",!0)),this._engines.set("data-test:light",this._createAttributeEngine("data-test",!1)),this._engines.set("css",this._createCSSEngine()),this._engines.set("nth",{queryAll:()=>[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",N0(!0)),this._engines.set("internal:describe",this._createDescribeEngine()),this._engines.set("aria-ref",this._createAriaRefEngine());for(const{name:r,source:l}of i.customEngines)this._engines.set(r,this.eval(l));this._stableRafCount=i.stableRafCount,this._browserName=i.browserName,this._isUtilityWorld=!!i.isUtilityWorld,FT({browserNameForWorkarounds:i.browserName}),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),this.isUnderTest&&(this.window.__injectedScript=this)}eval(e){return this.window.eval(e)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(e){const i=cl(e);return i_(i,r=>{if(!this._engines.has(r.name))throw this.createStacklessError(`Unknown engine "${r.name}" while parsing selector ${e}`)}),i}generateSelector(e,i){return M0(this,e,i)}generateSelectorSimple(e,i){return M0(this,e,{...i,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(e,i,r){const l=this.querySelectorAll(e,i);if(r&&l.length>1)throw this.strictModeViolationError(e,l);return this.checkDeprecatedSelectorUsage(e,l),l[0]}_queryNth(e,i){const r=[...e];let l=+i.body;return l===-1&&(l=r.length-1),new Set(r.slice(l,l+1))}_queryLayoutSelector(e,i,r){const l=i.name,o=i.body,u=[],f=this.querySelectorAll(o.parsed,r);for(const h of e){const g=mv(l,h,f,o.distance);g!==void 0&&u.push({element:h,score:g})}return u.sort((h,g)=>h.score-g.score),new Set(u.map(h=>h.element))}ariaSnapshot(e,i){return this.incrementalAriaSnapshot(e,i).full}incrementalAriaSnapshot(e,i){if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Can only capture aria snapshot of Element nodes.");const r=Ja(e,i),l=Pa(r,i);let o;if(i.track){const u=this._lastAriaSnapshotForTrack.get(i.track);u&&(o=Pa(r,i,u)),this._lastAriaSnapshotForTrack.set(i.track,r)}return this._lastAriaSnapshotForQuery=r,{full:l,incremental:o,iframeRefs:r.iframeRefs}}ariaSnapshotForRecorder(){const e=Ja(this.document.body,{mode:"ai"});return{ariaSnapshot:Pa(e,{mode:"ai"}),refs:e.refs}}getAllElementsMatchingExpectAriaTemplate(e,i){return wE(e.documentElement,i)}querySelectorAll(e,i){if(e.capture!==void 0){if(e.parts.some(l=>l.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const r={parts:e.parts.slice(0,e.capture+1)};if(e.capturer.has(u)))}else if(l.name==="internal:or"){const o=this.querySelectorAll(l.body.parsed,i);r=new Set(Tv(new Set([...r,...o])))}else if(jE.includes(l.name))r=this._queryLayoutSelector(r,l,i);else{const o=new Set;for(const u of r){const f=this._queryEngineAll(l,u);for(const h of f)o.add(h)}r=o}return[...r]}finally{this._evaluator.end()}}_queryEngineAll(e,i){const r=this._engines.get(e.name).queryAll(i,e.body);for(const l of r)if(!("nodeName"in l))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(l)}`);return r}_createAttributeEngine(e,i){const r=l=>[{simples:[{selector:{css:`[${e}=${JSON.stringify(l)}]`,functions:[]},combinator:""}]}];return{queryAll:(l,o)=>this._evaluator.query({scope:l,pierceShadow:i},r(o))}}_createCSSEngine(){return{queryAll:(e,i)=>this._evaluator.query({scope:e,pierceShadow:!0},i)}}_createTextEngine(e,i){return{queryAll:(l,o)=>{const{matcher:u,kind:f}=Do(o,i),h=[];let g=null;const y=w=>{if(f==="lax"&&g&&g.contains(w))return!1;const v=wc(this._evaluator._cacheText,w,u);v==="none"&&(g=w),(v==="self"||v==="selfAndChildren"&&f==="strict"&&!i)&&h.push(w)};l.nodeType===Node.ELEMENT_NODE&&y(l);const m=this._evaluator._queryCSS({scope:l,pierceShadow:e},"*");for(const w of m)y(w);return h}}}_createInternalHasTextEngine(){return{queryAll:(e,i)=>{if(e.nodeType!==1)return[];const r=e,l=Ut(this._evaluator._cacheText,r),{matcher:o}=Do(i,!0);return o(l)?[r]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(e,i)=>{if(e.nodeType!==1)return[];const r=e,l=Ut(this._evaluator._cacheText,r),{matcher:o}=Do(i,!0);return o(l)?[]:[r]}}}_createInternalLabelEngine(){return{queryAll:(e,i)=>{const{matcher:r}=Do(i,!0);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},"*").filter(o=>vv(this._evaluator._cacheText,o).some(u=>r(u)))}}}_createNamedAttributeEngine(){return{queryAll:(i,r)=>{const l=ds(r,!0);if(l.name||l.attributes.length!==1)throw new Error("Malformed attribute selector: "+r);const{name:o,value:u,caseSensitive:f}=l.attributes[0],h=f?null:u.toLowerCase();let g;return u instanceof RegExp?g=m=>!!m.match(u):f?g=m=>m===u:g=m=>m.toLowerCase().includes(h),this._evaluator._queryCSS({scope:i,pierceShadow:!0},`[${o}]`).filter(m=>g(m.getAttribute(o)))}}}_createDescribeEngine(){return{queryAll:i=>i.nodeType!==1?[]:[i]}}_createControlEngine(){return{queryAll(e,i){if(i==="enter-frame")return[];if(i==="return-empty")return[];if(i==="component")return e.nodeType!==1?[]:[e.childElementCount===1?e.firstElementChild:e];throw new Error(`Internal error, unknown internal:control selector ${i}`)}}}_createHasEngine(){return{queryAll:(i,r)=>i.nodeType!==1?[]:!!this.querySelector(r.parsed,i,!1)?[i]:[]}}_createHasNotEngine(){return{queryAll:(i,r)=>i.nodeType!==1?[]:!!this.querySelector(r.parsed,i,!1)?[]:[i]}}_createVisibleEngine(){return{queryAll:(i,r)=>{if(i.nodeType!==1)return[];const l=r==="true";return ji(i)===l?[i]:[]}}}_createInternalChainEngine(){return{queryAll:(i,r)=>this.querySelectorAll(r.parsed,i)}}extend(e,i){const r=this.window.eval(` - (() => { - const module = {}; - ${e} - return module.exports.default(); - })()`);return new r(this,i)}async viewportRatio(e){return await new Promise(i=>{const r=new IntersectionObserver(l=>{i(l[0].intersectionRatio),r.disconnect()});r.observe(e),this.utils.builtins.requestAnimationFrame(()=>{})})}getElementBorderWidth(e){if(e.nodeType!==Node.ELEMENT_NODE||!e.ownerDocument||!e.ownerDocument.defaultView)return{left:0,top:0};const i=e.ownerDocument.defaultView.getComputedStyle(e);return{left:parseInt(i.borderLeftWidth||"",10),top:parseInt(i.borderTopWidth||"",10)}}describeIFrameStyle(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return"error:notconnected";const i=e.ownerDocument.defaultView;for(let l=e;l;l=bt(l))if(i.getComputedStyle(l).transform!=="none")return"transformed";const r=i.getComputedStyle(e);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(e,i){let r=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;if(!r)return null;if(i==="none")return r;if(!r.matches("input, textarea, select")&&!r.isContentEditable&&(i==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),i==="follow-label"&&!r.matches("a, input, textarea, button, select, [role=link], [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable){const l=r.closest("label");l&&l.control&&(r=l.control)}return r}async checkElementStates(e,i){if(i.includes("stable")){const r=await this._checkElementIsStable(e);if(r===!1)return{missingState:"stable"};if(r==="error:notconnected")return"error:notconnected"}for(const r of i)if(r!=="stable"){const l=this.elementState(e,r);if(l.received==="error:notconnected")return"error:notconnected";if(!l.matches)return{missingState:r}}}async _checkElementIsStable(e){const i=Symbol("continuePolling");let r,l=0,o=0;const u=()=>{const m=this.retarget(e,"no-follow-label");if(!m)return"error:notconnected";const w=this.utils.builtins.performance.now();if(this._stableRafCount>1&&w-o<15)return i;o=w;const v=m.getBoundingClientRect(),E={x:v.top,y:v.left,width:v.width,height:v.height};if(r){if(!(E.x===r.x&&E.y===r.y&&E.width===r.width&&E.height===r.height))return!1;if(++l>=this._stableRafCount)return!0}return r=E,i};let f,h;const g=new Promise((m,w)=>{f=m,h=w}),y=()=>{try{const m=u();m!==i?f(m):this.utils.builtins.requestAnimationFrame(y)}catch(m){h(m)}};return this.utils.builtins.requestAnimationFrame(y),g}_createAriaRefEngine(){return{queryAll:(i,r)=>{var o,u;const l=(u=(o=this._lastAriaSnapshotForQuery)==null?void 0:o.elements)==null?void 0:u.get(r);return l&&l.isConnected?[l]:[]}}}elementState(e,i){const r=this.retarget(e,["visible","hidden"].includes(i)?"none":"follow-label");if(!r||!r.isConnected)return i==="hidden"?{matches:!0,received:"hidden"}:{matches:!1,received:"error:notconnected"};if(i==="visible"||i==="hidden"){const l=ji(r);return{matches:i==="visible"?l:!l,received:l?"visible":"hidden"}}if(i==="disabled"||i==="enabled"){const l=uc(r);return{matches:i==="disabled"?l:!l,received:l?"disabled":"enabled"}}if(i==="editable"){const l=uc(r),o=cE(r);if(o==="error")throw this.createStacklessError("Element is not an ,